configure revision ee0db89d
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for makedepend 1.0.8.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/util/makedepend/-/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/util/makedepend/-/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='makedepend'
614PACKAGE_TARNAME='makedepend'
615PACKAGE_VERSION='1.0.8'
616PACKAGE_STRING='makedepend 1.0.8'
617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/util/makedepend/-/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
657X_LIBS
658X_CFLAGS
659LINT_FALSE
660LINT_TRUE
661LINT_FLAGS
662LINT
663MAN_SUBSTS
664XORG_MAN_PAGE
665ADMIN_MAN_DIR
666DRIVER_MAN_DIR
667MISC_MAN_DIR
668FILE_MAN_DIR
669LIB_MAN_DIR
670APP_MAN_DIR
671ADMIN_MAN_SUFFIX
672DRIVER_MAN_SUFFIX
673MISC_MAN_SUFFIX
674FILE_MAN_SUFFIX
675LIB_MAN_SUFFIX
676APP_MAN_SUFFIX
677SED
678host_os
679host_vendor
680host_cpu
681host
682build_os
683build_vendor
684build_cpu
685build
686INSTALL_CMD
687PKG_CONFIG_LIBDIR
688PKG_CONFIG_PATH
689PKG_CONFIG
690CHANGELOG_CMD
691STRICT_CFLAGS
692CWARNFLAGS
693BASE_CFLAGS
694am__fastdepCC_FALSE
695am__fastdepCC_TRUE
696CCDEPMODE
697am__nodep
698AMDEPBACKSLASH
699AMDEP_FALSE
700AMDEP_TRUE
701am__include
702DEPDIR
703OBJEXT
704EXEEXT
705ac_ct_CC
706CPPFLAGS
707LDFLAGS
708CFLAGS
709CC
710AM_BACKSLASH
711AM_DEFAULT_VERBOSITY
712AM_DEFAULT_V
713AM_V
714CSCOPE
715ETAGS
716CTAGS
717am__untar
718am__tar
719AMTAR
720am__leading_dot
721SET_MAKE
722AWK
723mkdir_p
724MKDIR_P
725INSTALL_STRIP_PROGRAM
726STRIP
727install_sh
728MAKEINFO
729AUTOHEADER
730AUTOMAKE
731AUTOCONF
732ACLOCAL
733VERSION
734PACKAGE
735CYGPATH_W
736am__isrc
737INSTALL_DATA
738INSTALL_SCRIPT
739INSTALL_PROGRAM
740target_alias
741host_alias
742build_alias
743LIBS
744ECHO_T
745ECHO_N
746ECHO_C
747DEFS
748mandir
749localedir
750libdir
751psdir
752pdfdir
753dvidir
754htmldir
755infodir
756docdir
757oldincludedir
758includedir
759runstatedir
760localstatedir
761sharedstatedir
762sysconfdir
763datadir
764datarootdir
765libexecdir
766sbindir
767bindir
768program_transform_name
769prefix
770exec_prefix
771PACKAGE_URL
772PACKAGE_BUGREPORT
773PACKAGE_STRING
774PACKAGE_VERSION
775PACKAGE_TARNAME
776PACKAGE_NAME
777PATH_SEPARATOR
778SHELL
779am__quote'
780ac_subst_files=''
781ac_user_opts='
782enable_option_checking
783enable_silent_rules
784enable_dependency_tracking
785enable_selective_werror
786enable_strict_compilation
787with_lint
788enable_largefile
789'
790      ac_precious_vars='build_alias
791host_alias
792target_alias
793CC
794CFLAGS
795LDFLAGS
796LIBS
797CPPFLAGS
798PKG_CONFIG
799PKG_CONFIG_PATH
800PKG_CONFIG_LIBDIR
801LINT
802LINT_FLAGS
803X_CFLAGS
804X_LIBS'
805
806
807# Initialize some variables set by options.
808ac_init_help=
809ac_init_version=false
810ac_unrecognized_opts=
811ac_unrecognized_sep=
812# The variables have the same names as the options, with
813# dashes changed to underlines.
814cache_file=/dev/null
815exec_prefix=NONE
816no_create=
817no_recursion=
818prefix=NONE
819program_prefix=NONE
820program_suffix=NONE
821program_transform_name=s,x,x,
822silent=
823site=
824srcdir=
825verbose=
826x_includes=NONE
827x_libraries=NONE
828
829# Installation directory options.
830# These are left unexpanded so users can "make install exec_prefix=/foo"
831# and all the variables that are supposed to be based on exec_prefix
832# by default will actually change.
833# Use braces instead of parens because sh, perl, etc. also accept them.
834# (The list follows the same order as the GNU Coding Standards.)
835bindir='${exec_prefix}/bin'
836sbindir='${exec_prefix}/sbin'
837libexecdir='${exec_prefix}/libexec'
838datarootdir='${prefix}/share'
839datadir='${datarootdir}'
840sysconfdir='${prefix}/etc'
841sharedstatedir='${prefix}/com'
842localstatedir='${prefix}/var'
843runstatedir='${localstatedir}/run'
844includedir='${prefix}/include'
845oldincludedir='/usr/include'
846docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
847infodir='${datarootdir}/info'
848htmldir='${docdir}'
849dvidir='${docdir}'
850pdfdir='${docdir}'
851psdir='${docdir}'
852libdir='${exec_prefix}/lib'
853localedir='${datarootdir}/locale'
854mandir='${datarootdir}/man'
855
856ac_prev=
857ac_dashdash=
858for ac_option
859do
860  # If the previous option needs an argument, assign it.
861  if test -n "$ac_prev"; then
862    eval $ac_prev=\$ac_option
863    ac_prev=
864    continue
865  fi
866
867  case $ac_option in
868  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
869  *=)   ac_optarg= ;;
870  *)    ac_optarg=yes ;;
871  esac
872
873  case $ac_dashdash$ac_option in
874  --)
875    ac_dashdash=yes ;;
876
877  -bindir | --bindir | --bindi | --bind | --bin | --bi)
878    ac_prev=bindir ;;
879  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
880    bindir=$ac_optarg ;;
881
882  -build | --build | --buil | --bui | --bu)
883    ac_prev=build_alias ;;
884  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
885    build_alias=$ac_optarg ;;
886
887  -cache-file | --cache-file | --cache-fil | --cache-fi \
888  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
889    ac_prev=cache_file ;;
890  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
891  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
892    cache_file=$ac_optarg ;;
893
894  --config-cache | -C)
895    cache_file=config.cache ;;
896
897  -datadir | --datadir | --datadi | --datad)
898    ac_prev=datadir ;;
899  -datadir=* | --datadir=* | --datadi=* | --datad=*)
900    datadir=$ac_optarg ;;
901
902  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
903  | --dataroo | --dataro | --datar)
904    ac_prev=datarootdir ;;
905  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
906  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
907    datarootdir=$ac_optarg ;;
908
909  -disable-* | --disable-*)
910    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
911    # Reject names that are not valid shell variable names.
912    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913      as_fn_error $? "invalid feature name: \`$ac_useropt'"
914    ac_useropt_orig=$ac_useropt
915    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
916    case $ac_user_opts in
917      *"
918"enable_$ac_useropt"
919"*) ;;
920      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
921	 ac_unrecognized_sep=', ';;
922    esac
923    eval enable_$ac_useropt=no ;;
924
925  -docdir | --docdir | --docdi | --doc | --do)
926    ac_prev=docdir ;;
927  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928    docdir=$ac_optarg ;;
929
930  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931    ac_prev=dvidir ;;
932  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933    dvidir=$ac_optarg ;;
934
935  -enable-* | --enable-*)
936    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937    # Reject names that are not valid shell variable names.
938    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939      as_fn_error $? "invalid feature name: \`$ac_useropt'"
940    ac_useropt_orig=$ac_useropt
941    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
942    case $ac_user_opts in
943      *"
944"enable_$ac_useropt"
945"*) ;;
946      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
947	 ac_unrecognized_sep=', ';;
948    esac
949    eval enable_$ac_useropt=\$ac_optarg ;;
950
951  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953  | --exec | --exe | --ex)
954    ac_prev=exec_prefix ;;
955  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957  | --exec=* | --exe=* | --ex=*)
958    exec_prefix=$ac_optarg ;;
959
960  -gas | --gas | --ga | --g)
961    # Obsolete; use --with-gas.
962    with_gas=yes ;;
963
964  -help | --help | --hel | --he | -h)
965    ac_init_help=long ;;
966  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967    ac_init_help=recursive ;;
968  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969    ac_init_help=short ;;
970
971  -host | --host | --hos | --ho)
972    ac_prev=host_alias ;;
973  -host=* | --host=* | --hos=* | --ho=*)
974    host_alias=$ac_optarg ;;
975
976  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977    ac_prev=htmldir ;;
978  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979  | --ht=*)
980    htmldir=$ac_optarg ;;
981
982  -includedir | --includedir | --includedi | --included | --include \
983  | --includ | --inclu | --incl | --inc)
984    ac_prev=includedir ;;
985  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986  | --includ=* | --inclu=* | --incl=* | --inc=*)
987    includedir=$ac_optarg ;;
988
989  -infodir | --infodir | --infodi | --infod | --info | --inf)
990    ac_prev=infodir ;;
991  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992    infodir=$ac_optarg ;;
993
994  -libdir | --libdir | --libdi | --libd)
995    ac_prev=libdir ;;
996  -libdir=* | --libdir=* | --libdi=* | --libd=*)
997    libdir=$ac_optarg ;;
998
999  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000  | --libexe | --libex | --libe)
1001    ac_prev=libexecdir ;;
1002  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003  | --libexe=* | --libex=* | --libe=*)
1004    libexecdir=$ac_optarg ;;
1005
1006  -localedir | --localedir | --localedi | --localed | --locale)
1007    ac_prev=localedir ;;
1008  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009    localedir=$ac_optarg ;;
1010
1011  -localstatedir | --localstatedir | --localstatedi | --localstated \
1012  | --localstate | --localstat | --localsta | --localst | --locals)
1013    ac_prev=localstatedir ;;
1014  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016    localstatedir=$ac_optarg ;;
1017
1018  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019    ac_prev=mandir ;;
1020  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021    mandir=$ac_optarg ;;
1022
1023  -nfp | --nfp | --nf)
1024    # Obsolete; use --without-fp.
1025    with_fp=no ;;
1026
1027  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028  | --no-cr | --no-c | -n)
1029    no_create=yes ;;
1030
1031  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033    no_recursion=yes ;;
1034
1035  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037  | --oldin | --oldi | --old | --ol | --o)
1038    ac_prev=oldincludedir ;;
1039  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042    oldincludedir=$ac_optarg ;;
1043
1044  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045    ac_prev=prefix ;;
1046  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047    prefix=$ac_optarg ;;
1048
1049  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050  | --program-pre | --program-pr | --program-p)
1051    ac_prev=program_prefix ;;
1052  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054    program_prefix=$ac_optarg ;;
1055
1056  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057  | --program-suf | --program-su | --program-s)
1058    ac_prev=program_suffix ;;
1059  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061    program_suffix=$ac_optarg ;;
1062
1063  -program-transform-name | --program-transform-name \
1064  | --program-transform-nam | --program-transform-na \
1065  | --program-transform-n | --program-transform- \
1066  | --program-transform | --program-transfor \
1067  | --program-transfo | --program-transf \
1068  | --program-trans | --program-tran \
1069  | --progr-tra | --program-tr | --program-t)
1070    ac_prev=program_transform_name ;;
1071  -program-transform-name=* | --program-transform-name=* \
1072  | --program-transform-nam=* | --program-transform-na=* \
1073  | --program-transform-n=* | --program-transform-=* \
1074  | --program-transform=* | --program-transfor=* \
1075  | --program-transfo=* | --program-transf=* \
1076  | --program-trans=* | --program-tran=* \
1077  | --progr-tra=* | --program-tr=* | --program-t=*)
1078    program_transform_name=$ac_optarg ;;
1079
1080  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081    ac_prev=pdfdir ;;
1082  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083    pdfdir=$ac_optarg ;;
1084
1085  -psdir | --psdir | --psdi | --psd | --ps)
1086    ac_prev=psdir ;;
1087  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088    psdir=$ac_optarg ;;
1089
1090  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091  | -silent | --silent | --silen | --sile | --sil)
1092    silent=yes ;;
1093
1094  -runstatedir | --runstatedir | --runstatedi | --runstated \
1095  | --runstate | --runstat | --runsta | --runst | --runs \
1096  | --run | --ru | --r)
1097    ac_prev=runstatedir ;;
1098  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1099  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1100  | --run=* | --ru=* | --r=*)
1101    runstatedir=$ac_optarg ;;
1102
1103  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104    ac_prev=sbindir ;;
1105  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106  | --sbi=* | --sb=*)
1107    sbindir=$ac_optarg ;;
1108
1109  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111  | --sharedst | --shareds | --shared | --share | --shar \
1112  | --sha | --sh)
1113    ac_prev=sharedstatedir ;;
1114  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117  | --sha=* | --sh=*)
1118    sharedstatedir=$ac_optarg ;;
1119
1120  -site | --site | --sit)
1121    ac_prev=site ;;
1122  -site=* | --site=* | --sit=*)
1123    site=$ac_optarg ;;
1124
1125  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126    ac_prev=srcdir ;;
1127  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128    srcdir=$ac_optarg ;;
1129
1130  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131  | --syscon | --sysco | --sysc | --sys | --sy)
1132    ac_prev=sysconfdir ;;
1133  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135    sysconfdir=$ac_optarg ;;
1136
1137  -target | --target | --targe | --targ | --tar | --ta | --t)
1138    ac_prev=target_alias ;;
1139  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140    target_alias=$ac_optarg ;;
1141
1142  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143    verbose=yes ;;
1144
1145  -version | --version | --versio | --versi | --vers | -V)
1146    ac_init_version=: ;;
1147
1148  -with-* | --with-*)
1149    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150    # Reject names that are not valid shell variable names.
1151    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152      as_fn_error $? "invalid package name: \`$ac_useropt'"
1153    ac_useropt_orig=$ac_useropt
1154    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1155    case $ac_user_opts in
1156      *"
1157"with_$ac_useropt"
1158"*) ;;
1159      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1160	 ac_unrecognized_sep=', ';;
1161    esac
1162    eval with_$ac_useropt=\$ac_optarg ;;
1163
1164  -without-* | --without-*)
1165    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1166    # Reject names that are not valid shell variable names.
1167    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168      as_fn_error $? "invalid package name: \`$ac_useropt'"
1169    ac_useropt_orig=$ac_useropt
1170    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1171    case $ac_user_opts in
1172      *"
1173"with_$ac_useropt"
1174"*) ;;
1175      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1176	 ac_unrecognized_sep=', ';;
1177    esac
1178    eval with_$ac_useropt=no ;;
1179
1180  --x)
1181    # Obsolete; use --with-x.
1182    with_x=yes ;;
1183
1184  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1185  | --x-incl | --x-inc | --x-in | --x-i)
1186    ac_prev=x_includes ;;
1187  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1188  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1189    x_includes=$ac_optarg ;;
1190
1191  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1192  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1193    ac_prev=x_libraries ;;
1194  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1195  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1196    x_libraries=$ac_optarg ;;
1197
1198  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1199Try \`$0 --help' for more information"
1200    ;;
1201
1202  *=*)
1203    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1204    # Reject names that are not valid shell variable names.
1205    case $ac_envvar in #(
1206      '' | [0-9]* | *[!_$as_cr_alnum]* )
1207      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1208    esac
1209    eval $ac_envvar=\$ac_optarg
1210    export $ac_envvar ;;
1211
1212  *)
1213    # FIXME: should be removed in autoconf 3.0.
1214    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1215    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1217    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1218    ;;
1219
1220  esac
1221done
1222
1223if test -n "$ac_prev"; then
1224  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1225  as_fn_error $? "missing argument to $ac_option"
1226fi
1227
1228if test -n "$ac_unrecognized_opts"; then
1229  case $enable_option_checking in
1230    no) ;;
1231    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1232    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1233  esac
1234fi
1235
1236# Check all directory arguments for consistency.
1237for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1238		datadir sysconfdir sharedstatedir localstatedir includedir \
1239		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1240		libdir localedir mandir runstatedir
1241do
1242  eval ac_val=\$$ac_var
1243  # Remove trailing slashes.
1244  case $ac_val in
1245    */ )
1246      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1247      eval $ac_var=\$ac_val;;
1248  esac
1249  # Be sure to have absolute directory names.
1250  case $ac_val in
1251    [\\/$]* | ?:[\\/]* )  continue;;
1252    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1253  esac
1254  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1255done
1256
1257# There might be people who depend on the old broken behavior: `$host'
1258# used to hold the argument of --host etc.
1259# FIXME: To remove some day.
1260build=$build_alias
1261host=$host_alias
1262target=$target_alias
1263
1264# FIXME: To remove some day.
1265if test "x$host_alias" != x; then
1266  if test "x$build_alias" = x; then
1267    cross_compiling=maybe
1268  elif test "x$build_alias" != "x$host_alias"; then
1269    cross_compiling=yes
1270  fi
1271fi
1272
1273ac_tool_prefix=
1274test -n "$host_alias" && ac_tool_prefix=$host_alias-
1275
1276test "$silent" = yes && exec 6>/dev/null
1277
1278
1279ac_pwd=`pwd` && test -n "$ac_pwd" &&
1280ac_ls_di=`ls -di .` &&
1281ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1282  as_fn_error $? "working directory cannot be determined"
1283test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1284  as_fn_error $? "pwd does not report name of working directory"
1285
1286
1287# Find the source files, if location was not specified.
1288if test -z "$srcdir"; then
1289  ac_srcdir_defaulted=yes
1290  # Try the directory containing this script, then the parent directory.
1291  ac_confdir=`$as_dirname -- "$as_myself" ||
1292$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1293	 X"$as_myself" : 'X\(//\)[^/]' \| \
1294	 X"$as_myself" : 'X\(//\)$' \| \
1295	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1296printf "%s\n" X"$as_myself" |
1297    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1298	    s//\1/
1299	    q
1300	  }
1301	  /^X\(\/\/\)[^/].*/{
1302	    s//\1/
1303	    q
1304	  }
1305	  /^X\(\/\/\)$/{
1306	    s//\1/
1307	    q
1308	  }
1309	  /^X\(\/\).*/{
1310	    s//\1/
1311	    q
1312	  }
1313	  s/.*/./; q'`
1314  srcdir=$ac_confdir
1315  if test ! -r "$srcdir/$ac_unique_file"; then
1316    srcdir=..
1317  fi
1318else
1319  ac_srcdir_defaulted=no
1320fi
1321if test ! -r "$srcdir/$ac_unique_file"; then
1322  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1323  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1324fi
1325ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1326ac_abs_confdir=`(
1327	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1328	pwd)`
1329# When building in place, set srcdir=.
1330if test "$ac_abs_confdir" = "$ac_pwd"; then
1331  srcdir=.
1332fi
1333# Remove unnecessary trailing slashes from srcdir.
1334# Double slashes in file names in object file debugging info
1335# mess up M-x gdb in Emacs.
1336case $srcdir in
1337*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1338esac
1339for ac_var in $ac_precious_vars; do
1340  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1341  eval ac_env_${ac_var}_value=\$${ac_var}
1342  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1343  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1344done
1345
1346#
1347# Report the --help message.
1348#
1349if test "$ac_init_help" = "long"; then
1350  # Omit some internal or obsolete options to make the list less imposing.
1351  # This message is too long to be a string in the A/UX 3.1 sh.
1352  cat <<_ACEOF
1353\`configure' configures makedepend 1.0.8 to adapt to many kinds of systems.
1354
1355Usage: $0 [OPTION]... [VAR=VALUE]...
1356
1357To assign environment variables (e.g., CC, CFLAGS...), specify them as
1358VAR=VALUE.  See below for descriptions of some of the useful variables.
1359
1360Defaults for the options are specified in brackets.
1361
1362Configuration:
1363  -h, --help              display this help and exit
1364      --help=short        display options specific to this package
1365      --help=recursive    display the short help of all the included packages
1366  -V, --version           display version information and exit
1367  -q, --quiet, --silent   do not print \`checking ...' messages
1368      --cache-file=FILE   cache test results in FILE [disabled]
1369  -C, --config-cache      alias for \`--cache-file=config.cache'
1370  -n, --no-create         do not create output files
1371      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1372
1373Installation directories:
1374  --prefix=PREFIX         install architecture-independent files in PREFIX
1375                          [$ac_default_prefix]
1376  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1377                          [PREFIX]
1378
1379By default, \`make install' will install all the files in
1380\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1381an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1382for instance \`--prefix=\$HOME'.
1383
1384For better control, use the options below.
1385
1386Fine tuning of the installation directories:
1387  --bindir=DIR            user executables [EPREFIX/bin]
1388  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1389  --libexecdir=DIR        program executables [EPREFIX/libexec]
1390  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1391  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1392  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1393  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1394  --libdir=DIR            object code libraries [EPREFIX/lib]
1395  --includedir=DIR        C header files [PREFIX/include]
1396  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1397  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1398  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1399  --infodir=DIR           info documentation [DATAROOTDIR/info]
1400  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1401  --mandir=DIR            man documentation [DATAROOTDIR/man]
1402  --docdir=DIR            documentation root [DATAROOTDIR/doc/makedepend]
1403  --htmldir=DIR           html documentation [DOCDIR]
1404  --dvidir=DIR            dvi documentation [DOCDIR]
1405  --pdfdir=DIR            pdf documentation [DOCDIR]
1406  --psdir=DIR             ps documentation [DOCDIR]
1407_ACEOF
1408
1409  cat <<\_ACEOF
1410
1411Program names:
1412  --program-prefix=PREFIX            prepend PREFIX to installed program names
1413  --program-suffix=SUFFIX            append SUFFIX to installed program names
1414  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1415
1416System types:
1417  --build=BUILD     configure for building on BUILD [guessed]
1418  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1419_ACEOF
1420fi
1421
1422if test -n "$ac_init_help"; then
1423  case $ac_init_help in
1424     short | recursive ) echo "Configuration of makedepend 1.0.8:";;
1425   esac
1426  cat <<\_ACEOF
1427
1428Optional Features:
1429  --disable-option-checking  ignore unrecognized --enable/--with options
1430  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1431  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1432  --enable-silent-rules   less verbose build output (undo: "make V=1")
1433  --disable-silent-rules  verbose build output (undo: "make V=0")
1434  --enable-dependency-tracking
1435                          do not reject slow dependency extractors
1436  --disable-dependency-tracking
1437                          speeds up one-time build
1438  --disable-selective-werror
1439                          Turn off selective compiler errors. (default:
1440                          enabled)
1441  --enable-strict-compilation
1442                          Enable all warnings from compiler and make them
1443                          errors (default: disabled)
1444  --disable-largefile     omit support for large files
1445
1446Optional Packages:
1447  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1448  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1449  --with-lint             Use a lint-style source code checker (default:
1450                          disabled)
1451
1452Some influential environment variables:
1453  CC          C compiler command
1454  CFLAGS      C compiler flags
1455  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1456              nonstandard directory <lib dir>
1457  LIBS        libraries to pass to the linker, e.g. -l<library>
1458  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1459              you have headers in a nonstandard directory <include dir>
1460  PKG_CONFIG  path to pkg-config utility
1461  PKG_CONFIG_PATH
1462              directories to add to pkg-config's search path
1463  PKG_CONFIG_LIBDIR
1464              path overriding pkg-config's built-in search path
1465  LINT        Path to a lint-style command
1466  LINT_FLAGS  Flags for the lint-style command
1467  X_CFLAGS    C compiler flags for X, overriding pkg-config
1468  X_LIBS      linker flags for X, overriding pkg-config
1469
1470Use these variables to override the choices made by `configure' or to help
1471it to find libraries and programs with nonstandard names/locations.
1472
1473Report bugs to <https://gitlab.freedesktop.org/xorg/util/makedepend/-/issues>.
1474_ACEOF
1475ac_status=$?
1476fi
1477
1478if test "$ac_init_help" = "recursive"; then
1479  # If there are subdirs, report their specific --help.
1480  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481    test -d "$ac_dir" ||
1482      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1483      continue
1484    ac_builddir=.
1485
1486case "$ac_dir" in
1487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488*)
1489  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1490  # A ".." for each directory in $ac_dir_suffix.
1491  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1492  case $ac_top_builddir_sub in
1493  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495  esac ;;
1496esac
1497ac_abs_top_builddir=$ac_pwd
1498ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499# for backward compatibility:
1500ac_top_builddir=$ac_top_build_prefix
1501
1502case $srcdir in
1503  .)  # We are building in place.
1504    ac_srcdir=.
1505    ac_top_srcdir=$ac_top_builddir_sub
1506    ac_abs_top_srcdir=$ac_pwd ;;
1507  [\\/]* | ?:[\\/]* )  # Absolute name.
1508    ac_srcdir=$srcdir$ac_dir_suffix;
1509    ac_top_srcdir=$srcdir
1510    ac_abs_top_srcdir=$srcdir ;;
1511  *) # Relative name.
1512    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513    ac_top_srcdir=$ac_top_build_prefix$srcdir
1514    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515esac
1516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517
1518    cd "$ac_dir" || { ac_status=$?; continue; }
1519    # Check for configure.gnu first; this name is used for a wrapper for
1520    # Metaconfig's "Configure" on case-insensitive file systems.
1521    if test -f "$ac_srcdir/configure.gnu"; then
1522      echo &&
1523      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524    elif test -f "$ac_srcdir/configure"; then
1525      echo &&
1526      $SHELL "$ac_srcdir/configure" --help=recursive
1527    else
1528      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529    fi || ac_status=$?
1530    cd "$ac_pwd" || { ac_status=$?; break; }
1531  done
1532fi
1533
1534test -n "$ac_init_help" && exit $ac_status
1535if $ac_init_version; then
1536  cat <<\_ACEOF
1537makedepend configure 1.0.8
1538generated by GNU Autoconf 2.71
1539
1540Copyright (C) 2021 Free Software Foundation, Inc.
1541This configure script is free software; the Free Software Foundation
1542gives unlimited permission to copy, distribute and modify it.
1543_ACEOF
1544  exit
1545fi
1546
1547## ------------------------ ##
1548## Autoconf initialization. ##
1549## ------------------------ ##
1550
1551# ac_fn_c_try_compile LINENO
1552# --------------------------
1553# Try to compile conftest.$ac_ext, and return whether this succeeded.
1554ac_fn_c_try_compile ()
1555{
1556  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557  rm -f conftest.$ac_objext conftest.beam
1558  if { { ac_try="$ac_compile"
1559case "(($ac_try" in
1560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561  *) ac_try_echo=$ac_try;;
1562esac
1563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564printf "%s\n" "$ac_try_echo"; } >&5
1565  (eval "$ac_compile") 2>conftest.err
1566  ac_status=$?
1567  if test -s conftest.err; then
1568    grep -v '^ *+' conftest.err >conftest.er1
1569    cat conftest.er1 >&5
1570    mv -f conftest.er1 conftest.err
1571  fi
1572  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573  test $ac_status = 0; } && {
1574	 test -z "$ac_c_werror_flag" ||
1575	 test ! -s conftest.err
1576       } && test -s conftest.$ac_objext
1577then :
1578  ac_retval=0
1579else $as_nop
1580  printf "%s\n" "$as_me: failed program was:" >&5
1581sed 's/^/| /' conftest.$ac_ext >&5
1582
1583	ac_retval=1
1584fi
1585  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1586  as_fn_set_status $ac_retval
1587
1588} # ac_fn_c_try_compile
1589
1590# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1591# ------------------------------------------------------------------
1592# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1593# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1594ac_fn_check_decl ()
1595{
1596  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597  as_decl_name=`echo $2|sed 's/ *(.*//'`
1598  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1599printf %s "checking whether $as_decl_name is declared... " >&6; }
1600if eval test \${$3+y}
1601then :
1602  printf %s "(cached) " >&6
1603else $as_nop
1604  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1605  eval ac_save_FLAGS=\$$6
1606  as_fn_append $6 " $5"
1607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1608/* end confdefs.h.  */
1609$4
1610int
1611main (void)
1612{
1613#ifndef $as_decl_name
1614#ifdef __cplusplus
1615  (void) $as_decl_use;
1616#else
1617  (void) $as_decl_name;
1618#endif
1619#endif
1620
1621  ;
1622  return 0;
1623}
1624_ACEOF
1625if ac_fn_c_try_compile "$LINENO"
1626then :
1627  eval "$3=yes"
1628else $as_nop
1629  eval "$3=no"
1630fi
1631rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1632  eval $6=\$ac_save_FLAGS
1633
1634fi
1635eval ac_res=\$$3
1636	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1637printf "%s\n" "$ac_res" >&6; }
1638  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1639
1640} # ac_fn_check_decl
1641
1642# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1643# -------------------------------------------------------
1644# Tests whether HEADER exists and can be compiled using the include files in
1645# INCLUDES, setting the cache variable VAR accordingly.
1646ac_fn_c_check_header_compile ()
1647{
1648  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1650printf %s "checking for $2... " >&6; }
1651if eval test \${$3+y}
1652then :
1653  printf %s "(cached) " >&6
1654else $as_nop
1655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1656/* end confdefs.h.  */
1657$4
1658#include <$2>
1659_ACEOF
1660if ac_fn_c_try_compile "$LINENO"
1661then :
1662  eval "$3=yes"
1663else $as_nop
1664  eval "$3=no"
1665fi
1666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1667fi
1668eval ac_res=\$$3
1669	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1670printf "%s\n" "$ac_res" >&6; }
1671  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672
1673} # ac_fn_c_check_header_compile
1674
1675# ac_fn_c_try_link LINENO
1676# -----------------------
1677# Try to link conftest.$ac_ext, and return whether this succeeded.
1678ac_fn_c_try_link ()
1679{
1680  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1682  if { { ac_try="$ac_link"
1683case "(($ac_try" in
1684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685  *) ac_try_echo=$ac_try;;
1686esac
1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688printf "%s\n" "$ac_try_echo"; } >&5
1689  (eval "$ac_link") 2>conftest.err
1690  ac_status=$?
1691  if test -s conftest.err; then
1692    grep -v '^ *+' conftest.err >conftest.er1
1693    cat conftest.er1 >&5
1694    mv -f conftest.er1 conftest.err
1695  fi
1696  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697  test $ac_status = 0; } && {
1698	 test -z "$ac_c_werror_flag" ||
1699	 test ! -s conftest.err
1700       } && test -s conftest$ac_exeext && {
1701	 test "$cross_compiling" = yes ||
1702	 test -x conftest$ac_exeext
1703       }
1704then :
1705  ac_retval=0
1706else $as_nop
1707  printf "%s\n" "$as_me: failed program was:" >&5
1708sed 's/^/| /' conftest.$ac_ext >&5
1709
1710	ac_retval=1
1711fi
1712  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1713  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1714  # interfere with the next link command; also delete a directory that is
1715  # left behind by Apple's compiler.  We do this before executing the actions.
1716  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1717  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718  as_fn_set_status $ac_retval
1719
1720} # ac_fn_c_try_link
1721
1722# ac_fn_c_check_func LINENO FUNC VAR
1723# ----------------------------------
1724# Tests whether FUNC exists, setting the cache variable VAR accordingly
1725ac_fn_c_check_func ()
1726{
1727  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729printf %s "checking for $2... " >&6; }
1730if eval test \${$3+y}
1731then :
1732  printf %s "(cached) " >&6
1733else $as_nop
1734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735/* end confdefs.h.  */
1736/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1737   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1738#define $2 innocuous_$2
1739
1740/* System header to define __stub macros and hopefully few prototypes,
1741   which can conflict with char $2 (); below.  */
1742
1743#include <limits.h>
1744#undef $2
1745
1746/* Override any GCC internal prototype to avoid an error.
1747   Use char because int might match the return type of a GCC
1748   builtin and then its argument prototype would still apply.  */
1749#ifdef __cplusplus
1750extern "C"
1751#endif
1752char $2 ();
1753/* The GNU C library defines this for functions which it implements
1754    to always fail with ENOSYS.  Some functions are actually named
1755    something starting with __ and the normal name is an alias.  */
1756#if defined __stub_$2 || defined __stub___$2
1757choke me
1758#endif
1759
1760int
1761main (void)
1762{
1763return $2 ();
1764  ;
1765  return 0;
1766}
1767_ACEOF
1768if ac_fn_c_try_link "$LINENO"
1769then :
1770  eval "$3=yes"
1771else $as_nop
1772  eval "$3=no"
1773fi
1774rm -f core conftest.err conftest.$ac_objext conftest.beam \
1775    conftest$ac_exeext conftest.$ac_ext
1776fi
1777eval ac_res=\$$3
1778	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779printf "%s\n" "$ac_res" >&6; }
1780  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781
1782} # ac_fn_c_check_func
1783ac_configure_args_raw=
1784for ac_arg
1785do
1786  case $ac_arg in
1787  *\'*)
1788    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1789  esac
1790  as_fn_append ac_configure_args_raw " '$ac_arg'"
1791done
1792
1793case $ac_configure_args_raw in
1794  *$as_nl*)
1795    ac_safe_unquote= ;;
1796  *)
1797    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1798    ac_unsafe_a="$ac_unsafe_z#~"
1799    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1800    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1801esac
1802
1803cat >config.log <<_ACEOF
1804This file contains any messages produced by compilers while
1805running configure, to aid debugging if configure makes a mistake.
1806
1807It was created by makedepend $as_me 1.0.8, which was
1808generated by GNU Autoconf 2.71.  Invocation command line was
1809
1810  $ $0$ac_configure_args_raw
1811
1812_ACEOF
1813exec 5>>config.log
1814{
1815cat <<_ASUNAME
1816## --------- ##
1817## Platform. ##
1818## --------- ##
1819
1820hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1821uname -m = `(uname -m) 2>/dev/null || echo unknown`
1822uname -r = `(uname -r) 2>/dev/null || echo unknown`
1823uname -s = `(uname -s) 2>/dev/null || echo unknown`
1824uname -v = `(uname -v) 2>/dev/null || echo unknown`
1825
1826/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1827/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1828
1829/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1830/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1831/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1832/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1833/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1834/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1835/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1836
1837_ASUNAME
1838
1839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840for as_dir in $PATH
1841do
1842  IFS=$as_save_IFS
1843  case $as_dir in #(((
1844    '') as_dir=./ ;;
1845    */) ;;
1846    *) as_dir=$as_dir/ ;;
1847  esac
1848    printf "%s\n" "PATH: $as_dir"
1849  done
1850IFS=$as_save_IFS
1851
1852} >&5
1853
1854cat >&5 <<_ACEOF
1855
1856
1857## ----------- ##
1858## Core tests. ##
1859## ----------- ##
1860
1861_ACEOF
1862
1863
1864# Keep a trace of the command line.
1865# Strip out --no-create and --no-recursion so they do not pile up.
1866# Strip out --silent because we don't want to record it for future runs.
1867# Also quote any args containing shell meta-characters.
1868# Make two passes to allow for proper duplicate-argument suppression.
1869ac_configure_args=
1870ac_configure_args0=
1871ac_configure_args1=
1872ac_must_keep_next=false
1873for ac_pass in 1 2
1874do
1875  for ac_arg
1876  do
1877    case $ac_arg in
1878    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1879    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1880    | -silent | --silent | --silen | --sile | --sil)
1881      continue ;;
1882    *\'*)
1883      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1884    esac
1885    case $ac_pass in
1886    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1887    2)
1888      as_fn_append ac_configure_args1 " '$ac_arg'"
1889      if test $ac_must_keep_next = true; then
1890	ac_must_keep_next=false # Got value, back to normal.
1891      else
1892	case $ac_arg in
1893	  *=* | --config-cache | -C | -disable-* | --disable-* \
1894	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1895	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1896	  | -with-* | --with-* | -without-* | --without-* | --x)
1897	    case "$ac_configure_args0 " in
1898	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1899	    esac
1900	    ;;
1901	  -* ) ac_must_keep_next=true ;;
1902	esac
1903      fi
1904      as_fn_append ac_configure_args " '$ac_arg'"
1905      ;;
1906    esac
1907  done
1908done
1909{ ac_configure_args0=; unset ac_configure_args0;}
1910{ ac_configure_args1=; unset ac_configure_args1;}
1911
1912# When interrupted or exit'd, cleanup temporary files, and complete
1913# config.log.  We remove comments because anyway the quotes in there
1914# would cause problems or look ugly.
1915# WARNING: Use '\'' to represent an apostrophe within the trap.
1916# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1917trap 'exit_status=$?
1918  # Sanitize IFS.
1919  IFS=" ""	$as_nl"
1920  # Save into config.log some information that might help in debugging.
1921  {
1922    echo
1923
1924    printf "%s\n" "## ---------------- ##
1925## Cache variables. ##
1926## ---------------- ##"
1927    echo
1928    # The following way of writing the cache mishandles newlines in values,
1929(
1930  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1931    eval ac_val=\$$ac_var
1932    case $ac_val in #(
1933    *${as_nl}*)
1934      case $ac_var in #(
1935      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1936printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1937      esac
1938      case $ac_var in #(
1939      _ | IFS | as_nl) ;; #(
1940      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1941      *) { eval $ac_var=; unset $ac_var;} ;;
1942      esac ;;
1943    esac
1944  done
1945  (set) 2>&1 |
1946    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1947    *${as_nl}ac_space=\ *)
1948      sed -n \
1949	"s/'\''/'\''\\\\'\'''\''/g;
1950	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1951      ;; #(
1952    *)
1953      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1954      ;;
1955    esac |
1956    sort
1957)
1958    echo
1959
1960    printf "%s\n" "## ----------------- ##
1961## Output variables. ##
1962## ----------------- ##"
1963    echo
1964    for ac_var in $ac_subst_vars
1965    do
1966      eval ac_val=\$$ac_var
1967      case $ac_val in
1968      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1969      esac
1970      printf "%s\n" "$ac_var='\''$ac_val'\''"
1971    done | sort
1972    echo
1973
1974    if test -n "$ac_subst_files"; then
1975      printf "%s\n" "## ------------------- ##
1976## File substitutions. ##
1977## ------------------- ##"
1978      echo
1979      for ac_var in $ac_subst_files
1980      do
1981	eval ac_val=\$$ac_var
1982	case $ac_val in
1983	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1984	esac
1985	printf "%s\n" "$ac_var='\''$ac_val'\''"
1986      done | sort
1987      echo
1988    fi
1989
1990    if test -s confdefs.h; then
1991      printf "%s\n" "## ----------- ##
1992## confdefs.h. ##
1993## ----------- ##"
1994      echo
1995      cat confdefs.h
1996      echo
1997    fi
1998    test "$ac_signal" != 0 &&
1999      printf "%s\n" "$as_me: caught signal $ac_signal"
2000    printf "%s\n" "$as_me: exit $exit_status"
2001  } >&5
2002  rm -f core *.core core.conftest.* &&
2003    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2004    exit $exit_status
2005' 0
2006for ac_signal in 1 2 13 15; do
2007  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2008done
2009ac_signal=0
2010
2011# confdefs.h avoids OS command line length limits that DEFS can exceed.
2012rm -f -r conftest* confdefs.h
2013
2014printf "%s\n" "/* confdefs.h */" > confdefs.h
2015
2016# Predefined preprocessor variables.
2017
2018printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2019
2020printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2021
2022printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2023
2024printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2025
2026printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2027
2028printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2029
2030
2031# Let the site file select an alternate cache file if it wants to.
2032# Prefer an explicitly selected file to automatically selected ones.
2033if test -n "$CONFIG_SITE"; then
2034  ac_site_files="$CONFIG_SITE"
2035elif test "x$prefix" != xNONE; then
2036  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2037else
2038  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2039fi
2040
2041for ac_site_file in $ac_site_files
2042do
2043  case $ac_site_file in #(
2044  */*) :
2045     ;; #(
2046  *) :
2047    ac_site_file=./$ac_site_file ;;
2048esac
2049  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2050    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2051printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2052    sed 's/^/| /' "$ac_site_file" >&5
2053    . "$ac_site_file" \
2054      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2055printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2056as_fn_error $? "failed to load site script $ac_site_file
2057See \`config.log' for more details" "$LINENO" 5; }
2058  fi
2059done
2060
2061if test -r "$cache_file"; then
2062  # Some versions of bash will fail to source /dev/null (special files
2063  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2064  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2065    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2066printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2067    case $cache_file in
2068      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2069      *)                      . "./$cache_file";;
2070    esac
2071  fi
2072else
2073  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2074printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2075  >$cache_file
2076fi
2077
2078# Test code for whether the C compiler supports C89 (global declarations)
2079ac_c_conftest_c89_globals='
2080/* Does the compiler advertise C89 conformance?
2081   Do not test the value of __STDC__, because some compilers set it to 0
2082   while being otherwise adequately conformant. */
2083#if !defined __STDC__
2084# error "Compiler does not advertise C89 conformance"
2085#endif
2086
2087#include <stddef.h>
2088#include <stdarg.h>
2089struct stat;
2090/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2091struct buf { int x; };
2092struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2093static char *e (p, i)
2094     char **p;
2095     int i;
2096{
2097  return p[i];
2098}
2099static char *f (char * (*g) (char **, int), char **p, ...)
2100{
2101  char *s;
2102  va_list v;
2103  va_start (v,p);
2104  s = g (p, va_arg (v,int));
2105  va_end (v);
2106  return s;
2107}
2108
2109/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2110   function prototypes and stuff, but not \xHH hex character constants.
2111   These do not provoke an error unfortunately, instead are silently treated
2112   as an "x".  The following induces an error, until -std is added to get
2113   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2114   array size at least.  It is necessary to write \x00 == 0 to get something
2115   that is true only with -std.  */
2116int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2117
2118/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2119   inside strings and character constants.  */
2120#define FOO(x) '\''x'\''
2121int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2122
2123int test (int i, double x);
2124struct s1 {int (*f) (int a);};
2125struct s2 {int (*f) (double a);};
2126int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2127               int, int);'
2128
2129# Test code for whether the C compiler supports C89 (body of main).
2130ac_c_conftest_c89_main='
2131ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2132'
2133
2134# Test code for whether the C compiler supports C99 (global declarations)
2135ac_c_conftest_c99_globals='
2136// Does the compiler advertise C99 conformance?
2137#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2138# error "Compiler does not advertise C99 conformance"
2139#endif
2140
2141#include <stdbool.h>
2142extern int puts (const char *);
2143extern int printf (const char *, ...);
2144extern int dprintf (int, const char *, ...);
2145extern void *malloc (size_t);
2146
2147// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2148// dprintf is used instead of fprintf to avoid needing to declare
2149// FILE and stderr.
2150#define debug(...) dprintf (2, __VA_ARGS__)
2151#define showlist(...) puts (#__VA_ARGS__)
2152#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2153static void
2154test_varargs_macros (void)
2155{
2156  int x = 1234;
2157  int y = 5678;
2158  debug ("Flag");
2159  debug ("X = %d\n", x);
2160  showlist (The first, second, and third items.);
2161  report (x>y, "x is %d but y is %d", x, y);
2162}
2163
2164// Check long long types.
2165#define BIG64 18446744073709551615ull
2166#define BIG32 4294967295ul
2167#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2168#if !BIG_OK
2169  #error "your preprocessor is broken"
2170#endif
2171#if BIG_OK
2172#else
2173  #error "your preprocessor is broken"
2174#endif
2175static long long int bignum = -9223372036854775807LL;
2176static unsigned long long int ubignum = BIG64;
2177
2178struct incomplete_array
2179{
2180  int datasize;
2181  double data[];
2182};
2183
2184struct named_init {
2185  int number;
2186  const wchar_t *name;
2187  double average;
2188};
2189
2190typedef const char *ccp;
2191
2192static inline int
2193test_restrict (ccp restrict text)
2194{
2195  // See if C++-style comments work.
2196  // Iterate through items via the restricted pointer.
2197  // Also check for declarations in for loops.
2198  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2199    continue;
2200  return 0;
2201}
2202
2203// Check varargs and va_copy.
2204static bool
2205test_varargs (const char *format, ...)
2206{
2207  va_list args;
2208  va_start (args, format);
2209  va_list args_copy;
2210  va_copy (args_copy, args);
2211
2212  const char *str = "";
2213  int number = 0;
2214  float fnumber = 0;
2215
2216  while (*format)
2217    {
2218      switch (*format++)
2219	{
2220	case '\''s'\'': // string
2221	  str = va_arg (args_copy, const char *);
2222	  break;
2223	case '\''d'\'': // int
2224	  number = va_arg (args_copy, int);
2225	  break;
2226	case '\''f'\'': // float
2227	  fnumber = va_arg (args_copy, double);
2228	  break;
2229	default:
2230	  break;
2231	}
2232    }
2233  va_end (args_copy);
2234  va_end (args);
2235
2236  return *str && number && fnumber;
2237}
2238'
2239
2240# Test code for whether the C compiler supports C99 (body of main).
2241ac_c_conftest_c99_main='
2242  // Check bool.
2243  _Bool success = false;
2244  success |= (argc != 0);
2245
2246  // Check restrict.
2247  if (test_restrict ("String literal") == 0)
2248    success = true;
2249  char *restrict newvar = "Another string";
2250
2251  // Check varargs.
2252  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2253  test_varargs_macros ();
2254
2255  // Check flexible array members.
2256  struct incomplete_array *ia =
2257    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2258  ia->datasize = 10;
2259  for (int i = 0; i < ia->datasize; ++i)
2260    ia->data[i] = i * 1.234;
2261
2262  // Check named initializers.
2263  struct named_init ni = {
2264    .number = 34,
2265    .name = L"Test wide string",
2266    .average = 543.34343,
2267  };
2268
2269  ni.number = 58;
2270
2271  int dynamic_array[ni.number];
2272  dynamic_array[0] = argv[0][0];
2273  dynamic_array[ni.number - 1] = 543;
2274
2275  // work around unused variable warnings
2276  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2277	 || dynamic_array[ni.number - 1] != 543);
2278'
2279
2280# Test code for whether the C compiler supports C11 (global declarations)
2281ac_c_conftest_c11_globals='
2282// Does the compiler advertise C11 conformance?
2283#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2284# error "Compiler does not advertise C11 conformance"
2285#endif
2286
2287// Check _Alignas.
2288char _Alignas (double) aligned_as_double;
2289char _Alignas (0) no_special_alignment;
2290extern char aligned_as_int;
2291char _Alignas (0) _Alignas (int) aligned_as_int;
2292
2293// Check _Alignof.
2294enum
2295{
2296  int_alignment = _Alignof (int),
2297  int_array_alignment = _Alignof (int[100]),
2298  char_alignment = _Alignof (char)
2299};
2300_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2301
2302// Check _Noreturn.
2303int _Noreturn does_not_return (void) { for (;;) continue; }
2304
2305// Check _Static_assert.
2306struct test_static_assert
2307{
2308  int x;
2309  _Static_assert (sizeof (int) <= sizeof (long int),
2310                  "_Static_assert does not work in struct");
2311  long int y;
2312};
2313
2314// Check UTF-8 literals.
2315#define u8 syntax error!
2316char const utf8_literal[] = u8"happens to be ASCII" "another string";
2317
2318// Check duplicate typedefs.
2319typedef long *long_ptr;
2320typedef long int *long_ptr;
2321typedef long_ptr long_ptr;
2322
2323// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2324struct anonymous
2325{
2326  union {
2327    struct { int i; int j; };
2328    struct { int k; long int l; } w;
2329  };
2330  int m;
2331} v1;
2332'
2333
2334# Test code for whether the C compiler supports C11 (body of main).
2335ac_c_conftest_c11_main='
2336  _Static_assert ((offsetof (struct anonymous, i)
2337		   == offsetof (struct anonymous, w.k)),
2338		  "Anonymous union alignment botch");
2339  v1.i = 2;
2340  v1.w.k = 5;
2341  ok |= v1.i != 5;
2342'
2343
2344# Test code for whether the C compiler supports C11 (complete).
2345ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2346${ac_c_conftest_c99_globals}
2347${ac_c_conftest_c11_globals}
2348
2349int
2350main (int argc, char **argv)
2351{
2352  int ok = 0;
2353  ${ac_c_conftest_c89_main}
2354  ${ac_c_conftest_c99_main}
2355  ${ac_c_conftest_c11_main}
2356  return ok;
2357}
2358"
2359
2360# Test code for whether the C compiler supports C99 (complete).
2361ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2362${ac_c_conftest_c99_globals}
2363
2364int
2365main (int argc, char **argv)
2366{
2367  int ok = 0;
2368  ${ac_c_conftest_c89_main}
2369  ${ac_c_conftest_c99_main}
2370  return ok;
2371}
2372"
2373
2374# Test code for whether the C compiler supports C89 (complete).
2375ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2376
2377int
2378main (int argc, char **argv)
2379{
2380  int ok = 0;
2381  ${ac_c_conftest_c89_main}
2382  return ok;
2383}
2384"
2385
2386as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2387as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2388as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2389as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2390as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2391as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2392as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2393as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2394as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2395
2396# Auxiliary files required by this configure script.
2397ac_aux_files="config.guess config.sub compile missing install-sh"
2398
2399# Locations in which to look for auxiliary files.
2400ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2401
2402# Search for a directory containing all of the required auxiliary files,
2403# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2404# If we don't find one directory that contains all the files we need,
2405# we report the set of missing files from the *first* directory in
2406# $ac_aux_dir_candidates and give up.
2407ac_missing_aux_files=""
2408ac_first_candidate=:
2409printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411as_found=false
2412for as_dir in $ac_aux_dir_candidates
2413do
2414  IFS=$as_save_IFS
2415  case $as_dir in #(((
2416    '') as_dir=./ ;;
2417    */) ;;
2418    *) as_dir=$as_dir/ ;;
2419  esac
2420  as_found=:
2421
2422  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2423  ac_aux_dir_found=yes
2424  ac_install_sh=
2425  for ac_aux in $ac_aux_files
2426  do
2427    # As a special case, if "install-sh" is required, that requirement
2428    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2429    # and $ac_install_sh is set appropriately for whichever one is found.
2430    if test x"$ac_aux" = x"install-sh"
2431    then
2432      if test -f "${as_dir}install-sh"; then
2433        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2434        ac_install_sh="${as_dir}install-sh -c"
2435      elif test -f "${as_dir}install.sh"; then
2436        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2437        ac_install_sh="${as_dir}install.sh -c"
2438      elif test -f "${as_dir}shtool"; then
2439        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2440        ac_install_sh="${as_dir}shtool install -c"
2441      else
2442        ac_aux_dir_found=no
2443        if $ac_first_candidate; then
2444          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2445        else
2446          break
2447        fi
2448      fi
2449    else
2450      if test -f "${as_dir}${ac_aux}"; then
2451        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2452      else
2453        ac_aux_dir_found=no
2454        if $ac_first_candidate; then
2455          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2456        else
2457          break
2458        fi
2459      fi
2460    fi
2461  done
2462  if test "$ac_aux_dir_found" = yes; then
2463    ac_aux_dir="$as_dir"
2464    break
2465  fi
2466  ac_first_candidate=false
2467
2468  as_found=false
2469done
2470IFS=$as_save_IFS
2471if $as_found
2472then :
2473
2474else $as_nop
2475  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2476fi
2477
2478
2479# These three variables are undocumented and unsupported,
2480# and are intended to be withdrawn in a future Autoconf release.
2481# They can cause serious problems if a builder's source tree is in a directory
2482# whose full name contains unusual characters.
2483if test -f "${ac_aux_dir}config.guess"; then
2484  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2485fi
2486if test -f "${ac_aux_dir}config.sub"; then
2487  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2488fi
2489if test -f "$ac_aux_dir/configure"; then
2490  ac_configure="$SHELL ${ac_aux_dir}configure"
2491fi
2492
2493# Check that the precious variables saved in the cache have kept the same
2494# value.
2495ac_cache_corrupted=false
2496for ac_var in $ac_precious_vars; do
2497  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2498  eval ac_new_set=\$ac_env_${ac_var}_set
2499  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2500  eval ac_new_val=\$ac_env_${ac_var}_value
2501  case $ac_old_set,$ac_new_set in
2502    set,)
2503      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2504printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2505      ac_cache_corrupted=: ;;
2506    ,set)
2507      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2508printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2509      ac_cache_corrupted=: ;;
2510    ,);;
2511    *)
2512      if test "x$ac_old_val" != "x$ac_new_val"; then
2513	# differences in whitespace do not lead to failure.
2514	ac_old_val_w=`echo x $ac_old_val`
2515	ac_new_val_w=`echo x $ac_new_val`
2516	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2517	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2518printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2519	  ac_cache_corrupted=:
2520	else
2521	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2522printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2523	  eval $ac_var=\$ac_old_val
2524	fi
2525	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2526printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2527	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2528printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2529      fi;;
2530  esac
2531  # Pass precious variables to config.status.
2532  if test "$ac_new_set" = set; then
2533    case $ac_new_val in
2534    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2535    *) ac_arg=$ac_var=$ac_new_val ;;
2536    esac
2537    case " $ac_configure_args " in
2538      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2539      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2540    esac
2541  fi
2542done
2543if $ac_cache_corrupted; then
2544  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2545printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2546  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2547printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2548  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2549	    and start over" "$LINENO" 5
2550fi
2551## -------------------- ##
2552## Main body of script. ##
2553## -------------------- ##
2554
2555ac_ext=c
2556ac_cpp='$CPP $CPPFLAGS'
2557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2559ac_compiler_gnu=$ac_cv_c_compiler_gnu
2560
2561
2562
2563ac_config_headers="$ac_config_headers makedepend-config.h"
2564
2565
2566# Initialize Automake
2567am__api_version='1.16'
2568
2569
2570
2571  # Find a good install program.  We prefer a C program (faster),
2572# so one script is as good as another.  But avoid the broken or
2573# incompatible versions:
2574# SysV /etc/install, /usr/sbin/install
2575# SunOS /usr/etc/install
2576# IRIX /sbin/install
2577# AIX /bin/install
2578# AmigaOS /C/install, which installs bootblocks on floppy discs
2579# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2580# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2581# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2582# OS/2's system install, which has a completely different semantic
2583# ./install, which can be erroneously created by make from ./install.sh.
2584# Reject install programs that cannot install multiple files.
2585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2586printf %s "checking for a BSD-compatible install... " >&6; }
2587if test -z "$INSTALL"; then
2588if test ${ac_cv_path_install+y}
2589then :
2590  printf %s "(cached) " >&6
2591else $as_nop
2592  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593for as_dir in $PATH
2594do
2595  IFS=$as_save_IFS
2596  case $as_dir in #(((
2597    '') as_dir=./ ;;
2598    */) ;;
2599    *) as_dir=$as_dir/ ;;
2600  esac
2601    # Account for fact that we put trailing slashes in our PATH walk.
2602case $as_dir in #((
2603  ./ | /[cC]/* | \
2604  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2605  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2606  /usr/ucb/* ) ;;
2607  *)
2608    # OSF1 and SCO ODT 3.0 have their own names for install.
2609    # Don't use installbsd from OSF since it installs stuff as root
2610    # by default.
2611    for ac_prog in ginstall scoinst install; do
2612      for ac_exec_ext in '' $ac_executable_extensions; do
2613	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2614	  if test $ac_prog = install &&
2615	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2616	    # AIX install.  It has an incompatible calling convention.
2617	    :
2618	  elif test $ac_prog = install &&
2619	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2620	    # program-specific install script used by HP pwplus--don't use.
2621	    :
2622	  else
2623	    rm -rf conftest.one conftest.two conftest.dir
2624	    echo one > conftest.one
2625	    echo two > conftest.two
2626	    mkdir conftest.dir
2627	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2628	      test -s conftest.one && test -s conftest.two &&
2629	      test -s conftest.dir/conftest.one &&
2630	      test -s conftest.dir/conftest.two
2631	    then
2632	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2633	      break 3
2634	    fi
2635	  fi
2636	fi
2637      done
2638    done
2639    ;;
2640esac
2641
2642  done
2643IFS=$as_save_IFS
2644
2645rm -rf conftest.one conftest.two conftest.dir
2646
2647fi
2648  if test ${ac_cv_path_install+y}; then
2649    INSTALL=$ac_cv_path_install
2650  else
2651    # As a last resort, use the slow shell script.  Don't cache a
2652    # value for INSTALL within a source directory, because that will
2653    # break other packages using the cache if that directory is
2654    # removed, or if the value is a relative name.
2655    INSTALL=$ac_install_sh
2656  fi
2657fi
2658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2659printf "%s\n" "$INSTALL" >&6; }
2660
2661# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2662# It thinks the first close brace ends the variable substitution.
2663test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2664
2665test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2666
2667test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2668
2669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2670printf %s "checking whether build environment is sane... " >&6; }
2671# Reject unsafe characters in $srcdir or the absolute working directory
2672# name.  Accept space and tab only in the latter.
2673am_lf='
2674'
2675case `pwd` in
2676  *[\\\"\#\$\&\'\`$am_lf]*)
2677    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2678esac
2679case $srcdir in
2680  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2681    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2682esac
2683
2684# Do 'set' in a subshell so we don't clobber the current shell's
2685# arguments.  Must try -L first in case configure is actually a
2686# symlink; some systems play weird games with the mod time of symlinks
2687# (eg FreeBSD returns the mod time of the symlink's containing
2688# directory).
2689if (
2690   am_has_slept=no
2691   for am_try in 1 2; do
2692     echo "timestamp, slept: $am_has_slept" > conftest.file
2693     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2694     if test "$*" = "X"; then
2695	# -L didn't work.
2696	set X `ls -t "$srcdir/configure" conftest.file`
2697     fi
2698     if test "$*" != "X $srcdir/configure conftest.file" \
2699	&& test "$*" != "X conftest.file $srcdir/configure"; then
2700
2701	# If neither matched, then we have a broken ls.  This can happen
2702	# if, for instance, CONFIG_SHELL is bash and it inherits a
2703	# broken ls alias from the environment.  This has actually
2704	# happened.  Such a system could not be considered "sane".
2705	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2706  alias in your environment" "$LINENO" 5
2707     fi
2708     if test "$2" = conftest.file || test $am_try -eq 2; then
2709       break
2710     fi
2711     # Just in case.
2712     sleep 1
2713     am_has_slept=yes
2714   done
2715   test "$2" = conftest.file
2716   )
2717then
2718   # Ok.
2719   :
2720else
2721   as_fn_error $? "newly created file is older than distributed files!
2722Check your system clock" "$LINENO" 5
2723fi
2724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2725printf "%s\n" "yes" >&6; }
2726# If we didn't sleep, we still need to ensure time stamps of config.status and
2727# generated files are strictly newer.
2728am_sleep_pid=
2729if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2730  ( sleep 1 ) &
2731  am_sleep_pid=$!
2732fi
2733
2734rm -f conftest.file
2735
2736test "$program_prefix" != NONE &&
2737  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2738# Use a double $ so make ignores it.
2739test "$program_suffix" != NONE &&
2740  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2741# Double any \ or $.
2742# By default was `s,x,x', remove it if useless.
2743ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2744program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2745
2746
2747# Expand $ac_aux_dir to an absolute path.
2748am_aux_dir=`cd "$ac_aux_dir" && pwd`
2749
2750
2751  if test x"${MISSING+set}" != xset; then
2752  MISSING="\${SHELL} '$am_aux_dir/missing'"
2753fi
2754# Use eval to expand $SHELL
2755if eval "$MISSING --is-lightweight"; then
2756  am_missing_run="$MISSING "
2757else
2758  am_missing_run=
2759  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2760printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2761fi
2762
2763if test x"${install_sh+set}" != xset; then
2764  case $am_aux_dir in
2765  *\ * | *\	*)
2766    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2767  *)
2768    install_sh="\${SHELL} $am_aux_dir/install-sh"
2769  esac
2770fi
2771
2772# Installed binaries are usually stripped using 'strip' when the user
2773# run "make install-strip".  However 'strip' might not be the right
2774# tool to use in cross-compilation environments, therefore Automake
2775# will honor the 'STRIP' environment variable to overrule this program.
2776if test "$cross_compiling" != no; then
2777  if test -n "$ac_tool_prefix"; then
2778  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2779set dummy ${ac_tool_prefix}strip; ac_word=$2
2780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781printf %s "checking for $ac_word... " >&6; }
2782if test ${ac_cv_prog_STRIP+y}
2783then :
2784  printf %s "(cached) " >&6
2785else $as_nop
2786  if test -n "$STRIP"; then
2787  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2788else
2789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790for as_dir in $PATH
2791do
2792  IFS=$as_save_IFS
2793  case $as_dir in #(((
2794    '') as_dir=./ ;;
2795    */) ;;
2796    *) as_dir=$as_dir/ ;;
2797  esac
2798    for ac_exec_ext in '' $ac_executable_extensions; do
2799  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2800    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2801    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2802    break 2
2803  fi
2804done
2805  done
2806IFS=$as_save_IFS
2807
2808fi
2809fi
2810STRIP=$ac_cv_prog_STRIP
2811if test -n "$STRIP"; then
2812  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2813printf "%s\n" "$STRIP" >&6; }
2814else
2815  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816printf "%s\n" "no" >&6; }
2817fi
2818
2819
2820fi
2821if test -z "$ac_cv_prog_STRIP"; then
2822  ac_ct_STRIP=$STRIP
2823  # Extract the first word of "strip", so it can be a program name with args.
2824set dummy strip; ac_word=$2
2825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2826printf %s "checking for $ac_word... " >&6; }
2827if test ${ac_cv_prog_ac_ct_STRIP+y}
2828then :
2829  printf %s "(cached) " >&6
2830else $as_nop
2831  if test -n "$ac_ct_STRIP"; then
2832  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2833else
2834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835for as_dir in $PATH
2836do
2837  IFS=$as_save_IFS
2838  case $as_dir in #(((
2839    '') as_dir=./ ;;
2840    */) ;;
2841    *) as_dir=$as_dir/ ;;
2842  esac
2843    for ac_exec_ext in '' $ac_executable_extensions; do
2844  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2845    ac_cv_prog_ac_ct_STRIP="strip"
2846    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2847    break 2
2848  fi
2849done
2850  done
2851IFS=$as_save_IFS
2852
2853fi
2854fi
2855ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2856if test -n "$ac_ct_STRIP"; then
2857  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2858printf "%s\n" "$ac_ct_STRIP" >&6; }
2859else
2860  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861printf "%s\n" "no" >&6; }
2862fi
2863
2864  if test "x$ac_ct_STRIP" = x; then
2865    STRIP=":"
2866  else
2867    case $cross_compiling:$ac_tool_warned in
2868yes:)
2869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2870printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2871ac_tool_warned=yes ;;
2872esac
2873    STRIP=$ac_ct_STRIP
2874  fi
2875else
2876  STRIP="$ac_cv_prog_STRIP"
2877fi
2878
2879fi
2880INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2881
2882
2883  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2884printf %s "checking for a race-free mkdir -p... " >&6; }
2885if test -z "$MKDIR_P"; then
2886  if test ${ac_cv_path_mkdir+y}
2887then :
2888  printf %s "(cached) " >&6
2889else $as_nop
2890  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2892do
2893  IFS=$as_save_IFS
2894  case $as_dir in #(((
2895    '') as_dir=./ ;;
2896    */) ;;
2897    *) as_dir=$as_dir/ ;;
2898  esac
2899    for ac_prog in mkdir gmkdir; do
2900	 for ac_exec_ext in '' $ac_executable_extensions; do
2901	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2902	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2903	     'mkdir ('*'coreutils) '* | \
2904	     'BusyBox '* | \
2905	     'mkdir (fileutils) '4.1*)
2906	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2907	       break 3;;
2908	   esac
2909	 done
2910       done
2911  done
2912IFS=$as_save_IFS
2913
2914fi
2915
2916  test -d ./--version && rmdir ./--version
2917  if test ${ac_cv_path_mkdir+y}; then
2918    MKDIR_P="$ac_cv_path_mkdir -p"
2919  else
2920    # As a last resort, use the slow shell script.  Don't cache a
2921    # value for MKDIR_P within a source directory, because that will
2922    # break other packages using the cache if that directory is
2923    # removed, or if the value is a relative name.
2924    MKDIR_P="$ac_install_sh -d"
2925  fi
2926fi
2927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2928printf "%s\n" "$MKDIR_P" >&6; }
2929
2930for ac_prog in gawk mawk nawk awk
2931do
2932  # Extract the first word of "$ac_prog", so it can be a program name with args.
2933set dummy $ac_prog; ac_word=$2
2934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935printf %s "checking for $ac_word... " >&6; }
2936if test ${ac_cv_prog_AWK+y}
2937then :
2938  printf %s "(cached) " >&6
2939else $as_nop
2940  if test -n "$AWK"; then
2941  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2942else
2943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944for as_dir in $PATH
2945do
2946  IFS=$as_save_IFS
2947  case $as_dir in #(((
2948    '') as_dir=./ ;;
2949    */) ;;
2950    *) as_dir=$as_dir/ ;;
2951  esac
2952    for ac_exec_ext in '' $ac_executable_extensions; do
2953  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2954    ac_cv_prog_AWK="$ac_prog"
2955    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2956    break 2
2957  fi
2958done
2959  done
2960IFS=$as_save_IFS
2961
2962fi
2963fi
2964AWK=$ac_cv_prog_AWK
2965if test -n "$AWK"; then
2966  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2967printf "%s\n" "$AWK" >&6; }
2968else
2969  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970printf "%s\n" "no" >&6; }
2971fi
2972
2973
2974  test -n "$AWK" && break
2975done
2976
2977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2978printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2979set x ${MAKE-make}
2980ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2981if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2982then :
2983  printf %s "(cached) " >&6
2984else $as_nop
2985  cat >conftest.make <<\_ACEOF
2986SHELL = /bin/sh
2987all:
2988	@echo '@@@%%%=$(MAKE)=@@@%%%'
2989_ACEOF
2990# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2991case `${MAKE-make} -f conftest.make 2>/dev/null` in
2992  *@@@%%%=?*=@@@%%%*)
2993    eval ac_cv_prog_make_${ac_make}_set=yes;;
2994  *)
2995    eval ac_cv_prog_make_${ac_make}_set=no;;
2996esac
2997rm -f conftest.make
2998fi
2999if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3000  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3001printf "%s\n" "yes" >&6; }
3002  SET_MAKE=
3003else
3004  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005printf "%s\n" "no" >&6; }
3006  SET_MAKE="MAKE=${MAKE-make}"
3007fi
3008
3009rm -rf .tst 2>/dev/null
3010mkdir .tst 2>/dev/null
3011if test -d .tst; then
3012  am__leading_dot=.
3013else
3014  am__leading_dot=_
3015fi
3016rmdir .tst 2>/dev/null
3017
3018# Check whether --enable-silent-rules was given.
3019if test ${enable_silent_rules+y}
3020then :
3021  enableval=$enable_silent_rules;
3022fi
3023
3024case $enable_silent_rules in # (((
3025  yes) AM_DEFAULT_VERBOSITY=0;;
3026   no) AM_DEFAULT_VERBOSITY=1;;
3027    *) AM_DEFAULT_VERBOSITY=1;;
3028esac
3029am_make=${MAKE-make}
3030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3031printf %s "checking whether $am_make supports nested variables... " >&6; }
3032if test ${am_cv_make_support_nested_variables+y}
3033then :
3034  printf %s "(cached) " >&6
3035else $as_nop
3036  if printf "%s\n" 'TRUE=$(BAR$(V))
3037BAR0=false
3038BAR1=true
3039V=1
3040am__doit:
3041	@$(TRUE)
3042.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3043  am_cv_make_support_nested_variables=yes
3044else
3045  am_cv_make_support_nested_variables=no
3046fi
3047fi
3048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3049printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3050if test $am_cv_make_support_nested_variables = yes; then
3051    AM_V='$(V)'
3052  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3053else
3054  AM_V=$AM_DEFAULT_VERBOSITY
3055  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3056fi
3057AM_BACKSLASH='\'
3058
3059if test "`cd $srcdir && pwd`" != "`pwd`"; then
3060  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3061  # is not polluted with repeated "-I."
3062  am__isrc=' -I$(srcdir)'
3063  # test to see if srcdir already configured
3064  if test -f $srcdir/config.status; then
3065    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3066  fi
3067fi
3068
3069# test whether we have cygpath
3070if test -z "$CYGPATH_W"; then
3071  if (cygpath --version) >/dev/null 2>/dev/null; then
3072    CYGPATH_W='cygpath -w'
3073  else
3074    CYGPATH_W=echo
3075  fi
3076fi
3077
3078
3079# Define the identity of the package.
3080 PACKAGE='makedepend'
3081 VERSION='1.0.8'
3082
3083
3084printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3085
3086
3087printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3088
3089# Some tools Automake needs.
3090
3091ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3092
3093
3094AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3095
3096
3097AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3098
3099
3100AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3101
3102
3103MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3104
3105# For better backward compatibility.  To be removed once Automake 1.9.x
3106# dies out for good.  For more background, see:
3107# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3108# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3109mkdir_p='$(MKDIR_P)'
3110
3111# We need awk for the "check" target (and possibly the TAP driver).  The
3112# system "awk" is bad on some platforms.
3113# Always define AMTAR for backward compatibility.  Yes, it's still used
3114# in the wild :-(  We should find a proper way to deprecate it ...
3115AMTAR='$${TAR-tar}'
3116
3117
3118# We'll loop over all known methods to create a tar archive until one works.
3119_am_tools='gnutar  pax cpio none'
3120
3121am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3122
3123
3124
3125
3126
3127# Variables for tags utilities; see am/tags.am
3128if test -z "$CTAGS"; then
3129  CTAGS=ctags
3130fi
3131
3132if test -z "$ETAGS"; then
3133  ETAGS=etags
3134fi
3135
3136if test -z "$CSCOPE"; then
3137  CSCOPE=cscope
3138fi
3139
3140
3141
3142# POSIX will say in a future version that running "rm -f" with no argument
3143# is OK; and we want to be able to make that assumption in our Makefile
3144# recipes.  So use an aggressive probe to check that the usage we want is
3145# actually supported "in the wild" to an acceptable degree.
3146# See automake bug#10828.
3147# To make any issue more visible, cause the running configure to be aborted
3148# by default if the 'rm' program in use doesn't match our expectations; the
3149# user can still override this though.
3150if rm -f && rm -fr && rm -rf; then : OK; else
3151  cat >&2 <<'END'
3152Oops!
3153
3154Your 'rm' program seems unable to run without file operands specified
3155on the command line, even when the '-f' option is present.  This is contrary
3156to the behaviour of most rm programs out there, and not conforming with
3157the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3158
3159Please tell bug-automake@gnu.org about your system, including the value
3160of your $PATH and any error possibly output before this message.  This
3161can help us improve future automake versions.
3162
3163END
3164  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3165    echo 'Configuration will proceed anyway, since you have set the' >&2
3166    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3167    echo >&2
3168  else
3169    cat >&2 <<'END'
3170Aborting the configuration process, to ensure you take notice of the issue.
3171
3172You can download and install GNU coreutils to get an 'rm' implementation
3173that behaves properly: <https://www.gnu.org/software/coreutils/>.
3174
3175If you want to complete the configuration process using your problematic
3176'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3177to "yes", and re-run configure.
3178
3179END
3180    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3181  fi
3182fi
3183
3184
3185# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207DEPDIR="${am__leading_dot}deps"
3208
3209ac_config_commands="$ac_config_commands depfiles"
3210
3211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3212printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3213cat > confinc.mk << 'END'
3214am__doit:
3215	@echo this is the am__doit target >confinc.out
3216.PHONY: am__doit
3217END
3218am__include="#"
3219am__quote=
3220# BSD make does it like this.
3221echo '.include "confinc.mk" # ignored' > confmf.BSD
3222# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3223echo 'include confinc.mk # ignored' > confmf.GNU
3224_am_result=no
3225for s in GNU BSD; do
3226  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3227   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3228   ac_status=$?
3229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230   (exit $ac_status); }
3231  case $?:`cat confinc.out 2>/dev/null` in #(
3232  '0:this is the am__doit target') :
3233    case $s in #(
3234  BSD) :
3235    am__include='.include' am__quote='"' ;; #(
3236  *) :
3237    am__include='include' am__quote='' ;;
3238esac ;; #(
3239  *) :
3240     ;;
3241esac
3242  if test "$am__include" != "#"; then
3243    _am_result="yes ($s style)"
3244    break
3245  fi
3246done
3247rm -f confinc.* confmf.*
3248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3249printf "%s\n" "${_am_result}" >&6; }
3250
3251# Check whether --enable-dependency-tracking was given.
3252if test ${enable_dependency_tracking+y}
3253then :
3254  enableval=$enable_dependency_tracking;
3255fi
3256
3257if test "x$enable_dependency_tracking" != xno; then
3258  am_depcomp="$ac_aux_dir/depcomp"
3259  AMDEPBACKSLASH='\'
3260  am__nodep='_no'
3261fi
3262 if test "x$enable_dependency_tracking" != xno; then
3263  AMDEP_TRUE=
3264  AMDEP_FALSE='#'
3265else
3266  AMDEP_TRUE='#'
3267  AMDEP_FALSE=
3268fi
3269
3270
3271ac_ext=c
3272ac_cpp='$CPP $CPPFLAGS'
3273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3275ac_compiler_gnu=$ac_cv_c_compiler_gnu
3276if test -n "$ac_tool_prefix"; then
3277  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3278set dummy ${ac_tool_prefix}gcc; ac_word=$2
3279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280printf %s "checking for $ac_word... " >&6; }
3281if test ${ac_cv_prog_CC+y}
3282then :
3283  printf %s "(cached) " >&6
3284else $as_nop
3285  if test -n "$CC"; then
3286  ac_cv_prog_CC="$CC" # Let the user override the test.
3287else
3288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289for as_dir in $PATH
3290do
3291  IFS=$as_save_IFS
3292  case $as_dir in #(((
3293    '') as_dir=./ ;;
3294    */) ;;
3295    *) as_dir=$as_dir/ ;;
3296  esac
3297    for ac_exec_ext in '' $ac_executable_extensions; do
3298  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3299    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3300    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3301    break 2
3302  fi
3303done
3304  done
3305IFS=$as_save_IFS
3306
3307fi
3308fi
3309CC=$ac_cv_prog_CC
3310if test -n "$CC"; then
3311  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3312printf "%s\n" "$CC" >&6; }
3313else
3314  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3315printf "%s\n" "no" >&6; }
3316fi
3317
3318
3319fi
3320if test -z "$ac_cv_prog_CC"; then
3321  ac_ct_CC=$CC
3322  # Extract the first word of "gcc", so it can be a program name with args.
3323set dummy gcc; ac_word=$2
3324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3325printf %s "checking for $ac_word... " >&6; }
3326if test ${ac_cv_prog_ac_ct_CC+y}
3327then :
3328  printf %s "(cached) " >&6
3329else $as_nop
3330  if test -n "$ac_ct_CC"; then
3331  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3332else
3333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334for as_dir in $PATH
3335do
3336  IFS=$as_save_IFS
3337  case $as_dir in #(((
3338    '') as_dir=./ ;;
3339    */) ;;
3340    *) as_dir=$as_dir/ ;;
3341  esac
3342    for ac_exec_ext in '' $ac_executable_extensions; do
3343  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3344    ac_cv_prog_ac_ct_CC="gcc"
3345    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3346    break 2
3347  fi
3348done
3349  done
3350IFS=$as_save_IFS
3351
3352fi
3353fi
3354ac_ct_CC=$ac_cv_prog_ac_ct_CC
3355if test -n "$ac_ct_CC"; then
3356  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3357printf "%s\n" "$ac_ct_CC" >&6; }
3358else
3359  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360printf "%s\n" "no" >&6; }
3361fi
3362
3363  if test "x$ac_ct_CC" = x; then
3364    CC=""
3365  else
3366    case $cross_compiling:$ac_tool_warned in
3367yes:)
3368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3369printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3370ac_tool_warned=yes ;;
3371esac
3372    CC=$ac_ct_CC
3373  fi
3374else
3375  CC="$ac_cv_prog_CC"
3376fi
3377
3378if test -z "$CC"; then
3379          if test -n "$ac_tool_prefix"; then
3380    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3381set dummy ${ac_tool_prefix}cc; ac_word=$2
3382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3383printf %s "checking for $ac_word... " >&6; }
3384if test ${ac_cv_prog_CC+y}
3385then :
3386  printf %s "(cached) " >&6
3387else $as_nop
3388  if test -n "$CC"; then
3389  ac_cv_prog_CC="$CC" # Let the user override the test.
3390else
3391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392for as_dir in $PATH
3393do
3394  IFS=$as_save_IFS
3395  case $as_dir in #(((
3396    '') as_dir=./ ;;
3397    */) ;;
3398    *) as_dir=$as_dir/ ;;
3399  esac
3400    for ac_exec_ext in '' $ac_executable_extensions; do
3401  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3402    ac_cv_prog_CC="${ac_tool_prefix}cc"
3403    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3404    break 2
3405  fi
3406done
3407  done
3408IFS=$as_save_IFS
3409
3410fi
3411fi
3412CC=$ac_cv_prog_CC
3413if test -n "$CC"; then
3414  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3415printf "%s\n" "$CC" >&6; }
3416else
3417  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418printf "%s\n" "no" >&6; }
3419fi
3420
3421
3422  fi
3423fi
3424if test -z "$CC"; then
3425  # Extract the first word of "cc", so it can be a program name with args.
3426set dummy cc; ac_word=$2
3427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3428printf %s "checking for $ac_word... " >&6; }
3429if test ${ac_cv_prog_CC+y}
3430then :
3431  printf %s "(cached) " >&6
3432else $as_nop
3433  if test -n "$CC"; then
3434  ac_cv_prog_CC="$CC" # Let the user override the test.
3435else
3436  ac_prog_rejected=no
3437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438for as_dir in $PATH
3439do
3440  IFS=$as_save_IFS
3441  case $as_dir in #(((
3442    '') as_dir=./ ;;
3443    */) ;;
3444    *) as_dir=$as_dir/ ;;
3445  esac
3446    for ac_exec_ext in '' $ac_executable_extensions; do
3447  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3448    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3449       ac_prog_rejected=yes
3450       continue
3451     fi
3452    ac_cv_prog_CC="cc"
3453    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3454    break 2
3455  fi
3456done
3457  done
3458IFS=$as_save_IFS
3459
3460if test $ac_prog_rejected = yes; then
3461  # We found a bogon in the path, so make sure we never use it.
3462  set dummy $ac_cv_prog_CC
3463  shift
3464  if test $# != 0; then
3465    # We chose a different compiler from the bogus one.
3466    # However, it has the same basename, so the bogon will be chosen
3467    # first if we set CC to just the basename; use the full file name.
3468    shift
3469    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3470  fi
3471fi
3472fi
3473fi
3474CC=$ac_cv_prog_CC
3475if test -n "$CC"; then
3476  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3477printf "%s\n" "$CC" >&6; }
3478else
3479  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480printf "%s\n" "no" >&6; }
3481fi
3482
3483
3484fi
3485if test -z "$CC"; then
3486  if test -n "$ac_tool_prefix"; then
3487  for ac_prog in cl.exe
3488  do
3489    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3490set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3492printf %s "checking for $ac_word... " >&6; }
3493if test ${ac_cv_prog_CC+y}
3494then :
3495  printf %s "(cached) " >&6
3496else $as_nop
3497  if test -n "$CC"; then
3498  ac_cv_prog_CC="$CC" # Let the user override the test.
3499else
3500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501for as_dir in $PATH
3502do
3503  IFS=$as_save_IFS
3504  case $as_dir in #(((
3505    '') as_dir=./ ;;
3506    */) ;;
3507    *) as_dir=$as_dir/ ;;
3508  esac
3509    for ac_exec_ext in '' $ac_executable_extensions; do
3510  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3511    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3512    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3513    break 2
3514  fi
3515done
3516  done
3517IFS=$as_save_IFS
3518
3519fi
3520fi
3521CC=$ac_cv_prog_CC
3522if test -n "$CC"; then
3523  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3524printf "%s\n" "$CC" >&6; }
3525else
3526  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527printf "%s\n" "no" >&6; }
3528fi
3529
3530
3531    test -n "$CC" && break
3532  done
3533fi
3534if test -z "$CC"; then
3535  ac_ct_CC=$CC
3536  for ac_prog in cl.exe
3537do
3538  # Extract the first word of "$ac_prog", so it can be a program name with args.
3539set dummy $ac_prog; 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_ac_ct_CC+y}
3543then :
3544  printf %s "(cached) " >&6
3545else $as_nop
3546  if test -n "$ac_ct_CC"; then
3547  ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$ac_prog"
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
3570ac_ct_CC=$ac_cv_prog_ac_ct_CC
3571if test -n "$ac_ct_CC"; then
3572  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3573printf "%s\n" "$ac_ct_CC" >&6; }
3574else
3575  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576printf "%s\n" "no" >&6; }
3577fi
3578
3579
3580  test -n "$ac_ct_CC" && break
3581done
3582
3583  if test "x$ac_ct_CC" = x; then
3584    CC=""
3585  else
3586    case $cross_compiling:$ac_tool_warned in
3587yes:)
3588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3589printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3590ac_tool_warned=yes ;;
3591esac
3592    CC=$ac_ct_CC
3593  fi
3594fi
3595
3596fi
3597if test -z "$CC"; then
3598  if test -n "$ac_tool_prefix"; then
3599  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3600set dummy ${ac_tool_prefix}clang; ac_word=$2
3601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3602printf %s "checking for $ac_word... " >&6; }
3603if test ${ac_cv_prog_CC+y}
3604then :
3605  printf %s "(cached) " >&6
3606else $as_nop
3607  if test -n "$CC"; then
3608  ac_cv_prog_CC="$CC" # Let the user override the test.
3609else
3610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611for as_dir in $PATH
3612do
3613  IFS=$as_save_IFS
3614  case $as_dir in #(((
3615    '') as_dir=./ ;;
3616    */) ;;
3617    *) as_dir=$as_dir/ ;;
3618  esac
3619    for ac_exec_ext in '' $ac_executable_extensions; do
3620  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3621    ac_cv_prog_CC="${ac_tool_prefix}clang"
3622    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3623    break 2
3624  fi
3625done
3626  done
3627IFS=$as_save_IFS
3628
3629fi
3630fi
3631CC=$ac_cv_prog_CC
3632if test -n "$CC"; then
3633  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3634printf "%s\n" "$CC" >&6; }
3635else
3636  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637printf "%s\n" "no" >&6; }
3638fi
3639
3640
3641fi
3642if test -z "$ac_cv_prog_CC"; then
3643  ac_ct_CC=$CC
3644  # Extract the first word of "clang", so it can be a program name with args.
3645set dummy clang; ac_word=$2
3646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647printf %s "checking for $ac_word... " >&6; }
3648if test ${ac_cv_prog_ac_ct_CC+y}
3649then :
3650  printf %s "(cached) " >&6
3651else $as_nop
3652  if test -n "$ac_ct_CC"; then
3653  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3654else
3655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656for as_dir in $PATH
3657do
3658  IFS=$as_save_IFS
3659  case $as_dir in #(((
3660    '') as_dir=./ ;;
3661    */) ;;
3662    *) as_dir=$as_dir/ ;;
3663  esac
3664    for ac_exec_ext in '' $ac_executable_extensions; do
3665  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3666    ac_cv_prog_ac_ct_CC="clang"
3667    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3668    break 2
3669  fi
3670done
3671  done
3672IFS=$as_save_IFS
3673
3674fi
3675fi
3676ac_ct_CC=$ac_cv_prog_ac_ct_CC
3677if test -n "$ac_ct_CC"; then
3678  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3679printf "%s\n" "$ac_ct_CC" >&6; }
3680else
3681  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682printf "%s\n" "no" >&6; }
3683fi
3684
3685  if test "x$ac_ct_CC" = x; then
3686    CC=""
3687  else
3688    case $cross_compiling:$ac_tool_warned in
3689yes:)
3690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3691printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3692ac_tool_warned=yes ;;
3693esac
3694    CC=$ac_ct_CC
3695  fi
3696else
3697  CC="$ac_cv_prog_CC"
3698fi
3699
3700fi
3701
3702
3703test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3704printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3705as_fn_error $? "no acceptable C compiler found in \$PATH
3706See \`config.log' for more details" "$LINENO" 5; }
3707
3708# Provide some information about the compiler.
3709printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3710set X $ac_compile
3711ac_compiler=$2
3712for ac_option in --version -v -V -qversion -version; do
3713  { { ac_try="$ac_compiler $ac_option >&5"
3714case "(($ac_try" in
3715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716  *) ac_try_echo=$ac_try;;
3717esac
3718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3719printf "%s\n" "$ac_try_echo"; } >&5
3720  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3721  ac_status=$?
3722  if test -s conftest.err; then
3723    sed '10a\
3724... rest of stderr output deleted ...
3725         10q' conftest.err >conftest.er1
3726    cat conftest.er1 >&5
3727  fi
3728  rm -f conftest.er1 conftest.err
3729  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3730  test $ac_status = 0; }
3731done
3732
3733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734/* end confdefs.h.  */
3735
3736int
3737main (void)
3738{
3739
3740  ;
3741  return 0;
3742}
3743_ACEOF
3744ac_clean_files_save=$ac_clean_files
3745ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3746# Try to create an executable without -o first, disregard a.out.
3747# It will help us diagnose broken compilers, and finding out an intuition
3748# of exeext.
3749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3750printf %s "checking whether the C compiler works... " >&6; }
3751ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3752
3753# The possible output files:
3754ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3755
3756ac_rmfiles=
3757for ac_file in $ac_files
3758do
3759  case $ac_file in
3760    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3761    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3762  esac
3763done
3764rm -f $ac_rmfiles
3765
3766if { { ac_try="$ac_link_default"
3767case "(($ac_try" in
3768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769  *) ac_try_echo=$ac_try;;
3770esac
3771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3772printf "%s\n" "$ac_try_echo"; } >&5
3773  (eval "$ac_link_default") 2>&5
3774  ac_status=$?
3775  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3776  test $ac_status = 0; }
3777then :
3778  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3779# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3780# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3781# so that the user can short-circuit this test for compilers unknown to
3782# Autoconf.
3783for ac_file in $ac_files ''
3784do
3785  test -f "$ac_file" || continue
3786  case $ac_file in
3787    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3788	;;
3789    [ab].out )
3790	# We found the default executable, but exeext='' is most
3791	# certainly right.
3792	break;;
3793    *.* )
3794	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3795	then :; else
3796	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3797	fi
3798	# We set ac_cv_exeext here because the later test for it is not
3799	# safe: cross compilers may not add the suffix if given an `-o'
3800	# argument, so we may need to know it at that point already.
3801	# Even if this section looks crufty: it has the advantage of
3802	# actually working.
3803	break;;
3804    * )
3805	break;;
3806  esac
3807done
3808test "$ac_cv_exeext" = no && ac_cv_exeext=
3809
3810else $as_nop
3811  ac_file=''
3812fi
3813if test -z "$ac_file"
3814then :
3815  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816printf "%s\n" "no" >&6; }
3817printf "%s\n" "$as_me: failed program was:" >&5
3818sed 's/^/| /' conftest.$ac_ext >&5
3819
3820{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3821printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3822as_fn_error 77 "C compiler cannot create executables
3823See \`config.log' for more details" "$LINENO" 5; }
3824else $as_nop
3825  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3826printf "%s\n" "yes" >&6; }
3827fi
3828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3829printf %s "checking for C compiler default output file name... " >&6; }
3830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3831printf "%s\n" "$ac_file" >&6; }
3832ac_exeext=$ac_cv_exeext
3833
3834rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3835ac_clean_files=$ac_clean_files_save
3836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3837printf %s "checking for suffix of executables... " >&6; }
3838if { { ac_try="$ac_link"
3839case "(($ac_try" in
3840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841  *) ac_try_echo=$ac_try;;
3842esac
3843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3844printf "%s\n" "$ac_try_echo"; } >&5
3845  (eval "$ac_link") 2>&5
3846  ac_status=$?
3847  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3848  test $ac_status = 0; }
3849then :
3850  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3851# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3852# work properly (i.e., refer to `conftest.exe'), while it won't with
3853# `rm'.
3854for ac_file in conftest.exe conftest conftest.*; do
3855  test -f "$ac_file" || continue
3856  case $ac_file in
3857    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3858    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3859	  break;;
3860    * ) break;;
3861  esac
3862done
3863else $as_nop
3864  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3865printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3866as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3867See \`config.log' for more details" "$LINENO" 5; }
3868fi
3869rm -f conftest conftest$ac_cv_exeext
3870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3871printf "%s\n" "$ac_cv_exeext" >&6; }
3872
3873rm -f conftest.$ac_ext
3874EXEEXT=$ac_cv_exeext
3875ac_exeext=$EXEEXT
3876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877/* end confdefs.h.  */
3878#include <stdio.h>
3879int
3880main (void)
3881{
3882FILE *f = fopen ("conftest.out", "w");
3883 return ferror (f) || fclose (f) != 0;
3884
3885  ;
3886  return 0;
3887}
3888_ACEOF
3889ac_clean_files="$ac_clean_files conftest.out"
3890# Check that the compiler produces executables we can run.  If not, either
3891# the compiler is broken, or we cross compile.
3892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3893printf %s "checking whether we are cross compiling... " >&6; }
3894if test "$cross_compiling" != yes; then
3895  { { ac_try="$ac_link"
3896case "(($ac_try" in
3897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898  *) ac_try_echo=$ac_try;;
3899esac
3900eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3901printf "%s\n" "$ac_try_echo"; } >&5
3902  (eval "$ac_link") 2>&5
3903  ac_status=$?
3904  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3905  test $ac_status = 0; }
3906  if { ac_try='./conftest$ac_cv_exeext'
3907  { { case "(($ac_try" in
3908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909  *) ac_try_echo=$ac_try;;
3910esac
3911eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3912printf "%s\n" "$ac_try_echo"; } >&5
3913  (eval "$ac_try") 2>&5
3914  ac_status=$?
3915  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3916  test $ac_status = 0; }; }; then
3917    cross_compiling=no
3918  else
3919    if test "$cross_compiling" = maybe; then
3920	cross_compiling=yes
3921    else
3922	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3923printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3924as_fn_error 77 "cannot run C compiled programs.
3925If you meant to cross compile, use \`--host'.
3926See \`config.log' for more details" "$LINENO" 5; }
3927    fi
3928  fi
3929fi
3930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3931printf "%s\n" "$cross_compiling" >&6; }
3932
3933rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3934ac_clean_files=$ac_clean_files_save
3935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3936printf %s "checking for suffix of object files... " >&6; }
3937if test ${ac_cv_objext+y}
3938then :
3939  printf %s "(cached) " >&6
3940else $as_nop
3941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942/* end confdefs.h.  */
3943
3944int
3945main (void)
3946{
3947
3948  ;
3949  return 0;
3950}
3951_ACEOF
3952rm -f conftest.o conftest.obj
3953if { { ac_try="$ac_compile"
3954case "(($ac_try" in
3955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956  *) ac_try_echo=$ac_try;;
3957esac
3958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3959printf "%s\n" "$ac_try_echo"; } >&5
3960  (eval "$ac_compile") 2>&5
3961  ac_status=$?
3962  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3963  test $ac_status = 0; }
3964then :
3965  for ac_file in conftest.o conftest.obj conftest.*; do
3966  test -f "$ac_file" || continue;
3967  case $ac_file in
3968    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3969    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3970       break;;
3971  esac
3972done
3973else $as_nop
3974  printf "%s\n" "$as_me: failed program was:" >&5
3975sed 's/^/| /' conftest.$ac_ext >&5
3976
3977{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3978printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3979as_fn_error $? "cannot compute suffix of object files: cannot compile
3980See \`config.log' for more details" "$LINENO" 5; }
3981fi
3982rm -f conftest.$ac_cv_objext conftest.$ac_ext
3983fi
3984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3985printf "%s\n" "$ac_cv_objext" >&6; }
3986OBJEXT=$ac_cv_objext
3987ac_objext=$OBJEXT
3988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3989printf %s "checking whether the compiler supports GNU C... " >&6; }
3990if test ${ac_cv_c_compiler_gnu+y}
3991then :
3992  printf %s "(cached) " >&6
3993else $as_nop
3994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995/* end confdefs.h.  */
3996
3997int
3998main (void)
3999{
4000#ifndef __GNUC__
4001       choke me
4002#endif
4003
4004  ;
4005  return 0;
4006}
4007_ACEOF
4008if ac_fn_c_try_compile "$LINENO"
4009then :
4010  ac_compiler_gnu=yes
4011else $as_nop
4012  ac_compiler_gnu=no
4013fi
4014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4015ac_cv_c_compiler_gnu=$ac_compiler_gnu
4016
4017fi
4018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4019printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4020ac_compiler_gnu=$ac_cv_c_compiler_gnu
4021
4022if test $ac_compiler_gnu = yes; then
4023  GCC=yes
4024else
4025  GCC=
4026fi
4027ac_test_CFLAGS=${CFLAGS+y}
4028ac_save_CFLAGS=$CFLAGS
4029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4030printf %s "checking whether $CC accepts -g... " >&6; }
4031if test ${ac_cv_prog_cc_g+y}
4032then :
4033  printf %s "(cached) " >&6
4034else $as_nop
4035  ac_save_c_werror_flag=$ac_c_werror_flag
4036   ac_c_werror_flag=yes
4037   ac_cv_prog_cc_g=no
4038   CFLAGS="-g"
4039   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040/* end confdefs.h.  */
4041
4042int
4043main (void)
4044{
4045
4046  ;
4047  return 0;
4048}
4049_ACEOF
4050if ac_fn_c_try_compile "$LINENO"
4051then :
4052  ac_cv_prog_cc_g=yes
4053else $as_nop
4054  CFLAGS=""
4055      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056/* end confdefs.h.  */
4057
4058int
4059main (void)
4060{
4061
4062  ;
4063  return 0;
4064}
4065_ACEOF
4066if ac_fn_c_try_compile "$LINENO"
4067then :
4068
4069else $as_nop
4070  ac_c_werror_flag=$ac_save_c_werror_flag
4071	 CFLAGS="-g"
4072	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4073/* end confdefs.h.  */
4074
4075int
4076main (void)
4077{
4078
4079  ;
4080  return 0;
4081}
4082_ACEOF
4083if ac_fn_c_try_compile "$LINENO"
4084then :
4085  ac_cv_prog_cc_g=yes
4086fi
4087rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4088fi
4089rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4090fi
4091rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4092   ac_c_werror_flag=$ac_save_c_werror_flag
4093fi
4094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4095printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4096if test $ac_test_CFLAGS; then
4097  CFLAGS=$ac_save_CFLAGS
4098elif test $ac_cv_prog_cc_g = yes; then
4099  if test "$GCC" = yes; then
4100    CFLAGS="-g -O2"
4101  else
4102    CFLAGS="-g"
4103  fi
4104else
4105  if test "$GCC" = yes; then
4106    CFLAGS="-O2"
4107  else
4108    CFLAGS=
4109  fi
4110fi
4111ac_prog_cc_stdc=no
4112if test x$ac_prog_cc_stdc = xno
4113then :
4114  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4115printf %s "checking for $CC option to enable C11 features... " >&6; }
4116if test ${ac_cv_prog_cc_c11+y}
4117then :
4118  printf %s "(cached) " >&6
4119else $as_nop
4120  ac_cv_prog_cc_c11=no
4121ac_save_CC=$CC
4122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123/* end confdefs.h.  */
4124$ac_c_conftest_c11_program
4125_ACEOF
4126for ac_arg in '' -std=gnu11
4127do
4128  CC="$ac_save_CC $ac_arg"
4129  if ac_fn_c_try_compile "$LINENO"
4130then :
4131  ac_cv_prog_cc_c11=$ac_arg
4132fi
4133rm -f core conftest.err conftest.$ac_objext conftest.beam
4134  test "x$ac_cv_prog_cc_c11" != "xno" && break
4135done
4136rm -f conftest.$ac_ext
4137CC=$ac_save_CC
4138fi
4139
4140if test "x$ac_cv_prog_cc_c11" = xno
4141then :
4142  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4143printf "%s\n" "unsupported" >&6; }
4144else $as_nop
4145  if test "x$ac_cv_prog_cc_c11" = x
4146then :
4147  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4148printf "%s\n" "none needed" >&6; }
4149else $as_nop
4150  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4151printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4152     CC="$CC $ac_cv_prog_cc_c11"
4153fi
4154  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4155  ac_prog_cc_stdc=c11
4156fi
4157fi
4158if test x$ac_prog_cc_stdc = xno
4159then :
4160  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4161printf %s "checking for $CC option to enable C99 features... " >&6; }
4162if test ${ac_cv_prog_cc_c99+y}
4163then :
4164  printf %s "(cached) " >&6
4165else $as_nop
4166  ac_cv_prog_cc_c99=no
4167ac_save_CC=$CC
4168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169/* end confdefs.h.  */
4170$ac_c_conftest_c99_program
4171_ACEOF
4172for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4173do
4174  CC="$ac_save_CC $ac_arg"
4175  if ac_fn_c_try_compile "$LINENO"
4176then :
4177  ac_cv_prog_cc_c99=$ac_arg
4178fi
4179rm -f core conftest.err conftest.$ac_objext conftest.beam
4180  test "x$ac_cv_prog_cc_c99" != "xno" && break
4181done
4182rm -f conftest.$ac_ext
4183CC=$ac_save_CC
4184fi
4185
4186if test "x$ac_cv_prog_cc_c99" = xno
4187then :
4188  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4189printf "%s\n" "unsupported" >&6; }
4190else $as_nop
4191  if test "x$ac_cv_prog_cc_c99" = x
4192then :
4193  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4194printf "%s\n" "none needed" >&6; }
4195else $as_nop
4196  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4197printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4198     CC="$CC $ac_cv_prog_cc_c99"
4199fi
4200  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4201  ac_prog_cc_stdc=c99
4202fi
4203fi
4204if test x$ac_prog_cc_stdc = xno
4205then :
4206  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4207printf %s "checking for $CC option to enable C89 features... " >&6; }
4208if test ${ac_cv_prog_cc_c89+y}
4209then :
4210  printf %s "(cached) " >&6
4211else $as_nop
4212  ac_cv_prog_cc_c89=no
4213ac_save_CC=$CC
4214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215/* end confdefs.h.  */
4216$ac_c_conftest_c89_program
4217_ACEOF
4218for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4219do
4220  CC="$ac_save_CC $ac_arg"
4221  if ac_fn_c_try_compile "$LINENO"
4222then :
4223  ac_cv_prog_cc_c89=$ac_arg
4224fi
4225rm -f core conftest.err conftest.$ac_objext conftest.beam
4226  test "x$ac_cv_prog_cc_c89" != "xno" && break
4227done
4228rm -f conftest.$ac_ext
4229CC=$ac_save_CC
4230fi
4231
4232if test "x$ac_cv_prog_cc_c89" = xno
4233then :
4234  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4235printf "%s\n" "unsupported" >&6; }
4236else $as_nop
4237  if test "x$ac_cv_prog_cc_c89" = x
4238then :
4239  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4240printf "%s\n" "none needed" >&6; }
4241else $as_nop
4242  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4243printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4244     CC="$CC $ac_cv_prog_cc_c89"
4245fi
4246  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4247  ac_prog_cc_stdc=c89
4248fi
4249fi
4250
4251ac_ext=c
4252ac_cpp='$CPP $CPPFLAGS'
4253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4255ac_compiler_gnu=$ac_cv_c_compiler_gnu
4256
4257
4258  ac_ext=c
4259ac_cpp='$CPP $CPPFLAGS'
4260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4262ac_compiler_gnu=$ac_cv_c_compiler_gnu
4263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4264printf %s "checking whether $CC understands -c and -o together... " >&6; }
4265if test ${am_cv_prog_cc_c_o+y}
4266then :
4267  printf %s "(cached) " >&6
4268else $as_nop
4269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270/* end confdefs.h.  */
4271
4272int
4273main (void)
4274{
4275
4276  ;
4277  return 0;
4278}
4279_ACEOF
4280  # Make sure it works both with $CC and with simple cc.
4281  # Following AC_PROG_CC_C_O, we do the test twice because some
4282  # compilers refuse to overwrite an existing .o file with -o,
4283  # though they will create one.
4284  am_cv_prog_cc_c_o=yes
4285  for am_i in 1 2; do
4286    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4287   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4288   ac_status=$?
4289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290   (exit $ac_status); } \
4291         && test -f conftest2.$ac_objext; then
4292      : OK
4293    else
4294      am_cv_prog_cc_c_o=no
4295      break
4296    fi
4297  done
4298  rm -f core conftest*
4299  unset am_i
4300fi
4301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4302printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4303if test "$am_cv_prog_cc_c_o" != yes; then
4304   # Losing compiler, so override with the script.
4305   # FIXME: It is wrong to rewrite CC.
4306   # But if we don't then we get into trouble of one sort or another.
4307   # A longer-term fix would be to have automake use am__CC in this case,
4308   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4309   CC="$am_aux_dir/compile $CC"
4310fi
4311ac_ext=c
4312ac_cpp='$CPP $CPPFLAGS'
4313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4315ac_compiler_gnu=$ac_cv_c_compiler_gnu
4316
4317
4318depcc="$CC"   am_compiler_list=
4319
4320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4321printf %s "checking dependency style of $depcc... " >&6; }
4322if test ${am_cv_CC_dependencies_compiler_type+y}
4323then :
4324  printf %s "(cached) " >&6
4325else $as_nop
4326  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4327  # We make a subdir and do the tests there.  Otherwise we can end up
4328  # making bogus files that we don't know about and never remove.  For
4329  # instance it was reported that on HP-UX the gcc test will end up
4330  # making a dummy file named 'D' -- because '-MD' means "put the output
4331  # in D".
4332  rm -rf conftest.dir
4333  mkdir conftest.dir
4334  # Copy depcomp to subdir because otherwise we won't find it if we're
4335  # using a relative directory.
4336  cp "$am_depcomp" conftest.dir
4337  cd conftest.dir
4338  # We will build objects and dependencies in a subdirectory because
4339  # it helps to detect inapplicable dependency modes.  For instance
4340  # both Tru64's cc and ICC support -MD to output dependencies as a
4341  # side effect of compilation, but ICC will put the dependencies in
4342  # the current directory while Tru64 will put them in the object
4343  # directory.
4344  mkdir sub
4345
4346  am_cv_CC_dependencies_compiler_type=none
4347  if test "$am_compiler_list" = ""; then
4348     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4349  fi
4350  am__universal=false
4351  case " $depcc " in #(
4352     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4353     esac
4354
4355  for depmode in $am_compiler_list; do
4356    # Setup a source with many dependencies, because some compilers
4357    # like to wrap large dependency lists on column 80 (with \), and
4358    # we should not choose a depcomp mode which is confused by this.
4359    #
4360    # We need to recreate these files for each test, as the compiler may
4361    # overwrite some of them when testing with obscure command lines.
4362    # This happens at least with the AIX C compiler.
4363    : > sub/conftest.c
4364    for i in 1 2 3 4 5 6; do
4365      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4366      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4367      # Solaris 10 /bin/sh.
4368      echo '/* dummy */' > sub/conftst$i.h
4369    done
4370    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4371
4372    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4373    # mode.  It turns out that the SunPro C++ compiler does not properly
4374    # handle '-M -o', and we need to detect this.  Also, some Intel
4375    # versions had trouble with output in subdirs.
4376    am__obj=sub/conftest.${OBJEXT-o}
4377    am__minus_obj="-o $am__obj"
4378    case $depmode in
4379    gcc)
4380      # This depmode causes a compiler race in universal mode.
4381      test "$am__universal" = false || continue
4382      ;;
4383    nosideeffect)
4384      # After this tag, mechanisms are not by side-effect, so they'll
4385      # only be used when explicitly requested.
4386      if test "x$enable_dependency_tracking" = xyes; then
4387	continue
4388      else
4389	break
4390      fi
4391      ;;
4392    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4393      # This compiler won't grok '-c -o', but also, the minuso test has
4394      # not run yet.  These depmodes are late enough in the game, and
4395      # so weak that their functioning should not be impacted.
4396      am__obj=conftest.${OBJEXT-o}
4397      am__minus_obj=
4398      ;;
4399    none) break ;;
4400    esac
4401    if depmode=$depmode \
4402       source=sub/conftest.c object=$am__obj \
4403       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4404       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4405         >/dev/null 2>conftest.err &&
4406       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4407       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4408       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4409       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4410      # icc doesn't choke on unknown options, it will just issue warnings
4411      # or remarks (even with -Werror).  So we grep stderr for any message
4412      # that says an option was ignored or not supported.
4413      # When given -MP, icc 7.0 and 7.1 complain thusly:
4414      #   icc: Command line warning: ignoring option '-M'; no argument required
4415      # The diagnosis changed in icc 8.0:
4416      #   icc: Command line remark: option '-MP' not supported
4417      if (grep 'ignoring option' conftest.err ||
4418          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4419        am_cv_CC_dependencies_compiler_type=$depmode
4420        break
4421      fi
4422    fi
4423  done
4424
4425  cd ..
4426  rm -rf conftest.dir
4427else
4428  am_cv_CC_dependencies_compiler_type=none
4429fi
4430
4431fi
4432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4433printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4434CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4435
4436 if
4437  test "x$enable_dependency_tracking" != xno \
4438  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4439  am__fastdepCC_TRUE=
4440  am__fastdepCC_FALSE='#'
4441else
4442  am__fastdepCC_TRUE='#'
4443  am__fastdepCC_FALSE=
4444fi
4445
4446
4447
4448
4449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4450printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4451if test ${ac_cv_c_undeclared_builtin_options+y}
4452then :
4453  printf %s "(cached) " >&6
4454else $as_nop
4455  ac_save_CFLAGS=$CFLAGS
4456   ac_cv_c_undeclared_builtin_options='cannot detect'
4457   for ac_arg in '' -fno-builtin; do
4458     CFLAGS="$ac_save_CFLAGS $ac_arg"
4459     # This test program should *not* compile successfully.
4460     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461/* end confdefs.h.  */
4462
4463int
4464main (void)
4465{
4466(void) strchr;
4467  ;
4468  return 0;
4469}
4470_ACEOF
4471if ac_fn_c_try_compile "$LINENO"
4472then :
4473
4474else $as_nop
4475  # This test program should compile successfully.
4476        # No library function is consistently available on
4477        # freestanding implementations, so test against a dummy
4478        # declaration.  Include always-available headers on the
4479        # off chance that they somehow elicit warnings.
4480        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4481/* end confdefs.h.  */
4482#include <float.h>
4483#include <limits.h>
4484#include <stdarg.h>
4485#include <stddef.h>
4486extern void ac_decl (int, char *);
4487
4488int
4489main (void)
4490{
4491(void) ac_decl (0, (char *) 0);
4492  (void) ac_decl;
4493
4494  ;
4495  return 0;
4496}
4497_ACEOF
4498if ac_fn_c_try_compile "$LINENO"
4499then :
4500  if test x"$ac_arg" = x
4501then :
4502  ac_cv_c_undeclared_builtin_options='none needed'
4503else $as_nop
4504  ac_cv_c_undeclared_builtin_options=$ac_arg
4505fi
4506          break
4507fi
4508rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4509fi
4510rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4511    done
4512    CFLAGS=$ac_save_CFLAGS
4513
4514fi
4515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4516printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4517  case $ac_cv_c_undeclared_builtin_options in #(
4518  'cannot detect') :
4519    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4520printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4521as_fn_error $? "cannot make $CC report undeclared builtins
4522See \`config.log' for more details" "$LINENO" 5; } ;; #(
4523  'none needed') :
4524    ac_c_undeclared_builtin_options='' ;; #(
4525  *) :
4526    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4527esac
4528
4529ac_header= ac_cache=
4530for ac_item in $ac_header_c_list
4531do
4532  if test $ac_cache; then
4533    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4534    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4535      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4536    fi
4537    ac_header= ac_cache=
4538  elif test $ac_header; then
4539    ac_cache=$ac_item
4540  else
4541    ac_header=$ac_item
4542  fi
4543done
4544
4545
4546
4547
4548
4549
4550
4551
4552if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4553then :
4554
4555printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4556
4557fi
4558
4559
4560
4561
4562ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4563if test "x$ac_cv_have_decl___clang__" = xyes
4564then :
4565  CLANGCC="yes"
4566else $as_nop
4567  CLANGCC="no"
4568fi
4569ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4570if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4571then :
4572  INTELCC="yes"
4573else $as_nop
4574  INTELCC="no"
4575fi
4576ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4577if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4578then :
4579  SUNCC="yes"
4580else $as_nop
4581  SUNCC="no"
4582fi
4583
4584
4585
4586
4587
4588
4589
4590
4591if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4592	if test -n "$ac_tool_prefix"; then
4593  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4594set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596printf %s "checking for $ac_word... " >&6; }
4597if test ${ac_cv_path_PKG_CONFIG+y}
4598then :
4599  printf %s "(cached) " >&6
4600else $as_nop
4601  case $PKG_CONFIG in
4602  [\\/]* | ?:[\\/]*)
4603  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4604  ;;
4605  *)
4606  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607for as_dir in $PATH
4608do
4609  IFS=$as_save_IFS
4610  case $as_dir in #(((
4611    '') as_dir=./ ;;
4612    */) ;;
4613    *) as_dir=$as_dir/ ;;
4614  esac
4615    for ac_exec_ext in '' $ac_executable_extensions; do
4616  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4617    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4618    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4619    break 2
4620  fi
4621done
4622  done
4623IFS=$as_save_IFS
4624
4625  ;;
4626esac
4627fi
4628PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4629if test -n "$PKG_CONFIG"; then
4630  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4631printf "%s\n" "$PKG_CONFIG" >&6; }
4632else
4633  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634printf "%s\n" "no" >&6; }
4635fi
4636
4637
4638fi
4639if test -z "$ac_cv_path_PKG_CONFIG"; then
4640  ac_pt_PKG_CONFIG=$PKG_CONFIG
4641  # Extract the first word of "pkg-config", so it can be a program name with args.
4642set dummy pkg-config; ac_word=$2
4643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4644printf %s "checking for $ac_word... " >&6; }
4645if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4646then :
4647  printf %s "(cached) " >&6
4648else $as_nop
4649  case $ac_pt_PKG_CONFIG in
4650  [\\/]* | ?:[\\/]*)
4651  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4652  ;;
4653  *)
4654  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655for as_dir in $PATH
4656do
4657  IFS=$as_save_IFS
4658  case $as_dir in #(((
4659    '') as_dir=./ ;;
4660    */) ;;
4661    *) as_dir=$as_dir/ ;;
4662  esac
4663    for ac_exec_ext in '' $ac_executable_extensions; do
4664  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4665    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4666    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4667    break 2
4668  fi
4669done
4670  done
4671IFS=$as_save_IFS
4672
4673  ;;
4674esac
4675fi
4676ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4677if test -n "$ac_pt_PKG_CONFIG"; then
4678  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4679printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4680else
4681  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682printf "%s\n" "no" >&6; }
4683fi
4684
4685  if test "x$ac_pt_PKG_CONFIG" = x; then
4686    PKG_CONFIG=""
4687  else
4688    case $cross_compiling:$ac_tool_warned in
4689yes:)
4690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4691printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4692ac_tool_warned=yes ;;
4693esac
4694    PKG_CONFIG=$ac_pt_PKG_CONFIG
4695  fi
4696else
4697  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4698fi
4699
4700fi
4701if test -n "$PKG_CONFIG"; then
4702	_pkg_min_version=0.9.0
4703	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4704printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4705	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4706		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4707printf "%s\n" "yes" >&6; }
4708	else
4709		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710printf "%s\n" "no" >&6; }
4711		PKG_CONFIG=""
4712	fi
4713fi
4714
4715
4716  # Make sure we can run config.sub.
4717$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4718  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4719
4720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4721printf %s "checking build system type... " >&6; }
4722if test ${ac_cv_build+y}
4723then :
4724  printf %s "(cached) " >&6
4725else $as_nop
4726  ac_build_alias=$build_alias
4727test "x$ac_build_alias" = x &&
4728  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4729test "x$ac_build_alias" = x &&
4730  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4731ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4732  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4733
4734fi
4735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4736printf "%s\n" "$ac_cv_build" >&6; }
4737case $ac_cv_build in
4738*-*-*) ;;
4739*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4740esac
4741build=$ac_cv_build
4742ac_save_IFS=$IFS; IFS='-'
4743set x $ac_cv_build
4744shift
4745build_cpu=$1
4746build_vendor=$2
4747shift; shift
4748# Remember, the first character of IFS is used to create $*,
4749# except with old shells:
4750build_os=$*
4751IFS=$ac_save_IFS
4752case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4753
4754
4755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4756printf %s "checking host system type... " >&6; }
4757if test ${ac_cv_host+y}
4758then :
4759  printf %s "(cached) " >&6
4760else $as_nop
4761  if test "x$host_alias" = x; then
4762  ac_cv_host=$ac_cv_build
4763else
4764  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4765    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4766fi
4767
4768fi
4769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4770printf "%s\n" "$ac_cv_host" >&6; }
4771case $ac_cv_host in
4772*-*-*) ;;
4773*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4774esac
4775host=$ac_cv_host
4776ac_save_IFS=$IFS; IFS='-'
4777set x $ac_cv_host
4778shift
4779host_cpu=$1
4780host_vendor=$2
4781shift; shift
4782# Remember, the first character of IFS is used to create $*,
4783# except with old shells:
4784host_os=$*
4785IFS=$ac_save_IFS
4786case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4787
4788
4789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4790printf %s "checking for a sed that does not truncate output... " >&6; }
4791if test ${ac_cv_path_SED+y}
4792then :
4793  printf %s "(cached) " >&6
4794else $as_nop
4795            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4796     for ac_i in 1 2 3 4 5 6 7; do
4797       ac_script="$ac_script$as_nl$ac_script"
4798     done
4799     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4800     { ac_script=; unset ac_script;}
4801     if test -z "$SED"; then
4802  ac_path_SED_found=false
4803  # Loop through the user's path and test for each of PROGNAME-LIST
4804  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805for as_dir in $PATH
4806do
4807  IFS=$as_save_IFS
4808  case $as_dir in #(((
4809    '') as_dir=./ ;;
4810    */) ;;
4811    *) as_dir=$as_dir/ ;;
4812  esac
4813    for ac_prog in sed gsed
4814   do
4815    for ac_exec_ext in '' $ac_executable_extensions; do
4816      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4817      as_fn_executable_p "$ac_path_SED" || continue
4818# Check for GNU ac_path_SED and select it if it is found.
4819  # Check for GNU $ac_path_SED
4820case `"$ac_path_SED" --version 2>&1` in
4821*GNU*)
4822  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4823*)
4824  ac_count=0
4825  printf %s 0123456789 >"conftest.in"
4826  while :
4827  do
4828    cat "conftest.in" "conftest.in" >"conftest.tmp"
4829    mv "conftest.tmp" "conftest.in"
4830    cp "conftest.in" "conftest.nl"
4831    printf "%s\n" '' >> "conftest.nl"
4832    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4833    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4834    as_fn_arith $ac_count + 1 && ac_count=$as_val
4835    if test $ac_count -gt ${ac_path_SED_max-0}; then
4836      # Best one so far, save it but keep looking for a better one
4837      ac_cv_path_SED="$ac_path_SED"
4838      ac_path_SED_max=$ac_count
4839    fi
4840    # 10*(2^10) chars as input seems more than enough
4841    test $ac_count -gt 10 && break
4842  done
4843  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4844esac
4845
4846      $ac_path_SED_found && break 3
4847    done
4848  done
4849  done
4850IFS=$as_save_IFS
4851  if test -z "$ac_cv_path_SED"; then
4852    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4853  fi
4854else
4855  ac_cv_path_SED=$SED
4856fi
4857
4858fi
4859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4860printf "%s\n" "$ac_cv_path_SED" >&6; }
4861 SED="$ac_cv_path_SED"
4862  rm -f conftest.sed
4863
4864
4865
4866
4867
4868
4869# Check whether --enable-selective-werror was given.
4870if test ${enable_selective_werror+y}
4871then :
4872  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4873else $as_nop
4874  SELECTIVE_WERROR=yes
4875fi
4876
4877
4878
4879
4880
4881# -v is too short to test reliably with XORG_TESTSET_CFLAG
4882if test "x$SUNCC" = "xyes"; then
4883    BASE_CFLAGS="-v"
4884else
4885    BASE_CFLAGS=""
4886fi
4887
4888# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902xorg_testset_save_CFLAGS="$CFLAGS"
4903
4904if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4905	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4906	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4907printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4908if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4909then :
4910  printf %s "(cached) " >&6
4911else $as_nop
4912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913/* end confdefs.h.  */
4914int i;
4915_ACEOF
4916if ac_fn_c_try_compile "$LINENO"
4917then :
4918  xorg_cv_cc_flag_unknown_warning_option=yes
4919else $as_nop
4920  xorg_cv_cc_flag_unknown_warning_option=no
4921fi
4922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4923fi
4924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4925printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4926	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4927	CFLAGS="$xorg_testset_save_CFLAGS"
4928fi
4929
4930if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4931	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4932		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4933	fi
4934	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4935	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4936printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4937if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4938then :
4939  printf %s "(cached) " >&6
4940else $as_nop
4941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942/* end confdefs.h.  */
4943int i;
4944_ACEOF
4945if ac_fn_c_try_compile "$LINENO"
4946then :
4947  xorg_cv_cc_flag_unused_command_line_argument=yes
4948else $as_nop
4949  xorg_cv_cc_flag_unused_command_line_argument=no
4950fi
4951rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4952fi
4953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4954printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4955	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4956	CFLAGS="$xorg_testset_save_CFLAGS"
4957fi
4958
4959found="no"
4960
4961	if test $found = "no" ; then
4962		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4963			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4964		fi
4965
4966		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4967			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4968		fi
4969
4970		CFLAGS="$CFLAGS -Wall"
4971
4972		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4973printf %s "checking if $CC supports -Wall... " >&6; }
4974		cacheid=xorg_cv_cc_flag__Wall
4975		if eval test \${$cacheid+y}
4976then :
4977  printf %s "(cached) " >&6
4978else $as_nop
4979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4980/* end confdefs.h.  */
4981int i;
4982int
4983main (void)
4984{
4985
4986  ;
4987  return 0;
4988}
4989_ACEOF
4990if ac_fn_c_try_link "$LINENO"
4991then :
4992  eval $cacheid=yes
4993else $as_nop
4994  eval $cacheid=no
4995fi
4996rm -f core conftest.err conftest.$ac_objext conftest.beam \
4997    conftest$ac_exeext conftest.$ac_ext
4998fi
4999
5000
5001		CFLAGS="$xorg_testset_save_CFLAGS"
5002
5003		eval supported=\$$cacheid
5004		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5005printf "%s\n" "$supported" >&6; }
5006		if test "$supported" = "yes" ; then
5007			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5008			found="yes"
5009		fi
5010	fi
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026xorg_testset_save_CFLAGS="$CFLAGS"
5027
5028if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5029	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5030	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5031printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5032if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5033then :
5034  printf %s "(cached) " >&6
5035else $as_nop
5036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037/* end confdefs.h.  */
5038int i;
5039_ACEOF
5040if ac_fn_c_try_compile "$LINENO"
5041then :
5042  xorg_cv_cc_flag_unknown_warning_option=yes
5043else $as_nop
5044  xorg_cv_cc_flag_unknown_warning_option=no
5045fi
5046rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5047fi
5048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5049printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5050	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5051	CFLAGS="$xorg_testset_save_CFLAGS"
5052fi
5053
5054if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5055	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5056		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5057	fi
5058	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5059	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5060printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5061if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5062then :
5063  printf %s "(cached) " >&6
5064else $as_nop
5065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066/* end confdefs.h.  */
5067int i;
5068_ACEOF
5069if ac_fn_c_try_compile "$LINENO"
5070then :
5071  xorg_cv_cc_flag_unused_command_line_argument=yes
5072else $as_nop
5073  xorg_cv_cc_flag_unused_command_line_argument=no
5074fi
5075rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5076fi
5077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5078printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5079	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5080	CFLAGS="$xorg_testset_save_CFLAGS"
5081fi
5082
5083found="no"
5084
5085	if test $found = "no" ; then
5086		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5087			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5088		fi
5089
5090		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5091			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5092		fi
5093
5094		CFLAGS="$CFLAGS -Wpointer-arith"
5095
5096		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5097printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5098		cacheid=xorg_cv_cc_flag__Wpointer_arith
5099		if eval test \${$cacheid+y}
5100then :
5101  printf %s "(cached) " >&6
5102else $as_nop
5103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104/* end confdefs.h.  */
5105int i;
5106int
5107main (void)
5108{
5109
5110  ;
5111  return 0;
5112}
5113_ACEOF
5114if ac_fn_c_try_link "$LINENO"
5115then :
5116  eval $cacheid=yes
5117else $as_nop
5118  eval $cacheid=no
5119fi
5120rm -f core conftest.err conftest.$ac_objext conftest.beam \
5121    conftest$ac_exeext conftest.$ac_ext
5122fi
5123
5124
5125		CFLAGS="$xorg_testset_save_CFLAGS"
5126
5127		eval supported=\$$cacheid
5128		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5129printf "%s\n" "$supported" >&6; }
5130		if test "$supported" = "yes" ; then
5131			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5132			found="yes"
5133		fi
5134	fi
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150xorg_testset_save_CFLAGS="$CFLAGS"
5151
5152if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5153	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5154	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5155printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5156if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5157then :
5158  printf %s "(cached) " >&6
5159else $as_nop
5160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161/* end confdefs.h.  */
5162int i;
5163_ACEOF
5164if ac_fn_c_try_compile "$LINENO"
5165then :
5166  xorg_cv_cc_flag_unknown_warning_option=yes
5167else $as_nop
5168  xorg_cv_cc_flag_unknown_warning_option=no
5169fi
5170rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5171fi
5172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5173printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5174	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5175	CFLAGS="$xorg_testset_save_CFLAGS"
5176fi
5177
5178if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5179	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5180		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5181	fi
5182	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5183	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5184printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5185if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5186then :
5187  printf %s "(cached) " >&6
5188else $as_nop
5189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5190/* end confdefs.h.  */
5191int i;
5192_ACEOF
5193if ac_fn_c_try_compile "$LINENO"
5194then :
5195  xorg_cv_cc_flag_unused_command_line_argument=yes
5196else $as_nop
5197  xorg_cv_cc_flag_unused_command_line_argument=no
5198fi
5199rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5200fi
5201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5202printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5203	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5204	CFLAGS="$xorg_testset_save_CFLAGS"
5205fi
5206
5207found="no"
5208
5209	if test $found = "no" ; then
5210		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5211			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5212		fi
5213
5214		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5215			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5216		fi
5217
5218		CFLAGS="$CFLAGS -Wmissing-declarations"
5219
5220		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5221printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5222		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5223		if eval test \${$cacheid+y}
5224then :
5225  printf %s "(cached) " >&6
5226else $as_nop
5227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228/* end confdefs.h.  */
5229int i;
5230int
5231main (void)
5232{
5233
5234  ;
5235  return 0;
5236}
5237_ACEOF
5238if ac_fn_c_try_link "$LINENO"
5239then :
5240  eval $cacheid=yes
5241else $as_nop
5242  eval $cacheid=no
5243fi
5244rm -f core conftest.err conftest.$ac_objext conftest.beam \
5245    conftest$ac_exeext conftest.$ac_ext
5246fi
5247
5248
5249		CFLAGS="$xorg_testset_save_CFLAGS"
5250
5251		eval supported=\$$cacheid
5252		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5253printf "%s\n" "$supported" >&6; }
5254		if test "$supported" = "yes" ; then
5255			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5256			found="yes"
5257		fi
5258	fi
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274xorg_testset_save_CFLAGS="$CFLAGS"
5275
5276if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5277	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5278	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5279printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5280if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5281then :
5282  printf %s "(cached) " >&6
5283else $as_nop
5284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285/* end confdefs.h.  */
5286int i;
5287_ACEOF
5288if ac_fn_c_try_compile "$LINENO"
5289then :
5290  xorg_cv_cc_flag_unknown_warning_option=yes
5291else $as_nop
5292  xorg_cv_cc_flag_unknown_warning_option=no
5293fi
5294rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5295fi
5296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5297printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5298	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5299	CFLAGS="$xorg_testset_save_CFLAGS"
5300fi
5301
5302if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5303	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5304		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5305	fi
5306	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5307	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5308printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5309if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5310then :
5311  printf %s "(cached) " >&6
5312else $as_nop
5313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314/* end confdefs.h.  */
5315int i;
5316_ACEOF
5317if ac_fn_c_try_compile "$LINENO"
5318then :
5319  xorg_cv_cc_flag_unused_command_line_argument=yes
5320else $as_nop
5321  xorg_cv_cc_flag_unused_command_line_argument=no
5322fi
5323rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5324fi
5325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5326printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5327	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5328	CFLAGS="$xorg_testset_save_CFLAGS"
5329fi
5330
5331found="no"
5332
5333	if test $found = "no" ; then
5334		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5335			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5336		fi
5337
5338		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5339			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5340		fi
5341
5342		CFLAGS="$CFLAGS -Wformat=2"
5343
5344		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5345printf %s "checking if $CC supports -Wformat=2... " >&6; }
5346		cacheid=xorg_cv_cc_flag__Wformat_2
5347		if eval test \${$cacheid+y}
5348then :
5349  printf %s "(cached) " >&6
5350else $as_nop
5351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5352/* end confdefs.h.  */
5353int i;
5354int
5355main (void)
5356{
5357
5358  ;
5359  return 0;
5360}
5361_ACEOF
5362if ac_fn_c_try_link "$LINENO"
5363then :
5364  eval $cacheid=yes
5365else $as_nop
5366  eval $cacheid=no
5367fi
5368rm -f core conftest.err conftest.$ac_objext conftest.beam \
5369    conftest$ac_exeext conftest.$ac_ext
5370fi
5371
5372
5373		CFLAGS="$xorg_testset_save_CFLAGS"
5374
5375		eval supported=\$$cacheid
5376		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5377printf "%s\n" "$supported" >&6; }
5378		if test "$supported" = "yes" ; then
5379			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5380			found="yes"
5381		fi
5382	fi
5383
5384	if test $found = "no" ; then
5385		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5386			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5387		fi
5388
5389		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5390			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5391		fi
5392
5393		CFLAGS="$CFLAGS -Wformat"
5394
5395		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5396printf %s "checking if $CC supports -Wformat... " >&6; }
5397		cacheid=xorg_cv_cc_flag__Wformat
5398		if eval test \${$cacheid+y}
5399then :
5400  printf %s "(cached) " >&6
5401else $as_nop
5402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403/* end confdefs.h.  */
5404int i;
5405int
5406main (void)
5407{
5408
5409  ;
5410  return 0;
5411}
5412_ACEOF
5413if ac_fn_c_try_link "$LINENO"
5414then :
5415  eval $cacheid=yes
5416else $as_nop
5417  eval $cacheid=no
5418fi
5419rm -f core conftest.err conftest.$ac_objext conftest.beam \
5420    conftest$ac_exeext conftest.$ac_ext
5421fi
5422
5423
5424		CFLAGS="$xorg_testset_save_CFLAGS"
5425
5426		eval supported=\$$cacheid
5427		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5428printf "%s\n" "$supported" >&6; }
5429		if test "$supported" = "yes" ; then
5430			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5431			found="yes"
5432		fi
5433	fi
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451xorg_testset_save_CFLAGS="$CFLAGS"
5452
5453if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5454	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5455	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5456printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5457if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5458then :
5459  printf %s "(cached) " >&6
5460else $as_nop
5461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462/* end confdefs.h.  */
5463int i;
5464_ACEOF
5465if ac_fn_c_try_compile "$LINENO"
5466then :
5467  xorg_cv_cc_flag_unknown_warning_option=yes
5468else $as_nop
5469  xorg_cv_cc_flag_unknown_warning_option=no
5470fi
5471rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5472fi
5473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5474printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5475	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5476	CFLAGS="$xorg_testset_save_CFLAGS"
5477fi
5478
5479if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5480	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5481		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5482	fi
5483	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5484	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5485printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5486if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5487then :
5488  printf %s "(cached) " >&6
5489else $as_nop
5490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5491/* end confdefs.h.  */
5492int i;
5493_ACEOF
5494if ac_fn_c_try_compile "$LINENO"
5495then :
5496  xorg_cv_cc_flag_unused_command_line_argument=yes
5497else $as_nop
5498  xorg_cv_cc_flag_unused_command_line_argument=no
5499fi
5500rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5501fi
5502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5503printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5504	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5505	CFLAGS="$xorg_testset_save_CFLAGS"
5506fi
5507
5508found="no"
5509
5510	if test $found = "no" ; then
5511		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5512			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5513		fi
5514
5515		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5516			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5517		fi
5518
5519		CFLAGS="$CFLAGS -Wstrict-prototypes"
5520
5521		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5522printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5523		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5524		if eval test \${$cacheid+y}
5525then :
5526  printf %s "(cached) " >&6
5527else $as_nop
5528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529/* end confdefs.h.  */
5530int i;
5531int
5532main (void)
5533{
5534
5535  ;
5536  return 0;
5537}
5538_ACEOF
5539if ac_fn_c_try_link "$LINENO"
5540then :
5541  eval $cacheid=yes
5542else $as_nop
5543  eval $cacheid=no
5544fi
5545rm -f core conftest.err conftest.$ac_objext conftest.beam \
5546    conftest$ac_exeext conftest.$ac_ext
5547fi
5548
5549
5550		CFLAGS="$xorg_testset_save_CFLAGS"
5551
5552		eval supported=\$$cacheid
5553		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5554printf "%s\n" "$supported" >&6; }
5555		if test "$supported" = "yes" ; then
5556			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5557			found="yes"
5558		fi
5559	fi
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575xorg_testset_save_CFLAGS="$CFLAGS"
5576
5577if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5578	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5579	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5580printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5581if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5582then :
5583  printf %s "(cached) " >&6
5584else $as_nop
5585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5586/* end confdefs.h.  */
5587int i;
5588_ACEOF
5589if ac_fn_c_try_compile "$LINENO"
5590then :
5591  xorg_cv_cc_flag_unknown_warning_option=yes
5592else $as_nop
5593  xorg_cv_cc_flag_unknown_warning_option=no
5594fi
5595rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5596fi
5597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5598printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5599	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5600	CFLAGS="$xorg_testset_save_CFLAGS"
5601fi
5602
5603if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5604	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5605		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5606	fi
5607	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5608	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5609printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5610if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5611then :
5612  printf %s "(cached) " >&6
5613else $as_nop
5614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615/* end confdefs.h.  */
5616int i;
5617_ACEOF
5618if ac_fn_c_try_compile "$LINENO"
5619then :
5620  xorg_cv_cc_flag_unused_command_line_argument=yes
5621else $as_nop
5622  xorg_cv_cc_flag_unused_command_line_argument=no
5623fi
5624rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5625fi
5626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5627printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5628	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5629	CFLAGS="$xorg_testset_save_CFLAGS"
5630fi
5631
5632found="no"
5633
5634	if test $found = "no" ; then
5635		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5636			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5637		fi
5638
5639		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5640			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5641		fi
5642
5643		CFLAGS="$CFLAGS -Wmissing-prototypes"
5644
5645		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5646printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5647		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5648		if eval test \${$cacheid+y}
5649then :
5650  printf %s "(cached) " >&6
5651else $as_nop
5652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653/* end confdefs.h.  */
5654int i;
5655int
5656main (void)
5657{
5658
5659  ;
5660  return 0;
5661}
5662_ACEOF
5663if ac_fn_c_try_link "$LINENO"
5664then :
5665  eval $cacheid=yes
5666else $as_nop
5667  eval $cacheid=no
5668fi
5669rm -f core conftest.err conftest.$ac_objext conftest.beam \
5670    conftest$ac_exeext conftest.$ac_ext
5671fi
5672
5673
5674		CFLAGS="$xorg_testset_save_CFLAGS"
5675
5676		eval supported=\$$cacheid
5677		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5678printf "%s\n" "$supported" >&6; }
5679		if test "$supported" = "yes" ; then
5680			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5681			found="yes"
5682		fi
5683	fi
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699xorg_testset_save_CFLAGS="$CFLAGS"
5700
5701if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5702	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5703	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5704printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5705if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5706then :
5707  printf %s "(cached) " >&6
5708else $as_nop
5709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710/* end confdefs.h.  */
5711int i;
5712_ACEOF
5713if ac_fn_c_try_compile "$LINENO"
5714then :
5715  xorg_cv_cc_flag_unknown_warning_option=yes
5716else $as_nop
5717  xorg_cv_cc_flag_unknown_warning_option=no
5718fi
5719rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5720fi
5721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5722printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5723	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5724	CFLAGS="$xorg_testset_save_CFLAGS"
5725fi
5726
5727if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5728	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5729		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5730	fi
5731	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5732	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5733printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5734if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5735then :
5736  printf %s "(cached) " >&6
5737else $as_nop
5738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5739/* end confdefs.h.  */
5740int i;
5741_ACEOF
5742if ac_fn_c_try_compile "$LINENO"
5743then :
5744  xorg_cv_cc_flag_unused_command_line_argument=yes
5745else $as_nop
5746  xorg_cv_cc_flag_unused_command_line_argument=no
5747fi
5748rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5749fi
5750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5751printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5752	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5753	CFLAGS="$xorg_testset_save_CFLAGS"
5754fi
5755
5756found="no"
5757
5758	if test $found = "no" ; then
5759		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5760			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5761		fi
5762
5763		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5764			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5765		fi
5766
5767		CFLAGS="$CFLAGS -Wnested-externs"
5768
5769		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5770printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5771		cacheid=xorg_cv_cc_flag__Wnested_externs
5772		if eval test \${$cacheid+y}
5773then :
5774  printf %s "(cached) " >&6
5775else $as_nop
5776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777/* end confdefs.h.  */
5778int i;
5779int
5780main (void)
5781{
5782
5783  ;
5784  return 0;
5785}
5786_ACEOF
5787if ac_fn_c_try_link "$LINENO"
5788then :
5789  eval $cacheid=yes
5790else $as_nop
5791  eval $cacheid=no
5792fi
5793rm -f core conftest.err conftest.$ac_objext conftest.beam \
5794    conftest$ac_exeext conftest.$ac_ext
5795fi
5796
5797
5798		CFLAGS="$xorg_testset_save_CFLAGS"
5799
5800		eval supported=\$$cacheid
5801		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5802printf "%s\n" "$supported" >&6; }
5803		if test "$supported" = "yes" ; then
5804			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5805			found="yes"
5806		fi
5807	fi
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823xorg_testset_save_CFLAGS="$CFLAGS"
5824
5825if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5826	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5827	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5828printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5829if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5830then :
5831  printf %s "(cached) " >&6
5832else $as_nop
5833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834/* end confdefs.h.  */
5835int i;
5836_ACEOF
5837if ac_fn_c_try_compile "$LINENO"
5838then :
5839  xorg_cv_cc_flag_unknown_warning_option=yes
5840else $as_nop
5841  xorg_cv_cc_flag_unknown_warning_option=no
5842fi
5843rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5844fi
5845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5846printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5847	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5848	CFLAGS="$xorg_testset_save_CFLAGS"
5849fi
5850
5851if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5852	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5853		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5854	fi
5855	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5856	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5857printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5858if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5859then :
5860  printf %s "(cached) " >&6
5861else $as_nop
5862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863/* end confdefs.h.  */
5864int i;
5865_ACEOF
5866if ac_fn_c_try_compile "$LINENO"
5867then :
5868  xorg_cv_cc_flag_unused_command_line_argument=yes
5869else $as_nop
5870  xorg_cv_cc_flag_unused_command_line_argument=no
5871fi
5872rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5873fi
5874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5875printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5876	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5877	CFLAGS="$xorg_testset_save_CFLAGS"
5878fi
5879
5880found="no"
5881
5882	if test $found = "no" ; then
5883		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5884			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5885		fi
5886
5887		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5888			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5889		fi
5890
5891		CFLAGS="$CFLAGS -Wbad-function-cast"
5892
5893		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5894printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5895		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5896		if eval test \${$cacheid+y}
5897then :
5898  printf %s "(cached) " >&6
5899else $as_nop
5900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5901/* end confdefs.h.  */
5902int i;
5903int
5904main (void)
5905{
5906
5907  ;
5908  return 0;
5909}
5910_ACEOF
5911if ac_fn_c_try_link "$LINENO"
5912then :
5913  eval $cacheid=yes
5914else $as_nop
5915  eval $cacheid=no
5916fi
5917rm -f core conftest.err conftest.$ac_objext conftest.beam \
5918    conftest$ac_exeext conftest.$ac_ext
5919fi
5920
5921
5922		CFLAGS="$xorg_testset_save_CFLAGS"
5923
5924		eval supported=\$$cacheid
5925		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5926printf "%s\n" "$supported" >&6; }
5927		if test "$supported" = "yes" ; then
5928			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5929			found="yes"
5930		fi
5931	fi
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947xorg_testset_save_CFLAGS="$CFLAGS"
5948
5949if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5950	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5951	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5952printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5953if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5954then :
5955  printf %s "(cached) " >&6
5956else $as_nop
5957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5958/* end confdefs.h.  */
5959int i;
5960_ACEOF
5961if ac_fn_c_try_compile "$LINENO"
5962then :
5963  xorg_cv_cc_flag_unknown_warning_option=yes
5964else $as_nop
5965  xorg_cv_cc_flag_unknown_warning_option=no
5966fi
5967rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5968fi
5969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5970printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5971	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5972	CFLAGS="$xorg_testset_save_CFLAGS"
5973fi
5974
5975if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5976	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5977		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5978	fi
5979	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5980	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5981printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5982if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5983then :
5984  printf %s "(cached) " >&6
5985else $as_nop
5986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987/* end confdefs.h.  */
5988int i;
5989_ACEOF
5990if ac_fn_c_try_compile "$LINENO"
5991then :
5992  xorg_cv_cc_flag_unused_command_line_argument=yes
5993else $as_nop
5994  xorg_cv_cc_flag_unused_command_line_argument=no
5995fi
5996rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5997fi
5998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5999printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6000	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6001	CFLAGS="$xorg_testset_save_CFLAGS"
6002fi
6003
6004found="no"
6005
6006	if test $found = "no" ; then
6007		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6008			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6009		fi
6010
6011		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6012			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6013		fi
6014
6015		CFLAGS="$CFLAGS -Wold-style-definition"
6016
6017		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6018printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6019		cacheid=xorg_cv_cc_flag__Wold_style_definition
6020		if eval test \${$cacheid+y}
6021then :
6022  printf %s "(cached) " >&6
6023else $as_nop
6024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6025/* end confdefs.h.  */
6026int i;
6027int
6028main (void)
6029{
6030
6031  ;
6032  return 0;
6033}
6034_ACEOF
6035if ac_fn_c_try_link "$LINENO"
6036then :
6037  eval $cacheid=yes
6038else $as_nop
6039  eval $cacheid=no
6040fi
6041rm -f core conftest.err conftest.$ac_objext conftest.beam \
6042    conftest$ac_exeext conftest.$ac_ext
6043fi
6044
6045
6046		CFLAGS="$xorg_testset_save_CFLAGS"
6047
6048		eval supported=\$$cacheid
6049		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6050printf "%s\n" "$supported" >&6; }
6051		if test "$supported" = "yes" ; then
6052			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6053			found="yes"
6054		fi
6055	fi
6056
6057	if test $found = "no" ; then
6058		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6059			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6060		fi
6061
6062		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6063			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6064		fi
6065
6066		CFLAGS="$CFLAGS -fd"
6067
6068		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6069printf %s "checking if $CC supports -fd... " >&6; }
6070		cacheid=xorg_cv_cc_flag__fd
6071		if eval test \${$cacheid+y}
6072then :
6073  printf %s "(cached) " >&6
6074else $as_nop
6075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076/* end confdefs.h.  */
6077int i;
6078int
6079main (void)
6080{
6081
6082  ;
6083  return 0;
6084}
6085_ACEOF
6086if ac_fn_c_try_link "$LINENO"
6087then :
6088  eval $cacheid=yes
6089else $as_nop
6090  eval $cacheid=no
6091fi
6092rm -f core conftest.err conftest.$ac_objext conftest.beam \
6093    conftest$ac_exeext conftest.$ac_ext
6094fi
6095
6096
6097		CFLAGS="$xorg_testset_save_CFLAGS"
6098
6099		eval supported=\$$cacheid
6100		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6101printf "%s\n" "$supported" >&6; }
6102		if test "$supported" = "yes" ; then
6103			BASE_CFLAGS="$BASE_CFLAGS -fd"
6104			found="yes"
6105		fi
6106	fi
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122xorg_testset_save_CFLAGS="$CFLAGS"
6123
6124if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6125	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6126	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6127printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6128if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6129then :
6130  printf %s "(cached) " >&6
6131else $as_nop
6132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6133/* end confdefs.h.  */
6134int i;
6135_ACEOF
6136if ac_fn_c_try_compile "$LINENO"
6137then :
6138  xorg_cv_cc_flag_unknown_warning_option=yes
6139else $as_nop
6140  xorg_cv_cc_flag_unknown_warning_option=no
6141fi
6142rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6143fi
6144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6145printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6146	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6147	CFLAGS="$xorg_testset_save_CFLAGS"
6148fi
6149
6150if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6151	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6152		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6153	fi
6154	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6155	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6156printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6157if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6158then :
6159  printf %s "(cached) " >&6
6160else $as_nop
6161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6162/* end confdefs.h.  */
6163int i;
6164_ACEOF
6165if ac_fn_c_try_compile "$LINENO"
6166then :
6167  xorg_cv_cc_flag_unused_command_line_argument=yes
6168else $as_nop
6169  xorg_cv_cc_flag_unused_command_line_argument=no
6170fi
6171rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6172fi
6173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6174printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6175	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6176	CFLAGS="$xorg_testset_save_CFLAGS"
6177fi
6178
6179found="no"
6180
6181	if test $found = "no" ; then
6182		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6183			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6184		fi
6185
6186		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6187			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6188		fi
6189
6190		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6191
6192		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6193printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6194		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6195		if eval test \${$cacheid+y}
6196then :
6197  printf %s "(cached) " >&6
6198else $as_nop
6199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6200/* end confdefs.h.  */
6201int i;
6202int
6203main (void)
6204{
6205
6206  ;
6207  return 0;
6208}
6209_ACEOF
6210if ac_fn_c_try_link "$LINENO"
6211then :
6212  eval $cacheid=yes
6213else $as_nop
6214  eval $cacheid=no
6215fi
6216rm -f core conftest.err conftest.$ac_objext conftest.beam \
6217    conftest$ac_exeext conftest.$ac_ext
6218fi
6219
6220
6221		CFLAGS="$xorg_testset_save_CFLAGS"
6222
6223		eval supported=\$$cacheid
6224		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6225printf "%s\n" "$supported" >&6; }
6226		if test "$supported" = "yes" ; then
6227			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6228			found="yes"
6229		fi
6230	fi
6231
6232
6233
6234
6235
6236# This chunk adds additional warnings that could catch undesired effects.
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250xorg_testset_save_CFLAGS="$CFLAGS"
6251
6252if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6253	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6254	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6255printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6256if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6257then :
6258  printf %s "(cached) " >&6
6259else $as_nop
6260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261/* end confdefs.h.  */
6262int i;
6263_ACEOF
6264if ac_fn_c_try_compile "$LINENO"
6265then :
6266  xorg_cv_cc_flag_unknown_warning_option=yes
6267else $as_nop
6268  xorg_cv_cc_flag_unknown_warning_option=no
6269fi
6270rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6271fi
6272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6273printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6274	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6275	CFLAGS="$xorg_testset_save_CFLAGS"
6276fi
6277
6278if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6279	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6280		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6281	fi
6282	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6283	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6284printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6285if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6286then :
6287  printf %s "(cached) " >&6
6288else $as_nop
6289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6290/* end confdefs.h.  */
6291int i;
6292_ACEOF
6293if ac_fn_c_try_compile "$LINENO"
6294then :
6295  xorg_cv_cc_flag_unused_command_line_argument=yes
6296else $as_nop
6297  xorg_cv_cc_flag_unused_command_line_argument=no
6298fi
6299rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6300fi
6301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6302printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6303	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6304	CFLAGS="$xorg_testset_save_CFLAGS"
6305fi
6306
6307found="no"
6308
6309	if test $found = "no" ; then
6310		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6311			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6312		fi
6313
6314		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6315			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6316		fi
6317
6318		CFLAGS="$CFLAGS -Wunused"
6319
6320		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6321printf %s "checking if $CC supports -Wunused... " >&6; }
6322		cacheid=xorg_cv_cc_flag__Wunused
6323		if eval test \${$cacheid+y}
6324then :
6325  printf %s "(cached) " >&6
6326else $as_nop
6327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328/* end confdefs.h.  */
6329int i;
6330int
6331main (void)
6332{
6333
6334  ;
6335  return 0;
6336}
6337_ACEOF
6338if ac_fn_c_try_link "$LINENO"
6339then :
6340  eval $cacheid=yes
6341else $as_nop
6342  eval $cacheid=no
6343fi
6344rm -f core conftest.err conftest.$ac_objext conftest.beam \
6345    conftest$ac_exeext conftest.$ac_ext
6346fi
6347
6348
6349		CFLAGS="$xorg_testset_save_CFLAGS"
6350
6351		eval supported=\$$cacheid
6352		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6353printf "%s\n" "$supported" >&6; }
6354		if test "$supported" = "yes" ; then
6355			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6356			found="yes"
6357		fi
6358	fi
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374xorg_testset_save_CFLAGS="$CFLAGS"
6375
6376if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6377	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6378	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6379printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6380if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6381then :
6382  printf %s "(cached) " >&6
6383else $as_nop
6384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385/* end confdefs.h.  */
6386int i;
6387_ACEOF
6388if ac_fn_c_try_compile "$LINENO"
6389then :
6390  xorg_cv_cc_flag_unknown_warning_option=yes
6391else $as_nop
6392  xorg_cv_cc_flag_unknown_warning_option=no
6393fi
6394rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6395fi
6396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6397printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6398	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6399	CFLAGS="$xorg_testset_save_CFLAGS"
6400fi
6401
6402if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6403	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6404		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6405	fi
6406	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6407	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6408printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6409if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6410then :
6411  printf %s "(cached) " >&6
6412else $as_nop
6413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6414/* end confdefs.h.  */
6415int i;
6416_ACEOF
6417if ac_fn_c_try_compile "$LINENO"
6418then :
6419  xorg_cv_cc_flag_unused_command_line_argument=yes
6420else $as_nop
6421  xorg_cv_cc_flag_unused_command_line_argument=no
6422fi
6423rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6424fi
6425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6426printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6427	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6428	CFLAGS="$xorg_testset_save_CFLAGS"
6429fi
6430
6431found="no"
6432
6433	if test $found = "no" ; then
6434		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6435			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6436		fi
6437
6438		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6439			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6440		fi
6441
6442		CFLAGS="$CFLAGS -Wuninitialized"
6443
6444		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6445printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6446		cacheid=xorg_cv_cc_flag__Wuninitialized
6447		if eval test \${$cacheid+y}
6448then :
6449  printf %s "(cached) " >&6
6450else $as_nop
6451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452/* end confdefs.h.  */
6453int i;
6454int
6455main (void)
6456{
6457
6458  ;
6459  return 0;
6460}
6461_ACEOF
6462if ac_fn_c_try_link "$LINENO"
6463then :
6464  eval $cacheid=yes
6465else $as_nop
6466  eval $cacheid=no
6467fi
6468rm -f core conftest.err conftest.$ac_objext conftest.beam \
6469    conftest$ac_exeext conftest.$ac_ext
6470fi
6471
6472
6473		CFLAGS="$xorg_testset_save_CFLAGS"
6474
6475		eval supported=\$$cacheid
6476		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6477printf "%s\n" "$supported" >&6; }
6478		if test "$supported" = "yes" ; then
6479			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6480			found="yes"
6481		fi
6482	fi
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498xorg_testset_save_CFLAGS="$CFLAGS"
6499
6500if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6501	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6502	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6503printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6504if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6505then :
6506  printf %s "(cached) " >&6
6507else $as_nop
6508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509/* end confdefs.h.  */
6510int i;
6511_ACEOF
6512if ac_fn_c_try_compile "$LINENO"
6513then :
6514  xorg_cv_cc_flag_unknown_warning_option=yes
6515else $as_nop
6516  xorg_cv_cc_flag_unknown_warning_option=no
6517fi
6518rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6519fi
6520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6521printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6522	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6523	CFLAGS="$xorg_testset_save_CFLAGS"
6524fi
6525
6526if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6527	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6528		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6529	fi
6530	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6531	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6532printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6533if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6534then :
6535  printf %s "(cached) " >&6
6536else $as_nop
6537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538/* end confdefs.h.  */
6539int i;
6540_ACEOF
6541if ac_fn_c_try_compile "$LINENO"
6542then :
6543  xorg_cv_cc_flag_unused_command_line_argument=yes
6544else $as_nop
6545  xorg_cv_cc_flag_unused_command_line_argument=no
6546fi
6547rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6548fi
6549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6550printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6551	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6552	CFLAGS="$xorg_testset_save_CFLAGS"
6553fi
6554
6555found="no"
6556
6557	if test $found = "no" ; then
6558		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6559			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6560		fi
6561
6562		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6563			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6564		fi
6565
6566		CFLAGS="$CFLAGS -Wshadow"
6567
6568		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6569printf %s "checking if $CC supports -Wshadow... " >&6; }
6570		cacheid=xorg_cv_cc_flag__Wshadow
6571		if eval test \${$cacheid+y}
6572then :
6573  printf %s "(cached) " >&6
6574else $as_nop
6575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6576/* end confdefs.h.  */
6577int i;
6578int
6579main (void)
6580{
6581
6582  ;
6583  return 0;
6584}
6585_ACEOF
6586if ac_fn_c_try_link "$LINENO"
6587then :
6588  eval $cacheid=yes
6589else $as_nop
6590  eval $cacheid=no
6591fi
6592rm -f core conftest.err conftest.$ac_objext conftest.beam \
6593    conftest$ac_exeext conftest.$ac_ext
6594fi
6595
6596
6597		CFLAGS="$xorg_testset_save_CFLAGS"
6598
6599		eval supported=\$$cacheid
6600		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6601printf "%s\n" "$supported" >&6; }
6602		if test "$supported" = "yes" ; then
6603			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6604			found="yes"
6605		fi
6606	fi
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622xorg_testset_save_CFLAGS="$CFLAGS"
6623
6624if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6625	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6626	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6627printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6628if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6629then :
6630  printf %s "(cached) " >&6
6631else $as_nop
6632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6633/* end confdefs.h.  */
6634int i;
6635_ACEOF
6636if ac_fn_c_try_compile "$LINENO"
6637then :
6638  xorg_cv_cc_flag_unknown_warning_option=yes
6639else $as_nop
6640  xorg_cv_cc_flag_unknown_warning_option=no
6641fi
6642rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6643fi
6644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6645printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6646	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6647	CFLAGS="$xorg_testset_save_CFLAGS"
6648fi
6649
6650if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6651	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6652		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6653	fi
6654	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6655	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6656printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6657if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6658then :
6659  printf %s "(cached) " >&6
6660else $as_nop
6661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6662/* end confdefs.h.  */
6663int i;
6664_ACEOF
6665if ac_fn_c_try_compile "$LINENO"
6666then :
6667  xorg_cv_cc_flag_unused_command_line_argument=yes
6668else $as_nop
6669  xorg_cv_cc_flag_unused_command_line_argument=no
6670fi
6671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6672fi
6673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6674printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6675	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6676	CFLAGS="$xorg_testset_save_CFLAGS"
6677fi
6678
6679found="no"
6680
6681	if test $found = "no" ; then
6682		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6683			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6684		fi
6685
6686		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6687			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6688		fi
6689
6690		CFLAGS="$CFLAGS -Wmissing-noreturn"
6691
6692		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6693printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6694		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6695		if eval test \${$cacheid+y}
6696then :
6697  printf %s "(cached) " >&6
6698else $as_nop
6699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6700/* end confdefs.h.  */
6701int i;
6702int
6703main (void)
6704{
6705
6706  ;
6707  return 0;
6708}
6709_ACEOF
6710if ac_fn_c_try_link "$LINENO"
6711then :
6712  eval $cacheid=yes
6713else $as_nop
6714  eval $cacheid=no
6715fi
6716rm -f core conftest.err conftest.$ac_objext conftest.beam \
6717    conftest$ac_exeext conftest.$ac_ext
6718fi
6719
6720
6721		CFLAGS="$xorg_testset_save_CFLAGS"
6722
6723		eval supported=\$$cacheid
6724		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6725printf "%s\n" "$supported" >&6; }
6726		if test "$supported" = "yes" ; then
6727			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6728			found="yes"
6729		fi
6730	fi
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746xorg_testset_save_CFLAGS="$CFLAGS"
6747
6748if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6749	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6750	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6751printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6752if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6753then :
6754  printf %s "(cached) " >&6
6755else $as_nop
6756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6757/* end confdefs.h.  */
6758int i;
6759_ACEOF
6760if ac_fn_c_try_compile "$LINENO"
6761then :
6762  xorg_cv_cc_flag_unknown_warning_option=yes
6763else $as_nop
6764  xorg_cv_cc_flag_unknown_warning_option=no
6765fi
6766rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6767fi
6768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6769printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6770	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6771	CFLAGS="$xorg_testset_save_CFLAGS"
6772fi
6773
6774if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6775	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6776		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6777	fi
6778	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6779	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6780printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6781if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6782then :
6783  printf %s "(cached) " >&6
6784else $as_nop
6785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6786/* end confdefs.h.  */
6787int i;
6788_ACEOF
6789if ac_fn_c_try_compile "$LINENO"
6790then :
6791  xorg_cv_cc_flag_unused_command_line_argument=yes
6792else $as_nop
6793  xorg_cv_cc_flag_unused_command_line_argument=no
6794fi
6795rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6796fi
6797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6798printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6799	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6800	CFLAGS="$xorg_testset_save_CFLAGS"
6801fi
6802
6803found="no"
6804
6805	if test $found = "no" ; then
6806		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6807			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6808		fi
6809
6810		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6811			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6812		fi
6813
6814		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6815
6816		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6817printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6818		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6819		if eval test \${$cacheid+y}
6820then :
6821  printf %s "(cached) " >&6
6822else $as_nop
6823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824/* end confdefs.h.  */
6825int i;
6826int
6827main (void)
6828{
6829
6830  ;
6831  return 0;
6832}
6833_ACEOF
6834if ac_fn_c_try_link "$LINENO"
6835then :
6836  eval $cacheid=yes
6837else $as_nop
6838  eval $cacheid=no
6839fi
6840rm -f core conftest.err conftest.$ac_objext conftest.beam \
6841    conftest$ac_exeext conftest.$ac_ext
6842fi
6843
6844
6845		CFLAGS="$xorg_testset_save_CFLAGS"
6846
6847		eval supported=\$$cacheid
6848		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6849printf "%s\n" "$supported" >&6; }
6850		if test "$supported" = "yes" ; then
6851			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6852			found="yes"
6853		fi
6854	fi
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870xorg_testset_save_CFLAGS="$CFLAGS"
6871
6872if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6873	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6874	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6875printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6876if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6877then :
6878  printf %s "(cached) " >&6
6879else $as_nop
6880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881/* end confdefs.h.  */
6882int i;
6883_ACEOF
6884if ac_fn_c_try_compile "$LINENO"
6885then :
6886  xorg_cv_cc_flag_unknown_warning_option=yes
6887else $as_nop
6888  xorg_cv_cc_flag_unknown_warning_option=no
6889fi
6890rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6891fi
6892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6893printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6894	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6895	CFLAGS="$xorg_testset_save_CFLAGS"
6896fi
6897
6898if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6899	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6900		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6901	fi
6902	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6903	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6904printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6905if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6906then :
6907  printf %s "(cached) " >&6
6908else $as_nop
6909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6910/* end confdefs.h.  */
6911int i;
6912_ACEOF
6913if ac_fn_c_try_compile "$LINENO"
6914then :
6915  xorg_cv_cc_flag_unused_command_line_argument=yes
6916else $as_nop
6917  xorg_cv_cc_flag_unused_command_line_argument=no
6918fi
6919rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6920fi
6921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6922printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6923	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6924	CFLAGS="$xorg_testset_save_CFLAGS"
6925fi
6926
6927found="no"
6928
6929	if test $found = "no" ; then
6930		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6931			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6932		fi
6933
6934		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6935			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6936		fi
6937
6938		CFLAGS="$CFLAGS -Wredundant-decls"
6939
6940		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6941printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6942		cacheid=xorg_cv_cc_flag__Wredundant_decls
6943		if eval test \${$cacheid+y}
6944then :
6945  printf %s "(cached) " >&6
6946else $as_nop
6947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948/* end confdefs.h.  */
6949int i;
6950int
6951main (void)
6952{
6953
6954  ;
6955  return 0;
6956}
6957_ACEOF
6958if ac_fn_c_try_link "$LINENO"
6959then :
6960  eval $cacheid=yes
6961else $as_nop
6962  eval $cacheid=no
6963fi
6964rm -f core conftest.err conftest.$ac_objext conftest.beam \
6965    conftest$ac_exeext conftest.$ac_ext
6966fi
6967
6968
6969		CFLAGS="$xorg_testset_save_CFLAGS"
6970
6971		eval supported=\$$cacheid
6972		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6973printf "%s\n" "$supported" >&6; }
6974		if test "$supported" = "yes" ; then
6975			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6976			found="yes"
6977		fi
6978	fi
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994xorg_testset_save_CFLAGS="$CFLAGS"
6995
6996if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6997	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6998	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6999printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7000if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7001then :
7002  printf %s "(cached) " >&6
7003else $as_nop
7004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005/* end confdefs.h.  */
7006int i;
7007_ACEOF
7008if ac_fn_c_try_compile "$LINENO"
7009then :
7010  xorg_cv_cc_flag_unknown_warning_option=yes
7011else $as_nop
7012  xorg_cv_cc_flag_unknown_warning_option=no
7013fi
7014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7015fi
7016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7017printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7018	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7019	CFLAGS="$xorg_testset_save_CFLAGS"
7020fi
7021
7022if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7023	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7024		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7025	fi
7026	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7027	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7028printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7029if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7030then :
7031  printf %s "(cached) " >&6
7032else $as_nop
7033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034/* end confdefs.h.  */
7035int i;
7036_ACEOF
7037if ac_fn_c_try_compile "$LINENO"
7038then :
7039  xorg_cv_cc_flag_unused_command_line_argument=yes
7040else $as_nop
7041  xorg_cv_cc_flag_unused_command_line_argument=no
7042fi
7043rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7044fi
7045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7046printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7047	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7048	CFLAGS="$xorg_testset_save_CFLAGS"
7049fi
7050
7051found="no"
7052
7053	if test $found = "no" ; then
7054		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7055			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7056		fi
7057
7058		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7059			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7060		fi
7061
7062		CFLAGS="$CFLAGS -Wlogical-op"
7063
7064		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7065printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7066		cacheid=xorg_cv_cc_flag__Wlogical_op
7067		if eval test \${$cacheid+y}
7068then :
7069  printf %s "(cached) " >&6
7070else $as_nop
7071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7072/* end confdefs.h.  */
7073int i;
7074int
7075main (void)
7076{
7077
7078  ;
7079  return 0;
7080}
7081_ACEOF
7082if ac_fn_c_try_link "$LINENO"
7083then :
7084  eval $cacheid=yes
7085else $as_nop
7086  eval $cacheid=no
7087fi
7088rm -f core conftest.err conftest.$ac_objext conftest.beam \
7089    conftest$ac_exeext conftest.$ac_ext
7090fi
7091
7092
7093		CFLAGS="$xorg_testset_save_CFLAGS"
7094
7095		eval supported=\$$cacheid
7096		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7097printf "%s\n" "$supported" >&6; }
7098		if test "$supported" = "yes" ; then
7099			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7100			found="yes"
7101		fi
7102	fi
7103
7104
7105
7106# These are currently disabled because they are noisy.  They will be enabled
7107# in the future once the codebase is sufficiently modernized to silence
7108# them.  For now, I don't want them to drown out the other warnings.
7109# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7110# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7111# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7112
7113# Turn some warnings into errors, so we don't accidentally get successful builds
7114# when there are problems that should be fixed.
7115
7116if test "x$SELECTIVE_WERROR" = "xyes" ; then
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130xorg_testset_save_CFLAGS="$CFLAGS"
7131
7132if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7133	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7134	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7135printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7136if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7137then :
7138  printf %s "(cached) " >&6
7139else $as_nop
7140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7141/* end confdefs.h.  */
7142int i;
7143_ACEOF
7144if ac_fn_c_try_compile "$LINENO"
7145then :
7146  xorg_cv_cc_flag_unknown_warning_option=yes
7147else $as_nop
7148  xorg_cv_cc_flag_unknown_warning_option=no
7149fi
7150rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7151fi
7152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7153printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7154	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7155	CFLAGS="$xorg_testset_save_CFLAGS"
7156fi
7157
7158if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7159	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7160		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7161	fi
7162	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7163	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7164printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7165if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7166then :
7167  printf %s "(cached) " >&6
7168else $as_nop
7169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7170/* end confdefs.h.  */
7171int i;
7172_ACEOF
7173if ac_fn_c_try_compile "$LINENO"
7174then :
7175  xorg_cv_cc_flag_unused_command_line_argument=yes
7176else $as_nop
7177  xorg_cv_cc_flag_unused_command_line_argument=no
7178fi
7179rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7180fi
7181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7182printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7183	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7184	CFLAGS="$xorg_testset_save_CFLAGS"
7185fi
7186
7187found="no"
7188
7189	if test $found = "no" ; then
7190		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7191			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7192		fi
7193
7194		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7195			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7196		fi
7197
7198		CFLAGS="$CFLAGS -Werror=implicit"
7199
7200		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7201printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7202		cacheid=xorg_cv_cc_flag__Werror_implicit
7203		if eval test \${$cacheid+y}
7204then :
7205  printf %s "(cached) " >&6
7206else $as_nop
7207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208/* end confdefs.h.  */
7209int i;
7210int
7211main (void)
7212{
7213
7214  ;
7215  return 0;
7216}
7217_ACEOF
7218if ac_fn_c_try_link "$LINENO"
7219then :
7220  eval $cacheid=yes
7221else $as_nop
7222  eval $cacheid=no
7223fi
7224rm -f core conftest.err conftest.$ac_objext conftest.beam \
7225    conftest$ac_exeext conftest.$ac_ext
7226fi
7227
7228
7229		CFLAGS="$xorg_testset_save_CFLAGS"
7230
7231		eval supported=\$$cacheid
7232		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7233printf "%s\n" "$supported" >&6; }
7234		if test "$supported" = "yes" ; then
7235			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7236			found="yes"
7237		fi
7238	fi
7239
7240	if test $found = "no" ; then
7241		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7242			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7243		fi
7244
7245		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7246			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7247		fi
7248
7249		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7250
7251		{ 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
7252printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7253		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7254		if eval test \${$cacheid+y}
7255then :
7256  printf %s "(cached) " >&6
7257else $as_nop
7258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7259/* end confdefs.h.  */
7260int i;
7261int
7262main (void)
7263{
7264
7265  ;
7266  return 0;
7267}
7268_ACEOF
7269if ac_fn_c_try_link "$LINENO"
7270then :
7271  eval $cacheid=yes
7272else $as_nop
7273  eval $cacheid=no
7274fi
7275rm -f core conftest.err conftest.$ac_objext conftest.beam \
7276    conftest$ac_exeext conftest.$ac_ext
7277fi
7278
7279
7280		CFLAGS="$xorg_testset_save_CFLAGS"
7281
7282		eval supported=\$$cacheid
7283		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7284printf "%s\n" "$supported" >&6; }
7285		if test "$supported" = "yes" ; then
7286			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7287			found="yes"
7288		fi
7289	fi
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305xorg_testset_save_CFLAGS="$CFLAGS"
7306
7307if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7308	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7309	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7310printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7311if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7312then :
7313  printf %s "(cached) " >&6
7314else $as_nop
7315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7316/* end confdefs.h.  */
7317int i;
7318_ACEOF
7319if ac_fn_c_try_compile "$LINENO"
7320then :
7321  xorg_cv_cc_flag_unknown_warning_option=yes
7322else $as_nop
7323  xorg_cv_cc_flag_unknown_warning_option=no
7324fi
7325rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7326fi
7327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7328printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7329	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7330	CFLAGS="$xorg_testset_save_CFLAGS"
7331fi
7332
7333if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7334	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7335		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7336	fi
7337	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7338	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7339printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7340if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7341then :
7342  printf %s "(cached) " >&6
7343else $as_nop
7344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7345/* end confdefs.h.  */
7346int i;
7347_ACEOF
7348if ac_fn_c_try_compile "$LINENO"
7349then :
7350  xorg_cv_cc_flag_unused_command_line_argument=yes
7351else $as_nop
7352  xorg_cv_cc_flag_unused_command_line_argument=no
7353fi
7354rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7355fi
7356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7357printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7358	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7359	CFLAGS="$xorg_testset_save_CFLAGS"
7360fi
7361
7362found="no"
7363
7364	if test $found = "no" ; then
7365		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7366			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7367		fi
7368
7369		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7370			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7371		fi
7372
7373		CFLAGS="$CFLAGS -Werror=nonnull"
7374
7375		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7376printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7377		cacheid=xorg_cv_cc_flag__Werror_nonnull
7378		if eval test \${$cacheid+y}
7379then :
7380  printf %s "(cached) " >&6
7381else $as_nop
7382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7383/* end confdefs.h.  */
7384int i;
7385int
7386main (void)
7387{
7388
7389  ;
7390  return 0;
7391}
7392_ACEOF
7393if ac_fn_c_try_link "$LINENO"
7394then :
7395  eval $cacheid=yes
7396else $as_nop
7397  eval $cacheid=no
7398fi
7399rm -f core conftest.err conftest.$ac_objext conftest.beam \
7400    conftest$ac_exeext conftest.$ac_ext
7401fi
7402
7403
7404		CFLAGS="$xorg_testset_save_CFLAGS"
7405
7406		eval supported=\$$cacheid
7407		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7408printf "%s\n" "$supported" >&6; }
7409		if test "$supported" = "yes" ; then
7410			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7411			found="yes"
7412		fi
7413	fi
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429xorg_testset_save_CFLAGS="$CFLAGS"
7430
7431if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7432	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7433	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7434printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7435if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7436then :
7437  printf %s "(cached) " >&6
7438else $as_nop
7439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7440/* end confdefs.h.  */
7441int i;
7442_ACEOF
7443if ac_fn_c_try_compile "$LINENO"
7444then :
7445  xorg_cv_cc_flag_unknown_warning_option=yes
7446else $as_nop
7447  xorg_cv_cc_flag_unknown_warning_option=no
7448fi
7449rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7450fi
7451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7452printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7453	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7454	CFLAGS="$xorg_testset_save_CFLAGS"
7455fi
7456
7457if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7458	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7459		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7460	fi
7461	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7462	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7463printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7464if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7465then :
7466  printf %s "(cached) " >&6
7467else $as_nop
7468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7469/* end confdefs.h.  */
7470int i;
7471_ACEOF
7472if ac_fn_c_try_compile "$LINENO"
7473then :
7474  xorg_cv_cc_flag_unused_command_line_argument=yes
7475else $as_nop
7476  xorg_cv_cc_flag_unused_command_line_argument=no
7477fi
7478rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7479fi
7480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7481printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7482	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7483	CFLAGS="$xorg_testset_save_CFLAGS"
7484fi
7485
7486found="no"
7487
7488	if test $found = "no" ; then
7489		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7490			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7491		fi
7492
7493		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7494			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7495		fi
7496
7497		CFLAGS="$CFLAGS -Werror=init-self"
7498
7499		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7500printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7501		cacheid=xorg_cv_cc_flag__Werror_init_self
7502		if eval test \${$cacheid+y}
7503then :
7504  printf %s "(cached) " >&6
7505else $as_nop
7506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507/* end confdefs.h.  */
7508int i;
7509int
7510main (void)
7511{
7512
7513  ;
7514  return 0;
7515}
7516_ACEOF
7517if ac_fn_c_try_link "$LINENO"
7518then :
7519  eval $cacheid=yes
7520else $as_nop
7521  eval $cacheid=no
7522fi
7523rm -f core conftest.err conftest.$ac_objext conftest.beam \
7524    conftest$ac_exeext conftest.$ac_ext
7525fi
7526
7527
7528		CFLAGS="$xorg_testset_save_CFLAGS"
7529
7530		eval supported=\$$cacheid
7531		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7532printf "%s\n" "$supported" >&6; }
7533		if test "$supported" = "yes" ; then
7534			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7535			found="yes"
7536		fi
7537	fi
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553xorg_testset_save_CFLAGS="$CFLAGS"
7554
7555if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7556	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7557	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7558printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7559if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7560then :
7561  printf %s "(cached) " >&6
7562else $as_nop
7563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7564/* end confdefs.h.  */
7565int i;
7566_ACEOF
7567if ac_fn_c_try_compile "$LINENO"
7568then :
7569  xorg_cv_cc_flag_unknown_warning_option=yes
7570else $as_nop
7571  xorg_cv_cc_flag_unknown_warning_option=no
7572fi
7573rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7574fi
7575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7576printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7577	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7578	CFLAGS="$xorg_testset_save_CFLAGS"
7579fi
7580
7581if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7582	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7583		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7584	fi
7585	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7586	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7587printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7588if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7589then :
7590  printf %s "(cached) " >&6
7591else $as_nop
7592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593/* end confdefs.h.  */
7594int i;
7595_ACEOF
7596if ac_fn_c_try_compile "$LINENO"
7597then :
7598  xorg_cv_cc_flag_unused_command_line_argument=yes
7599else $as_nop
7600  xorg_cv_cc_flag_unused_command_line_argument=no
7601fi
7602rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7603fi
7604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7605printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7606	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7607	CFLAGS="$xorg_testset_save_CFLAGS"
7608fi
7609
7610found="no"
7611
7612	if test $found = "no" ; then
7613		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7614			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7615		fi
7616
7617		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7618			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7619		fi
7620
7621		CFLAGS="$CFLAGS -Werror=main"
7622
7623		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7624printf %s "checking if $CC supports -Werror=main... " >&6; }
7625		cacheid=xorg_cv_cc_flag__Werror_main
7626		if eval test \${$cacheid+y}
7627then :
7628  printf %s "(cached) " >&6
7629else $as_nop
7630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7631/* end confdefs.h.  */
7632int i;
7633int
7634main (void)
7635{
7636
7637  ;
7638  return 0;
7639}
7640_ACEOF
7641if ac_fn_c_try_link "$LINENO"
7642then :
7643  eval $cacheid=yes
7644else $as_nop
7645  eval $cacheid=no
7646fi
7647rm -f core conftest.err conftest.$ac_objext conftest.beam \
7648    conftest$ac_exeext conftest.$ac_ext
7649fi
7650
7651
7652		CFLAGS="$xorg_testset_save_CFLAGS"
7653
7654		eval supported=\$$cacheid
7655		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7656printf "%s\n" "$supported" >&6; }
7657		if test "$supported" = "yes" ; then
7658			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7659			found="yes"
7660		fi
7661	fi
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677xorg_testset_save_CFLAGS="$CFLAGS"
7678
7679if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7680	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7681	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7682printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7683if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7684then :
7685  printf %s "(cached) " >&6
7686else $as_nop
7687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7688/* end confdefs.h.  */
7689int i;
7690_ACEOF
7691if ac_fn_c_try_compile "$LINENO"
7692then :
7693  xorg_cv_cc_flag_unknown_warning_option=yes
7694else $as_nop
7695  xorg_cv_cc_flag_unknown_warning_option=no
7696fi
7697rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7698fi
7699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7700printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7701	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7702	CFLAGS="$xorg_testset_save_CFLAGS"
7703fi
7704
7705if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7706	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7707		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7708	fi
7709	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7710	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7711printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7712if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7713then :
7714  printf %s "(cached) " >&6
7715else $as_nop
7716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717/* end confdefs.h.  */
7718int i;
7719_ACEOF
7720if ac_fn_c_try_compile "$LINENO"
7721then :
7722  xorg_cv_cc_flag_unused_command_line_argument=yes
7723else $as_nop
7724  xorg_cv_cc_flag_unused_command_line_argument=no
7725fi
7726rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7727fi
7728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7729printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7730	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7731	CFLAGS="$xorg_testset_save_CFLAGS"
7732fi
7733
7734found="no"
7735
7736	if test $found = "no" ; then
7737		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7738			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7739		fi
7740
7741		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7742			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7743		fi
7744
7745		CFLAGS="$CFLAGS -Werror=missing-braces"
7746
7747		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7748printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7749		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7750		if eval test \${$cacheid+y}
7751then :
7752  printf %s "(cached) " >&6
7753else $as_nop
7754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755/* end confdefs.h.  */
7756int i;
7757int
7758main (void)
7759{
7760
7761  ;
7762  return 0;
7763}
7764_ACEOF
7765if ac_fn_c_try_link "$LINENO"
7766then :
7767  eval $cacheid=yes
7768else $as_nop
7769  eval $cacheid=no
7770fi
7771rm -f core conftest.err conftest.$ac_objext conftest.beam \
7772    conftest$ac_exeext conftest.$ac_ext
7773fi
7774
7775
7776		CFLAGS="$xorg_testset_save_CFLAGS"
7777
7778		eval supported=\$$cacheid
7779		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7780printf "%s\n" "$supported" >&6; }
7781		if test "$supported" = "yes" ; then
7782			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7783			found="yes"
7784		fi
7785	fi
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801xorg_testset_save_CFLAGS="$CFLAGS"
7802
7803if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7804	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7805	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7806printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7807if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7808then :
7809  printf %s "(cached) " >&6
7810else $as_nop
7811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812/* end confdefs.h.  */
7813int i;
7814_ACEOF
7815if ac_fn_c_try_compile "$LINENO"
7816then :
7817  xorg_cv_cc_flag_unknown_warning_option=yes
7818else $as_nop
7819  xorg_cv_cc_flag_unknown_warning_option=no
7820fi
7821rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7822fi
7823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7824printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7825	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7826	CFLAGS="$xorg_testset_save_CFLAGS"
7827fi
7828
7829if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7830	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7831		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7832	fi
7833	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7834	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7835printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7836if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7837then :
7838  printf %s "(cached) " >&6
7839else $as_nop
7840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7841/* end confdefs.h.  */
7842int i;
7843_ACEOF
7844if ac_fn_c_try_compile "$LINENO"
7845then :
7846  xorg_cv_cc_flag_unused_command_line_argument=yes
7847else $as_nop
7848  xorg_cv_cc_flag_unused_command_line_argument=no
7849fi
7850rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7851fi
7852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7853printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7854	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7855	CFLAGS="$xorg_testset_save_CFLAGS"
7856fi
7857
7858found="no"
7859
7860	if test $found = "no" ; then
7861		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7862			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7863		fi
7864
7865		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7866			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7867		fi
7868
7869		CFLAGS="$CFLAGS -Werror=sequence-point"
7870
7871		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7872printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7873		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7874		if eval test \${$cacheid+y}
7875then :
7876  printf %s "(cached) " >&6
7877else $as_nop
7878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7879/* end confdefs.h.  */
7880int i;
7881int
7882main (void)
7883{
7884
7885  ;
7886  return 0;
7887}
7888_ACEOF
7889if ac_fn_c_try_link "$LINENO"
7890then :
7891  eval $cacheid=yes
7892else $as_nop
7893  eval $cacheid=no
7894fi
7895rm -f core conftest.err conftest.$ac_objext conftest.beam \
7896    conftest$ac_exeext conftest.$ac_ext
7897fi
7898
7899
7900		CFLAGS="$xorg_testset_save_CFLAGS"
7901
7902		eval supported=\$$cacheid
7903		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7904printf "%s\n" "$supported" >&6; }
7905		if test "$supported" = "yes" ; then
7906			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7907			found="yes"
7908		fi
7909	fi
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925xorg_testset_save_CFLAGS="$CFLAGS"
7926
7927if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7928	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7929	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7930printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7931if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7932then :
7933  printf %s "(cached) " >&6
7934else $as_nop
7935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936/* end confdefs.h.  */
7937int i;
7938_ACEOF
7939if ac_fn_c_try_compile "$LINENO"
7940then :
7941  xorg_cv_cc_flag_unknown_warning_option=yes
7942else $as_nop
7943  xorg_cv_cc_flag_unknown_warning_option=no
7944fi
7945rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7946fi
7947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7948printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7949	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7950	CFLAGS="$xorg_testset_save_CFLAGS"
7951fi
7952
7953if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7954	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7955		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7956	fi
7957	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7958	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7959printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7960if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7961then :
7962  printf %s "(cached) " >&6
7963else $as_nop
7964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965/* end confdefs.h.  */
7966int i;
7967_ACEOF
7968if ac_fn_c_try_compile "$LINENO"
7969then :
7970  xorg_cv_cc_flag_unused_command_line_argument=yes
7971else $as_nop
7972  xorg_cv_cc_flag_unused_command_line_argument=no
7973fi
7974rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7975fi
7976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7977printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7978	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7979	CFLAGS="$xorg_testset_save_CFLAGS"
7980fi
7981
7982found="no"
7983
7984	if test $found = "no" ; then
7985		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7986			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7987		fi
7988
7989		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7990			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7991		fi
7992
7993		CFLAGS="$CFLAGS -Werror=return-type"
7994
7995		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7996printf %s "checking if $CC supports -Werror=return-type... " >&6; }
7997		cacheid=xorg_cv_cc_flag__Werror_return_type
7998		if eval test \${$cacheid+y}
7999then :
8000  printf %s "(cached) " >&6
8001else $as_nop
8002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8003/* end confdefs.h.  */
8004int i;
8005int
8006main (void)
8007{
8008
8009  ;
8010  return 0;
8011}
8012_ACEOF
8013if ac_fn_c_try_link "$LINENO"
8014then :
8015  eval $cacheid=yes
8016else $as_nop
8017  eval $cacheid=no
8018fi
8019rm -f core conftest.err conftest.$ac_objext conftest.beam \
8020    conftest$ac_exeext conftest.$ac_ext
8021fi
8022
8023
8024		CFLAGS="$xorg_testset_save_CFLAGS"
8025
8026		eval supported=\$$cacheid
8027		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8028printf "%s\n" "$supported" >&6; }
8029		if test "$supported" = "yes" ; then
8030			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8031			found="yes"
8032		fi
8033	fi
8034
8035	if test $found = "no" ; then
8036		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8037			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8038		fi
8039
8040		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8041			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8042		fi
8043
8044		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8045
8046		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8047printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8048		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8049		if eval test \${$cacheid+y}
8050then :
8051  printf %s "(cached) " >&6
8052else $as_nop
8053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8054/* end confdefs.h.  */
8055int i;
8056int
8057main (void)
8058{
8059
8060  ;
8061  return 0;
8062}
8063_ACEOF
8064if ac_fn_c_try_link "$LINENO"
8065then :
8066  eval $cacheid=yes
8067else $as_nop
8068  eval $cacheid=no
8069fi
8070rm -f core conftest.err conftest.$ac_objext conftest.beam \
8071    conftest$ac_exeext conftest.$ac_ext
8072fi
8073
8074
8075		CFLAGS="$xorg_testset_save_CFLAGS"
8076
8077		eval supported=\$$cacheid
8078		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8079printf "%s\n" "$supported" >&6; }
8080		if test "$supported" = "yes" ; then
8081			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8082			found="yes"
8083		fi
8084	fi
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100xorg_testset_save_CFLAGS="$CFLAGS"
8101
8102if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8103	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8104	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8105printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8106if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8107then :
8108  printf %s "(cached) " >&6
8109else $as_nop
8110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111/* end confdefs.h.  */
8112int i;
8113_ACEOF
8114if ac_fn_c_try_compile "$LINENO"
8115then :
8116  xorg_cv_cc_flag_unknown_warning_option=yes
8117else $as_nop
8118  xorg_cv_cc_flag_unknown_warning_option=no
8119fi
8120rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8121fi
8122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8123printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8124	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8125	CFLAGS="$xorg_testset_save_CFLAGS"
8126fi
8127
8128if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8129	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8130		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8131	fi
8132	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8133	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8134printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8135if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8136then :
8137  printf %s "(cached) " >&6
8138else $as_nop
8139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8140/* end confdefs.h.  */
8141int i;
8142_ACEOF
8143if ac_fn_c_try_compile "$LINENO"
8144then :
8145  xorg_cv_cc_flag_unused_command_line_argument=yes
8146else $as_nop
8147  xorg_cv_cc_flag_unused_command_line_argument=no
8148fi
8149rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8150fi
8151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8152printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8153	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8154	CFLAGS="$xorg_testset_save_CFLAGS"
8155fi
8156
8157found="no"
8158
8159	if test $found = "no" ; then
8160		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8161			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8162		fi
8163
8164		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8165			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8166		fi
8167
8168		CFLAGS="$CFLAGS -Werror=trigraphs"
8169
8170		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8171printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8172		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8173		if eval test \${$cacheid+y}
8174then :
8175  printf %s "(cached) " >&6
8176else $as_nop
8177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178/* end confdefs.h.  */
8179int i;
8180int
8181main (void)
8182{
8183
8184  ;
8185  return 0;
8186}
8187_ACEOF
8188if ac_fn_c_try_link "$LINENO"
8189then :
8190  eval $cacheid=yes
8191else $as_nop
8192  eval $cacheid=no
8193fi
8194rm -f core conftest.err conftest.$ac_objext conftest.beam \
8195    conftest$ac_exeext conftest.$ac_ext
8196fi
8197
8198
8199		CFLAGS="$xorg_testset_save_CFLAGS"
8200
8201		eval supported=\$$cacheid
8202		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8203printf "%s\n" "$supported" >&6; }
8204		if test "$supported" = "yes" ; then
8205			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8206			found="yes"
8207		fi
8208	fi
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224xorg_testset_save_CFLAGS="$CFLAGS"
8225
8226if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8227	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8228	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8229printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8230if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8231then :
8232  printf %s "(cached) " >&6
8233else $as_nop
8234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235/* end confdefs.h.  */
8236int i;
8237_ACEOF
8238if ac_fn_c_try_compile "$LINENO"
8239then :
8240  xorg_cv_cc_flag_unknown_warning_option=yes
8241else $as_nop
8242  xorg_cv_cc_flag_unknown_warning_option=no
8243fi
8244rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8245fi
8246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8247printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8248	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8249	CFLAGS="$xorg_testset_save_CFLAGS"
8250fi
8251
8252if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8253	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8254		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8255	fi
8256	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8257	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8258printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8259if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8260then :
8261  printf %s "(cached) " >&6
8262else $as_nop
8263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8264/* end confdefs.h.  */
8265int i;
8266_ACEOF
8267if ac_fn_c_try_compile "$LINENO"
8268then :
8269  xorg_cv_cc_flag_unused_command_line_argument=yes
8270else $as_nop
8271  xorg_cv_cc_flag_unused_command_line_argument=no
8272fi
8273rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8274fi
8275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8276printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8277	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8278	CFLAGS="$xorg_testset_save_CFLAGS"
8279fi
8280
8281found="no"
8282
8283	if test $found = "no" ; then
8284		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8285			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8286		fi
8287
8288		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8289			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8290		fi
8291
8292		CFLAGS="$CFLAGS -Werror=array-bounds"
8293
8294		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8295printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8296		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8297		if eval test \${$cacheid+y}
8298then :
8299  printf %s "(cached) " >&6
8300else $as_nop
8301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8302/* end confdefs.h.  */
8303int i;
8304int
8305main (void)
8306{
8307
8308  ;
8309  return 0;
8310}
8311_ACEOF
8312if ac_fn_c_try_link "$LINENO"
8313then :
8314  eval $cacheid=yes
8315else $as_nop
8316  eval $cacheid=no
8317fi
8318rm -f core conftest.err conftest.$ac_objext conftest.beam \
8319    conftest$ac_exeext conftest.$ac_ext
8320fi
8321
8322
8323		CFLAGS="$xorg_testset_save_CFLAGS"
8324
8325		eval supported=\$$cacheid
8326		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8327printf "%s\n" "$supported" >&6; }
8328		if test "$supported" = "yes" ; then
8329			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8330			found="yes"
8331		fi
8332	fi
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348xorg_testset_save_CFLAGS="$CFLAGS"
8349
8350if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8351	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8352	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8353printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8354if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8355then :
8356  printf %s "(cached) " >&6
8357else $as_nop
8358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8359/* end confdefs.h.  */
8360int i;
8361_ACEOF
8362if ac_fn_c_try_compile "$LINENO"
8363then :
8364  xorg_cv_cc_flag_unknown_warning_option=yes
8365else $as_nop
8366  xorg_cv_cc_flag_unknown_warning_option=no
8367fi
8368rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8369fi
8370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8371printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8372	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8373	CFLAGS="$xorg_testset_save_CFLAGS"
8374fi
8375
8376if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8377	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8378		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8379	fi
8380	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8381	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8382printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8383if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8384then :
8385  printf %s "(cached) " >&6
8386else $as_nop
8387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8388/* end confdefs.h.  */
8389int i;
8390_ACEOF
8391if ac_fn_c_try_compile "$LINENO"
8392then :
8393  xorg_cv_cc_flag_unused_command_line_argument=yes
8394else $as_nop
8395  xorg_cv_cc_flag_unused_command_line_argument=no
8396fi
8397rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8398fi
8399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8400printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8401	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8402	CFLAGS="$xorg_testset_save_CFLAGS"
8403fi
8404
8405found="no"
8406
8407	if test $found = "no" ; then
8408		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8409			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8410		fi
8411
8412		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8413			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8414		fi
8415
8416		CFLAGS="$CFLAGS -Werror=write-strings"
8417
8418		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8419printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8420		cacheid=xorg_cv_cc_flag__Werror_write_strings
8421		if eval test \${$cacheid+y}
8422then :
8423  printf %s "(cached) " >&6
8424else $as_nop
8425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8426/* end confdefs.h.  */
8427int i;
8428int
8429main (void)
8430{
8431
8432  ;
8433  return 0;
8434}
8435_ACEOF
8436if ac_fn_c_try_link "$LINENO"
8437then :
8438  eval $cacheid=yes
8439else $as_nop
8440  eval $cacheid=no
8441fi
8442rm -f core conftest.err conftest.$ac_objext conftest.beam \
8443    conftest$ac_exeext conftest.$ac_ext
8444fi
8445
8446
8447		CFLAGS="$xorg_testset_save_CFLAGS"
8448
8449		eval supported=\$$cacheid
8450		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8451printf "%s\n" "$supported" >&6; }
8452		if test "$supported" = "yes" ; then
8453			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8454			found="yes"
8455		fi
8456	fi
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472xorg_testset_save_CFLAGS="$CFLAGS"
8473
8474if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8475	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8476	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8477printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8478if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8479then :
8480  printf %s "(cached) " >&6
8481else $as_nop
8482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8483/* end confdefs.h.  */
8484int i;
8485_ACEOF
8486if ac_fn_c_try_compile "$LINENO"
8487then :
8488  xorg_cv_cc_flag_unknown_warning_option=yes
8489else $as_nop
8490  xorg_cv_cc_flag_unknown_warning_option=no
8491fi
8492rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8493fi
8494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8495printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8496	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8497	CFLAGS="$xorg_testset_save_CFLAGS"
8498fi
8499
8500if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8501	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8502		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8503	fi
8504	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8505	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8506printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8507if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8508then :
8509  printf %s "(cached) " >&6
8510else $as_nop
8511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8512/* end confdefs.h.  */
8513int i;
8514_ACEOF
8515if ac_fn_c_try_compile "$LINENO"
8516then :
8517  xorg_cv_cc_flag_unused_command_line_argument=yes
8518else $as_nop
8519  xorg_cv_cc_flag_unused_command_line_argument=no
8520fi
8521rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8522fi
8523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8524printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8525	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8526	CFLAGS="$xorg_testset_save_CFLAGS"
8527fi
8528
8529found="no"
8530
8531	if test $found = "no" ; then
8532		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8533			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8534		fi
8535
8536		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8537			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8538		fi
8539
8540		CFLAGS="$CFLAGS -Werror=address"
8541
8542		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8543printf %s "checking if $CC supports -Werror=address... " >&6; }
8544		cacheid=xorg_cv_cc_flag__Werror_address
8545		if eval test \${$cacheid+y}
8546then :
8547  printf %s "(cached) " >&6
8548else $as_nop
8549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8550/* end confdefs.h.  */
8551int i;
8552int
8553main (void)
8554{
8555
8556  ;
8557  return 0;
8558}
8559_ACEOF
8560if ac_fn_c_try_link "$LINENO"
8561then :
8562  eval $cacheid=yes
8563else $as_nop
8564  eval $cacheid=no
8565fi
8566rm -f core conftest.err conftest.$ac_objext conftest.beam \
8567    conftest$ac_exeext conftest.$ac_ext
8568fi
8569
8570
8571		CFLAGS="$xorg_testset_save_CFLAGS"
8572
8573		eval supported=\$$cacheid
8574		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8575printf "%s\n" "$supported" >&6; }
8576		if test "$supported" = "yes" ; then
8577			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8578			found="yes"
8579		fi
8580	fi
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596xorg_testset_save_CFLAGS="$CFLAGS"
8597
8598if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8599	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8600	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8601printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8602if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8603then :
8604  printf %s "(cached) " >&6
8605else $as_nop
8606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8607/* end confdefs.h.  */
8608int i;
8609_ACEOF
8610if ac_fn_c_try_compile "$LINENO"
8611then :
8612  xorg_cv_cc_flag_unknown_warning_option=yes
8613else $as_nop
8614  xorg_cv_cc_flag_unknown_warning_option=no
8615fi
8616rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8617fi
8618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8619printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8620	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8621	CFLAGS="$xorg_testset_save_CFLAGS"
8622fi
8623
8624if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8625	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8626		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8627	fi
8628	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8629	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8630printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8631if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8632then :
8633  printf %s "(cached) " >&6
8634else $as_nop
8635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636/* end confdefs.h.  */
8637int i;
8638_ACEOF
8639if ac_fn_c_try_compile "$LINENO"
8640then :
8641  xorg_cv_cc_flag_unused_command_line_argument=yes
8642else $as_nop
8643  xorg_cv_cc_flag_unused_command_line_argument=no
8644fi
8645rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8646fi
8647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8648printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8649	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8650	CFLAGS="$xorg_testset_save_CFLAGS"
8651fi
8652
8653found="no"
8654
8655	if test $found = "no" ; then
8656		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8657			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8658		fi
8659
8660		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8661			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8662		fi
8663
8664		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8665
8666		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8667printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8668		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8669		if eval test \${$cacheid+y}
8670then :
8671  printf %s "(cached) " >&6
8672else $as_nop
8673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8674/* end confdefs.h.  */
8675int i;
8676int
8677main (void)
8678{
8679
8680  ;
8681  return 0;
8682}
8683_ACEOF
8684if ac_fn_c_try_link "$LINENO"
8685then :
8686  eval $cacheid=yes
8687else $as_nop
8688  eval $cacheid=no
8689fi
8690rm -f core conftest.err conftest.$ac_objext conftest.beam \
8691    conftest$ac_exeext conftest.$ac_ext
8692fi
8693
8694
8695		CFLAGS="$xorg_testset_save_CFLAGS"
8696
8697		eval supported=\$$cacheid
8698		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8699printf "%s\n" "$supported" >&6; }
8700		if test "$supported" = "yes" ; then
8701			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8702			found="yes"
8703		fi
8704	fi
8705
8706	if test $found = "no" ; then
8707		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8708			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8709		fi
8710
8711		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8712			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8713		fi
8714
8715		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8716
8717		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8718printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8719		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8720		if eval test \${$cacheid+y}
8721then :
8722  printf %s "(cached) " >&6
8723else $as_nop
8724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8725/* end confdefs.h.  */
8726int i;
8727int
8728main (void)
8729{
8730
8731  ;
8732  return 0;
8733}
8734_ACEOF
8735if ac_fn_c_try_link "$LINENO"
8736then :
8737  eval $cacheid=yes
8738else $as_nop
8739  eval $cacheid=no
8740fi
8741rm -f core conftest.err conftest.$ac_objext conftest.beam \
8742    conftest$ac_exeext conftest.$ac_ext
8743fi
8744
8745
8746		CFLAGS="$xorg_testset_save_CFLAGS"
8747
8748		eval supported=\$$cacheid
8749		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8750printf "%s\n" "$supported" >&6; }
8751		if test "$supported" = "yes" ; then
8752			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8753			found="yes"
8754		fi
8755	fi
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771xorg_testset_save_CFLAGS="$CFLAGS"
8772
8773if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8774	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8775	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8776printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8777if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8778then :
8779  printf %s "(cached) " >&6
8780else $as_nop
8781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8782/* end confdefs.h.  */
8783int i;
8784_ACEOF
8785if ac_fn_c_try_compile "$LINENO"
8786then :
8787  xorg_cv_cc_flag_unknown_warning_option=yes
8788else $as_nop
8789  xorg_cv_cc_flag_unknown_warning_option=no
8790fi
8791rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8792fi
8793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8794printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8795	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8796	CFLAGS="$xorg_testset_save_CFLAGS"
8797fi
8798
8799if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8800	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8801		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8802	fi
8803	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8804	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8805printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8806if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8807then :
8808  printf %s "(cached) " >&6
8809else $as_nop
8810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8811/* end confdefs.h.  */
8812int i;
8813_ACEOF
8814if ac_fn_c_try_compile "$LINENO"
8815then :
8816  xorg_cv_cc_flag_unused_command_line_argument=yes
8817else $as_nop
8818  xorg_cv_cc_flag_unused_command_line_argument=no
8819fi
8820rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8821fi
8822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8823printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8824	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8825	CFLAGS="$xorg_testset_save_CFLAGS"
8826fi
8827
8828found="no"
8829
8830	if test $found = "no" ; then
8831		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8832			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8833		fi
8834
8835		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8836			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8837		fi
8838
8839		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8840
8841		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8842printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8843		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8844		if eval test \${$cacheid+y}
8845then :
8846  printf %s "(cached) " >&6
8847else $as_nop
8848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8849/* end confdefs.h.  */
8850int i;
8851int
8852main (void)
8853{
8854
8855  ;
8856  return 0;
8857}
8858_ACEOF
8859if ac_fn_c_try_link "$LINENO"
8860then :
8861  eval $cacheid=yes
8862else $as_nop
8863  eval $cacheid=no
8864fi
8865rm -f core conftest.err conftest.$ac_objext conftest.beam \
8866    conftest$ac_exeext conftest.$ac_ext
8867fi
8868
8869
8870		CFLAGS="$xorg_testset_save_CFLAGS"
8871
8872		eval supported=\$$cacheid
8873		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8874printf "%s\n" "$supported" >&6; }
8875		if test "$supported" = "yes" ; then
8876			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8877			found="yes"
8878		fi
8879	fi
8880
8881 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8882else
8883{ 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
8884printf "%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;}
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898xorg_testset_save_CFLAGS="$CFLAGS"
8899
8900if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8901	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8902	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8903printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8904if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8905then :
8906  printf %s "(cached) " >&6
8907else $as_nop
8908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8909/* end confdefs.h.  */
8910int i;
8911_ACEOF
8912if ac_fn_c_try_compile "$LINENO"
8913then :
8914  xorg_cv_cc_flag_unknown_warning_option=yes
8915else $as_nop
8916  xorg_cv_cc_flag_unknown_warning_option=no
8917fi
8918rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8919fi
8920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8921printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8922	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8923	CFLAGS="$xorg_testset_save_CFLAGS"
8924fi
8925
8926if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8927	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8928		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8929	fi
8930	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8931	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8932printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8933if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8934then :
8935  printf %s "(cached) " >&6
8936else $as_nop
8937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8938/* end confdefs.h.  */
8939int i;
8940_ACEOF
8941if ac_fn_c_try_compile "$LINENO"
8942then :
8943  xorg_cv_cc_flag_unused_command_line_argument=yes
8944else $as_nop
8945  xorg_cv_cc_flag_unused_command_line_argument=no
8946fi
8947rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8948fi
8949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8950printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8951	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8952	CFLAGS="$xorg_testset_save_CFLAGS"
8953fi
8954
8955found="no"
8956
8957	if test $found = "no" ; then
8958		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8959			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8960		fi
8961
8962		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8963			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8964		fi
8965
8966		CFLAGS="$CFLAGS -Wimplicit"
8967
8968		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8969printf %s "checking if $CC supports -Wimplicit... " >&6; }
8970		cacheid=xorg_cv_cc_flag__Wimplicit
8971		if eval test \${$cacheid+y}
8972then :
8973  printf %s "(cached) " >&6
8974else $as_nop
8975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976/* end confdefs.h.  */
8977int i;
8978int
8979main (void)
8980{
8981
8982  ;
8983  return 0;
8984}
8985_ACEOF
8986if ac_fn_c_try_link "$LINENO"
8987then :
8988  eval $cacheid=yes
8989else $as_nop
8990  eval $cacheid=no
8991fi
8992rm -f core conftest.err conftest.$ac_objext conftest.beam \
8993    conftest$ac_exeext conftest.$ac_ext
8994fi
8995
8996
8997		CFLAGS="$xorg_testset_save_CFLAGS"
8998
8999		eval supported=\$$cacheid
9000		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9001printf "%s\n" "$supported" >&6; }
9002		if test "$supported" = "yes" ; then
9003			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9004			found="yes"
9005		fi
9006	fi
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022xorg_testset_save_CFLAGS="$CFLAGS"
9023
9024if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9025	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9026	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9027printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9028if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9029then :
9030  printf %s "(cached) " >&6
9031else $as_nop
9032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033/* end confdefs.h.  */
9034int i;
9035_ACEOF
9036if ac_fn_c_try_compile "$LINENO"
9037then :
9038  xorg_cv_cc_flag_unknown_warning_option=yes
9039else $as_nop
9040  xorg_cv_cc_flag_unknown_warning_option=no
9041fi
9042rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9043fi
9044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9045printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9046	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9047	CFLAGS="$xorg_testset_save_CFLAGS"
9048fi
9049
9050if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9051	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9052		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9053	fi
9054	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9055	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9056printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9057if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9058then :
9059  printf %s "(cached) " >&6
9060else $as_nop
9061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9062/* end confdefs.h.  */
9063int i;
9064_ACEOF
9065if ac_fn_c_try_compile "$LINENO"
9066then :
9067  xorg_cv_cc_flag_unused_command_line_argument=yes
9068else $as_nop
9069  xorg_cv_cc_flag_unused_command_line_argument=no
9070fi
9071rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9072fi
9073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9074printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9075	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9076	CFLAGS="$xorg_testset_save_CFLAGS"
9077fi
9078
9079found="no"
9080
9081	if test $found = "no" ; then
9082		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9083			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9084		fi
9085
9086		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9087			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9088		fi
9089
9090		CFLAGS="$CFLAGS -Wnonnull"
9091
9092		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9093printf %s "checking if $CC supports -Wnonnull... " >&6; }
9094		cacheid=xorg_cv_cc_flag__Wnonnull
9095		if eval test \${$cacheid+y}
9096then :
9097  printf %s "(cached) " >&6
9098else $as_nop
9099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9100/* end confdefs.h.  */
9101int i;
9102int
9103main (void)
9104{
9105
9106  ;
9107  return 0;
9108}
9109_ACEOF
9110if ac_fn_c_try_link "$LINENO"
9111then :
9112  eval $cacheid=yes
9113else $as_nop
9114  eval $cacheid=no
9115fi
9116rm -f core conftest.err conftest.$ac_objext conftest.beam \
9117    conftest$ac_exeext conftest.$ac_ext
9118fi
9119
9120
9121		CFLAGS="$xorg_testset_save_CFLAGS"
9122
9123		eval supported=\$$cacheid
9124		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9125printf "%s\n" "$supported" >&6; }
9126		if test "$supported" = "yes" ; then
9127			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9128			found="yes"
9129		fi
9130	fi
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146xorg_testset_save_CFLAGS="$CFLAGS"
9147
9148if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9149	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9150	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9151printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9152if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9153then :
9154  printf %s "(cached) " >&6
9155else $as_nop
9156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9157/* end confdefs.h.  */
9158int i;
9159_ACEOF
9160if ac_fn_c_try_compile "$LINENO"
9161then :
9162  xorg_cv_cc_flag_unknown_warning_option=yes
9163else $as_nop
9164  xorg_cv_cc_flag_unknown_warning_option=no
9165fi
9166rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9167fi
9168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9169printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9170	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9171	CFLAGS="$xorg_testset_save_CFLAGS"
9172fi
9173
9174if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9175	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9176		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9177	fi
9178	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9179	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9180printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9181if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9182then :
9183  printf %s "(cached) " >&6
9184else $as_nop
9185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9186/* end confdefs.h.  */
9187int i;
9188_ACEOF
9189if ac_fn_c_try_compile "$LINENO"
9190then :
9191  xorg_cv_cc_flag_unused_command_line_argument=yes
9192else $as_nop
9193  xorg_cv_cc_flag_unused_command_line_argument=no
9194fi
9195rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9196fi
9197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9198printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9199	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9200	CFLAGS="$xorg_testset_save_CFLAGS"
9201fi
9202
9203found="no"
9204
9205	if test $found = "no" ; then
9206		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9207			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9208		fi
9209
9210		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9211			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9212		fi
9213
9214		CFLAGS="$CFLAGS -Winit-self"
9215
9216		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9217printf %s "checking if $CC supports -Winit-self... " >&6; }
9218		cacheid=xorg_cv_cc_flag__Winit_self
9219		if eval test \${$cacheid+y}
9220then :
9221  printf %s "(cached) " >&6
9222else $as_nop
9223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9224/* end confdefs.h.  */
9225int i;
9226int
9227main (void)
9228{
9229
9230  ;
9231  return 0;
9232}
9233_ACEOF
9234if ac_fn_c_try_link "$LINENO"
9235then :
9236  eval $cacheid=yes
9237else $as_nop
9238  eval $cacheid=no
9239fi
9240rm -f core conftest.err conftest.$ac_objext conftest.beam \
9241    conftest$ac_exeext conftest.$ac_ext
9242fi
9243
9244
9245		CFLAGS="$xorg_testset_save_CFLAGS"
9246
9247		eval supported=\$$cacheid
9248		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9249printf "%s\n" "$supported" >&6; }
9250		if test "$supported" = "yes" ; then
9251			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9252			found="yes"
9253		fi
9254	fi
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270xorg_testset_save_CFLAGS="$CFLAGS"
9271
9272if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9273	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9274	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9275printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9276if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9277then :
9278  printf %s "(cached) " >&6
9279else $as_nop
9280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281/* end confdefs.h.  */
9282int i;
9283_ACEOF
9284if ac_fn_c_try_compile "$LINENO"
9285then :
9286  xorg_cv_cc_flag_unknown_warning_option=yes
9287else $as_nop
9288  xorg_cv_cc_flag_unknown_warning_option=no
9289fi
9290rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9291fi
9292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9293printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9294	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9295	CFLAGS="$xorg_testset_save_CFLAGS"
9296fi
9297
9298if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9299	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9300		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9301	fi
9302	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9303	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9304printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9305if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9306then :
9307  printf %s "(cached) " >&6
9308else $as_nop
9309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9310/* end confdefs.h.  */
9311int i;
9312_ACEOF
9313if ac_fn_c_try_compile "$LINENO"
9314then :
9315  xorg_cv_cc_flag_unused_command_line_argument=yes
9316else $as_nop
9317  xorg_cv_cc_flag_unused_command_line_argument=no
9318fi
9319rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9320fi
9321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9322printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9323	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9324	CFLAGS="$xorg_testset_save_CFLAGS"
9325fi
9326
9327found="no"
9328
9329	if test $found = "no" ; then
9330		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9331			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9332		fi
9333
9334		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9335			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9336		fi
9337
9338		CFLAGS="$CFLAGS -Wmain"
9339
9340		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9341printf %s "checking if $CC supports -Wmain... " >&6; }
9342		cacheid=xorg_cv_cc_flag__Wmain
9343		if eval test \${$cacheid+y}
9344then :
9345  printf %s "(cached) " >&6
9346else $as_nop
9347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9348/* end confdefs.h.  */
9349int i;
9350int
9351main (void)
9352{
9353
9354  ;
9355  return 0;
9356}
9357_ACEOF
9358if ac_fn_c_try_link "$LINENO"
9359then :
9360  eval $cacheid=yes
9361else $as_nop
9362  eval $cacheid=no
9363fi
9364rm -f core conftest.err conftest.$ac_objext conftest.beam \
9365    conftest$ac_exeext conftest.$ac_ext
9366fi
9367
9368
9369		CFLAGS="$xorg_testset_save_CFLAGS"
9370
9371		eval supported=\$$cacheid
9372		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9373printf "%s\n" "$supported" >&6; }
9374		if test "$supported" = "yes" ; then
9375			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9376			found="yes"
9377		fi
9378	fi
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394xorg_testset_save_CFLAGS="$CFLAGS"
9395
9396if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9397	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9398	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9399printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9400if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9401then :
9402  printf %s "(cached) " >&6
9403else $as_nop
9404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9405/* end confdefs.h.  */
9406int i;
9407_ACEOF
9408if ac_fn_c_try_compile "$LINENO"
9409then :
9410  xorg_cv_cc_flag_unknown_warning_option=yes
9411else $as_nop
9412  xorg_cv_cc_flag_unknown_warning_option=no
9413fi
9414rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9415fi
9416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9417printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9418	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9419	CFLAGS="$xorg_testset_save_CFLAGS"
9420fi
9421
9422if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9423	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9424		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9425	fi
9426	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9427	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9428printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9429if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9430then :
9431  printf %s "(cached) " >&6
9432else $as_nop
9433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9434/* end confdefs.h.  */
9435int i;
9436_ACEOF
9437if ac_fn_c_try_compile "$LINENO"
9438then :
9439  xorg_cv_cc_flag_unused_command_line_argument=yes
9440else $as_nop
9441  xorg_cv_cc_flag_unused_command_line_argument=no
9442fi
9443rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9444fi
9445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9446printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9447	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9448	CFLAGS="$xorg_testset_save_CFLAGS"
9449fi
9450
9451found="no"
9452
9453	if test $found = "no" ; then
9454		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9455			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9456		fi
9457
9458		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9459			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9460		fi
9461
9462		CFLAGS="$CFLAGS -Wmissing-braces"
9463
9464		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9465printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9466		cacheid=xorg_cv_cc_flag__Wmissing_braces
9467		if eval test \${$cacheid+y}
9468then :
9469  printf %s "(cached) " >&6
9470else $as_nop
9471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9472/* end confdefs.h.  */
9473int i;
9474int
9475main (void)
9476{
9477
9478  ;
9479  return 0;
9480}
9481_ACEOF
9482if ac_fn_c_try_link "$LINENO"
9483then :
9484  eval $cacheid=yes
9485else $as_nop
9486  eval $cacheid=no
9487fi
9488rm -f core conftest.err conftest.$ac_objext conftest.beam \
9489    conftest$ac_exeext conftest.$ac_ext
9490fi
9491
9492
9493		CFLAGS="$xorg_testset_save_CFLAGS"
9494
9495		eval supported=\$$cacheid
9496		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9497printf "%s\n" "$supported" >&6; }
9498		if test "$supported" = "yes" ; then
9499			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9500			found="yes"
9501		fi
9502	fi
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518xorg_testset_save_CFLAGS="$CFLAGS"
9519
9520if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9521	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9522	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9523printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9524if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9525then :
9526  printf %s "(cached) " >&6
9527else $as_nop
9528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9529/* end confdefs.h.  */
9530int i;
9531_ACEOF
9532if ac_fn_c_try_compile "$LINENO"
9533then :
9534  xorg_cv_cc_flag_unknown_warning_option=yes
9535else $as_nop
9536  xorg_cv_cc_flag_unknown_warning_option=no
9537fi
9538rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9539fi
9540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9541printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9542	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9543	CFLAGS="$xorg_testset_save_CFLAGS"
9544fi
9545
9546if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9547	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9548		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9549	fi
9550	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9551	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9552printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9553if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9554then :
9555  printf %s "(cached) " >&6
9556else $as_nop
9557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558/* end confdefs.h.  */
9559int i;
9560_ACEOF
9561if ac_fn_c_try_compile "$LINENO"
9562then :
9563  xorg_cv_cc_flag_unused_command_line_argument=yes
9564else $as_nop
9565  xorg_cv_cc_flag_unused_command_line_argument=no
9566fi
9567rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9568fi
9569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9570printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9571	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9572	CFLAGS="$xorg_testset_save_CFLAGS"
9573fi
9574
9575found="no"
9576
9577	if test $found = "no" ; then
9578		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9579			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9580		fi
9581
9582		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9583			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9584		fi
9585
9586		CFLAGS="$CFLAGS -Wsequence-point"
9587
9588		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9589printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9590		cacheid=xorg_cv_cc_flag__Wsequence_point
9591		if eval test \${$cacheid+y}
9592then :
9593  printf %s "(cached) " >&6
9594else $as_nop
9595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9596/* end confdefs.h.  */
9597int i;
9598int
9599main (void)
9600{
9601
9602  ;
9603  return 0;
9604}
9605_ACEOF
9606if ac_fn_c_try_link "$LINENO"
9607then :
9608  eval $cacheid=yes
9609else $as_nop
9610  eval $cacheid=no
9611fi
9612rm -f core conftest.err conftest.$ac_objext conftest.beam \
9613    conftest$ac_exeext conftest.$ac_ext
9614fi
9615
9616
9617		CFLAGS="$xorg_testset_save_CFLAGS"
9618
9619		eval supported=\$$cacheid
9620		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9621printf "%s\n" "$supported" >&6; }
9622		if test "$supported" = "yes" ; then
9623			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9624			found="yes"
9625		fi
9626	fi
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642xorg_testset_save_CFLAGS="$CFLAGS"
9643
9644if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9645	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9646	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9647printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9648if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9649then :
9650  printf %s "(cached) " >&6
9651else $as_nop
9652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9653/* end confdefs.h.  */
9654int i;
9655_ACEOF
9656if ac_fn_c_try_compile "$LINENO"
9657then :
9658  xorg_cv_cc_flag_unknown_warning_option=yes
9659else $as_nop
9660  xorg_cv_cc_flag_unknown_warning_option=no
9661fi
9662rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9663fi
9664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9665printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9666	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9667	CFLAGS="$xorg_testset_save_CFLAGS"
9668fi
9669
9670if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9671	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9672		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9673	fi
9674	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9675	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9676printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9677if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9678then :
9679  printf %s "(cached) " >&6
9680else $as_nop
9681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9682/* end confdefs.h.  */
9683int i;
9684_ACEOF
9685if ac_fn_c_try_compile "$LINENO"
9686then :
9687  xorg_cv_cc_flag_unused_command_line_argument=yes
9688else $as_nop
9689  xorg_cv_cc_flag_unused_command_line_argument=no
9690fi
9691rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9692fi
9693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9694printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9695	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9696	CFLAGS="$xorg_testset_save_CFLAGS"
9697fi
9698
9699found="no"
9700
9701	if test $found = "no" ; then
9702		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9703			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9704		fi
9705
9706		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9707			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9708		fi
9709
9710		CFLAGS="$CFLAGS -Wreturn-type"
9711
9712		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9713printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9714		cacheid=xorg_cv_cc_flag__Wreturn_type
9715		if eval test \${$cacheid+y}
9716then :
9717  printf %s "(cached) " >&6
9718else $as_nop
9719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9720/* end confdefs.h.  */
9721int i;
9722int
9723main (void)
9724{
9725
9726  ;
9727  return 0;
9728}
9729_ACEOF
9730if ac_fn_c_try_link "$LINENO"
9731then :
9732  eval $cacheid=yes
9733else $as_nop
9734  eval $cacheid=no
9735fi
9736rm -f core conftest.err conftest.$ac_objext conftest.beam \
9737    conftest$ac_exeext conftest.$ac_ext
9738fi
9739
9740
9741		CFLAGS="$xorg_testset_save_CFLAGS"
9742
9743		eval supported=\$$cacheid
9744		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9745printf "%s\n" "$supported" >&6; }
9746		if test "$supported" = "yes" ; then
9747			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9748			found="yes"
9749		fi
9750	fi
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766xorg_testset_save_CFLAGS="$CFLAGS"
9767
9768if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9769	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9770	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9771printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9772if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9773then :
9774  printf %s "(cached) " >&6
9775else $as_nop
9776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777/* end confdefs.h.  */
9778int i;
9779_ACEOF
9780if ac_fn_c_try_compile "$LINENO"
9781then :
9782  xorg_cv_cc_flag_unknown_warning_option=yes
9783else $as_nop
9784  xorg_cv_cc_flag_unknown_warning_option=no
9785fi
9786rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9787fi
9788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9789printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9790	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9791	CFLAGS="$xorg_testset_save_CFLAGS"
9792fi
9793
9794if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9795	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9796		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9797	fi
9798	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9799	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9800printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9801if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9802then :
9803  printf %s "(cached) " >&6
9804else $as_nop
9805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9806/* end confdefs.h.  */
9807int i;
9808_ACEOF
9809if ac_fn_c_try_compile "$LINENO"
9810then :
9811  xorg_cv_cc_flag_unused_command_line_argument=yes
9812else $as_nop
9813  xorg_cv_cc_flag_unused_command_line_argument=no
9814fi
9815rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9816fi
9817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9818printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9819	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9820	CFLAGS="$xorg_testset_save_CFLAGS"
9821fi
9822
9823found="no"
9824
9825	if test $found = "no" ; then
9826		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9827			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9828		fi
9829
9830		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9831			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9832		fi
9833
9834		CFLAGS="$CFLAGS -Wtrigraphs"
9835
9836		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9837printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9838		cacheid=xorg_cv_cc_flag__Wtrigraphs
9839		if eval test \${$cacheid+y}
9840then :
9841  printf %s "(cached) " >&6
9842else $as_nop
9843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9844/* end confdefs.h.  */
9845int i;
9846int
9847main (void)
9848{
9849
9850  ;
9851  return 0;
9852}
9853_ACEOF
9854if ac_fn_c_try_link "$LINENO"
9855then :
9856  eval $cacheid=yes
9857else $as_nop
9858  eval $cacheid=no
9859fi
9860rm -f core conftest.err conftest.$ac_objext conftest.beam \
9861    conftest$ac_exeext conftest.$ac_ext
9862fi
9863
9864
9865		CFLAGS="$xorg_testset_save_CFLAGS"
9866
9867		eval supported=\$$cacheid
9868		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9869printf "%s\n" "$supported" >&6; }
9870		if test "$supported" = "yes" ; then
9871			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9872			found="yes"
9873		fi
9874	fi
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890xorg_testset_save_CFLAGS="$CFLAGS"
9891
9892if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9893	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9894	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9895printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9896if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9897then :
9898  printf %s "(cached) " >&6
9899else $as_nop
9900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9901/* end confdefs.h.  */
9902int i;
9903_ACEOF
9904if ac_fn_c_try_compile "$LINENO"
9905then :
9906  xorg_cv_cc_flag_unknown_warning_option=yes
9907else $as_nop
9908  xorg_cv_cc_flag_unknown_warning_option=no
9909fi
9910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9911fi
9912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9913printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9914	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9915	CFLAGS="$xorg_testset_save_CFLAGS"
9916fi
9917
9918if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9919	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9920		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9921	fi
9922	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9923	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9924printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9925if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9926then :
9927  printf %s "(cached) " >&6
9928else $as_nop
9929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9930/* end confdefs.h.  */
9931int i;
9932_ACEOF
9933if ac_fn_c_try_compile "$LINENO"
9934then :
9935  xorg_cv_cc_flag_unused_command_line_argument=yes
9936else $as_nop
9937  xorg_cv_cc_flag_unused_command_line_argument=no
9938fi
9939rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9940fi
9941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9942printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9943	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9944	CFLAGS="$xorg_testset_save_CFLAGS"
9945fi
9946
9947found="no"
9948
9949	if test $found = "no" ; then
9950		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9951			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9952		fi
9953
9954		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9955			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9956		fi
9957
9958		CFLAGS="$CFLAGS -Warray-bounds"
9959
9960		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9961printf %s "checking if $CC supports -Warray-bounds... " >&6; }
9962		cacheid=xorg_cv_cc_flag__Warray_bounds
9963		if eval test \${$cacheid+y}
9964then :
9965  printf %s "(cached) " >&6
9966else $as_nop
9967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9968/* end confdefs.h.  */
9969int i;
9970int
9971main (void)
9972{
9973
9974  ;
9975  return 0;
9976}
9977_ACEOF
9978if ac_fn_c_try_link "$LINENO"
9979then :
9980  eval $cacheid=yes
9981else $as_nop
9982  eval $cacheid=no
9983fi
9984rm -f core conftest.err conftest.$ac_objext conftest.beam \
9985    conftest$ac_exeext conftest.$ac_ext
9986fi
9987
9988
9989		CFLAGS="$xorg_testset_save_CFLAGS"
9990
9991		eval supported=\$$cacheid
9992		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9993printf "%s\n" "$supported" >&6; }
9994		if test "$supported" = "yes" ; then
9995			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9996			found="yes"
9997		fi
9998	fi
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014xorg_testset_save_CFLAGS="$CFLAGS"
10015
10016if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10017	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10018	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10019printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10020if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10021then :
10022  printf %s "(cached) " >&6
10023else $as_nop
10024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10025/* end confdefs.h.  */
10026int i;
10027_ACEOF
10028if ac_fn_c_try_compile "$LINENO"
10029then :
10030  xorg_cv_cc_flag_unknown_warning_option=yes
10031else $as_nop
10032  xorg_cv_cc_flag_unknown_warning_option=no
10033fi
10034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10035fi
10036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10037printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10038	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10039	CFLAGS="$xorg_testset_save_CFLAGS"
10040fi
10041
10042if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10043	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10044		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10045	fi
10046	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10047	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10048printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10049if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10050then :
10051  printf %s "(cached) " >&6
10052else $as_nop
10053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10054/* end confdefs.h.  */
10055int i;
10056_ACEOF
10057if ac_fn_c_try_compile "$LINENO"
10058then :
10059  xorg_cv_cc_flag_unused_command_line_argument=yes
10060else $as_nop
10061  xorg_cv_cc_flag_unused_command_line_argument=no
10062fi
10063rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10064fi
10065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10066printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10067	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10068	CFLAGS="$xorg_testset_save_CFLAGS"
10069fi
10070
10071found="no"
10072
10073	if test $found = "no" ; then
10074		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10075			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10076		fi
10077
10078		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10079			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10080		fi
10081
10082		CFLAGS="$CFLAGS -Wwrite-strings"
10083
10084		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10085printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10086		cacheid=xorg_cv_cc_flag__Wwrite_strings
10087		if eval test \${$cacheid+y}
10088then :
10089  printf %s "(cached) " >&6
10090else $as_nop
10091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10092/* end confdefs.h.  */
10093int i;
10094int
10095main (void)
10096{
10097
10098  ;
10099  return 0;
10100}
10101_ACEOF
10102if ac_fn_c_try_link "$LINENO"
10103then :
10104  eval $cacheid=yes
10105else $as_nop
10106  eval $cacheid=no
10107fi
10108rm -f core conftest.err conftest.$ac_objext conftest.beam \
10109    conftest$ac_exeext conftest.$ac_ext
10110fi
10111
10112
10113		CFLAGS="$xorg_testset_save_CFLAGS"
10114
10115		eval supported=\$$cacheid
10116		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10117printf "%s\n" "$supported" >&6; }
10118		if test "$supported" = "yes" ; then
10119			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10120			found="yes"
10121		fi
10122	fi
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138xorg_testset_save_CFLAGS="$CFLAGS"
10139
10140if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10141	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10142	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10143printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10144if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10145then :
10146  printf %s "(cached) " >&6
10147else $as_nop
10148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10149/* end confdefs.h.  */
10150int i;
10151_ACEOF
10152if ac_fn_c_try_compile "$LINENO"
10153then :
10154  xorg_cv_cc_flag_unknown_warning_option=yes
10155else $as_nop
10156  xorg_cv_cc_flag_unknown_warning_option=no
10157fi
10158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10159fi
10160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10161printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10162	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10163	CFLAGS="$xorg_testset_save_CFLAGS"
10164fi
10165
10166if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10167	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10168		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10169	fi
10170	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10171	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10172printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10173if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10174then :
10175  printf %s "(cached) " >&6
10176else $as_nop
10177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10178/* end confdefs.h.  */
10179int i;
10180_ACEOF
10181if ac_fn_c_try_compile "$LINENO"
10182then :
10183  xorg_cv_cc_flag_unused_command_line_argument=yes
10184else $as_nop
10185  xorg_cv_cc_flag_unused_command_line_argument=no
10186fi
10187rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10188fi
10189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10190printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10191	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10192	CFLAGS="$xorg_testset_save_CFLAGS"
10193fi
10194
10195found="no"
10196
10197	if test $found = "no" ; then
10198		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10199			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10200		fi
10201
10202		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10203			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10204		fi
10205
10206		CFLAGS="$CFLAGS -Waddress"
10207
10208		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10209printf %s "checking if $CC supports -Waddress... " >&6; }
10210		cacheid=xorg_cv_cc_flag__Waddress
10211		if eval test \${$cacheid+y}
10212then :
10213  printf %s "(cached) " >&6
10214else $as_nop
10215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10216/* end confdefs.h.  */
10217int i;
10218int
10219main (void)
10220{
10221
10222  ;
10223  return 0;
10224}
10225_ACEOF
10226if ac_fn_c_try_link "$LINENO"
10227then :
10228  eval $cacheid=yes
10229else $as_nop
10230  eval $cacheid=no
10231fi
10232rm -f core conftest.err conftest.$ac_objext conftest.beam \
10233    conftest$ac_exeext conftest.$ac_ext
10234fi
10235
10236
10237		CFLAGS="$xorg_testset_save_CFLAGS"
10238
10239		eval supported=\$$cacheid
10240		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10241printf "%s\n" "$supported" >&6; }
10242		if test "$supported" = "yes" ; then
10243			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10244			found="yes"
10245		fi
10246	fi
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262xorg_testset_save_CFLAGS="$CFLAGS"
10263
10264if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10265	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10266	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10267printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10268if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10269then :
10270  printf %s "(cached) " >&6
10271else $as_nop
10272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10273/* end confdefs.h.  */
10274int i;
10275_ACEOF
10276if ac_fn_c_try_compile "$LINENO"
10277then :
10278  xorg_cv_cc_flag_unknown_warning_option=yes
10279else $as_nop
10280  xorg_cv_cc_flag_unknown_warning_option=no
10281fi
10282rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10283fi
10284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10285printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10286	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10287	CFLAGS="$xorg_testset_save_CFLAGS"
10288fi
10289
10290if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10291	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10292		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10293	fi
10294	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10295	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10296printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10297if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10298then :
10299  printf %s "(cached) " >&6
10300else $as_nop
10301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10302/* end confdefs.h.  */
10303int i;
10304_ACEOF
10305if ac_fn_c_try_compile "$LINENO"
10306then :
10307  xorg_cv_cc_flag_unused_command_line_argument=yes
10308else $as_nop
10309  xorg_cv_cc_flag_unused_command_line_argument=no
10310fi
10311rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10312fi
10313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10314printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10315	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10316	CFLAGS="$xorg_testset_save_CFLAGS"
10317fi
10318
10319found="no"
10320
10321	if test $found = "no" ; then
10322		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10323			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10324		fi
10325
10326		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10327			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10328		fi
10329
10330		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10331
10332		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10333printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10334		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10335		if eval test \${$cacheid+y}
10336then :
10337  printf %s "(cached) " >&6
10338else $as_nop
10339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10340/* end confdefs.h.  */
10341int i;
10342int
10343main (void)
10344{
10345
10346  ;
10347  return 0;
10348}
10349_ACEOF
10350if ac_fn_c_try_link "$LINENO"
10351then :
10352  eval $cacheid=yes
10353else $as_nop
10354  eval $cacheid=no
10355fi
10356rm -f core conftest.err conftest.$ac_objext conftest.beam \
10357    conftest$ac_exeext conftest.$ac_ext
10358fi
10359
10360
10361		CFLAGS="$xorg_testset_save_CFLAGS"
10362
10363		eval supported=\$$cacheid
10364		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10365printf "%s\n" "$supported" >&6; }
10366		if test "$supported" = "yes" ; then
10367			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10368			found="yes"
10369		fi
10370	fi
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386xorg_testset_save_CFLAGS="$CFLAGS"
10387
10388if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10389	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10390	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10391printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10392if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10393then :
10394  printf %s "(cached) " >&6
10395else $as_nop
10396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10397/* end confdefs.h.  */
10398int i;
10399_ACEOF
10400if ac_fn_c_try_compile "$LINENO"
10401then :
10402  xorg_cv_cc_flag_unknown_warning_option=yes
10403else $as_nop
10404  xorg_cv_cc_flag_unknown_warning_option=no
10405fi
10406rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10407fi
10408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10409printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10410	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10411	CFLAGS="$xorg_testset_save_CFLAGS"
10412fi
10413
10414if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10415	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10416		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10417	fi
10418	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10419	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10420printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10421if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10422then :
10423  printf %s "(cached) " >&6
10424else $as_nop
10425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10426/* end confdefs.h.  */
10427int i;
10428_ACEOF
10429if ac_fn_c_try_compile "$LINENO"
10430then :
10431  xorg_cv_cc_flag_unused_command_line_argument=yes
10432else $as_nop
10433  xorg_cv_cc_flag_unused_command_line_argument=no
10434fi
10435rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10436fi
10437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10438printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10439	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10440	CFLAGS="$xorg_testset_save_CFLAGS"
10441fi
10442
10443found="no"
10444
10445	if test $found = "no" ; then
10446		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10447			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10448		fi
10449
10450		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10451			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10452		fi
10453
10454		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10455
10456		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10457printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10458		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10459		if eval test \${$cacheid+y}
10460then :
10461  printf %s "(cached) " >&6
10462else $as_nop
10463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10464/* end confdefs.h.  */
10465int i;
10466int
10467main (void)
10468{
10469
10470  ;
10471  return 0;
10472}
10473_ACEOF
10474if ac_fn_c_try_link "$LINENO"
10475then :
10476  eval $cacheid=yes
10477else $as_nop
10478  eval $cacheid=no
10479fi
10480rm -f core conftest.err conftest.$ac_objext conftest.beam \
10481    conftest$ac_exeext conftest.$ac_ext
10482fi
10483
10484
10485		CFLAGS="$xorg_testset_save_CFLAGS"
10486
10487		eval supported=\$$cacheid
10488		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10489printf "%s\n" "$supported" >&6; }
10490		if test "$supported" = "yes" ; then
10491			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10492			found="yes"
10493		fi
10494	fi
10495
10496
10497fi
10498
10499
10500
10501
10502
10503
10504
10505		CWARNFLAGS="$BASE_CFLAGS"
10506		if  test "x$GCC" = xyes ; then
10507		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10508		fi
10509
10510
10511
10512
10513
10514
10515
10516
10517# Check whether --enable-strict-compilation was given.
10518if test ${enable_strict_compilation+y}
10519then :
10520  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10521else $as_nop
10522  STRICT_COMPILE=no
10523fi
10524
10525
10526
10527
10528
10529
10530STRICT_CFLAGS=""
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544xorg_testset_save_CFLAGS="$CFLAGS"
10545
10546if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10547	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10548	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10549printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10550if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10551then :
10552  printf %s "(cached) " >&6
10553else $as_nop
10554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10555/* end confdefs.h.  */
10556int i;
10557_ACEOF
10558if ac_fn_c_try_compile "$LINENO"
10559then :
10560  xorg_cv_cc_flag_unknown_warning_option=yes
10561else $as_nop
10562  xorg_cv_cc_flag_unknown_warning_option=no
10563fi
10564rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10565fi
10566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10567printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10568	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10569	CFLAGS="$xorg_testset_save_CFLAGS"
10570fi
10571
10572if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10573	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10574		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10575	fi
10576	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10577	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10578printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10579if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10580then :
10581  printf %s "(cached) " >&6
10582else $as_nop
10583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10584/* end confdefs.h.  */
10585int i;
10586_ACEOF
10587if ac_fn_c_try_compile "$LINENO"
10588then :
10589  xorg_cv_cc_flag_unused_command_line_argument=yes
10590else $as_nop
10591  xorg_cv_cc_flag_unused_command_line_argument=no
10592fi
10593rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10594fi
10595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10596printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10597	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10598	CFLAGS="$xorg_testset_save_CFLAGS"
10599fi
10600
10601found="no"
10602
10603	if test $found = "no" ; then
10604		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10605			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10606		fi
10607
10608		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10609			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10610		fi
10611
10612		CFLAGS="$CFLAGS -pedantic"
10613
10614		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10615printf %s "checking if $CC supports -pedantic... " >&6; }
10616		cacheid=xorg_cv_cc_flag__pedantic
10617		if eval test \${$cacheid+y}
10618then :
10619  printf %s "(cached) " >&6
10620else $as_nop
10621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10622/* end confdefs.h.  */
10623int i;
10624int
10625main (void)
10626{
10627
10628  ;
10629  return 0;
10630}
10631_ACEOF
10632if ac_fn_c_try_link "$LINENO"
10633then :
10634  eval $cacheid=yes
10635else $as_nop
10636  eval $cacheid=no
10637fi
10638rm -f core conftest.err conftest.$ac_objext conftest.beam \
10639    conftest$ac_exeext conftest.$ac_ext
10640fi
10641
10642
10643		CFLAGS="$xorg_testset_save_CFLAGS"
10644
10645		eval supported=\$$cacheid
10646		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10647printf "%s\n" "$supported" >&6; }
10648		if test "$supported" = "yes" ; then
10649			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10650			found="yes"
10651		fi
10652	fi
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668xorg_testset_save_CFLAGS="$CFLAGS"
10669
10670if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10671	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10672	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10673printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10674if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10675then :
10676  printf %s "(cached) " >&6
10677else $as_nop
10678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10679/* end confdefs.h.  */
10680int i;
10681_ACEOF
10682if ac_fn_c_try_compile "$LINENO"
10683then :
10684  xorg_cv_cc_flag_unknown_warning_option=yes
10685else $as_nop
10686  xorg_cv_cc_flag_unknown_warning_option=no
10687fi
10688rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10689fi
10690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10691printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10692	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10693	CFLAGS="$xorg_testset_save_CFLAGS"
10694fi
10695
10696if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10697	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10698		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10699	fi
10700	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10701	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10702printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10703if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10704then :
10705  printf %s "(cached) " >&6
10706else $as_nop
10707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10708/* end confdefs.h.  */
10709int i;
10710_ACEOF
10711if ac_fn_c_try_compile "$LINENO"
10712then :
10713  xorg_cv_cc_flag_unused_command_line_argument=yes
10714else $as_nop
10715  xorg_cv_cc_flag_unused_command_line_argument=no
10716fi
10717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10718fi
10719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10720printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10721	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10722	CFLAGS="$xorg_testset_save_CFLAGS"
10723fi
10724
10725found="no"
10726
10727	if test $found = "no" ; then
10728		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10729			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10730		fi
10731
10732		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10733			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10734		fi
10735
10736		CFLAGS="$CFLAGS -Werror"
10737
10738		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10739printf %s "checking if $CC supports -Werror... " >&6; }
10740		cacheid=xorg_cv_cc_flag__Werror
10741		if eval test \${$cacheid+y}
10742then :
10743  printf %s "(cached) " >&6
10744else $as_nop
10745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10746/* end confdefs.h.  */
10747int i;
10748int
10749main (void)
10750{
10751
10752  ;
10753  return 0;
10754}
10755_ACEOF
10756if ac_fn_c_try_link "$LINENO"
10757then :
10758  eval $cacheid=yes
10759else $as_nop
10760  eval $cacheid=no
10761fi
10762rm -f core conftest.err conftest.$ac_objext conftest.beam \
10763    conftest$ac_exeext conftest.$ac_ext
10764fi
10765
10766
10767		CFLAGS="$xorg_testset_save_CFLAGS"
10768
10769		eval supported=\$$cacheid
10770		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10771printf "%s\n" "$supported" >&6; }
10772		if test "$supported" = "yes" ; then
10773			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10774			found="yes"
10775		fi
10776	fi
10777
10778	if test $found = "no" ; then
10779		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10780			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10781		fi
10782
10783		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10784			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10785		fi
10786
10787		CFLAGS="$CFLAGS -errwarn"
10788
10789		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10790printf %s "checking if $CC supports -errwarn... " >&6; }
10791		cacheid=xorg_cv_cc_flag__errwarn
10792		if eval test \${$cacheid+y}
10793then :
10794  printf %s "(cached) " >&6
10795else $as_nop
10796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797/* end confdefs.h.  */
10798int i;
10799int
10800main (void)
10801{
10802
10803  ;
10804  return 0;
10805}
10806_ACEOF
10807if ac_fn_c_try_link "$LINENO"
10808then :
10809  eval $cacheid=yes
10810else $as_nop
10811  eval $cacheid=no
10812fi
10813rm -f core conftest.err conftest.$ac_objext conftest.beam \
10814    conftest$ac_exeext conftest.$ac_ext
10815fi
10816
10817
10818		CFLAGS="$xorg_testset_save_CFLAGS"
10819
10820		eval supported=\$$cacheid
10821		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10822printf "%s\n" "$supported" >&6; }
10823		if test "$supported" = "yes" ; then
10824			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10825			found="yes"
10826		fi
10827	fi
10828
10829
10830
10831# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10832# activate it with -Werror, so we add it here explicitly.
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846xorg_testset_save_CFLAGS="$CFLAGS"
10847
10848if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10849	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10850	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10851printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10852if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10853then :
10854  printf %s "(cached) " >&6
10855else $as_nop
10856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10857/* end confdefs.h.  */
10858int i;
10859_ACEOF
10860if ac_fn_c_try_compile "$LINENO"
10861then :
10862  xorg_cv_cc_flag_unknown_warning_option=yes
10863else $as_nop
10864  xorg_cv_cc_flag_unknown_warning_option=no
10865fi
10866rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10867fi
10868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10869printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10870	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10871	CFLAGS="$xorg_testset_save_CFLAGS"
10872fi
10873
10874if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10875	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10876		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10877	fi
10878	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10879	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10880printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10881if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10882then :
10883  printf %s "(cached) " >&6
10884else $as_nop
10885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10886/* end confdefs.h.  */
10887int i;
10888_ACEOF
10889if ac_fn_c_try_compile "$LINENO"
10890then :
10891  xorg_cv_cc_flag_unused_command_line_argument=yes
10892else $as_nop
10893  xorg_cv_cc_flag_unused_command_line_argument=no
10894fi
10895rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10896fi
10897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10898printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10899	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10900	CFLAGS="$xorg_testset_save_CFLAGS"
10901fi
10902
10903found="no"
10904
10905	if test $found = "no" ; then
10906		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10907			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10908		fi
10909
10910		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10911			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10912		fi
10913
10914		CFLAGS="$CFLAGS -Werror=attributes"
10915
10916		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10917printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10918		cacheid=xorg_cv_cc_flag__Werror_attributes
10919		if eval test \${$cacheid+y}
10920then :
10921  printf %s "(cached) " >&6
10922else $as_nop
10923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10924/* end confdefs.h.  */
10925int i;
10926int
10927main (void)
10928{
10929
10930  ;
10931  return 0;
10932}
10933_ACEOF
10934if ac_fn_c_try_link "$LINENO"
10935then :
10936  eval $cacheid=yes
10937else $as_nop
10938  eval $cacheid=no
10939fi
10940rm -f core conftest.err conftest.$ac_objext conftest.beam \
10941    conftest$ac_exeext conftest.$ac_ext
10942fi
10943
10944
10945		CFLAGS="$xorg_testset_save_CFLAGS"
10946
10947		eval supported=\$$cacheid
10948		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10949printf "%s\n" "$supported" >&6; }
10950		if test "$supported" = "yes" ; then
10951			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10952			found="yes"
10953		fi
10954	fi
10955
10956
10957
10958if test "x$STRICT_COMPILE" = "xyes"; then
10959    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10960    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10961fi
10962
10963
10964
10965
10966
10967
10968cat >>confdefs.h <<_ACEOF
10969#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10970_ACEOF
10971
10972	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10973	if test "x$PVM" = "x"; then
10974		PVM="0"
10975	fi
10976
10977printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10978
10979	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10980	if test "x$PVP" = "x"; then
10981		PVP="0"
10982	fi
10983
10984printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10985
10986
10987
10988CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10989mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10990|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10991touch \$(top_srcdir)/ChangeLog; \
10992echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10993
10994
10995
10996
10997macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10998INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10999mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11000|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11001touch \$(top_srcdir)/INSTALL; \
11002echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11003
11004
11005
11006
11007
11008
11009case $host_os in
11010    solaris*)
11011        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11012        # check for a man page file found in later versions that use
11013        # traditional section numbers instead
11014        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11015printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11016if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11017then :
11018  printf %s "(cached) " >&6
11019else $as_nop
11020  test "$cross_compiling" = yes &&
11021  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11022if test -r "/usr/share/man/man7/attributes.7"; then
11023  ac_cv_file__usr_share_man_man7_attributes_7=yes
11024else
11025  ac_cv_file__usr_share_man_man7_attributes_7=no
11026fi
11027fi
11028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11029printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11030if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11031then :
11032  SYSV_MAN_SECTIONS=false
11033else $as_nop
11034  SYSV_MAN_SECTIONS=true
11035fi
11036
11037        ;;
11038    *) SYSV_MAN_SECTIONS=false ;;
11039esac
11040
11041if test x$APP_MAN_SUFFIX = x    ; then
11042    APP_MAN_SUFFIX=1
11043fi
11044if test x$APP_MAN_DIR = x    ; then
11045    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11046fi
11047
11048if test x$LIB_MAN_SUFFIX = x    ; then
11049    LIB_MAN_SUFFIX=3
11050fi
11051if test x$LIB_MAN_DIR = x    ; then
11052    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11053fi
11054
11055if test x$FILE_MAN_SUFFIX = x    ; then
11056    case $SYSV_MAN_SECTIONS in
11057	true)				FILE_MAN_SUFFIX=4  ;;
11058	*)				FILE_MAN_SUFFIX=5  ;;
11059    esac
11060fi
11061if test x$FILE_MAN_DIR = x    ; then
11062    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11063fi
11064
11065if test x$MISC_MAN_SUFFIX = x    ; then
11066    case $SYSV_MAN_SECTIONS in
11067	true)				MISC_MAN_SUFFIX=5  ;;
11068	*)				MISC_MAN_SUFFIX=7  ;;
11069    esac
11070fi
11071if test x$MISC_MAN_DIR = x    ; then
11072    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11073fi
11074
11075if test x$DRIVER_MAN_SUFFIX = x    ; then
11076    case $SYSV_MAN_SECTIONS in
11077	true)				DRIVER_MAN_SUFFIX=7  ;;
11078	*)				DRIVER_MAN_SUFFIX=4  ;;
11079    esac
11080fi
11081if test x$DRIVER_MAN_DIR = x    ; then
11082    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11083fi
11084
11085if test x$ADMIN_MAN_SUFFIX = x    ; then
11086    case $SYSV_MAN_SECTIONS in
11087	true)				ADMIN_MAN_SUFFIX=1m ;;
11088	*)				ADMIN_MAN_SUFFIX=8  ;;
11089    esac
11090fi
11091if test x$ADMIN_MAN_DIR = x    ; then
11092    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11093fi
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109XORG_MAN_PAGE="X Version 11"
11110
11111MAN_SUBSTS="\
11112	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11113	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11114	-e 's|__xservername__|Xorg|g' \
11115	-e 's|__xconfigfile__|xorg.conf|g' \
11116	-e 's|__projectroot__|\$(prefix)|g' \
11117	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11118	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11119	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11120	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11121	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11122	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11123	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11124
11125
11126
11127# Check whether --enable-silent-rules was given.
11128if test ${enable_silent_rules+y}
11129then :
11130  enableval=$enable_silent_rules;
11131fi
11132
11133case $enable_silent_rules in # (((
11134  yes) AM_DEFAULT_VERBOSITY=0;;
11135   no) AM_DEFAULT_VERBOSITY=1;;
11136    *) AM_DEFAULT_VERBOSITY=0;;
11137esac
11138am_make=${MAKE-make}
11139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11140printf %s "checking whether $am_make supports nested variables... " >&6; }
11141if test ${am_cv_make_support_nested_variables+y}
11142then :
11143  printf %s "(cached) " >&6
11144else $as_nop
11145  if printf "%s\n" 'TRUE=$(BAR$(V))
11146BAR0=false
11147BAR1=true
11148V=1
11149am__doit:
11150	@$(TRUE)
11151.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11152  am_cv_make_support_nested_variables=yes
11153else
11154  am_cv_make_support_nested_variables=no
11155fi
11156fi
11157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11158printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11159if test $am_cv_make_support_nested_variables = yes; then
11160    AM_V='$(V)'
11161  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11162else
11163  AM_V=$AM_DEFAULT_VERBOSITY
11164  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11165fi
11166AM_BACKSLASH='\'
11167
11168
11169
11170
11171
11172
11173
11174# Check whether --with-lint was given.
11175if test ${with_lint+y}
11176then :
11177  withval=$with_lint; use_lint=$withval
11178else $as_nop
11179  use_lint=no
11180fi
11181
11182
11183# Obtain platform specific info like program name and options
11184# The lint program on FreeBSD and NetBSD is different from the one on Solaris
11185case $host_os in
11186  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
11187	lint_name=splint
11188	lint_options="-badflag"
11189	;;
11190  *freebsd* | *netbsd*)
11191	lint_name=lint
11192	lint_options="-u -b"
11193	;;
11194  *solaris*)
11195	lint_name=lint
11196	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
11197	;;
11198esac
11199
11200# Test for the presence of the program (either guessed by the code or spelled out by the user)
11201if test "x$use_lint" = x"yes" ; then
11202   # Extract the first word of "$lint_name", so it can be a program name with args.
11203set dummy $lint_name; ac_word=$2
11204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11205printf %s "checking for $ac_word... " >&6; }
11206if test ${ac_cv_path_LINT+y}
11207then :
11208  printf %s "(cached) " >&6
11209else $as_nop
11210  case $LINT in
11211  [\\/]* | ?:[\\/]*)
11212  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
11213  ;;
11214  *)
11215  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11216for as_dir in $PATH
11217do
11218  IFS=$as_save_IFS
11219  case $as_dir in #(((
11220    '') as_dir=./ ;;
11221    */) ;;
11222    *) as_dir=$as_dir/ ;;
11223  esac
11224    for ac_exec_ext in '' $ac_executable_extensions; do
11225  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11226    ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
11227    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11228    break 2
11229  fi
11230done
11231  done
11232IFS=$as_save_IFS
11233
11234  ;;
11235esac
11236fi
11237LINT=$ac_cv_path_LINT
11238if test -n "$LINT"; then
11239  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
11240printf "%s\n" "$LINT" >&6; }
11241else
11242  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11243printf "%s\n" "no" >&6; }
11244fi
11245
11246
11247   if test "x$LINT" = "x"; then
11248        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
11249   fi
11250elif test "x$use_lint" = x"no" ; then
11251   if test "x$LINT" != "x"; then
11252      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
11253printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
11254   fi
11255else
11256   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
11257fi
11258
11259# User supplied flags override default flags
11260if test "x$LINT_FLAGS" != "x"; then
11261   lint_options=$LINT_FLAGS
11262fi
11263
11264LINT_FLAGS=$lint_options
11265
11266 if test "x$LINT" != x; then
11267  LINT_TRUE=
11268  LINT_FALSE='#'
11269else
11270  LINT_TRUE='#'
11271  LINT_FALSE=
11272fi
11273
11274
11275
11276
11277ac_fn_c_check_func "$LINENO" "rename" "ac_cv_func_rename"
11278if test "x$ac_cv_func_rename" = xyes
11279then :
11280  printf "%s\n" "#define HAVE_RENAME 1" >>confdefs.h
11281
11282fi
11283ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod"
11284if test "x$ac_cv_func_fchmod" = xyes
11285then :
11286  printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h
11287
11288fi
11289
11290
11291# Check whether --enable-largefile was given.
11292if test ${enable_largefile+y}
11293then :
11294  enableval=$enable_largefile;
11295fi
11296
11297if test "$enable_largefile" != no; then
11298
11299  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11300printf %s "checking for special C compiler options needed for large files... " >&6; }
11301if test ${ac_cv_sys_largefile_CC+y}
11302then :
11303  printf %s "(cached) " >&6
11304else $as_nop
11305  ac_cv_sys_largefile_CC=no
11306     if test "$GCC" != yes; then
11307       ac_save_CC=$CC
11308       while :; do
11309	 # IRIX 6.2 and later do not support large files by default,
11310	 # so use the C compiler's -n32 option if that helps.
11311	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11312/* end confdefs.h.  */
11313#include <sys/types.h>
11314 /* Check that off_t can represent 2**63 - 1 correctly.
11315    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11316    since some C++ compilers masquerading as C compilers
11317    incorrectly reject 9223372036854775807.  */
11318#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
11319  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11320		       && LARGE_OFF_T % 2147483647 == 1)
11321		      ? 1 : -1];
11322int
11323main (void)
11324{
11325
11326  ;
11327  return 0;
11328}
11329_ACEOF
11330	 if ac_fn_c_try_compile "$LINENO"
11331then :
11332  break
11333fi
11334rm -f core conftest.err conftest.$ac_objext conftest.beam
11335	 CC="$CC -n32"
11336	 if ac_fn_c_try_compile "$LINENO"
11337then :
11338  ac_cv_sys_largefile_CC=' -n32'; break
11339fi
11340rm -f core conftest.err conftest.$ac_objext conftest.beam
11341	 break
11342       done
11343       CC=$ac_save_CC
11344       rm -f conftest.$ac_ext
11345    fi
11346fi
11347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11348printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
11349  if test "$ac_cv_sys_largefile_CC" != no; then
11350    CC=$CC$ac_cv_sys_largefile_CC
11351  fi
11352
11353  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11354printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11355if test ${ac_cv_sys_file_offset_bits+y}
11356then :
11357  printf %s "(cached) " >&6
11358else $as_nop
11359  while :; do
11360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11361/* end confdefs.h.  */
11362#include <sys/types.h>
11363 /* Check that off_t can represent 2**63 - 1 correctly.
11364    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11365    since some C++ compilers masquerading as C compilers
11366    incorrectly reject 9223372036854775807.  */
11367#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
11368  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11369		       && LARGE_OFF_T % 2147483647 == 1)
11370		      ? 1 : -1];
11371int
11372main (void)
11373{
11374
11375  ;
11376  return 0;
11377}
11378_ACEOF
11379if ac_fn_c_try_compile "$LINENO"
11380then :
11381  ac_cv_sys_file_offset_bits=no; break
11382fi
11383rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11385/* end confdefs.h.  */
11386#define _FILE_OFFSET_BITS 64
11387#include <sys/types.h>
11388 /* Check that off_t can represent 2**63 - 1 correctly.
11389    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11390    since some C++ compilers masquerading as C compilers
11391    incorrectly reject 9223372036854775807.  */
11392#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
11393  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11394		       && LARGE_OFF_T % 2147483647 == 1)
11395		      ? 1 : -1];
11396int
11397main (void)
11398{
11399
11400  ;
11401  return 0;
11402}
11403_ACEOF
11404if ac_fn_c_try_compile "$LINENO"
11405then :
11406  ac_cv_sys_file_offset_bits=64; break
11407fi
11408rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11409  ac_cv_sys_file_offset_bits=unknown
11410  break
11411done
11412fi
11413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11414printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
11415case $ac_cv_sys_file_offset_bits in #(
11416  no | unknown) ;;
11417  *)
11418printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
11419;;
11420esac
11421rm -rf conftest*
11422  if test $ac_cv_sys_file_offset_bits = unknown; then
11423    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11424printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
11425if test ${ac_cv_sys_large_files+y}
11426then :
11427  printf %s "(cached) " >&6
11428else $as_nop
11429  while :; do
11430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11431/* end confdefs.h.  */
11432#include <sys/types.h>
11433 /* Check that off_t can represent 2**63 - 1 correctly.
11434    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11435    since some C++ compilers masquerading as C compilers
11436    incorrectly reject 9223372036854775807.  */
11437#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
11438  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11439		       && LARGE_OFF_T % 2147483647 == 1)
11440		      ? 1 : -1];
11441int
11442main (void)
11443{
11444
11445  ;
11446  return 0;
11447}
11448_ACEOF
11449if ac_fn_c_try_compile "$LINENO"
11450then :
11451  ac_cv_sys_large_files=no; break
11452fi
11453rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11455/* end confdefs.h.  */
11456#define _LARGE_FILES 1
11457#include <sys/types.h>
11458 /* Check that off_t can represent 2**63 - 1 correctly.
11459    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11460    since some C++ compilers masquerading as C compilers
11461    incorrectly reject 9223372036854775807.  */
11462#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
11463  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11464		       && LARGE_OFF_T % 2147483647 == 1)
11465		      ? 1 : -1];
11466int
11467main (void)
11468{
11469
11470  ;
11471  return 0;
11472}
11473_ACEOF
11474if ac_fn_c_try_compile "$LINENO"
11475then :
11476  ac_cv_sys_large_files=1; break
11477fi
11478rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11479  ac_cv_sys_large_files=unknown
11480  break
11481done
11482fi
11483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11484printf "%s\n" "$ac_cv_sys_large_files" >&6; }
11485case $ac_cv_sys_large_files in #(
11486  no | unknown) ;;
11487  *)
11488printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
11489;;
11490esac
11491rm -rf conftest*
11492  fi
11493fi
11494
11495
11496
11497pkg_failed=no
11498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
11499printf %s "checking for X... " >&6; }
11500
11501if test -n "$X_CFLAGS"; then
11502    pkg_cv_X_CFLAGS="$X_CFLAGS"
11503 elif test -n "$PKG_CONFIG"; then
11504    if test -n "$PKG_CONFIG" && \
11505    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17\""; } >&5
11506  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17") 2>&5
11507  ac_status=$?
11508  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11509  test $ac_status = 0; }; then
11510  pkg_cv_X_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17" 2>/dev/null`
11511		      test "x$?" != "x0" && pkg_failed=yes
11512else
11513  pkg_failed=yes
11514fi
11515 else
11516    pkg_failed=untried
11517fi
11518if test -n "$X_LIBS"; then
11519    pkg_cv_X_LIBS="$X_LIBS"
11520 elif test -n "$PKG_CONFIG"; then
11521    if test -n "$PKG_CONFIG" && \
11522    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17\""; } >&5
11523  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17") 2>&5
11524  ac_status=$?
11525  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11526  test $ac_status = 0; }; then
11527  pkg_cv_X_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17" 2>/dev/null`
11528		      test "x$?" != "x0" && pkg_failed=yes
11529else
11530  pkg_failed=yes
11531fi
11532 else
11533    pkg_failed=untried
11534fi
11535
11536
11537
11538if test $pkg_failed = yes; then
11539   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11540printf "%s\n" "no" >&6; }
11541
11542if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11543        _pkg_short_errors_supported=yes
11544else
11545        _pkg_short_errors_supported=no
11546fi
11547        if test $_pkg_short_errors_supported = yes; then
11548	        X_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.17" 2>&1`
11549        else
11550	        X_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.17" 2>&1`
11551        fi
11552	# Put the nasty error message in config.log where it belongs
11553	echo "$X_PKG_ERRORS" >&5
11554
11555	as_fn_error $? "Package requirements (xproto >= 7.0.17) were not met:
11556
11557$X_PKG_ERRORS
11558
11559Consider adjusting the PKG_CONFIG_PATH environment variable if you
11560installed software in a non-standard prefix.
11561
11562Alternatively, you may set the environment variables X_CFLAGS
11563and X_LIBS to avoid the need to call pkg-config.
11564See the pkg-config man page for more details." "$LINENO" 5
11565elif test $pkg_failed = untried; then
11566     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11567printf "%s\n" "no" >&6; }
11568	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11569printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11570as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11571is in your PATH or set the PKG_CONFIG environment variable to the full
11572path to pkg-config.
11573
11574Alternatively, you may set the environment variables X_CFLAGS
11575and X_LIBS to avoid the need to call pkg-config.
11576See the pkg-config man page for more details.
11577
11578To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11579See \`config.log' for more details" "$LINENO" 5; }
11580else
11581	X_CFLAGS=$pkg_cv_X_CFLAGS
11582	X_LIBS=$pkg_cv_X_LIBS
11583        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11584printf "%s\n" "yes" >&6; }
11585
11586fi
11587
11588ac_config_files="$ac_config_files Makefile"
11589
11590cat >confcache <<\_ACEOF
11591# This file is a shell script that caches the results of configure
11592# tests run on this system so they can be shared between configure
11593# scripts and configure runs, see configure's option --config-cache.
11594# It is not useful on other systems.  If it contains results you don't
11595# want to keep, you may remove or edit it.
11596#
11597# config.status only pays attention to the cache file if you give it
11598# the --recheck option to rerun configure.
11599#
11600# `ac_cv_env_foo' variables (set or unset) will be overridden when
11601# loading this file, other *unset* `ac_cv_foo' will be assigned the
11602# following values.
11603
11604_ACEOF
11605
11606# The following way of writing the cache mishandles newlines in values,
11607# but we know of no workaround that is simple, portable, and efficient.
11608# So, we kill variables containing newlines.
11609# Ultrix sh set writes to stderr and can't be redirected directly,
11610# and sets the high bit in the cache file unless we assign to the vars.
11611(
11612  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11613    eval ac_val=\$$ac_var
11614    case $ac_val in #(
11615    *${as_nl}*)
11616      case $ac_var in #(
11617      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11618printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11619      esac
11620      case $ac_var in #(
11621      _ | IFS | as_nl) ;; #(
11622      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11623      *) { eval $ac_var=; unset $ac_var;} ;;
11624      esac ;;
11625    esac
11626  done
11627
11628  (set) 2>&1 |
11629    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11630    *${as_nl}ac_space=\ *)
11631      # `set' does not quote correctly, so add quotes: double-quote
11632      # substitution turns \\\\ into \\, and sed turns \\ into \.
11633      sed -n \
11634	"s/'/'\\\\''/g;
11635	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11636      ;; #(
11637    *)
11638      # `set' quotes correctly as required by POSIX, so do not add quotes.
11639      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11640      ;;
11641    esac |
11642    sort
11643) |
11644  sed '
11645     /^ac_cv_env_/b end
11646     t clear
11647     :clear
11648     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11649     t end
11650     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11651     :end' >>confcache
11652if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11653  if test -w "$cache_file"; then
11654    if test "x$cache_file" != "x/dev/null"; then
11655      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11656printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11657      if test ! -f "$cache_file" || test -h "$cache_file"; then
11658	cat confcache >"$cache_file"
11659      else
11660        case $cache_file in #(
11661        */* | ?:*)
11662	  mv -f confcache "$cache_file"$$ &&
11663	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11664        *)
11665	  mv -f confcache "$cache_file" ;;
11666	esac
11667      fi
11668    fi
11669  else
11670    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11671printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11672  fi
11673fi
11674rm -f confcache
11675
11676test "x$prefix" = xNONE && prefix=$ac_default_prefix
11677# Let make expand exec_prefix.
11678test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11679
11680DEFS=-DHAVE_CONFIG_H
11681
11682ac_libobjs=
11683ac_ltlibobjs=
11684U=
11685for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11686  # 1. Remove the extension, and $U if already installed.
11687  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11688  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11689  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11690  #    will be set to the directory where LIBOBJS objects are built.
11691  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11692  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11693done
11694LIBOBJS=$ac_libobjs
11695
11696LTLIBOBJS=$ac_ltlibobjs
11697
11698
11699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11700printf %s "checking that generated files are newer than configure... " >&6; }
11701   if test -n "$am_sleep_pid"; then
11702     # Hide warnings about reused PIDs.
11703     wait $am_sleep_pid 2>/dev/null
11704   fi
11705   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11706printf "%s\n" "done" >&6; }
11707 if test -n "$EXEEXT"; then
11708  am__EXEEXT_TRUE=
11709  am__EXEEXT_FALSE='#'
11710else
11711  am__EXEEXT_TRUE='#'
11712  am__EXEEXT_FALSE=
11713fi
11714
11715if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11716  as_fn_error $? "conditional \"AMDEP\" was never defined.
11717Usually this means the macro was only invoked conditionally." "$LINENO" 5
11718fi
11719if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11720  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11721Usually this means the macro was only invoked conditionally." "$LINENO" 5
11722fi
11723if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
11724  as_fn_error $? "conditional \"LINT\" was never defined.
11725Usually this means the macro was only invoked conditionally." "$LINENO" 5
11726fi
11727
11728: "${CONFIG_STATUS=./config.status}"
11729ac_write_fail=0
11730ac_clean_files_save=$ac_clean_files
11731ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11733printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11734as_write_fail=0
11735cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11736#! $SHELL
11737# Generated by $as_me.
11738# Run this file to recreate the current configuration.
11739# Compiler output produced by configure, useful for debugging
11740# configure, is in config.log if it exists.
11741
11742debug=false
11743ac_cs_recheck=false
11744ac_cs_silent=false
11745
11746SHELL=\${CONFIG_SHELL-$SHELL}
11747export SHELL
11748_ASEOF
11749cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11750## -------------------- ##
11751## M4sh Initialization. ##
11752## -------------------- ##
11753
11754# Be more Bourne compatible
11755DUALCASE=1; export DUALCASE # for MKS sh
11756as_nop=:
11757if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11758then :
11759  emulate sh
11760  NULLCMD=:
11761  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11762  # is contrary to our usage.  Disable this feature.
11763  alias -g '${1+"$@"}'='"$@"'
11764  setopt NO_GLOB_SUBST
11765else $as_nop
11766  case `(set -o) 2>/dev/null` in #(
11767  *posix*) :
11768    set -o posix ;; #(
11769  *) :
11770     ;;
11771esac
11772fi
11773
11774
11775
11776# Reset variables that may have inherited troublesome values from
11777# the environment.
11778
11779# IFS needs to be set, to space, tab, and newline, in precisely that order.
11780# (If _AS_PATH_WALK were called with IFS unset, it would have the
11781# side effect of setting IFS to empty, thus disabling word splitting.)
11782# Quoting is to prevent editors from complaining about space-tab.
11783as_nl='
11784'
11785export as_nl
11786IFS=" ""	$as_nl"
11787
11788PS1='$ '
11789PS2='> '
11790PS4='+ '
11791
11792# Ensure predictable behavior from utilities with locale-dependent output.
11793LC_ALL=C
11794export LC_ALL
11795LANGUAGE=C
11796export LANGUAGE
11797
11798# We cannot yet rely on "unset" to work, but we need these variables
11799# to be unset--not just set to an empty or harmless value--now, to
11800# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
11801# also avoids known problems related to "unset" and subshell syntax
11802# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11803for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11804do eval test \${$as_var+y} \
11805  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11806done
11807
11808# Ensure that fds 0, 1, and 2 are open.
11809if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11810if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11811if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
11812
11813# The user is always right.
11814if ${PATH_SEPARATOR+false} :; then
11815  PATH_SEPARATOR=:
11816  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11817    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11818      PATH_SEPARATOR=';'
11819  }
11820fi
11821
11822
11823# Find who we are.  Look in the path if we contain no directory separator.
11824as_myself=
11825case $0 in #((
11826  *[\\/]* ) as_myself=$0 ;;
11827  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11828for as_dir in $PATH
11829do
11830  IFS=$as_save_IFS
11831  case $as_dir in #(((
11832    '') as_dir=./ ;;
11833    */) ;;
11834    *) as_dir=$as_dir/ ;;
11835  esac
11836    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11837  done
11838IFS=$as_save_IFS
11839
11840     ;;
11841esac
11842# We did not find ourselves, most probably we were run as `sh COMMAND'
11843# in which case we are not to be found in the path.
11844if test "x$as_myself" = x; then
11845  as_myself=$0
11846fi
11847if test ! -f "$as_myself"; then
11848  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11849  exit 1
11850fi
11851
11852
11853
11854# as_fn_error STATUS ERROR [LINENO LOG_FD]
11855# ----------------------------------------
11856# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11857# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11858# script with STATUS, using 1 if that was 0.
11859as_fn_error ()
11860{
11861  as_status=$1; test $as_status -eq 0 && as_status=1
11862  if test "$4"; then
11863    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11864    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11865  fi
11866  printf "%s\n" "$as_me: error: $2" >&2
11867  as_fn_exit $as_status
11868} # as_fn_error
11869
11870
11871
11872# as_fn_set_status STATUS
11873# -----------------------
11874# Set $? to STATUS, without forking.
11875as_fn_set_status ()
11876{
11877  return $1
11878} # as_fn_set_status
11879
11880# as_fn_exit STATUS
11881# -----------------
11882# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11883as_fn_exit ()
11884{
11885  set +e
11886  as_fn_set_status $1
11887  exit $1
11888} # as_fn_exit
11889
11890# as_fn_unset VAR
11891# ---------------
11892# Portably unset VAR.
11893as_fn_unset ()
11894{
11895  { eval $1=; unset $1;}
11896}
11897as_unset=as_fn_unset
11898
11899# as_fn_append VAR VALUE
11900# ----------------------
11901# Append the text in VALUE to the end of the definition contained in VAR. Take
11902# advantage of any shell optimizations that allow amortized linear growth over
11903# repeated appends, instead of the typical quadratic growth present in naive
11904# implementations.
11905if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11906then :
11907  eval 'as_fn_append ()
11908  {
11909    eval $1+=\$2
11910  }'
11911else $as_nop
11912  as_fn_append ()
11913  {
11914    eval $1=\$$1\$2
11915  }
11916fi # as_fn_append
11917
11918# as_fn_arith ARG...
11919# ------------------
11920# Perform arithmetic evaluation on the ARGs, and store the result in the
11921# global $as_val. Take advantage of shells that can avoid forks. The arguments
11922# must be portable across $(()) and expr.
11923if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11924then :
11925  eval 'as_fn_arith ()
11926  {
11927    as_val=$(( $* ))
11928  }'
11929else $as_nop
11930  as_fn_arith ()
11931  {
11932    as_val=`expr "$@" || test $? -eq 1`
11933  }
11934fi # as_fn_arith
11935
11936
11937if expr a : '\(a\)' >/dev/null 2>&1 &&
11938   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11939  as_expr=expr
11940else
11941  as_expr=false
11942fi
11943
11944if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11945  as_basename=basename
11946else
11947  as_basename=false
11948fi
11949
11950if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11951  as_dirname=dirname
11952else
11953  as_dirname=false
11954fi
11955
11956as_me=`$as_basename -- "$0" ||
11957$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11958	 X"$0" : 'X\(//\)$' \| \
11959	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11960printf "%s\n" X/"$0" |
11961    sed '/^.*\/\([^/][^/]*\)\/*$/{
11962	    s//\1/
11963	    q
11964	  }
11965	  /^X\/\(\/\/\)$/{
11966	    s//\1/
11967	    q
11968	  }
11969	  /^X\/\(\/\).*/{
11970	    s//\1/
11971	    q
11972	  }
11973	  s/.*/./; q'`
11974
11975# Avoid depending upon Character Ranges.
11976as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11977as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11978as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11979as_cr_digits='0123456789'
11980as_cr_alnum=$as_cr_Letters$as_cr_digits
11981
11982
11983# Determine whether it's possible to make 'echo' print without a newline.
11984# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11985# for compatibility with existing Makefiles.
11986ECHO_C= ECHO_N= ECHO_T=
11987case `echo -n x` in #(((((
11988-n*)
11989  case `echo 'xy\c'` in
11990  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11991  xy)  ECHO_C='\c';;
11992  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11993       ECHO_T='	';;
11994  esac;;
11995*)
11996  ECHO_N='-n';;
11997esac
11998
11999# For backward compatibility with old third-party macros, we provide
12000# the shell variables $as_echo and $as_echo_n.  New code should use
12001# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12002as_echo='printf %s\n'
12003as_echo_n='printf %s'
12004
12005rm -f conf$$ conf$$.exe conf$$.file
12006if test -d conf$$.dir; then
12007  rm -f conf$$.dir/conf$$.file
12008else
12009  rm -f conf$$.dir
12010  mkdir conf$$.dir 2>/dev/null
12011fi
12012if (echo >conf$$.file) 2>/dev/null; then
12013  if ln -s conf$$.file conf$$ 2>/dev/null; then
12014    as_ln_s='ln -s'
12015    # ... but there are two gotchas:
12016    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12017    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12018    # In both cases, we have to default to `cp -pR'.
12019    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12020      as_ln_s='cp -pR'
12021  elif ln conf$$.file conf$$ 2>/dev/null; then
12022    as_ln_s=ln
12023  else
12024    as_ln_s='cp -pR'
12025  fi
12026else
12027  as_ln_s='cp -pR'
12028fi
12029rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12030rmdir conf$$.dir 2>/dev/null
12031
12032
12033# as_fn_mkdir_p
12034# -------------
12035# Create "$as_dir" as a directory, including parents if necessary.
12036as_fn_mkdir_p ()
12037{
12038
12039  case $as_dir in #(
12040  -*) as_dir=./$as_dir;;
12041  esac
12042  test -d "$as_dir" || eval $as_mkdir_p || {
12043    as_dirs=
12044    while :; do
12045      case $as_dir in #(
12046      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12047      *) as_qdir=$as_dir;;
12048      esac
12049      as_dirs="'$as_qdir' $as_dirs"
12050      as_dir=`$as_dirname -- "$as_dir" ||
12051$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12052	 X"$as_dir" : 'X\(//\)[^/]' \| \
12053	 X"$as_dir" : 'X\(//\)$' \| \
12054	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12055printf "%s\n" X"$as_dir" |
12056    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12057	    s//\1/
12058	    q
12059	  }
12060	  /^X\(\/\/\)[^/].*/{
12061	    s//\1/
12062	    q
12063	  }
12064	  /^X\(\/\/\)$/{
12065	    s//\1/
12066	    q
12067	  }
12068	  /^X\(\/\).*/{
12069	    s//\1/
12070	    q
12071	  }
12072	  s/.*/./; q'`
12073      test -d "$as_dir" && break
12074    done
12075    test -z "$as_dirs" || eval "mkdir $as_dirs"
12076  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12077
12078
12079} # as_fn_mkdir_p
12080if mkdir -p . 2>/dev/null; then
12081  as_mkdir_p='mkdir -p "$as_dir"'
12082else
12083  test -d ./-p && rmdir ./-p
12084  as_mkdir_p=false
12085fi
12086
12087
12088# as_fn_executable_p FILE
12089# -----------------------
12090# Test if FILE is an executable regular file.
12091as_fn_executable_p ()
12092{
12093  test -f "$1" && test -x "$1"
12094} # as_fn_executable_p
12095as_test_x='test -x'
12096as_executable_p=as_fn_executable_p
12097
12098# Sed expression to map a string onto a valid CPP name.
12099as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12100
12101# Sed expression to map a string onto a valid variable name.
12102as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12103
12104
12105exec 6>&1
12106## ----------------------------------- ##
12107## Main body of $CONFIG_STATUS script. ##
12108## ----------------------------------- ##
12109_ASEOF
12110test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12111
12112cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12113# Save the log message, to keep $0 and so on meaningful, and to
12114# report actual input values of CONFIG_FILES etc. instead of their
12115# values after options handling.
12116ac_log="
12117This file was extended by makedepend $as_me 1.0.8, which was
12118generated by GNU Autoconf 2.71.  Invocation command line was
12119
12120  CONFIG_FILES    = $CONFIG_FILES
12121  CONFIG_HEADERS  = $CONFIG_HEADERS
12122  CONFIG_LINKS    = $CONFIG_LINKS
12123  CONFIG_COMMANDS = $CONFIG_COMMANDS
12124  $ $0 $@
12125
12126on `(hostname || uname -n) 2>/dev/null | sed 1q`
12127"
12128
12129_ACEOF
12130
12131case $ac_config_files in *"
12132"*) set x $ac_config_files; shift; ac_config_files=$*;;
12133esac
12134
12135case $ac_config_headers in *"
12136"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12137esac
12138
12139
12140cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12141# Files that config.status was made for.
12142config_files="$ac_config_files"
12143config_headers="$ac_config_headers"
12144config_commands="$ac_config_commands"
12145
12146_ACEOF
12147
12148cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12149ac_cs_usage="\
12150\`$as_me' instantiates files and other configuration actions
12151from templates according to the current configuration.  Unless the files
12152and actions are specified as TAGs, all are instantiated by default.
12153
12154Usage: $0 [OPTION]... [TAG]...
12155
12156  -h, --help       print this help, then exit
12157  -V, --version    print version number and configuration settings, then exit
12158      --config     print configuration, then exit
12159  -q, --quiet, --silent
12160                   do not print progress messages
12161  -d, --debug      don't remove temporary files
12162      --recheck    update $as_me by reconfiguring in the same conditions
12163      --file=FILE[:TEMPLATE]
12164                   instantiate the configuration file FILE
12165      --header=FILE[:TEMPLATE]
12166                   instantiate the configuration header FILE
12167
12168Configuration files:
12169$config_files
12170
12171Configuration headers:
12172$config_headers
12173
12174Configuration commands:
12175$config_commands
12176
12177Report bugs to <https://gitlab.freedesktop.org/xorg/util/makedepend/-/issues>."
12178
12179_ACEOF
12180ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12181ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12182cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12183ac_cs_config='$ac_cs_config_escaped'
12184ac_cs_version="\\
12185makedepend config.status 1.0.8
12186configured by $0, generated by GNU Autoconf 2.71,
12187  with options \\"\$ac_cs_config\\"
12188
12189Copyright (C) 2021 Free Software Foundation, Inc.
12190This config.status script is free software; the Free Software Foundation
12191gives unlimited permission to copy, distribute and modify it."
12192
12193ac_pwd='$ac_pwd'
12194srcdir='$srcdir'
12195INSTALL='$INSTALL'
12196MKDIR_P='$MKDIR_P'
12197AWK='$AWK'
12198test -n "\$AWK" || AWK=awk
12199_ACEOF
12200
12201cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12202# The default lists apply if the user does not specify any file.
12203ac_need_defaults=:
12204while test $# != 0
12205do
12206  case $1 in
12207  --*=?*)
12208    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12209    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12210    ac_shift=:
12211    ;;
12212  --*=)
12213    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12214    ac_optarg=
12215    ac_shift=:
12216    ;;
12217  *)
12218    ac_option=$1
12219    ac_optarg=$2
12220    ac_shift=shift
12221    ;;
12222  esac
12223
12224  case $ac_option in
12225  # Handling of the options.
12226  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12227    ac_cs_recheck=: ;;
12228  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12229    printf "%s\n" "$ac_cs_version"; exit ;;
12230  --config | --confi | --conf | --con | --co | --c )
12231    printf "%s\n" "$ac_cs_config"; exit ;;
12232  --debug | --debu | --deb | --de | --d | -d )
12233    debug=: ;;
12234  --file | --fil | --fi | --f )
12235    $ac_shift
12236    case $ac_optarg in
12237    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12238    '') as_fn_error $? "missing file argument" ;;
12239    esac
12240    as_fn_append CONFIG_FILES " '$ac_optarg'"
12241    ac_need_defaults=false;;
12242  --header | --heade | --head | --hea )
12243    $ac_shift
12244    case $ac_optarg in
12245    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12246    esac
12247    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12248    ac_need_defaults=false;;
12249  --he | --h)
12250    # Conflict between --help and --header
12251    as_fn_error $? "ambiguous option: \`$1'
12252Try \`$0 --help' for more information.";;
12253  --help | --hel | -h )
12254    printf "%s\n" "$ac_cs_usage"; exit ;;
12255  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12256  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12257    ac_cs_silent=: ;;
12258
12259  # This is an error.
12260  -*) as_fn_error $? "unrecognized option: \`$1'
12261Try \`$0 --help' for more information." ;;
12262
12263  *) as_fn_append ac_config_targets " $1"
12264     ac_need_defaults=false ;;
12265
12266  esac
12267  shift
12268done
12269
12270ac_configure_extra_args=
12271
12272if $ac_cs_silent; then
12273  exec 6>/dev/null
12274  ac_configure_extra_args="$ac_configure_extra_args --silent"
12275fi
12276
12277_ACEOF
12278cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12279if \$ac_cs_recheck; then
12280  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12281  shift
12282  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12283  CONFIG_SHELL='$SHELL'
12284  export CONFIG_SHELL
12285  exec "\$@"
12286fi
12287
12288_ACEOF
12289cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12290exec 5>>config.log
12291{
12292  echo
12293  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12294## Running $as_me. ##
12295_ASBOX
12296  printf "%s\n" "$ac_log"
12297} >&5
12298
12299_ACEOF
12300cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12301#
12302# INIT-COMMANDS
12303#
12304AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12305
12306_ACEOF
12307
12308cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12309
12310# Handling of arguments.
12311for ac_config_target in $ac_config_targets
12312do
12313  case $ac_config_target in
12314    "makedepend-config.h") CONFIG_HEADERS="$CONFIG_HEADERS makedepend-config.h" ;;
12315    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12316    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12317
12318  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12319  esac
12320done
12321
12322
12323# If the user did not use the arguments to specify the items to instantiate,
12324# then the envvar interface is used.  Set only those that are not.
12325# We use the long form for the default assignment because of an extremely
12326# bizarre bug on SunOS 4.1.3.
12327if $ac_need_defaults; then
12328  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12329  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12330  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12331fi
12332
12333# Have a temporary directory for convenience.  Make it in the build tree
12334# simply because there is no reason against having it here, and in addition,
12335# creating and moving files from /tmp can sometimes cause problems.
12336# Hook for its removal unless debugging.
12337# Note that there is a small window in which the directory will not be cleaned:
12338# after its creation but before its name has been assigned to `$tmp'.
12339$debug ||
12340{
12341  tmp= ac_tmp=
12342  trap 'exit_status=$?
12343  : "${ac_tmp:=$tmp}"
12344  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12345' 0
12346  trap 'as_fn_exit 1' 1 2 13 15
12347}
12348# Create a (secure) tmp directory for tmp files.
12349
12350{
12351  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12352  test -d "$tmp"
12353}  ||
12354{
12355  tmp=./conf$$-$RANDOM
12356  (umask 077 && mkdir "$tmp")
12357} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12358ac_tmp=$tmp
12359
12360# Set up the scripts for CONFIG_FILES section.
12361# No need to generate them if there are no CONFIG_FILES.
12362# This happens for instance with `./config.status config.h'.
12363if test -n "$CONFIG_FILES"; then
12364
12365
12366ac_cr=`echo X | tr X '\015'`
12367# On cygwin, bash can eat \r inside `` if the user requested igncr.
12368# But we know of no other shell where ac_cr would be empty at this
12369# point, so we can use a bashism as a fallback.
12370if test "x$ac_cr" = x; then
12371  eval ac_cr=\$\'\\r\'
12372fi
12373ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12374if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12375  ac_cs_awk_cr='\\r'
12376else
12377  ac_cs_awk_cr=$ac_cr
12378fi
12379
12380echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12381_ACEOF
12382
12383
12384{
12385  echo "cat >conf$$subs.awk <<_ACEOF" &&
12386  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12387  echo "_ACEOF"
12388} >conf$$subs.sh ||
12389  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12390ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12391ac_delim='%!_!# '
12392for ac_last_try in false false false false false :; do
12393  . ./conf$$subs.sh ||
12394    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12395
12396  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12397  if test $ac_delim_n = $ac_delim_num; then
12398    break
12399  elif $ac_last_try; then
12400    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12401  else
12402    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12403  fi
12404done
12405rm -f conf$$subs.sh
12406
12407cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12408cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12409_ACEOF
12410sed -n '
12411h
12412s/^/S["/; s/!.*/"]=/
12413p
12414g
12415s/^[^!]*!//
12416:repl
12417t repl
12418s/'"$ac_delim"'$//
12419t delim
12420:nl
12421h
12422s/\(.\{148\}\)..*/\1/
12423t more1
12424s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12425p
12426n
12427b repl
12428:more1
12429s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12430p
12431g
12432s/.\{148\}//
12433t nl
12434:delim
12435h
12436s/\(.\{148\}\)..*/\1/
12437t more2
12438s/["\\]/\\&/g; s/^/"/; s/$/"/
12439p
12440b
12441:more2
12442s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12443p
12444g
12445s/.\{148\}//
12446t delim
12447' <conf$$subs.awk | sed '
12448/^[^""]/{
12449  N
12450  s/\n//
12451}
12452' >>$CONFIG_STATUS || ac_write_fail=1
12453rm -f conf$$subs.awk
12454cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12455_ACAWK
12456cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12457  for (key in S) S_is_set[key] = 1
12458  FS = ""
12459
12460}
12461{
12462  line = $ 0
12463  nfields = split(line, field, "@")
12464  substed = 0
12465  len = length(field[1])
12466  for (i = 2; i < nfields; i++) {
12467    key = field[i]
12468    keylen = length(key)
12469    if (S_is_set[key]) {
12470      value = S[key]
12471      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12472      len += length(value) + length(field[++i])
12473      substed = 1
12474    } else
12475      len += 1 + keylen
12476  }
12477
12478  print line
12479}
12480
12481_ACAWK
12482_ACEOF
12483cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12484if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12485  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12486else
12487  cat
12488fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12489  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12490_ACEOF
12491
12492# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12493# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12494# trailing colons and then remove the whole line if VPATH becomes empty
12495# (actually we leave an empty line to preserve line numbers).
12496if test "x$srcdir" = x.; then
12497  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12498h
12499s///
12500s/^/:/
12501s/[	 ]*$/:/
12502s/:\$(srcdir):/:/g
12503s/:\${srcdir}:/:/g
12504s/:@srcdir@:/:/g
12505s/^:*//
12506s/:*$//
12507x
12508s/\(=[	 ]*\).*/\1/
12509G
12510s/\n//
12511s/^[^=]*=[	 ]*$//
12512}'
12513fi
12514
12515cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12516fi # test -n "$CONFIG_FILES"
12517
12518# Set up the scripts for CONFIG_HEADERS section.
12519# No need to generate them if there are no CONFIG_HEADERS.
12520# This happens for instance with `./config.status Makefile'.
12521if test -n "$CONFIG_HEADERS"; then
12522cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12523BEGIN {
12524_ACEOF
12525
12526# Transform confdefs.h into an awk script `defines.awk', embedded as
12527# here-document in config.status, that substitutes the proper values into
12528# config.h.in to produce config.h.
12529
12530# Create a delimiter string that does not exist in confdefs.h, to ease
12531# handling of long lines.
12532ac_delim='%!_!# '
12533for ac_last_try in false false :; do
12534  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12535  if test -z "$ac_tt"; then
12536    break
12537  elif $ac_last_try; then
12538    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12539  else
12540    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12541  fi
12542done
12543
12544# For the awk script, D is an array of macro values keyed by name,
12545# likewise P contains macro parameters if any.  Preserve backslash
12546# newline sequences.
12547
12548ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12549sed -n '
12550s/.\{148\}/&'"$ac_delim"'/g
12551t rset
12552:rset
12553s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12554t def
12555d
12556:def
12557s/\\$//
12558t bsnl
12559s/["\\]/\\&/g
12560s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12561D["\1"]=" \3"/p
12562s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12563d
12564:bsnl
12565s/["\\]/\\&/g
12566s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12567D["\1"]=" \3\\\\\\n"\\/p
12568t cont
12569s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12570t cont
12571d
12572:cont
12573n
12574s/.\{148\}/&'"$ac_delim"'/g
12575t clear
12576:clear
12577s/\\$//
12578t bsnlc
12579s/["\\]/\\&/g; s/^/"/; s/$/"/p
12580d
12581:bsnlc
12582s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12583b cont
12584' <confdefs.h | sed '
12585s/'"$ac_delim"'/"\\\
12586"/g' >>$CONFIG_STATUS || ac_write_fail=1
12587
12588cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12589  for (key in D) D_is_set[key] = 1
12590  FS = ""
12591}
12592/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12593  line = \$ 0
12594  split(line, arg, " ")
12595  if (arg[1] == "#") {
12596    defundef = arg[2]
12597    mac1 = arg[3]
12598  } else {
12599    defundef = substr(arg[1], 2)
12600    mac1 = arg[2]
12601  }
12602  split(mac1, mac2, "(") #)
12603  macro = mac2[1]
12604  prefix = substr(line, 1, index(line, defundef) - 1)
12605  if (D_is_set[macro]) {
12606    # Preserve the white space surrounding the "#".
12607    print prefix "define", macro P[macro] D[macro]
12608    next
12609  } else {
12610    # Replace #undef with comments.  This is necessary, for example,
12611    # in the case of _POSIX_SOURCE, which is predefined and required
12612    # on some systems where configure will not decide to define it.
12613    if (defundef == "undef") {
12614      print "/*", prefix defundef, macro, "*/"
12615      next
12616    }
12617  }
12618}
12619{ print }
12620_ACAWK
12621_ACEOF
12622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12623  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12624fi # test -n "$CONFIG_HEADERS"
12625
12626
12627eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12628shift
12629for ac_tag
12630do
12631  case $ac_tag in
12632  :[FHLC]) ac_mode=$ac_tag; continue;;
12633  esac
12634  case $ac_mode$ac_tag in
12635  :[FHL]*:*);;
12636  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12637  :[FH]-) ac_tag=-:-;;
12638  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12639  esac
12640  ac_save_IFS=$IFS
12641  IFS=:
12642  set x $ac_tag
12643  IFS=$ac_save_IFS
12644  shift
12645  ac_file=$1
12646  shift
12647
12648  case $ac_mode in
12649  :L) ac_source=$1;;
12650  :[FH])
12651    ac_file_inputs=
12652    for ac_f
12653    do
12654      case $ac_f in
12655      -) ac_f="$ac_tmp/stdin";;
12656      *) # Look for the file first in the build tree, then in the source tree
12657	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12658	 # because $ac_f cannot contain `:'.
12659	 test -f "$ac_f" ||
12660	   case $ac_f in
12661	   [\\/$]*) false;;
12662	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12663	   esac ||
12664	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12665      esac
12666      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12667      as_fn_append ac_file_inputs " '$ac_f'"
12668    done
12669
12670    # Let's still pretend it is `configure' which instantiates (i.e., don't
12671    # use $as_me), people would be surprised to read:
12672    #    /* config.h.  Generated by config.status.  */
12673    configure_input='Generated from '`
12674	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12675	`' by configure.'
12676    if test x"$ac_file" != x-; then
12677      configure_input="$ac_file.  $configure_input"
12678      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12679printf "%s\n" "$as_me: creating $ac_file" >&6;}
12680    fi
12681    # Neutralize special characters interpreted by sed in replacement strings.
12682    case $configure_input in #(
12683    *\&* | *\|* | *\\* )
12684       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12685       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12686    *) ac_sed_conf_input=$configure_input;;
12687    esac
12688
12689    case $ac_tag in
12690    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12691      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12692    esac
12693    ;;
12694  esac
12695
12696  ac_dir=`$as_dirname -- "$ac_file" ||
12697$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12698	 X"$ac_file" : 'X\(//\)[^/]' \| \
12699	 X"$ac_file" : 'X\(//\)$' \| \
12700	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12701printf "%s\n" X"$ac_file" |
12702    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12703	    s//\1/
12704	    q
12705	  }
12706	  /^X\(\/\/\)[^/].*/{
12707	    s//\1/
12708	    q
12709	  }
12710	  /^X\(\/\/\)$/{
12711	    s//\1/
12712	    q
12713	  }
12714	  /^X\(\/\).*/{
12715	    s//\1/
12716	    q
12717	  }
12718	  s/.*/./; q'`
12719  as_dir="$ac_dir"; as_fn_mkdir_p
12720  ac_builddir=.
12721
12722case "$ac_dir" in
12723.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12724*)
12725  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12726  # A ".." for each directory in $ac_dir_suffix.
12727  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12728  case $ac_top_builddir_sub in
12729  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12730  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12731  esac ;;
12732esac
12733ac_abs_top_builddir=$ac_pwd
12734ac_abs_builddir=$ac_pwd$ac_dir_suffix
12735# for backward compatibility:
12736ac_top_builddir=$ac_top_build_prefix
12737
12738case $srcdir in
12739  .)  # We are building in place.
12740    ac_srcdir=.
12741    ac_top_srcdir=$ac_top_builddir_sub
12742    ac_abs_top_srcdir=$ac_pwd ;;
12743  [\\/]* | ?:[\\/]* )  # Absolute name.
12744    ac_srcdir=$srcdir$ac_dir_suffix;
12745    ac_top_srcdir=$srcdir
12746    ac_abs_top_srcdir=$srcdir ;;
12747  *) # Relative name.
12748    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12749    ac_top_srcdir=$ac_top_build_prefix$srcdir
12750    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12751esac
12752ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12753
12754
12755  case $ac_mode in
12756  :F)
12757  #
12758  # CONFIG_FILE
12759  #
12760
12761  case $INSTALL in
12762  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12763  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12764  esac
12765  ac_MKDIR_P=$MKDIR_P
12766  case $MKDIR_P in
12767  [\\/$]* | ?:[\\/]* ) ;;
12768  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12769  esac
12770_ACEOF
12771
12772cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12773# If the template does not know about datarootdir, expand it.
12774# FIXME: This hack should be removed a few years after 2.60.
12775ac_datarootdir_hack=; ac_datarootdir_seen=
12776ac_sed_dataroot='
12777/datarootdir/ {
12778  p
12779  q
12780}
12781/@datadir@/p
12782/@docdir@/p
12783/@infodir@/p
12784/@localedir@/p
12785/@mandir@/p'
12786case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12787*datarootdir*) ac_datarootdir_seen=yes;;
12788*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12790printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12791_ACEOF
12792cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12793  ac_datarootdir_hack='
12794  s&@datadir@&$datadir&g
12795  s&@docdir@&$docdir&g
12796  s&@infodir@&$infodir&g
12797  s&@localedir@&$localedir&g
12798  s&@mandir@&$mandir&g
12799  s&\\\${datarootdir}&$datarootdir&g' ;;
12800esac
12801_ACEOF
12802
12803# Neutralize VPATH when `$srcdir' = `.'.
12804# Shell code in configure.ac might set extrasub.
12805# FIXME: do we really want to maintain this feature?
12806cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12807ac_sed_extra="$ac_vpsub
12808$extrasub
12809_ACEOF
12810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12811:t
12812/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12813s|@configure_input@|$ac_sed_conf_input|;t t
12814s&@top_builddir@&$ac_top_builddir_sub&;t t
12815s&@top_build_prefix@&$ac_top_build_prefix&;t t
12816s&@srcdir@&$ac_srcdir&;t t
12817s&@abs_srcdir@&$ac_abs_srcdir&;t t
12818s&@top_srcdir@&$ac_top_srcdir&;t t
12819s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12820s&@builddir@&$ac_builddir&;t t
12821s&@abs_builddir@&$ac_abs_builddir&;t t
12822s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12823s&@INSTALL@&$ac_INSTALL&;t t
12824s&@MKDIR_P@&$ac_MKDIR_P&;t t
12825$ac_datarootdir_hack
12826"
12827eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12828  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12829
12830test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12831  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12832  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12833      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12834  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12835which seems to be undefined.  Please make sure it is defined" >&5
12836printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12837which seems to be undefined.  Please make sure it is defined" >&2;}
12838
12839  rm -f "$ac_tmp/stdin"
12840  case $ac_file in
12841  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12842  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12843  esac \
12844  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12845 ;;
12846  :H)
12847  #
12848  # CONFIG_HEADER
12849  #
12850  if test x"$ac_file" != x-; then
12851    {
12852      printf "%s\n" "/* $configure_input  */" >&1 \
12853      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12854    } >"$ac_tmp/config.h" \
12855      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12856    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12857      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12858printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12859    else
12860      rm -f "$ac_file"
12861      mv "$ac_tmp/config.h" "$ac_file" \
12862	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12863    fi
12864  else
12865    printf "%s\n" "/* $configure_input  */" >&1 \
12866      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12867      || as_fn_error $? "could not create -" "$LINENO" 5
12868  fi
12869# Compute "$ac_file"'s index in $config_headers.
12870_am_arg="$ac_file"
12871_am_stamp_count=1
12872for _am_header in $config_headers :; do
12873  case $_am_header in
12874    $_am_arg | $_am_arg:* )
12875      break ;;
12876    * )
12877      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12878  esac
12879done
12880echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12881$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12882	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12883	 X"$_am_arg" : 'X\(//\)$' \| \
12884	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12885printf "%s\n" X"$_am_arg" |
12886    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12887	    s//\1/
12888	    q
12889	  }
12890	  /^X\(\/\/\)[^/].*/{
12891	    s//\1/
12892	    q
12893	  }
12894	  /^X\(\/\/\)$/{
12895	    s//\1/
12896	    q
12897	  }
12898	  /^X\(\/\).*/{
12899	    s//\1/
12900	    q
12901	  }
12902	  s/.*/./; q'`/stamp-h$_am_stamp_count
12903 ;;
12904
12905  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12906printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12907 ;;
12908  esac
12909
12910
12911  case $ac_file$ac_mode in
12912    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12913  # Older Autoconf quotes --file arguments for eval, but not when files
12914  # are listed without --file.  Let's play safe and only enable the eval
12915  # if we detect the quoting.
12916  # TODO: see whether this extra hack can be removed once we start
12917  # requiring Autoconf 2.70 or later.
12918  case $CONFIG_FILES in #(
12919  *\'*) :
12920    eval set x "$CONFIG_FILES" ;; #(
12921  *) :
12922    set x $CONFIG_FILES ;; #(
12923  *) :
12924     ;;
12925esac
12926  shift
12927  # Used to flag and report bootstrapping failures.
12928  am_rc=0
12929  for am_mf
12930  do
12931    # Strip MF so we end up with the name of the file.
12932    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12933    # Check whether this is an Automake generated Makefile which includes
12934    # dependency-tracking related rules and includes.
12935    # Grep'ing the whole file directly is not great: AIX grep has a line
12936    # limit of 2048, but all sed's we know have understand at least 4000.
12937    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12938      || continue
12939    am_dirpart=`$as_dirname -- "$am_mf" ||
12940$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12941	 X"$am_mf" : 'X\(//\)[^/]' \| \
12942	 X"$am_mf" : 'X\(//\)$' \| \
12943	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12944printf "%s\n" X"$am_mf" |
12945    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12946	    s//\1/
12947	    q
12948	  }
12949	  /^X\(\/\/\)[^/].*/{
12950	    s//\1/
12951	    q
12952	  }
12953	  /^X\(\/\/\)$/{
12954	    s//\1/
12955	    q
12956	  }
12957	  /^X\(\/\).*/{
12958	    s//\1/
12959	    q
12960	  }
12961	  s/.*/./; q'`
12962    am_filepart=`$as_basename -- "$am_mf" ||
12963$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12964	 X"$am_mf" : 'X\(//\)$' \| \
12965	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12966printf "%s\n" X/"$am_mf" |
12967    sed '/^.*\/\([^/][^/]*\)\/*$/{
12968	    s//\1/
12969	    q
12970	  }
12971	  /^X\/\(\/\/\)$/{
12972	    s//\1/
12973	    q
12974	  }
12975	  /^X\/\(\/\).*/{
12976	    s//\1/
12977	    q
12978	  }
12979	  s/.*/./; q'`
12980    { echo "$as_me:$LINENO: cd "$am_dirpart" \
12981      && sed -e '/# am--include-marker/d' "$am_filepart" \
12982        | $MAKE -f - am--depfiles" >&5
12983   (cd "$am_dirpart" \
12984      && sed -e '/# am--include-marker/d' "$am_filepart" \
12985        | $MAKE -f - am--depfiles) >&5 2>&5
12986   ac_status=$?
12987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988   (exit $ac_status); } || am_rc=$?
12989  done
12990  if test $am_rc -ne 0; then
12991    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12992printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12993as_fn_error $? "Something went wrong bootstrapping makefile fragments
12994    for automatic dependency tracking.  If GNU make was not used, consider
12995    re-running the configure script with MAKE=\"gmake\" (or whatever is
12996    necessary).  You can also try re-running configure with the
12997    '--disable-dependency-tracking' option to at least be able to build
12998    the package (albeit without support for automatic dependency tracking).
12999See \`config.log' for more details" "$LINENO" 5; }
13000  fi
13001  { am_dirpart=; unset am_dirpart;}
13002  { am_filepart=; unset am_filepart;}
13003  { am_mf=; unset am_mf;}
13004  { am_rc=; unset am_rc;}
13005  rm -f conftest-deps.mk
13006}
13007 ;;
13008
13009  esac
13010done # for ac_tag
13011
13012
13013as_fn_exit 0
13014_ACEOF
13015ac_clean_files=$ac_clean_files_save
13016
13017test $ac_write_fail = 0 ||
13018  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13019
13020
13021# configure is writing to config.log, and then calls config.status.
13022# config.status does its own redirection, appending to config.log.
13023# Unfortunately, on DOS this fails, as config.log is still kept open
13024# by configure, so config.status won't be able to write to it; its
13025# output is simply discarded.  So we exec the FD to /dev/null,
13026# effectively closing config.log, so it can be properly (re)opened and
13027# appended to by config.status.  When coming back to configure, we
13028# need to make the FD available again.
13029if test "$no_create" != yes; then
13030  ac_cs_success=:
13031  ac_config_status_args=
13032  test "$silent" = yes &&
13033    ac_config_status_args="$ac_config_status_args --quiet"
13034  exec 5>/dev/null
13035  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13036  exec 5>>config.log
13037  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13038  # would make configure fail if this is the last instruction.
13039  $ac_cs_success || as_fn_exit 1
13040fi
13041if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13042  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13043printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13044fi
13045
13046
13047