configure revision 92e95ad1
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for sessreg 1.1.3.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/sessreg/-/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186test \$(( 1 + 1 )) = 2 || exit 1"
187  if (eval "$as_required") 2>/dev/null
188then :
189  as_have_required=yes
190else $as_nop
191  as_have_required=no
192fi
193  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194then :
195
196else $as_nop
197  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198as_found=false
199for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200do
201  IFS=$as_save_IFS
202  case $as_dir in #(((
203    '') as_dir=./ ;;
204    */) ;;
205    *) as_dir=$as_dir/ ;;
206  esac
207  as_found=:
208  case $as_dir in #(
209	 /*)
210	   for as_base in sh bash ksh sh5; do
211	     # Try only shells that exist, to save several forks.
212	     as_shell=$as_dir$as_base
213	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215then :
216  CONFIG_SHELL=$as_shell as_have_required=yes
217		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218then :
219  break 2
220fi
221fi
222	   done;;
223       esac
224  as_found=false
225done
226IFS=$as_save_IFS
227if $as_found
228then :
229
230else $as_nop
231  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233then :
234  CONFIG_SHELL=$SHELL as_have_required=yes
235fi
236fi
237
238
239      if test "x$CONFIG_SHELL" != x
240then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno
263then :
264  printf "%s\n" "$0: This script requires a shell more modern than all"
265  printf "%s\n" "$0: the shells that I found on your system."
266  if test ${ZSH_VERSION+y} ; then
267    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269  else
270    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
271$0: https://gitlab.freedesktop.org/xorg/app/sessreg/-/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='sessreg'
614PACKAGE_TARNAME='sessreg'
615PACKAGE_VERSION='1.1.3'
616PACKAGE_STRING='sessreg 1.1.3'
617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/sessreg/-/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
657SESSREG_LIBS
658SESSREG_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_BACKSLASH
695AM_DEFAULT_VERBOSITY
696AM_DEFAULT_V
697AM_V
698CSCOPE
699ETAGS
700CTAGS
701am__fastdepCC_FALSE
702am__fastdepCC_TRUE
703CCDEPMODE
704am__nodep
705AMDEPBACKSLASH
706AMDEP_FALSE
707AMDEP_TRUE
708am__include
709DEPDIR
710am__untar
711am__tar
712AMTAR
713am__leading_dot
714SET_MAKE
715AWK
716mkdir_p
717MKDIR_P
718INSTALL_STRIP_PROGRAM
719STRIP
720install_sh
721MAKEINFO
722AUTOHEADER
723AUTOMAKE
724AUTOCONF
725ACLOCAL
726VERSION
727PACKAGE
728CYGPATH_W
729am__isrc
730INSTALL_DATA
731INSTALL_SCRIPT
732INSTALL_PROGRAM
733OBJEXT
734EXEEXT
735ac_ct_CC
736CPPFLAGS
737LDFLAGS
738CFLAGS
739CC
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_largefile
784enable_dependency_tracking
785enable_silent_rules
786enable_selective_werror
787enable_strict_compilation
788with_lint
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
803SESSREG_CFLAGS
804SESSREG_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 sessreg 1.1.3 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/sessreg]
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 sessreg 1.1.3:";;
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  --disable-largefile     omit support for large files
1433  --enable-dependency-tracking
1434                          do not reject slow dependency extractors
1435  --disable-dependency-tracking
1436                          speeds up one-time build
1437  --enable-silent-rules   less verbose build output (undo: "make V=1")
1438  --disable-silent-rules  verbose build output (undo: "make V=0")
1439  --disable-selective-werror
1440                          Turn off selective compiler errors. (default:
1441                          enabled)
1442  --enable-strict-compilation
1443                          Enable all warnings from compiler and make them
1444                          errors (default: disabled)
1445
1446Optional Packages:
1447  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1448  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1449  --with-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  SESSREG_CFLAGS
1468              C compiler flags for SESSREG, overriding pkg-config
1469  SESSREG_LIBS
1470              linker flags for SESSREG, overriding pkg-config
1471
1472Use these variables to override the choices made by `configure' or to help
1473it to find libraries and programs with nonstandard names/locations.
1474
1475Report bugs to <https://gitlab.freedesktop.org/xorg/app/sessreg/-/issues>.
1476_ACEOF
1477ac_status=$?
1478fi
1479
1480if test "$ac_init_help" = "recursive"; then
1481  # If there are subdirs, report their specific --help.
1482  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483    test -d "$ac_dir" ||
1484      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1485      continue
1486    ac_builddir=.
1487
1488case "$ac_dir" in
1489.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490*)
1491  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1492  # A ".." for each directory in $ac_dir_suffix.
1493  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1494  case $ac_top_builddir_sub in
1495  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497  esac ;;
1498esac
1499ac_abs_top_builddir=$ac_pwd
1500ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501# for backward compatibility:
1502ac_top_builddir=$ac_top_build_prefix
1503
1504case $srcdir in
1505  .)  # We are building in place.
1506    ac_srcdir=.
1507    ac_top_srcdir=$ac_top_builddir_sub
1508    ac_abs_top_srcdir=$ac_pwd ;;
1509  [\\/]* | ?:[\\/]* )  # Absolute name.
1510    ac_srcdir=$srcdir$ac_dir_suffix;
1511    ac_top_srcdir=$srcdir
1512    ac_abs_top_srcdir=$srcdir ;;
1513  *) # Relative name.
1514    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515    ac_top_srcdir=$ac_top_build_prefix$srcdir
1516    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1517esac
1518ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519
1520    cd "$ac_dir" || { ac_status=$?; continue; }
1521    # Check for configure.gnu first; this name is used for a wrapper for
1522    # Metaconfig's "Configure" on case-insensitive file systems.
1523    if test -f "$ac_srcdir/configure.gnu"; then
1524      echo &&
1525      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1526    elif test -f "$ac_srcdir/configure"; then
1527      echo &&
1528      $SHELL "$ac_srcdir/configure" --help=recursive
1529    else
1530      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1531    fi || ac_status=$?
1532    cd "$ac_pwd" || { ac_status=$?; break; }
1533  done
1534fi
1535
1536test -n "$ac_init_help" && exit $ac_status
1537if $ac_init_version; then
1538  cat <<\_ACEOF
1539sessreg configure 1.1.3
1540generated by GNU Autoconf 2.71
1541
1542Copyright (C) 2021 Free Software Foundation, Inc.
1543This configure script is free software; the Free Software Foundation
1544gives unlimited permission to copy, distribute and modify it.
1545_ACEOF
1546  exit
1547fi
1548
1549## ------------------------ ##
1550## Autoconf initialization. ##
1551## ------------------------ ##
1552
1553# ac_fn_c_try_compile LINENO
1554# --------------------------
1555# Try to compile conftest.$ac_ext, and return whether this succeeded.
1556ac_fn_c_try_compile ()
1557{
1558  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559  rm -f conftest.$ac_objext conftest.beam
1560  if { { ac_try="$ac_compile"
1561case "(($ac_try" in
1562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563  *) ac_try_echo=$ac_try;;
1564esac
1565eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566printf "%s\n" "$ac_try_echo"; } >&5
1567  (eval "$ac_compile") 2>conftest.err
1568  ac_status=$?
1569  if test -s conftest.err; then
1570    grep -v '^ *+' conftest.err >conftest.er1
1571    cat conftest.er1 >&5
1572    mv -f conftest.er1 conftest.err
1573  fi
1574  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575  test $ac_status = 0; } && {
1576	 test -z "$ac_c_werror_flag" ||
1577	 test ! -s conftest.err
1578       } && test -s conftest.$ac_objext
1579then :
1580  ac_retval=0
1581else $as_nop
1582  printf "%s\n" "$as_me: failed program was:" >&5
1583sed 's/^/| /' conftest.$ac_ext >&5
1584
1585	ac_retval=1
1586fi
1587  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588  as_fn_set_status $ac_retval
1589
1590} # ac_fn_c_try_compile
1591
1592# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1593# -------------------------------------------------------
1594# Tests whether HEADER exists and can be compiled using the include files in
1595# INCLUDES, setting the cache variable VAR accordingly.
1596ac_fn_c_check_header_compile ()
1597{
1598  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1600printf %s "checking for $2... " >&6; }
1601if eval test \${$3+y}
1602then :
1603  printf %s "(cached) " >&6
1604else $as_nop
1605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1606/* end confdefs.h.  */
1607$4
1608#include <$2>
1609_ACEOF
1610if ac_fn_c_try_compile "$LINENO"
1611then :
1612  eval "$3=yes"
1613else $as_nop
1614  eval "$3=no"
1615fi
1616rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1617fi
1618eval ac_res=\$$3
1619	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1620printf "%s\n" "$ac_res" >&6; }
1621  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622
1623} # ac_fn_c_check_header_compile
1624
1625# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1626# ------------------------------------------------------------------
1627# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1628# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1629ac_fn_check_decl ()
1630{
1631  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632  as_decl_name=`echo $2|sed 's/ *(.*//'`
1633  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1634printf %s "checking whether $as_decl_name is declared... " >&6; }
1635if eval test \${$3+y}
1636then :
1637  printf %s "(cached) " >&6
1638else $as_nop
1639  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1640  eval ac_save_FLAGS=\$$6
1641  as_fn_append $6 " $5"
1642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1643/* end confdefs.h.  */
1644$4
1645int
1646main (void)
1647{
1648#ifndef $as_decl_name
1649#ifdef __cplusplus
1650  (void) $as_decl_use;
1651#else
1652  (void) $as_decl_name;
1653#endif
1654#endif
1655
1656  ;
1657  return 0;
1658}
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
1667  eval $6=\$ac_save_FLAGS
1668
1669fi
1670eval ac_res=\$$3
1671	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1672printf "%s\n" "$ac_res" >&6; }
1673  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674
1675} # ac_fn_check_decl
1676
1677# ac_fn_c_try_link LINENO
1678# -----------------------
1679# Try to link conftest.$ac_ext, and return whether this succeeded.
1680ac_fn_c_try_link ()
1681{
1682  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1684  if { { ac_try="$ac_link"
1685case "(($ac_try" in
1686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687  *) ac_try_echo=$ac_try;;
1688esac
1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690printf "%s\n" "$ac_try_echo"; } >&5
1691  (eval "$ac_link") 2>conftest.err
1692  ac_status=$?
1693  if test -s conftest.err; then
1694    grep -v '^ *+' conftest.err >conftest.er1
1695    cat conftest.er1 >&5
1696    mv -f conftest.er1 conftest.err
1697  fi
1698  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699  test $ac_status = 0; } && {
1700	 test -z "$ac_c_werror_flag" ||
1701	 test ! -s conftest.err
1702       } && test -s conftest$ac_exeext && {
1703	 test "$cross_compiling" = yes ||
1704	 test -x conftest$ac_exeext
1705       }
1706then :
1707  ac_retval=0
1708else $as_nop
1709  printf "%s\n" "$as_me: failed program was:" >&5
1710sed 's/^/| /' conftest.$ac_ext >&5
1711
1712	ac_retval=1
1713fi
1714  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1715  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1716  # interfere with the next link command; also delete a directory that is
1717  # left behind by Apple's compiler.  We do this before executing the actions.
1718  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1719  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720  as_fn_set_status $ac_retval
1721
1722} # ac_fn_c_try_link
1723
1724# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1725# ----------------------------------------------------
1726# Tries to find if the field MEMBER exists in type AGGR, after including
1727# INCLUDES, setting cache variable VAR accordingly.
1728ac_fn_c_check_member ()
1729{
1730  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1732printf %s "checking for $2.$3... " >&6; }
1733if eval test \${$4+y}
1734then :
1735  printf %s "(cached) " >&6
1736else $as_nop
1737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738/* end confdefs.h.  */
1739$5
1740int
1741main (void)
1742{
1743static $2 ac_aggr;
1744if (ac_aggr.$3)
1745return 0;
1746  ;
1747  return 0;
1748}
1749_ACEOF
1750if ac_fn_c_try_compile "$LINENO"
1751then :
1752  eval "$4=yes"
1753else $as_nop
1754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1755/* end confdefs.h.  */
1756$5
1757int
1758main (void)
1759{
1760static $2 ac_aggr;
1761if (sizeof ac_aggr.$3)
1762return 0;
1763  ;
1764  return 0;
1765}
1766_ACEOF
1767if ac_fn_c_try_compile "$LINENO"
1768then :
1769  eval "$4=yes"
1770else $as_nop
1771  eval "$4=no"
1772fi
1773rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1774fi
1775rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1776fi
1777eval ac_res=\$$4
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_member
1783
1784# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1785# -------------------------------------------
1786# Tests whether TYPE exists after having included INCLUDES, setting cache
1787# variable VAR accordingly.
1788ac_fn_c_check_type ()
1789{
1790  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792printf %s "checking for $2... " >&6; }
1793if eval test \${$3+y}
1794then :
1795  printf %s "(cached) " >&6
1796else $as_nop
1797  eval "$3=no"
1798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799/* end confdefs.h.  */
1800$4
1801int
1802main (void)
1803{
1804if (sizeof ($2))
1805	 return 0;
1806  ;
1807  return 0;
1808}
1809_ACEOF
1810if ac_fn_c_try_compile "$LINENO"
1811then :
1812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813/* end confdefs.h.  */
1814$4
1815int
1816main (void)
1817{
1818if (sizeof (($2)))
1819	    return 0;
1820  ;
1821  return 0;
1822}
1823_ACEOF
1824if ac_fn_c_try_compile "$LINENO"
1825then :
1826
1827else $as_nop
1828  eval "$3=yes"
1829fi
1830rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1831fi
1832rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1833fi
1834eval ac_res=\$$3
1835	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836printf "%s\n" "$ac_res" >&6; }
1837  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838
1839} # ac_fn_c_check_type
1840
1841# ac_fn_c_check_func LINENO FUNC VAR
1842# ----------------------------------
1843# Tests whether FUNC exists, setting the cache variable VAR accordingly
1844ac_fn_c_check_func ()
1845{
1846  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848printf %s "checking for $2... " >&6; }
1849if eval test \${$3+y}
1850then :
1851  printf %s "(cached) " >&6
1852else $as_nop
1853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854/* end confdefs.h.  */
1855/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1856   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1857#define $2 innocuous_$2
1858
1859/* System header to define __stub macros and hopefully few prototypes,
1860   which can conflict with char $2 (); below.  */
1861
1862#include <limits.h>
1863#undef $2
1864
1865/* Override any GCC internal prototype to avoid an error.
1866   Use char because int might match the return type of a GCC
1867   builtin and then its argument prototype would still apply.  */
1868#ifdef __cplusplus
1869extern "C"
1870#endif
1871char $2 ();
1872/* The GNU C library defines this for functions which it implements
1873    to always fail with ENOSYS.  Some functions are actually named
1874    something starting with __ and the normal name is an alias.  */
1875#if defined __stub_$2 || defined __stub___$2
1876choke me
1877#endif
1878
1879int
1880main (void)
1881{
1882return $2 ();
1883  ;
1884  return 0;
1885}
1886_ACEOF
1887if ac_fn_c_try_link "$LINENO"
1888then :
1889  eval "$3=yes"
1890else $as_nop
1891  eval "$3=no"
1892fi
1893rm -f core conftest.err conftest.$ac_objext conftest.beam \
1894    conftest$ac_exeext conftest.$ac_ext
1895fi
1896eval ac_res=\$$3
1897	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898printf "%s\n" "$ac_res" >&6; }
1899  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900
1901} # ac_fn_c_check_func
1902ac_configure_args_raw=
1903for ac_arg
1904do
1905  case $ac_arg in
1906  *\'*)
1907    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1908  esac
1909  as_fn_append ac_configure_args_raw " '$ac_arg'"
1910done
1911
1912case $ac_configure_args_raw in
1913  *$as_nl*)
1914    ac_safe_unquote= ;;
1915  *)
1916    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1917    ac_unsafe_a="$ac_unsafe_z#~"
1918    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1919    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1920esac
1921
1922cat >config.log <<_ACEOF
1923This file contains any messages produced by compilers while
1924running configure, to aid debugging if configure makes a mistake.
1925
1926It was created by sessreg $as_me 1.1.3, which was
1927generated by GNU Autoconf 2.71.  Invocation command line was
1928
1929  $ $0$ac_configure_args_raw
1930
1931_ACEOF
1932exec 5>>config.log
1933{
1934cat <<_ASUNAME
1935## --------- ##
1936## Platform. ##
1937## --------- ##
1938
1939hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1940uname -m = `(uname -m) 2>/dev/null || echo unknown`
1941uname -r = `(uname -r) 2>/dev/null || echo unknown`
1942uname -s = `(uname -s) 2>/dev/null || echo unknown`
1943uname -v = `(uname -v) 2>/dev/null || echo unknown`
1944
1945/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1946/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1947
1948/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1949/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1950/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1951/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1952/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1953/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1954/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1955
1956_ASUNAME
1957
1958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1959for as_dir in $PATH
1960do
1961  IFS=$as_save_IFS
1962  case $as_dir in #(((
1963    '') as_dir=./ ;;
1964    */) ;;
1965    *) as_dir=$as_dir/ ;;
1966  esac
1967    printf "%s\n" "PATH: $as_dir"
1968  done
1969IFS=$as_save_IFS
1970
1971} >&5
1972
1973cat >&5 <<_ACEOF
1974
1975
1976## ----------- ##
1977## Core tests. ##
1978## ----------- ##
1979
1980_ACEOF
1981
1982
1983# Keep a trace of the command line.
1984# Strip out --no-create and --no-recursion so they do not pile up.
1985# Strip out --silent because we don't want to record it for future runs.
1986# Also quote any args containing shell meta-characters.
1987# Make two passes to allow for proper duplicate-argument suppression.
1988ac_configure_args=
1989ac_configure_args0=
1990ac_configure_args1=
1991ac_must_keep_next=false
1992for ac_pass in 1 2
1993do
1994  for ac_arg
1995  do
1996    case $ac_arg in
1997    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1998    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1999    | -silent | --silent | --silen | --sile | --sil)
2000      continue ;;
2001    *\'*)
2002      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2003    esac
2004    case $ac_pass in
2005    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2006    2)
2007      as_fn_append ac_configure_args1 " '$ac_arg'"
2008      if test $ac_must_keep_next = true; then
2009	ac_must_keep_next=false # Got value, back to normal.
2010      else
2011	case $ac_arg in
2012	  *=* | --config-cache | -C | -disable-* | --disable-* \
2013	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2014	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2015	  | -with-* | --with-* | -without-* | --without-* | --x)
2016	    case "$ac_configure_args0 " in
2017	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2018	    esac
2019	    ;;
2020	  -* ) ac_must_keep_next=true ;;
2021	esac
2022      fi
2023      as_fn_append ac_configure_args " '$ac_arg'"
2024      ;;
2025    esac
2026  done
2027done
2028{ ac_configure_args0=; unset ac_configure_args0;}
2029{ ac_configure_args1=; unset ac_configure_args1;}
2030
2031# When interrupted or exit'd, cleanup temporary files, and complete
2032# config.log.  We remove comments because anyway the quotes in there
2033# would cause problems or look ugly.
2034# WARNING: Use '\'' to represent an apostrophe within the trap.
2035# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2036trap 'exit_status=$?
2037  # Sanitize IFS.
2038  IFS=" ""	$as_nl"
2039  # Save into config.log some information that might help in debugging.
2040  {
2041    echo
2042
2043    printf "%s\n" "## ---------------- ##
2044## Cache variables. ##
2045## ---------------- ##"
2046    echo
2047    # The following way of writing the cache mishandles newlines in values,
2048(
2049  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2050    eval ac_val=\$$ac_var
2051    case $ac_val in #(
2052    *${as_nl}*)
2053      case $ac_var in #(
2054      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2055printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2056      esac
2057      case $ac_var in #(
2058      _ | IFS | as_nl) ;; #(
2059      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2060      *) { eval $ac_var=; unset $ac_var;} ;;
2061      esac ;;
2062    esac
2063  done
2064  (set) 2>&1 |
2065    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2066    *${as_nl}ac_space=\ *)
2067      sed -n \
2068	"s/'\''/'\''\\\\'\'''\''/g;
2069	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2070      ;; #(
2071    *)
2072      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2073      ;;
2074    esac |
2075    sort
2076)
2077    echo
2078
2079    printf "%s\n" "## ----------------- ##
2080## Output variables. ##
2081## ----------------- ##"
2082    echo
2083    for ac_var in $ac_subst_vars
2084    do
2085      eval ac_val=\$$ac_var
2086      case $ac_val in
2087      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2088      esac
2089      printf "%s\n" "$ac_var='\''$ac_val'\''"
2090    done | sort
2091    echo
2092
2093    if test -n "$ac_subst_files"; then
2094      printf "%s\n" "## ------------------- ##
2095## File substitutions. ##
2096## ------------------- ##"
2097      echo
2098      for ac_var in $ac_subst_files
2099      do
2100	eval ac_val=\$$ac_var
2101	case $ac_val in
2102	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2103	esac
2104	printf "%s\n" "$ac_var='\''$ac_val'\''"
2105      done | sort
2106      echo
2107    fi
2108
2109    if test -s confdefs.h; then
2110      printf "%s\n" "## ----------- ##
2111## confdefs.h. ##
2112## ----------- ##"
2113      echo
2114      cat confdefs.h
2115      echo
2116    fi
2117    test "$ac_signal" != 0 &&
2118      printf "%s\n" "$as_me: caught signal $ac_signal"
2119    printf "%s\n" "$as_me: exit $exit_status"
2120  } >&5
2121  rm -f core *.core core.conftest.* &&
2122    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2123    exit $exit_status
2124' 0
2125for ac_signal in 1 2 13 15; do
2126  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2127done
2128ac_signal=0
2129
2130# confdefs.h avoids OS command line length limits that DEFS can exceed.
2131rm -f -r conftest* confdefs.h
2132
2133printf "%s\n" "/* confdefs.h */" > confdefs.h
2134
2135# Predefined preprocessor variables.
2136
2137printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2138
2139printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2140
2141printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2142
2143printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2144
2145printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2146
2147printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2148
2149
2150# Let the site file select an alternate cache file if it wants to.
2151# Prefer an explicitly selected file to automatically selected ones.
2152if test -n "$CONFIG_SITE"; then
2153  ac_site_files="$CONFIG_SITE"
2154elif test "x$prefix" != xNONE; then
2155  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2156else
2157  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2158fi
2159
2160for ac_site_file in $ac_site_files
2161do
2162  case $ac_site_file in #(
2163  */*) :
2164     ;; #(
2165  *) :
2166    ac_site_file=./$ac_site_file ;;
2167esac
2168  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2169    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2170printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2171    sed 's/^/| /' "$ac_site_file" >&5
2172    . "$ac_site_file" \
2173      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2174printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2175as_fn_error $? "failed to load site script $ac_site_file
2176See \`config.log' for more details" "$LINENO" 5; }
2177  fi
2178done
2179
2180if test -r "$cache_file"; then
2181  # Some versions of bash will fail to source /dev/null (special files
2182  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2183  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2184    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2185printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2186    case $cache_file in
2187      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2188      *)                      . "./$cache_file";;
2189    esac
2190  fi
2191else
2192  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2193printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2194  >$cache_file
2195fi
2196
2197as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2198# Test code for whether the C compiler supports C89 (global declarations)
2199ac_c_conftest_c89_globals='
2200/* Does the compiler advertise C89 conformance?
2201   Do not test the value of __STDC__, because some compilers set it to 0
2202   while being otherwise adequately conformant. */
2203#if !defined __STDC__
2204# error "Compiler does not advertise C89 conformance"
2205#endif
2206
2207#include <stddef.h>
2208#include <stdarg.h>
2209struct stat;
2210/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2211struct buf { int x; };
2212struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2213static char *e (p, i)
2214     char **p;
2215     int i;
2216{
2217  return p[i];
2218}
2219static char *f (char * (*g) (char **, int), char **p, ...)
2220{
2221  char *s;
2222  va_list v;
2223  va_start (v,p);
2224  s = g (p, va_arg (v,int));
2225  va_end (v);
2226  return s;
2227}
2228
2229/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2230   function prototypes and stuff, but not \xHH hex character constants.
2231   These do not provoke an error unfortunately, instead are silently treated
2232   as an "x".  The following induces an error, until -std is added to get
2233   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2234   array size at least.  It is necessary to write \x00 == 0 to get something
2235   that is true only with -std.  */
2236int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2237
2238/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2239   inside strings and character constants.  */
2240#define FOO(x) '\''x'\''
2241int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2242
2243int test (int i, double x);
2244struct s1 {int (*f) (int a);};
2245struct s2 {int (*f) (double a);};
2246int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2247               int, int);'
2248
2249# Test code for whether the C compiler supports C89 (body of main).
2250ac_c_conftest_c89_main='
2251ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2252'
2253
2254# Test code for whether the C compiler supports C99 (global declarations)
2255ac_c_conftest_c99_globals='
2256// Does the compiler advertise C99 conformance?
2257#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2258# error "Compiler does not advertise C99 conformance"
2259#endif
2260
2261#include <stdbool.h>
2262extern int puts (const char *);
2263extern int printf (const char *, ...);
2264extern int dprintf (int, const char *, ...);
2265extern void *malloc (size_t);
2266
2267// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2268// dprintf is used instead of fprintf to avoid needing to declare
2269// FILE and stderr.
2270#define debug(...) dprintf (2, __VA_ARGS__)
2271#define showlist(...) puts (#__VA_ARGS__)
2272#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2273static void
2274test_varargs_macros (void)
2275{
2276  int x = 1234;
2277  int y = 5678;
2278  debug ("Flag");
2279  debug ("X = %d\n", x);
2280  showlist (The first, second, and third items.);
2281  report (x>y, "x is %d but y is %d", x, y);
2282}
2283
2284// Check long long types.
2285#define BIG64 18446744073709551615ull
2286#define BIG32 4294967295ul
2287#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2288#if !BIG_OK
2289  #error "your preprocessor is broken"
2290#endif
2291#if BIG_OK
2292#else
2293  #error "your preprocessor is broken"
2294#endif
2295static long long int bignum = -9223372036854775807LL;
2296static unsigned long long int ubignum = BIG64;
2297
2298struct incomplete_array
2299{
2300  int datasize;
2301  double data[];
2302};
2303
2304struct named_init {
2305  int number;
2306  const wchar_t *name;
2307  double average;
2308};
2309
2310typedef const char *ccp;
2311
2312static inline int
2313test_restrict (ccp restrict text)
2314{
2315  // See if C++-style comments work.
2316  // Iterate through items via the restricted pointer.
2317  // Also check for declarations in for loops.
2318  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2319    continue;
2320  return 0;
2321}
2322
2323// Check varargs and va_copy.
2324static bool
2325test_varargs (const char *format, ...)
2326{
2327  va_list args;
2328  va_start (args, format);
2329  va_list args_copy;
2330  va_copy (args_copy, args);
2331
2332  const char *str = "";
2333  int number = 0;
2334  float fnumber = 0;
2335
2336  while (*format)
2337    {
2338      switch (*format++)
2339	{
2340	case '\''s'\'': // string
2341	  str = va_arg (args_copy, const char *);
2342	  break;
2343	case '\''d'\'': // int
2344	  number = va_arg (args_copy, int);
2345	  break;
2346	case '\''f'\'': // float
2347	  fnumber = va_arg (args_copy, double);
2348	  break;
2349	default:
2350	  break;
2351	}
2352    }
2353  va_end (args_copy);
2354  va_end (args);
2355
2356  return *str && number && fnumber;
2357}
2358'
2359
2360# Test code for whether the C compiler supports C99 (body of main).
2361ac_c_conftest_c99_main='
2362  // Check bool.
2363  _Bool success = false;
2364  success |= (argc != 0);
2365
2366  // Check restrict.
2367  if (test_restrict ("String literal") == 0)
2368    success = true;
2369  char *restrict newvar = "Another string";
2370
2371  // Check varargs.
2372  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2373  test_varargs_macros ();
2374
2375  // Check flexible array members.
2376  struct incomplete_array *ia =
2377    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2378  ia->datasize = 10;
2379  for (int i = 0; i < ia->datasize; ++i)
2380    ia->data[i] = i * 1.234;
2381
2382  // Check named initializers.
2383  struct named_init ni = {
2384    .number = 34,
2385    .name = L"Test wide string",
2386    .average = 543.34343,
2387  };
2388
2389  ni.number = 58;
2390
2391  int dynamic_array[ni.number];
2392  dynamic_array[0] = argv[0][0];
2393  dynamic_array[ni.number - 1] = 543;
2394
2395  // work around unused variable warnings
2396  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2397	 || dynamic_array[ni.number - 1] != 543);
2398'
2399
2400# Test code for whether the C compiler supports C11 (global declarations)
2401ac_c_conftest_c11_globals='
2402// Does the compiler advertise C11 conformance?
2403#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2404# error "Compiler does not advertise C11 conformance"
2405#endif
2406
2407// Check _Alignas.
2408char _Alignas (double) aligned_as_double;
2409char _Alignas (0) no_special_alignment;
2410extern char aligned_as_int;
2411char _Alignas (0) _Alignas (int) aligned_as_int;
2412
2413// Check _Alignof.
2414enum
2415{
2416  int_alignment = _Alignof (int),
2417  int_array_alignment = _Alignof (int[100]),
2418  char_alignment = _Alignof (char)
2419};
2420_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2421
2422// Check _Noreturn.
2423int _Noreturn does_not_return (void) { for (;;) continue; }
2424
2425// Check _Static_assert.
2426struct test_static_assert
2427{
2428  int x;
2429  _Static_assert (sizeof (int) <= sizeof (long int),
2430                  "_Static_assert does not work in struct");
2431  long int y;
2432};
2433
2434// Check UTF-8 literals.
2435#define u8 syntax error!
2436char const utf8_literal[] = u8"happens to be ASCII" "another string";
2437
2438// Check duplicate typedefs.
2439typedef long *long_ptr;
2440typedef long int *long_ptr;
2441typedef long_ptr long_ptr;
2442
2443// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2444struct anonymous
2445{
2446  union {
2447    struct { int i; int j; };
2448    struct { int k; long int l; } w;
2449  };
2450  int m;
2451} v1;
2452'
2453
2454# Test code for whether the C compiler supports C11 (body of main).
2455ac_c_conftest_c11_main='
2456  _Static_assert ((offsetof (struct anonymous, i)
2457		   == offsetof (struct anonymous, w.k)),
2458		  "Anonymous union alignment botch");
2459  v1.i = 2;
2460  v1.w.k = 5;
2461  ok |= v1.i != 5;
2462'
2463
2464# Test code for whether the C compiler supports C11 (complete).
2465ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2466${ac_c_conftest_c99_globals}
2467${ac_c_conftest_c11_globals}
2468
2469int
2470main (int argc, char **argv)
2471{
2472  int ok = 0;
2473  ${ac_c_conftest_c89_main}
2474  ${ac_c_conftest_c99_main}
2475  ${ac_c_conftest_c11_main}
2476  return ok;
2477}
2478"
2479
2480# Test code for whether the C compiler supports C99 (complete).
2481ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2482${ac_c_conftest_c99_globals}
2483
2484int
2485main (int argc, char **argv)
2486{
2487  int ok = 0;
2488  ${ac_c_conftest_c89_main}
2489  ${ac_c_conftest_c99_main}
2490  return ok;
2491}
2492"
2493
2494# Test code for whether the C compiler supports C89 (complete).
2495ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2496
2497int
2498main (int argc, char **argv)
2499{
2500  int ok = 0;
2501  ${ac_c_conftest_c89_main}
2502  return ok;
2503}
2504"
2505
2506as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2507as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2508as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2509as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2510as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2511as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2512as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2513as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2514as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2515as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2516
2517# Auxiliary files required by this configure script.
2518ac_aux_files="config.guess config.sub missing install-sh compile"
2519
2520# Locations in which to look for auxiliary files.
2521ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2522
2523# Search for a directory containing all of the required auxiliary files,
2524# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2525# If we don't find one directory that contains all the files we need,
2526# we report the set of missing files from the *first* directory in
2527# $ac_aux_dir_candidates and give up.
2528ac_missing_aux_files=""
2529ac_first_candidate=:
2530printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532as_found=false
2533for as_dir in $ac_aux_dir_candidates
2534do
2535  IFS=$as_save_IFS
2536  case $as_dir in #(((
2537    '') as_dir=./ ;;
2538    */) ;;
2539    *) as_dir=$as_dir/ ;;
2540  esac
2541  as_found=:
2542
2543  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2544  ac_aux_dir_found=yes
2545  ac_install_sh=
2546  for ac_aux in $ac_aux_files
2547  do
2548    # As a special case, if "install-sh" is required, that requirement
2549    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2550    # and $ac_install_sh is set appropriately for whichever one is found.
2551    if test x"$ac_aux" = x"install-sh"
2552    then
2553      if test -f "${as_dir}install-sh"; then
2554        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2555        ac_install_sh="${as_dir}install-sh -c"
2556      elif test -f "${as_dir}install.sh"; then
2557        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2558        ac_install_sh="${as_dir}install.sh -c"
2559      elif test -f "${as_dir}shtool"; then
2560        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2561        ac_install_sh="${as_dir}shtool install -c"
2562      else
2563        ac_aux_dir_found=no
2564        if $ac_first_candidate; then
2565          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2566        else
2567          break
2568        fi
2569      fi
2570    else
2571      if test -f "${as_dir}${ac_aux}"; then
2572        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2573      else
2574        ac_aux_dir_found=no
2575        if $ac_first_candidate; then
2576          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2577        else
2578          break
2579        fi
2580      fi
2581    fi
2582  done
2583  if test "$ac_aux_dir_found" = yes; then
2584    ac_aux_dir="$as_dir"
2585    break
2586  fi
2587  ac_first_candidate=false
2588
2589  as_found=false
2590done
2591IFS=$as_save_IFS
2592if $as_found
2593then :
2594
2595else $as_nop
2596  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2597fi
2598
2599
2600# These three variables are undocumented and unsupported,
2601# and are intended to be withdrawn in a future Autoconf release.
2602# They can cause serious problems if a builder's source tree is in a directory
2603# whose full name contains unusual characters.
2604if test -f "${ac_aux_dir}config.guess"; then
2605  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2606fi
2607if test -f "${ac_aux_dir}config.sub"; then
2608  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2609fi
2610if test -f "$ac_aux_dir/configure"; then
2611  ac_configure="$SHELL ${ac_aux_dir}configure"
2612fi
2613
2614# Check that the precious variables saved in the cache have kept the same
2615# value.
2616ac_cache_corrupted=false
2617for ac_var in $ac_precious_vars; do
2618  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2619  eval ac_new_set=\$ac_env_${ac_var}_set
2620  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2621  eval ac_new_val=\$ac_env_${ac_var}_value
2622  case $ac_old_set,$ac_new_set in
2623    set,)
2624      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2625printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2626      ac_cache_corrupted=: ;;
2627    ,set)
2628      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2629printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2630      ac_cache_corrupted=: ;;
2631    ,);;
2632    *)
2633      if test "x$ac_old_val" != "x$ac_new_val"; then
2634	# differences in whitespace do not lead to failure.
2635	ac_old_val_w=`echo x $ac_old_val`
2636	ac_new_val_w=`echo x $ac_new_val`
2637	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2638	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2639printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2640	  ac_cache_corrupted=:
2641	else
2642	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2643printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2644	  eval $ac_var=\$ac_old_val
2645	fi
2646	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2647printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2648	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2649printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2650      fi;;
2651  esac
2652  # Pass precious variables to config.status.
2653  if test "$ac_new_set" = set; then
2654    case $ac_new_val in
2655    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2656    *) ac_arg=$ac_var=$ac_new_val ;;
2657    esac
2658    case " $ac_configure_args " in
2659      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2660      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2661    esac
2662  fi
2663done
2664if $ac_cache_corrupted; then
2665  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2666printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2667  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2668printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2669  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2670	    and start over" "$LINENO" 5
2671fi
2672## -------------------- ##
2673## Main body of script. ##
2674## -------------------- ##
2675
2676ac_ext=c
2677ac_cpp='$CPP $CPPFLAGS'
2678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2680ac_compiler_gnu=$ac_cv_c_compiler_gnu
2681
2682
2683
2684ac_config_headers="$ac_config_headers config.h"
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697# Expand $ac_aux_dir to an absolute path.
2698am_aux_dir=`cd "$ac_aux_dir" && pwd`
2699
2700ac_ext=c
2701ac_cpp='$CPP $CPPFLAGS'
2702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2704ac_compiler_gnu=$ac_cv_c_compiler_gnu
2705if test -n "$ac_tool_prefix"; then
2706  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2707set dummy ${ac_tool_prefix}gcc; ac_word=$2
2708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2709printf %s "checking for $ac_word... " >&6; }
2710if test ${ac_cv_prog_CC+y}
2711then :
2712  printf %s "(cached) " >&6
2713else $as_nop
2714  if test -n "$CC"; then
2715  ac_cv_prog_CC="$CC" # Let the user override the test.
2716else
2717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718for as_dir in $PATH
2719do
2720  IFS=$as_save_IFS
2721  case $as_dir in #(((
2722    '') as_dir=./ ;;
2723    */) ;;
2724    *) as_dir=$as_dir/ ;;
2725  esac
2726    for ac_exec_ext in '' $ac_executable_extensions; do
2727  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2728    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2729    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2730    break 2
2731  fi
2732done
2733  done
2734IFS=$as_save_IFS
2735
2736fi
2737fi
2738CC=$ac_cv_prog_CC
2739if test -n "$CC"; then
2740  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2741printf "%s\n" "$CC" >&6; }
2742else
2743  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2744printf "%s\n" "no" >&6; }
2745fi
2746
2747
2748fi
2749if test -z "$ac_cv_prog_CC"; then
2750  ac_ct_CC=$CC
2751  # Extract the first word of "gcc", so it can be a program name with args.
2752set dummy gcc; ac_word=$2
2753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754printf %s "checking for $ac_word... " >&6; }
2755if test ${ac_cv_prog_ac_ct_CC+y}
2756then :
2757  printf %s "(cached) " >&6
2758else $as_nop
2759  if test -n "$ac_ct_CC"; then
2760  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2761else
2762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763for as_dir in $PATH
2764do
2765  IFS=$as_save_IFS
2766  case $as_dir in #(((
2767    '') as_dir=./ ;;
2768    */) ;;
2769    *) as_dir=$as_dir/ ;;
2770  esac
2771    for ac_exec_ext in '' $ac_executable_extensions; do
2772  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2773    ac_cv_prog_ac_ct_CC="gcc"
2774    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2775    break 2
2776  fi
2777done
2778  done
2779IFS=$as_save_IFS
2780
2781fi
2782fi
2783ac_ct_CC=$ac_cv_prog_ac_ct_CC
2784if test -n "$ac_ct_CC"; then
2785  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2786printf "%s\n" "$ac_ct_CC" >&6; }
2787else
2788  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789printf "%s\n" "no" >&6; }
2790fi
2791
2792  if test "x$ac_ct_CC" = x; then
2793    CC=""
2794  else
2795    case $cross_compiling:$ac_tool_warned in
2796yes:)
2797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2798printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2799ac_tool_warned=yes ;;
2800esac
2801    CC=$ac_ct_CC
2802  fi
2803else
2804  CC="$ac_cv_prog_CC"
2805fi
2806
2807if test -z "$CC"; then
2808          if test -n "$ac_tool_prefix"; then
2809    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2810set dummy ${ac_tool_prefix}cc; ac_word=$2
2811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2812printf %s "checking for $ac_word... " >&6; }
2813if test ${ac_cv_prog_CC+y}
2814then :
2815  printf %s "(cached) " >&6
2816else $as_nop
2817  if test -n "$CC"; then
2818  ac_cv_prog_CC="$CC" # Let the user override the test.
2819else
2820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821for as_dir in $PATH
2822do
2823  IFS=$as_save_IFS
2824  case $as_dir in #(((
2825    '') as_dir=./ ;;
2826    */) ;;
2827    *) as_dir=$as_dir/ ;;
2828  esac
2829    for ac_exec_ext in '' $ac_executable_extensions; do
2830  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2831    ac_cv_prog_CC="${ac_tool_prefix}cc"
2832    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2833    break 2
2834  fi
2835done
2836  done
2837IFS=$as_save_IFS
2838
2839fi
2840fi
2841CC=$ac_cv_prog_CC
2842if test -n "$CC"; then
2843  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2844printf "%s\n" "$CC" >&6; }
2845else
2846  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847printf "%s\n" "no" >&6; }
2848fi
2849
2850
2851  fi
2852fi
2853if test -z "$CC"; then
2854  # Extract the first word of "cc", so it can be a program name with args.
2855set dummy cc; ac_word=$2
2856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2857printf %s "checking for $ac_word... " >&6; }
2858if test ${ac_cv_prog_CC+y}
2859then :
2860  printf %s "(cached) " >&6
2861else $as_nop
2862  if test -n "$CC"; then
2863  ac_cv_prog_CC="$CC" # Let the user override the test.
2864else
2865  ac_prog_rejected=no
2866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867for as_dir in $PATH
2868do
2869  IFS=$as_save_IFS
2870  case $as_dir in #(((
2871    '') as_dir=./ ;;
2872    */) ;;
2873    *) as_dir=$as_dir/ ;;
2874  esac
2875    for ac_exec_ext in '' $ac_executable_extensions; do
2876  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2877    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2878       ac_prog_rejected=yes
2879       continue
2880     fi
2881    ac_cv_prog_CC="cc"
2882    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2883    break 2
2884  fi
2885done
2886  done
2887IFS=$as_save_IFS
2888
2889if test $ac_prog_rejected = yes; then
2890  # We found a bogon in the path, so make sure we never use it.
2891  set dummy $ac_cv_prog_CC
2892  shift
2893  if test $# != 0; then
2894    # We chose a different compiler from the bogus one.
2895    # However, it has the same basename, so the bogon will be chosen
2896    # first if we set CC to just the basename; use the full file name.
2897    shift
2898    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2899  fi
2900fi
2901fi
2902fi
2903CC=$ac_cv_prog_CC
2904if test -n "$CC"; then
2905  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2906printf "%s\n" "$CC" >&6; }
2907else
2908  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909printf "%s\n" "no" >&6; }
2910fi
2911
2912
2913fi
2914if test -z "$CC"; then
2915  if test -n "$ac_tool_prefix"; then
2916  for ac_prog in cl.exe
2917  do
2918    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2919set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2921printf %s "checking for $ac_word... " >&6; }
2922if test ${ac_cv_prog_CC+y}
2923then :
2924  printf %s "(cached) " >&6
2925else $as_nop
2926  if test -n "$CC"; then
2927  ac_cv_prog_CC="$CC" # Let the user override the test.
2928else
2929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930for as_dir in $PATH
2931do
2932  IFS=$as_save_IFS
2933  case $as_dir in #(((
2934    '') as_dir=./ ;;
2935    */) ;;
2936    *) as_dir=$as_dir/ ;;
2937  esac
2938    for ac_exec_ext in '' $ac_executable_extensions; do
2939  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2940    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2941    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2942    break 2
2943  fi
2944done
2945  done
2946IFS=$as_save_IFS
2947
2948fi
2949fi
2950CC=$ac_cv_prog_CC
2951if test -n "$CC"; then
2952  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2953printf "%s\n" "$CC" >&6; }
2954else
2955  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956printf "%s\n" "no" >&6; }
2957fi
2958
2959
2960    test -n "$CC" && break
2961  done
2962fi
2963if test -z "$CC"; then
2964  ac_ct_CC=$CC
2965  for ac_prog in cl.exe
2966do
2967  # Extract the first word of "$ac_prog", so it can be a program name with args.
2968set dummy $ac_prog; ac_word=$2
2969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970printf %s "checking for $ac_word... " >&6; }
2971if test ${ac_cv_prog_ac_ct_CC+y}
2972then :
2973  printf %s "(cached) " >&6
2974else $as_nop
2975  if test -n "$ac_ct_CC"; then
2976  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2977else
2978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979for as_dir in $PATH
2980do
2981  IFS=$as_save_IFS
2982  case $as_dir in #(((
2983    '') as_dir=./ ;;
2984    */) ;;
2985    *) as_dir=$as_dir/ ;;
2986  esac
2987    for ac_exec_ext in '' $ac_executable_extensions; do
2988  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2989    ac_cv_prog_ac_ct_CC="$ac_prog"
2990    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2991    break 2
2992  fi
2993done
2994  done
2995IFS=$as_save_IFS
2996
2997fi
2998fi
2999ac_ct_CC=$ac_cv_prog_ac_ct_CC
3000if test -n "$ac_ct_CC"; then
3001  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3002printf "%s\n" "$ac_ct_CC" >&6; }
3003else
3004  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005printf "%s\n" "no" >&6; }
3006fi
3007
3008
3009  test -n "$ac_ct_CC" && break
3010done
3011
3012  if test "x$ac_ct_CC" = x; then
3013    CC=""
3014  else
3015    case $cross_compiling:$ac_tool_warned in
3016yes:)
3017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3018printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3019ac_tool_warned=yes ;;
3020esac
3021    CC=$ac_ct_CC
3022  fi
3023fi
3024
3025fi
3026if test -z "$CC"; then
3027  if test -n "$ac_tool_prefix"; then
3028  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3029set dummy ${ac_tool_prefix}clang; ac_word=$2
3030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3031printf %s "checking for $ac_word... " >&6; }
3032if test ${ac_cv_prog_CC+y}
3033then :
3034  printf %s "(cached) " >&6
3035else $as_nop
3036  if test -n "$CC"; then
3037  ac_cv_prog_CC="$CC" # Let the user override the test.
3038else
3039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040for as_dir in $PATH
3041do
3042  IFS=$as_save_IFS
3043  case $as_dir in #(((
3044    '') as_dir=./ ;;
3045    */) ;;
3046    *) as_dir=$as_dir/ ;;
3047  esac
3048    for ac_exec_ext in '' $ac_executable_extensions; do
3049  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3050    ac_cv_prog_CC="${ac_tool_prefix}clang"
3051    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3052    break 2
3053  fi
3054done
3055  done
3056IFS=$as_save_IFS
3057
3058fi
3059fi
3060CC=$ac_cv_prog_CC
3061if test -n "$CC"; then
3062  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3063printf "%s\n" "$CC" >&6; }
3064else
3065  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066printf "%s\n" "no" >&6; }
3067fi
3068
3069
3070fi
3071if test -z "$ac_cv_prog_CC"; then
3072  ac_ct_CC=$CC
3073  # Extract the first word of "clang", so it can be a program name with args.
3074set dummy clang; ac_word=$2
3075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076printf %s "checking for $ac_word... " >&6; }
3077if test ${ac_cv_prog_ac_ct_CC+y}
3078then :
3079  printf %s "(cached) " >&6
3080else $as_nop
3081  if test -n "$ac_ct_CC"; then
3082  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3083else
3084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085for as_dir in $PATH
3086do
3087  IFS=$as_save_IFS
3088  case $as_dir in #(((
3089    '') as_dir=./ ;;
3090    */) ;;
3091    *) as_dir=$as_dir/ ;;
3092  esac
3093    for ac_exec_ext in '' $ac_executable_extensions; do
3094  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3095    ac_cv_prog_ac_ct_CC="clang"
3096    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3097    break 2
3098  fi
3099done
3100  done
3101IFS=$as_save_IFS
3102
3103fi
3104fi
3105ac_ct_CC=$ac_cv_prog_ac_ct_CC
3106if test -n "$ac_ct_CC"; then
3107  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3108printf "%s\n" "$ac_ct_CC" >&6; }
3109else
3110  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111printf "%s\n" "no" >&6; }
3112fi
3113
3114  if test "x$ac_ct_CC" = x; then
3115    CC=""
3116  else
3117    case $cross_compiling:$ac_tool_warned in
3118yes:)
3119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3120printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3121ac_tool_warned=yes ;;
3122esac
3123    CC=$ac_ct_CC
3124  fi
3125else
3126  CC="$ac_cv_prog_CC"
3127fi
3128
3129fi
3130
3131
3132test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3133printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3134as_fn_error $? "no acceptable C compiler found in \$PATH
3135See \`config.log' for more details" "$LINENO" 5; }
3136
3137# Provide some information about the compiler.
3138printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3139set X $ac_compile
3140ac_compiler=$2
3141for ac_option in --version -v -V -qversion -version; do
3142  { { ac_try="$ac_compiler $ac_option >&5"
3143case "(($ac_try" in
3144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145  *) ac_try_echo=$ac_try;;
3146esac
3147eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3148printf "%s\n" "$ac_try_echo"; } >&5
3149  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3150  ac_status=$?
3151  if test -s conftest.err; then
3152    sed '10a\
3153... rest of stderr output deleted ...
3154         10q' conftest.err >conftest.er1
3155    cat conftest.er1 >&5
3156  fi
3157  rm -f conftest.er1 conftest.err
3158  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3159  test $ac_status = 0; }
3160done
3161
3162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3163/* end confdefs.h.  */
3164
3165int
3166main (void)
3167{
3168
3169  ;
3170  return 0;
3171}
3172_ACEOF
3173ac_clean_files_save=$ac_clean_files
3174ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3175# Try to create an executable without -o first, disregard a.out.
3176# It will help us diagnose broken compilers, and finding out an intuition
3177# of exeext.
3178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3179printf %s "checking whether the C compiler works... " >&6; }
3180ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3181
3182# The possible output files:
3183ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3184
3185ac_rmfiles=
3186for ac_file in $ac_files
3187do
3188  case $ac_file in
3189    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3190    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3191  esac
3192done
3193rm -f $ac_rmfiles
3194
3195if { { ac_try="$ac_link_default"
3196case "(($ac_try" in
3197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198  *) ac_try_echo=$ac_try;;
3199esac
3200eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3201printf "%s\n" "$ac_try_echo"; } >&5
3202  (eval "$ac_link_default") 2>&5
3203  ac_status=$?
3204  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3205  test $ac_status = 0; }
3206then :
3207  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3208# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3209# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3210# so that the user can short-circuit this test for compilers unknown to
3211# Autoconf.
3212for ac_file in $ac_files ''
3213do
3214  test -f "$ac_file" || continue
3215  case $ac_file in
3216    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3217	;;
3218    [ab].out )
3219	# We found the default executable, but exeext='' is most
3220	# certainly right.
3221	break;;
3222    *.* )
3223	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3224	then :; else
3225	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3226	fi
3227	# We set ac_cv_exeext here because the later test for it is not
3228	# safe: cross compilers may not add the suffix if given an `-o'
3229	# argument, so we may need to know it at that point already.
3230	# Even if this section looks crufty: it has the advantage of
3231	# actually working.
3232	break;;
3233    * )
3234	break;;
3235  esac
3236done
3237test "$ac_cv_exeext" = no && ac_cv_exeext=
3238
3239else $as_nop
3240  ac_file=''
3241fi
3242if test -z "$ac_file"
3243then :
3244  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245printf "%s\n" "no" >&6; }
3246printf "%s\n" "$as_me: failed program was:" >&5
3247sed 's/^/| /' conftest.$ac_ext >&5
3248
3249{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3250printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3251as_fn_error 77 "C compiler cannot create executables
3252See \`config.log' for more details" "$LINENO" 5; }
3253else $as_nop
3254  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3255printf "%s\n" "yes" >&6; }
3256fi
3257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3258printf %s "checking for C compiler default output file name... " >&6; }
3259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3260printf "%s\n" "$ac_file" >&6; }
3261ac_exeext=$ac_cv_exeext
3262
3263rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3264ac_clean_files=$ac_clean_files_save
3265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3266printf %s "checking for suffix of executables... " >&6; }
3267if { { ac_try="$ac_link"
3268case "(($ac_try" in
3269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270  *) ac_try_echo=$ac_try;;
3271esac
3272eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3273printf "%s\n" "$ac_try_echo"; } >&5
3274  (eval "$ac_link") 2>&5
3275  ac_status=$?
3276  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3277  test $ac_status = 0; }
3278then :
3279  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3280# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3281# work properly (i.e., refer to `conftest.exe'), while it won't with
3282# `rm'.
3283for ac_file in conftest.exe conftest conftest.*; do
3284  test -f "$ac_file" || continue
3285  case $ac_file in
3286    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3287    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3288	  break;;
3289    * ) break;;
3290  esac
3291done
3292else $as_nop
3293  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3295as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3296See \`config.log' for more details" "$LINENO" 5; }
3297fi
3298rm -f conftest conftest$ac_cv_exeext
3299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3300printf "%s\n" "$ac_cv_exeext" >&6; }
3301
3302rm -f conftest.$ac_ext
3303EXEEXT=$ac_cv_exeext
3304ac_exeext=$EXEEXT
3305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306/* end confdefs.h.  */
3307#include <stdio.h>
3308int
3309main (void)
3310{
3311FILE *f = fopen ("conftest.out", "w");
3312 return ferror (f) || fclose (f) != 0;
3313
3314  ;
3315  return 0;
3316}
3317_ACEOF
3318ac_clean_files="$ac_clean_files conftest.out"
3319# Check that the compiler produces executables we can run.  If not, either
3320# the compiler is broken, or we cross compile.
3321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3322printf %s "checking whether we are cross compiling... " >&6; }
3323if test "$cross_compiling" != yes; then
3324  { { ac_try="$ac_link"
3325case "(($ac_try" in
3326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327  *) ac_try_echo=$ac_try;;
3328esac
3329eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3330printf "%s\n" "$ac_try_echo"; } >&5
3331  (eval "$ac_link") 2>&5
3332  ac_status=$?
3333  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3334  test $ac_status = 0; }
3335  if { ac_try='./conftest$ac_cv_exeext'
3336  { { case "(($ac_try" in
3337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338  *) ac_try_echo=$ac_try;;
3339esac
3340eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3341printf "%s\n" "$ac_try_echo"; } >&5
3342  (eval "$ac_try") 2>&5
3343  ac_status=$?
3344  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3345  test $ac_status = 0; }; }; then
3346    cross_compiling=no
3347  else
3348    if test "$cross_compiling" = maybe; then
3349	cross_compiling=yes
3350    else
3351	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3352printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3353as_fn_error 77 "cannot run C compiled programs.
3354If you meant to cross compile, use \`--host'.
3355See \`config.log' for more details" "$LINENO" 5; }
3356    fi
3357  fi
3358fi
3359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3360printf "%s\n" "$cross_compiling" >&6; }
3361
3362rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3363ac_clean_files=$ac_clean_files_save
3364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3365printf %s "checking for suffix of object files... " >&6; }
3366if test ${ac_cv_objext+y}
3367then :
3368  printf %s "(cached) " >&6
3369else $as_nop
3370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371/* end confdefs.h.  */
3372
3373int
3374main (void)
3375{
3376
3377  ;
3378  return 0;
3379}
3380_ACEOF
3381rm -f conftest.o conftest.obj
3382if { { ac_try="$ac_compile"
3383case "(($ac_try" in
3384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385  *) ac_try_echo=$ac_try;;
3386esac
3387eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3388printf "%s\n" "$ac_try_echo"; } >&5
3389  (eval "$ac_compile") 2>&5
3390  ac_status=$?
3391  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3392  test $ac_status = 0; }
3393then :
3394  for ac_file in conftest.o conftest.obj conftest.*; do
3395  test -f "$ac_file" || continue;
3396  case $ac_file in
3397    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3398    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3399       break;;
3400  esac
3401done
3402else $as_nop
3403  printf "%s\n" "$as_me: failed program was:" >&5
3404sed 's/^/| /' conftest.$ac_ext >&5
3405
3406{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3407printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3408as_fn_error $? "cannot compute suffix of object files: cannot compile
3409See \`config.log' for more details" "$LINENO" 5; }
3410fi
3411rm -f conftest.$ac_cv_objext conftest.$ac_ext
3412fi
3413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3414printf "%s\n" "$ac_cv_objext" >&6; }
3415OBJEXT=$ac_cv_objext
3416ac_objext=$OBJEXT
3417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3418printf %s "checking whether the compiler supports GNU C... " >&6; }
3419if test ${ac_cv_c_compiler_gnu+y}
3420then :
3421  printf %s "(cached) " >&6
3422else $as_nop
3423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424/* end confdefs.h.  */
3425
3426int
3427main (void)
3428{
3429#ifndef __GNUC__
3430       choke me
3431#endif
3432
3433  ;
3434  return 0;
3435}
3436_ACEOF
3437if ac_fn_c_try_compile "$LINENO"
3438then :
3439  ac_compiler_gnu=yes
3440else $as_nop
3441  ac_compiler_gnu=no
3442fi
3443rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3444ac_cv_c_compiler_gnu=$ac_compiler_gnu
3445
3446fi
3447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3448printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3449ac_compiler_gnu=$ac_cv_c_compiler_gnu
3450
3451if test $ac_compiler_gnu = yes; then
3452  GCC=yes
3453else
3454  GCC=
3455fi
3456ac_test_CFLAGS=${CFLAGS+y}
3457ac_save_CFLAGS=$CFLAGS
3458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3459printf %s "checking whether $CC accepts -g... " >&6; }
3460if test ${ac_cv_prog_cc_g+y}
3461then :
3462  printf %s "(cached) " >&6
3463else $as_nop
3464  ac_save_c_werror_flag=$ac_c_werror_flag
3465   ac_c_werror_flag=yes
3466   ac_cv_prog_cc_g=no
3467   CFLAGS="-g"
3468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469/* end confdefs.h.  */
3470
3471int
3472main (void)
3473{
3474
3475  ;
3476  return 0;
3477}
3478_ACEOF
3479if ac_fn_c_try_compile "$LINENO"
3480then :
3481  ac_cv_prog_cc_g=yes
3482else $as_nop
3483  CFLAGS=""
3484      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485/* end confdefs.h.  */
3486
3487int
3488main (void)
3489{
3490
3491  ;
3492  return 0;
3493}
3494_ACEOF
3495if ac_fn_c_try_compile "$LINENO"
3496then :
3497
3498else $as_nop
3499  ac_c_werror_flag=$ac_save_c_werror_flag
3500	 CFLAGS="-g"
3501	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502/* end confdefs.h.  */
3503
3504int
3505main (void)
3506{
3507
3508  ;
3509  return 0;
3510}
3511_ACEOF
3512if ac_fn_c_try_compile "$LINENO"
3513then :
3514  ac_cv_prog_cc_g=yes
3515fi
3516rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3517fi
3518rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3519fi
3520rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3521   ac_c_werror_flag=$ac_save_c_werror_flag
3522fi
3523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3524printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3525if test $ac_test_CFLAGS; then
3526  CFLAGS=$ac_save_CFLAGS
3527elif test $ac_cv_prog_cc_g = yes; then
3528  if test "$GCC" = yes; then
3529    CFLAGS="-g -O2"
3530  else
3531    CFLAGS="-g"
3532  fi
3533else
3534  if test "$GCC" = yes; then
3535    CFLAGS="-O2"
3536  else
3537    CFLAGS=
3538  fi
3539fi
3540ac_prog_cc_stdc=no
3541if test x$ac_prog_cc_stdc = xno
3542then :
3543  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3544printf %s "checking for $CC option to enable C11 features... " >&6; }
3545if test ${ac_cv_prog_cc_c11+y}
3546then :
3547  printf %s "(cached) " >&6
3548else $as_nop
3549  ac_cv_prog_cc_c11=no
3550ac_save_CC=$CC
3551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552/* end confdefs.h.  */
3553$ac_c_conftest_c11_program
3554_ACEOF
3555for ac_arg in '' -std=gnu11
3556do
3557  CC="$ac_save_CC $ac_arg"
3558  if ac_fn_c_try_compile "$LINENO"
3559then :
3560  ac_cv_prog_cc_c11=$ac_arg
3561fi
3562rm -f core conftest.err conftest.$ac_objext conftest.beam
3563  test "x$ac_cv_prog_cc_c11" != "xno" && break
3564done
3565rm -f conftest.$ac_ext
3566CC=$ac_save_CC
3567fi
3568
3569if test "x$ac_cv_prog_cc_c11" = xno
3570then :
3571  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3572printf "%s\n" "unsupported" >&6; }
3573else $as_nop
3574  if test "x$ac_cv_prog_cc_c11" = x
3575then :
3576  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3577printf "%s\n" "none needed" >&6; }
3578else $as_nop
3579  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3580printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3581     CC="$CC $ac_cv_prog_cc_c11"
3582fi
3583  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3584  ac_prog_cc_stdc=c11
3585fi
3586fi
3587if test x$ac_prog_cc_stdc = xno
3588then :
3589  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3590printf %s "checking for $CC option to enable C99 features... " >&6; }
3591if test ${ac_cv_prog_cc_c99+y}
3592then :
3593  printf %s "(cached) " >&6
3594else $as_nop
3595  ac_cv_prog_cc_c99=no
3596ac_save_CC=$CC
3597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598/* end confdefs.h.  */
3599$ac_c_conftest_c99_program
3600_ACEOF
3601for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3602do
3603  CC="$ac_save_CC $ac_arg"
3604  if ac_fn_c_try_compile "$LINENO"
3605then :
3606  ac_cv_prog_cc_c99=$ac_arg
3607fi
3608rm -f core conftest.err conftest.$ac_objext conftest.beam
3609  test "x$ac_cv_prog_cc_c99" != "xno" && break
3610done
3611rm -f conftest.$ac_ext
3612CC=$ac_save_CC
3613fi
3614
3615if test "x$ac_cv_prog_cc_c99" = xno
3616then :
3617  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3618printf "%s\n" "unsupported" >&6; }
3619else $as_nop
3620  if test "x$ac_cv_prog_cc_c99" = x
3621then :
3622  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3623printf "%s\n" "none needed" >&6; }
3624else $as_nop
3625  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3626printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3627     CC="$CC $ac_cv_prog_cc_c99"
3628fi
3629  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3630  ac_prog_cc_stdc=c99
3631fi
3632fi
3633if test x$ac_prog_cc_stdc = xno
3634then :
3635  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3636printf %s "checking for $CC option to enable C89 features... " >&6; }
3637if test ${ac_cv_prog_cc_c89+y}
3638then :
3639  printf %s "(cached) " >&6
3640else $as_nop
3641  ac_cv_prog_cc_c89=no
3642ac_save_CC=$CC
3643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644/* end confdefs.h.  */
3645$ac_c_conftest_c89_program
3646_ACEOF
3647for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3648do
3649  CC="$ac_save_CC $ac_arg"
3650  if ac_fn_c_try_compile "$LINENO"
3651then :
3652  ac_cv_prog_cc_c89=$ac_arg
3653fi
3654rm -f core conftest.err conftest.$ac_objext conftest.beam
3655  test "x$ac_cv_prog_cc_c89" != "xno" && break
3656done
3657rm -f conftest.$ac_ext
3658CC=$ac_save_CC
3659fi
3660
3661if test "x$ac_cv_prog_cc_c89" = xno
3662then :
3663  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3664printf "%s\n" "unsupported" >&6; }
3665else $as_nop
3666  if test "x$ac_cv_prog_cc_c89" = x
3667then :
3668  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3669printf "%s\n" "none needed" >&6; }
3670else $as_nop
3671  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3672printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3673     CC="$CC $ac_cv_prog_cc_c89"
3674fi
3675  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3676  ac_prog_cc_stdc=c89
3677fi
3678fi
3679
3680ac_ext=c
3681ac_cpp='$CPP $CPPFLAGS'
3682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684ac_compiler_gnu=$ac_cv_c_compiler_gnu
3685
3686
3687  ac_ext=c
3688ac_cpp='$CPP $CPPFLAGS'
3689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691ac_compiler_gnu=$ac_cv_c_compiler_gnu
3692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3693printf %s "checking whether $CC understands -c and -o together... " >&6; }
3694if test ${am_cv_prog_cc_c_o+y}
3695then :
3696  printf %s "(cached) " >&6
3697else $as_nop
3698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699/* end confdefs.h.  */
3700
3701int
3702main (void)
3703{
3704
3705  ;
3706  return 0;
3707}
3708_ACEOF
3709  # Make sure it works both with $CC and with simple cc.
3710  # Following AC_PROG_CC_C_O, we do the test twice because some
3711  # compilers refuse to overwrite an existing .o file with -o,
3712  # though they will create one.
3713  am_cv_prog_cc_c_o=yes
3714  for am_i in 1 2; do
3715    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3716   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3717   ac_status=$?
3718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719   (exit $ac_status); } \
3720         && test -f conftest2.$ac_objext; then
3721      : OK
3722    else
3723      am_cv_prog_cc_c_o=no
3724      break
3725    fi
3726  done
3727  rm -f core conftest*
3728  unset am_i
3729fi
3730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3731printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3732if test "$am_cv_prog_cc_c_o" != yes; then
3733   # Losing compiler, so override with the script.
3734   # FIXME: It is wrong to rewrite CC.
3735   # But if we don't then we get into trouble of one sort or another.
3736   # A longer-term fix would be to have automake use am__CC in this case,
3737   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3738   CC="$am_aux_dir/compile $CC"
3739fi
3740ac_ext=c
3741ac_cpp='$CPP $CPPFLAGS'
3742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3744ac_compiler_gnu=$ac_cv_c_compiler_gnu
3745
3746
3747
3748ac_header= ac_cache=
3749for ac_item in $ac_header_c_list
3750do
3751  if test $ac_cache; then
3752    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3753    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3754      printf "%s\n" "#define $ac_item 1" >> confdefs.h
3755    fi
3756    ac_header= ac_cache=
3757  elif test $ac_header; then
3758    ac_cache=$ac_item
3759  else
3760    ac_header=$ac_item
3761  fi
3762done
3763
3764
3765
3766
3767
3768
3769
3770
3771if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3772then :
3773
3774printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3775
3776fi
3777
3778
3779
3780
3781
3782
3783  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3784printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3785if test ${ac_cv_safe_to_define___extensions__+y}
3786then :
3787  printf %s "(cached) " >&6
3788else $as_nop
3789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790/* end confdefs.h.  */
3791
3792#         define __EXTENSIONS__ 1
3793          $ac_includes_default
3794int
3795main (void)
3796{
3797
3798  ;
3799  return 0;
3800}
3801_ACEOF
3802if ac_fn_c_try_compile "$LINENO"
3803then :
3804  ac_cv_safe_to_define___extensions__=yes
3805else $as_nop
3806  ac_cv_safe_to_define___extensions__=no
3807fi
3808rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3809fi
3810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3811printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3812
3813  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3814printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3815if test ${ac_cv_should_define__xopen_source+y}
3816then :
3817  printf %s "(cached) " >&6
3818else $as_nop
3819  ac_cv_should_define__xopen_source=no
3820    if test $ac_cv_header_wchar_h = yes
3821then :
3822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823/* end confdefs.h.  */
3824
3825          #include <wchar.h>
3826          mbstate_t x;
3827int
3828main (void)
3829{
3830
3831  ;
3832  return 0;
3833}
3834_ACEOF
3835if ac_fn_c_try_compile "$LINENO"
3836then :
3837
3838else $as_nop
3839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840/* end confdefs.h.  */
3841
3842            #define _XOPEN_SOURCE 500
3843            #include <wchar.h>
3844            mbstate_t x;
3845int
3846main (void)
3847{
3848
3849  ;
3850  return 0;
3851}
3852_ACEOF
3853if ac_fn_c_try_compile "$LINENO"
3854then :
3855  ac_cv_should_define__xopen_source=yes
3856fi
3857rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3858fi
3859rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3860fi
3861fi
3862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3863printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3864
3865  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3866
3867  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3868
3869  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3870
3871  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3872
3873  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3874
3875  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3876
3877  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3878
3879  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3880
3881  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3882
3883  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3884
3885  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3886
3887  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3888
3889  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3890
3891  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3892
3893  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3894
3895  if test $ac_cv_header_minix_config_h = yes
3896then :
3897  MINIX=yes
3898    printf "%s\n" "#define _MINIX 1" >>confdefs.h
3899
3900    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3901
3902    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3903
3904else $as_nop
3905  MINIX=
3906fi
3907  if test $ac_cv_safe_to_define___extensions__ = yes
3908then :
3909  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3910
3911fi
3912  if test $ac_cv_should_define__xopen_source = yes
3913then :
3914  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3915
3916fi
3917
3918# Check whether --enable-largefile was given.
3919if test ${enable_largefile+y}
3920then :
3921  enableval=$enable_largefile;
3922fi
3923
3924if test "$enable_largefile" != no; then
3925
3926  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3927printf %s "checking for special C compiler options needed for large files... " >&6; }
3928if test ${ac_cv_sys_largefile_CC+y}
3929then :
3930  printf %s "(cached) " >&6
3931else $as_nop
3932  ac_cv_sys_largefile_CC=no
3933     if test "$GCC" != yes; then
3934       ac_save_CC=$CC
3935       while :; do
3936	 # IRIX 6.2 and later do not support large files by default,
3937	 # so use the C compiler's -n32 option if that helps.
3938	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939/* end confdefs.h.  */
3940#include <sys/types.h>
3941 /* Check that off_t can represent 2**63 - 1 correctly.
3942    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3943    since some C++ compilers masquerading as C compilers
3944    incorrectly reject 9223372036854775807.  */
3945#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
3946  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3947		       && LARGE_OFF_T % 2147483647 == 1)
3948		      ? 1 : -1];
3949int
3950main (void)
3951{
3952
3953  ;
3954  return 0;
3955}
3956_ACEOF
3957	 if ac_fn_c_try_compile "$LINENO"
3958then :
3959  break
3960fi
3961rm -f core conftest.err conftest.$ac_objext conftest.beam
3962	 CC="$CC -n32"
3963	 if ac_fn_c_try_compile "$LINENO"
3964then :
3965  ac_cv_sys_largefile_CC=' -n32'; break
3966fi
3967rm -f core conftest.err conftest.$ac_objext conftest.beam
3968	 break
3969       done
3970       CC=$ac_save_CC
3971       rm -f conftest.$ac_ext
3972    fi
3973fi
3974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3975printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
3976  if test "$ac_cv_sys_largefile_CC" != no; then
3977    CC=$CC$ac_cv_sys_largefile_CC
3978  fi
3979
3980  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3981printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3982if test ${ac_cv_sys_file_offset_bits+y}
3983then :
3984  printf %s "(cached) " >&6
3985else $as_nop
3986  while :; do
3987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988/* end confdefs.h.  */
3989#include <sys/types.h>
3990 /* Check that off_t can represent 2**63 - 1 correctly.
3991    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3992    since some C++ compilers masquerading as C compilers
3993    incorrectly reject 9223372036854775807.  */
3994#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
3995  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3996		       && LARGE_OFF_T % 2147483647 == 1)
3997		      ? 1 : -1];
3998int
3999main (void)
4000{
4001
4002  ;
4003  return 0;
4004}
4005_ACEOF
4006if ac_fn_c_try_compile "$LINENO"
4007then :
4008  ac_cv_sys_file_offset_bits=no; break
4009fi
4010rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012/* end confdefs.h.  */
4013#define _FILE_OFFSET_BITS 64
4014#include <sys/types.h>
4015 /* Check that off_t can represent 2**63 - 1 correctly.
4016    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4017    since some C++ compilers masquerading as C compilers
4018    incorrectly reject 9223372036854775807.  */
4019#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4020  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4021		       && LARGE_OFF_T % 2147483647 == 1)
4022		      ? 1 : -1];
4023int
4024main (void)
4025{
4026
4027  ;
4028  return 0;
4029}
4030_ACEOF
4031if ac_fn_c_try_compile "$LINENO"
4032then :
4033  ac_cv_sys_file_offset_bits=64; break
4034fi
4035rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4036  ac_cv_sys_file_offset_bits=unknown
4037  break
4038done
4039fi
4040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4041printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
4042case $ac_cv_sys_file_offset_bits in #(
4043  no | unknown) ;;
4044  *)
4045printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
4046;;
4047esac
4048rm -rf conftest*
4049  if test $ac_cv_sys_file_offset_bits = unknown; then
4050    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4051printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
4052if test ${ac_cv_sys_large_files+y}
4053then :
4054  printf %s "(cached) " >&6
4055else $as_nop
4056  while :; do
4057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058/* end confdefs.h.  */
4059#include <sys/types.h>
4060 /* Check that off_t can represent 2**63 - 1 correctly.
4061    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4062    since some C++ compilers masquerading as C compilers
4063    incorrectly reject 9223372036854775807.  */
4064#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4065  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4066		       && LARGE_OFF_T % 2147483647 == 1)
4067		      ? 1 : -1];
4068int
4069main (void)
4070{
4071
4072  ;
4073  return 0;
4074}
4075_ACEOF
4076if ac_fn_c_try_compile "$LINENO"
4077then :
4078  ac_cv_sys_large_files=no; break
4079fi
4080rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082/* end confdefs.h.  */
4083#define _LARGE_FILES 1
4084#include <sys/types.h>
4085 /* Check that off_t can represent 2**63 - 1 correctly.
4086    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4087    since some C++ compilers masquerading as C compilers
4088    incorrectly reject 9223372036854775807.  */
4089#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4090  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4091		       && LARGE_OFF_T % 2147483647 == 1)
4092		      ? 1 : -1];
4093int
4094main (void)
4095{
4096
4097  ;
4098  return 0;
4099}
4100_ACEOF
4101if ac_fn_c_try_compile "$LINENO"
4102then :
4103  ac_cv_sys_large_files=1; break
4104fi
4105rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4106  ac_cv_sys_large_files=unknown
4107  break
4108done
4109fi
4110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4111printf "%s\n" "$ac_cv_sys_large_files" >&6; }
4112case $ac_cv_sys_large_files in #(
4113  no | unknown) ;;
4114  *)
4115printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
4116;;
4117esac
4118rm -rf conftest*
4119  fi
4120fi
4121
4122
4123# Initialize Automake
4124am__api_version='1.16'
4125
4126
4127  # Find a good install program.  We prefer a C program (faster),
4128# so one script is as good as another.  But avoid the broken or
4129# incompatible versions:
4130# SysV /etc/install, /usr/sbin/install
4131# SunOS /usr/etc/install
4132# IRIX /sbin/install
4133# AIX /bin/install
4134# AmigaOS /C/install, which installs bootblocks on floppy discs
4135# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4136# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4137# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4138# OS/2's system install, which has a completely different semantic
4139# ./install, which can be erroneously created by make from ./install.sh.
4140# Reject install programs that cannot install multiple files.
4141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4142printf %s "checking for a BSD-compatible install... " >&6; }
4143if test -z "$INSTALL"; then
4144if test ${ac_cv_path_install+y}
4145then :
4146  printf %s "(cached) " >&6
4147else $as_nop
4148  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149for as_dir in $PATH
4150do
4151  IFS=$as_save_IFS
4152  case $as_dir in #(((
4153    '') as_dir=./ ;;
4154    */) ;;
4155    *) as_dir=$as_dir/ ;;
4156  esac
4157    # Account for fact that we put trailing slashes in our PATH walk.
4158case $as_dir in #((
4159  ./ | /[cC]/* | \
4160  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4161  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4162  /usr/ucb/* ) ;;
4163  *)
4164    # OSF1 and SCO ODT 3.0 have their own names for install.
4165    # Don't use installbsd from OSF since it installs stuff as root
4166    # by default.
4167    for ac_prog in ginstall scoinst install; do
4168      for ac_exec_ext in '' $ac_executable_extensions; do
4169	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4170	  if test $ac_prog = install &&
4171	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4172	    # AIX install.  It has an incompatible calling convention.
4173	    :
4174	  elif test $ac_prog = install &&
4175	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4176	    # program-specific install script used by HP pwplus--don't use.
4177	    :
4178	  else
4179	    rm -rf conftest.one conftest.two conftest.dir
4180	    echo one > conftest.one
4181	    echo two > conftest.two
4182	    mkdir conftest.dir
4183	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4184	      test -s conftest.one && test -s conftest.two &&
4185	      test -s conftest.dir/conftest.one &&
4186	      test -s conftest.dir/conftest.two
4187	    then
4188	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4189	      break 3
4190	    fi
4191	  fi
4192	fi
4193      done
4194    done
4195    ;;
4196esac
4197
4198  done
4199IFS=$as_save_IFS
4200
4201rm -rf conftest.one conftest.two conftest.dir
4202
4203fi
4204  if test ${ac_cv_path_install+y}; then
4205    INSTALL=$ac_cv_path_install
4206  else
4207    # As a last resort, use the slow shell script.  Don't cache a
4208    # value for INSTALL within a source directory, because that will
4209    # break other packages using the cache if that directory is
4210    # removed, or if the value is a relative name.
4211    INSTALL=$ac_install_sh
4212  fi
4213fi
4214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4215printf "%s\n" "$INSTALL" >&6; }
4216
4217# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4218# It thinks the first close brace ends the variable substitution.
4219test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4220
4221test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4222
4223test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4224
4225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4226printf %s "checking whether build environment is sane... " >&6; }
4227# Reject unsafe characters in $srcdir or the absolute working directory
4228# name.  Accept space and tab only in the latter.
4229am_lf='
4230'
4231case `pwd` in
4232  *[\\\"\#\$\&\'\`$am_lf]*)
4233    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4234esac
4235case $srcdir in
4236  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4237    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4238esac
4239
4240# Do 'set' in a subshell so we don't clobber the current shell's
4241# arguments.  Must try -L first in case configure is actually a
4242# symlink; some systems play weird games with the mod time of symlinks
4243# (eg FreeBSD returns the mod time of the symlink's containing
4244# directory).
4245if (
4246   am_has_slept=no
4247   for am_try in 1 2; do
4248     echo "timestamp, slept: $am_has_slept" > conftest.file
4249     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4250     if test "$*" = "X"; then
4251	# -L didn't work.
4252	set X `ls -t "$srcdir/configure" conftest.file`
4253     fi
4254     if test "$*" != "X $srcdir/configure conftest.file" \
4255	&& test "$*" != "X conftest.file $srcdir/configure"; then
4256
4257	# If neither matched, then we have a broken ls.  This can happen
4258	# if, for instance, CONFIG_SHELL is bash and it inherits a
4259	# broken ls alias from the environment.  This has actually
4260	# happened.  Such a system could not be considered "sane".
4261	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4262  alias in your environment" "$LINENO" 5
4263     fi
4264     if test "$2" = conftest.file || test $am_try -eq 2; then
4265       break
4266     fi
4267     # Just in case.
4268     sleep 1
4269     am_has_slept=yes
4270   done
4271   test "$2" = conftest.file
4272   )
4273then
4274   # Ok.
4275   :
4276else
4277   as_fn_error $? "newly created file is older than distributed files!
4278Check your system clock" "$LINENO" 5
4279fi
4280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4281printf "%s\n" "yes" >&6; }
4282# If we didn't sleep, we still need to ensure time stamps of config.status and
4283# generated files are strictly newer.
4284am_sleep_pid=
4285if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4286  ( sleep 1 ) &
4287  am_sleep_pid=$!
4288fi
4289
4290rm -f conftest.file
4291
4292test "$program_prefix" != NONE &&
4293  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4294# Use a double $ so make ignores it.
4295test "$program_suffix" != NONE &&
4296  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4297# Double any \ or $.
4298# By default was `s,x,x', remove it if useless.
4299ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4300program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4301
4302
4303  if test x"${MISSING+set}" != xset; then
4304  MISSING="\${SHELL} '$am_aux_dir/missing'"
4305fi
4306# Use eval to expand $SHELL
4307if eval "$MISSING --is-lightweight"; then
4308  am_missing_run="$MISSING "
4309else
4310  am_missing_run=
4311  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4312printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4313fi
4314
4315if test x"${install_sh+set}" != xset; then
4316  case $am_aux_dir in
4317  *\ * | *\	*)
4318    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4319  *)
4320    install_sh="\${SHELL} $am_aux_dir/install-sh"
4321  esac
4322fi
4323
4324# Installed binaries are usually stripped using 'strip' when the user
4325# run "make install-strip".  However 'strip' might not be the right
4326# tool to use in cross-compilation environments, therefore Automake
4327# will honor the 'STRIP' environment variable to overrule this program.
4328if test "$cross_compiling" != no; then
4329  if test -n "$ac_tool_prefix"; then
4330  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4331set dummy ${ac_tool_prefix}strip; ac_word=$2
4332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4333printf %s "checking for $ac_word... " >&6; }
4334if test ${ac_cv_prog_STRIP+y}
4335then :
4336  printf %s "(cached) " >&6
4337else $as_nop
4338  if test -n "$STRIP"; then
4339  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4340else
4341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342for as_dir in $PATH
4343do
4344  IFS=$as_save_IFS
4345  case $as_dir in #(((
4346    '') as_dir=./ ;;
4347    */) ;;
4348    *) as_dir=$as_dir/ ;;
4349  esac
4350    for ac_exec_ext in '' $ac_executable_extensions; do
4351  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4352    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4353    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4354    break 2
4355  fi
4356done
4357  done
4358IFS=$as_save_IFS
4359
4360fi
4361fi
4362STRIP=$ac_cv_prog_STRIP
4363if test -n "$STRIP"; then
4364  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4365printf "%s\n" "$STRIP" >&6; }
4366else
4367  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4368printf "%s\n" "no" >&6; }
4369fi
4370
4371
4372fi
4373if test -z "$ac_cv_prog_STRIP"; then
4374  ac_ct_STRIP=$STRIP
4375  # Extract the first word of "strip", so it can be a program name with args.
4376set dummy strip; ac_word=$2
4377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4378printf %s "checking for $ac_word... " >&6; }
4379if test ${ac_cv_prog_ac_ct_STRIP+y}
4380then :
4381  printf %s "(cached) " >&6
4382else $as_nop
4383  if test -n "$ac_ct_STRIP"; then
4384  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4385else
4386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387for as_dir in $PATH
4388do
4389  IFS=$as_save_IFS
4390  case $as_dir in #(((
4391    '') as_dir=./ ;;
4392    */) ;;
4393    *) as_dir=$as_dir/ ;;
4394  esac
4395    for ac_exec_ext in '' $ac_executable_extensions; do
4396  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4397    ac_cv_prog_ac_ct_STRIP="strip"
4398    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4399    break 2
4400  fi
4401done
4402  done
4403IFS=$as_save_IFS
4404
4405fi
4406fi
4407ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4408if test -n "$ac_ct_STRIP"; then
4409  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4410printf "%s\n" "$ac_ct_STRIP" >&6; }
4411else
4412  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4413printf "%s\n" "no" >&6; }
4414fi
4415
4416  if test "x$ac_ct_STRIP" = x; then
4417    STRIP=":"
4418  else
4419    case $cross_compiling:$ac_tool_warned in
4420yes:)
4421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4422printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4423ac_tool_warned=yes ;;
4424esac
4425    STRIP=$ac_ct_STRIP
4426  fi
4427else
4428  STRIP="$ac_cv_prog_STRIP"
4429fi
4430
4431fi
4432INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4433
4434
4435  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4436printf %s "checking for a race-free mkdir -p... " >&6; }
4437if test -z "$MKDIR_P"; then
4438  if test ${ac_cv_path_mkdir+y}
4439then :
4440  printf %s "(cached) " >&6
4441else $as_nop
4442  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4444do
4445  IFS=$as_save_IFS
4446  case $as_dir in #(((
4447    '') as_dir=./ ;;
4448    */) ;;
4449    *) as_dir=$as_dir/ ;;
4450  esac
4451    for ac_prog in mkdir gmkdir; do
4452	 for ac_exec_ext in '' $ac_executable_extensions; do
4453	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4454	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4455	     'mkdir ('*'coreutils) '* | \
4456	     'BusyBox '* | \
4457	     'mkdir (fileutils) '4.1*)
4458	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4459	       break 3;;
4460	   esac
4461	 done
4462       done
4463  done
4464IFS=$as_save_IFS
4465
4466fi
4467
4468  test -d ./--version && rmdir ./--version
4469  if test ${ac_cv_path_mkdir+y}; then
4470    MKDIR_P="$ac_cv_path_mkdir -p"
4471  else
4472    # As a last resort, use the slow shell script.  Don't cache a
4473    # value for MKDIR_P within a source directory, because that will
4474    # break other packages using the cache if that directory is
4475    # removed, or if the value is a relative name.
4476    MKDIR_P="$ac_install_sh -d"
4477  fi
4478fi
4479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4480printf "%s\n" "$MKDIR_P" >&6; }
4481
4482for ac_prog in gawk mawk nawk awk
4483do
4484  # Extract the first word of "$ac_prog", so it can be a program name with args.
4485set dummy $ac_prog; ac_word=$2
4486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4487printf %s "checking for $ac_word... " >&6; }
4488if test ${ac_cv_prog_AWK+y}
4489then :
4490  printf %s "(cached) " >&6
4491else $as_nop
4492  if test -n "$AWK"; then
4493  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4494else
4495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496for as_dir in $PATH
4497do
4498  IFS=$as_save_IFS
4499  case $as_dir in #(((
4500    '') as_dir=./ ;;
4501    */) ;;
4502    *) as_dir=$as_dir/ ;;
4503  esac
4504    for ac_exec_ext in '' $ac_executable_extensions; do
4505  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4506    ac_cv_prog_AWK="$ac_prog"
4507    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4508    break 2
4509  fi
4510done
4511  done
4512IFS=$as_save_IFS
4513
4514fi
4515fi
4516AWK=$ac_cv_prog_AWK
4517if test -n "$AWK"; then
4518  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4519printf "%s\n" "$AWK" >&6; }
4520else
4521  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4522printf "%s\n" "no" >&6; }
4523fi
4524
4525
4526  test -n "$AWK" && break
4527done
4528
4529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4530printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4531set x ${MAKE-make}
4532ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4533if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4534then :
4535  printf %s "(cached) " >&6
4536else $as_nop
4537  cat >conftest.make <<\_ACEOF
4538SHELL = /bin/sh
4539all:
4540	@echo '@@@%%%=$(MAKE)=@@@%%%'
4541_ACEOF
4542# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4543case `${MAKE-make} -f conftest.make 2>/dev/null` in
4544  *@@@%%%=?*=@@@%%%*)
4545    eval ac_cv_prog_make_${ac_make}_set=yes;;
4546  *)
4547    eval ac_cv_prog_make_${ac_make}_set=no;;
4548esac
4549rm -f conftest.make
4550fi
4551if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4552  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4553printf "%s\n" "yes" >&6; }
4554  SET_MAKE=
4555else
4556  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4557printf "%s\n" "no" >&6; }
4558  SET_MAKE="MAKE=${MAKE-make}"
4559fi
4560
4561rm -rf .tst 2>/dev/null
4562mkdir .tst 2>/dev/null
4563if test -d .tst; then
4564  am__leading_dot=.
4565else
4566  am__leading_dot=_
4567fi
4568rmdir .tst 2>/dev/null
4569
4570DEPDIR="${am__leading_dot}deps"
4571
4572ac_config_commands="$ac_config_commands depfiles"
4573
4574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4575printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4576cat > confinc.mk << 'END'
4577am__doit:
4578	@echo this is the am__doit target >confinc.out
4579.PHONY: am__doit
4580END
4581am__include="#"
4582am__quote=
4583# BSD make does it like this.
4584echo '.include "confinc.mk" # ignored' > confmf.BSD
4585# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4586echo 'include confinc.mk # ignored' > confmf.GNU
4587_am_result=no
4588for s in GNU BSD; do
4589  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4590   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4591   ac_status=$?
4592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593   (exit $ac_status); }
4594  case $?:`cat confinc.out 2>/dev/null` in #(
4595  '0:this is the am__doit target') :
4596    case $s in #(
4597  BSD) :
4598    am__include='.include' am__quote='"' ;; #(
4599  *) :
4600    am__include='include' am__quote='' ;;
4601esac ;; #(
4602  *) :
4603     ;;
4604esac
4605  if test "$am__include" != "#"; then
4606    _am_result="yes ($s style)"
4607    break
4608  fi
4609done
4610rm -f confinc.* confmf.*
4611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4612printf "%s\n" "${_am_result}" >&6; }
4613
4614# Check whether --enable-dependency-tracking was given.
4615if test ${enable_dependency_tracking+y}
4616then :
4617  enableval=$enable_dependency_tracking;
4618fi
4619
4620if test "x$enable_dependency_tracking" != xno; then
4621  am_depcomp="$ac_aux_dir/depcomp"
4622  AMDEPBACKSLASH='\'
4623  am__nodep='_no'
4624fi
4625 if test "x$enable_dependency_tracking" != xno; then
4626  AMDEP_TRUE=
4627  AMDEP_FALSE='#'
4628else
4629  AMDEP_TRUE='#'
4630  AMDEP_FALSE=
4631fi
4632
4633
4634# Check whether --enable-silent-rules was given.
4635if test ${enable_silent_rules+y}
4636then :
4637  enableval=$enable_silent_rules;
4638fi
4639
4640case $enable_silent_rules in # (((
4641  yes) AM_DEFAULT_VERBOSITY=0;;
4642   no) AM_DEFAULT_VERBOSITY=1;;
4643    *) AM_DEFAULT_VERBOSITY=1;;
4644esac
4645am_make=${MAKE-make}
4646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4647printf %s "checking whether $am_make supports nested variables... " >&6; }
4648if test ${am_cv_make_support_nested_variables+y}
4649then :
4650  printf %s "(cached) " >&6
4651else $as_nop
4652  if printf "%s\n" 'TRUE=$(BAR$(V))
4653BAR0=false
4654BAR1=true
4655V=1
4656am__doit:
4657	@$(TRUE)
4658.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4659  am_cv_make_support_nested_variables=yes
4660else
4661  am_cv_make_support_nested_variables=no
4662fi
4663fi
4664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4665printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4666if test $am_cv_make_support_nested_variables = yes; then
4667    AM_V='$(V)'
4668  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4669else
4670  AM_V=$AM_DEFAULT_VERBOSITY
4671  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4672fi
4673AM_BACKSLASH='\'
4674
4675if test "`cd $srcdir && pwd`" != "`pwd`"; then
4676  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4677  # is not polluted with repeated "-I."
4678  am__isrc=' -I$(srcdir)'
4679  # test to see if srcdir already configured
4680  if test -f $srcdir/config.status; then
4681    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4682  fi
4683fi
4684
4685# test whether we have cygpath
4686if test -z "$CYGPATH_W"; then
4687  if (cygpath --version) >/dev/null 2>/dev/null; then
4688    CYGPATH_W='cygpath -w'
4689  else
4690    CYGPATH_W=echo
4691  fi
4692fi
4693
4694
4695# Define the identity of the package.
4696 PACKAGE='sessreg'
4697 VERSION='1.1.3'
4698
4699
4700printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4701
4702
4703printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4704
4705# Some tools Automake needs.
4706
4707ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4708
4709
4710AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4711
4712
4713AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4714
4715
4716AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4717
4718
4719MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4720
4721# For better backward compatibility.  To be removed once Automake 1.9.x
4722# dies out for good.  For more background, see:
4723# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4724# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4725mkdir_p='$(MKDIR_P)'
4726
4727# We need awk for the "check" target (and possibly the TAP driver).  The
4728# system "awk" is bad on some platforms.
4729# Always define AMTAR for backward compatibility.  Yes, it's still used
4730# in the wild :-(  We should find a proper way to deprecate it ...
4731AMTAR='$${TAR-tar}'
4732
4733
4734# We'll loop over all known methods to create a tar archive until one works.
4735_am_tools='gnutar  pax cpio none'
4736
4737am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4738
4739
4740
4741
4742
4743depcc="$CC"   am_compiler_list=
4744
4745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4746printf %s "checking dependency style of $depcc... " >&6; }
4747if test ${am_cv_CC_dependencies_compiler_type+y}
4748then :
4749  printf %s "(cached) " >&6
4750else $as_nop
4751  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4752  # We make a subdir and do the tests there.  Otherwise we can end up
4753  # making bogus files that we don't know about and never remove.  For
4754  # instance it was reported that on HP-UX the gcc test will end up
4755  # making a dummy file named 'D' -- because '-MD' means "put the output
4756  # in D".
4757  rm -rf conftest.dir
4758  mkdir conftest.dir
4759  # Copy depcomp to subdir because otherwise we won't find it if we're
4760  # using a relative directory.
4761  cp "$am_depcomp" conftest.dir
4762  cd conftest.dir
4763  # We will build objects and dependencies in a subdirectory because
4764  # it helps to detect inapplicable dependency modes.  For instance
4765  # both Tru64's cc and ICC support -MD to output dependencies as a
4766  # side effect of compilation, but ICC will put the dependencies in
4767  # the current directory while Tru64 will put them in the object
4768  # directory.
4769  mkdir sub
4770
4771  am_cv_CC_dependencies_compiler_type=none
4772  if test "$am_compiler_list" = ""; then
4773     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4774  fi
4775  am__universal=false
4776  case " $depcc " in #(
4777     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4778     esac
4779
4780  for depmode in $am_compiler_list; do
4781    # Setup a source with many dependencies, because some compilers
4782    # like to wrap large dependency lists on column 80 (with \), and
4783    # we should not choose a depcomp mode which is confused by this.
4784    #
4785    # We need to recreate these files for each test, as the compiler may
4786    # overwrite some of them when testing with obscure command lines.
4787    # This happens at least with the AIX C compiler.
4788    : > sub/conftest.c
4789    for i in 1 2 3 4 5 6; do
4790      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4791      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4792      # Solaris 10 /bin/sh.
4793      echo '/* dummy */' > sub/conftst$i.h
4794    done
4795    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4796
4797    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4798    # mode.  It turns out that the SunPro C++ compiler does not properly
4799    # handle '-M -o', and we need to detect this.  Also, some Intel
4800    # versions had trouble with output in subdirs.
4801    am__obj=sub/conftest.${OBJEXT-o}
4802    am__minus_obj="-o $am__obj"
4803    case $depmode in
4804    gcc)
4805      # This depmode causes a compiler race in universal mode.
4806      test "$am__universal" = false || continue
4807      ;;
4808    nosideeffect)
4809      # After this tag, mechanisms are not by side-effect, so they'll
4810      # only be used when explicitly requested.
4811      if test "x$enable_dependency_tracking" = xyes; then
4812	continue
4813      else
4814	break
4815      fi
4816      ;;
4817    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4818      # This compiler won't grok '-c -o', but also, the minuso test has
4819      # not run yet.  These depmodes are late enough in the game, and
4820      # so weak that their functioning should not be impacted.
4821      am__obj=conftest.${OBJEXT-o}
4822      am__minus_obj=
4823      ;;
4824    none) break ;;
4825    esac
4826    if depmode=$depmode \
4827       source=sub/conftest.c object=$am__obj \
4828       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4829       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4830         >/dev/null 2>conftest.err &&
4831       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4832       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4833       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4834       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4835      # icc doesn't choke on unknown options, it will just issue warnings
4836      # or remarks (even with -Werror).  So we grep stderr for any message
4837      # that says an option was ignored or not supported.
4838      # When given -MP, icc 7.0 and 7.1 complain thusly:
4839      #   icc: Command line warning: ignoring option '-M'; no argument required
4840      # The diagnosis changed in icc 8.0:
4841      #   icc: Command line remark: option '-MP' not supported
4842      if (grep 'ignoring option' conftest.err ||
4843          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4844        am_cv_CC_dependencies_compiler_type=$depmode
4845        break
4846      fi
4847    fi
4848  done
4849
4850  cd ..
4851  rm -rf conftest.dir
4852else
4853  am_cv_CC_dependencies_compiler_type=none
4854fi
4855
4856fi
4857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4858printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4859CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4860
4861 if
4862  test "x$enable_dependency_tracking" != xno \
4863  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4864  am__fastdepCC_TRUE=
4865  am__fastdepCC_FALSE='#'
4866else
4867  am__fastdepCC_TRUE='#'
4868  am__fastdepCC_FALSE=
4869fi
4870
4871
4872# Variables for tags utilities; see am/tags.am
4873if test -z "$CTAGS"; then
4874  CTAGS=ctags
4875fi
4876
4877if test -z "$ETAGS"; then
4878  ETAGS=etags
4879fi
4880
4881if test -z "$CSCOPE"; then
4882  CSCOPE=cscope
4883fi
4884
4885
4886
4887# POSIX will say in a future version that running "rm -f" with no argument
4888# is OK; and we want to be able to make that assumption in our Makefile
4889# recipes.  So use an aggressive probe to check that the usage we want is
4890# actually supported "in the wild" to an acceptable degree.
4891# See automake bug#10828.
4892# To make any issue more visible, cause the running configure to be aborted
4893# by default if the 'rm' program in use doesn't match our expectations; the
4894# user can still override this though.
4895if rm -f && rm -fr && rm -rf; then : OK; else
4896  cat >&2 <<'END'
4897Oops!
4898
4899Your 'rm' program seems unable to run without file operands specified
4900on the command line, even when the '-f' option is present.  This is contrary
4901to the behaviour of most rm programs out there, and not conforming with
4902the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4903
4904Please tell bug-automake@gnu.org about your system, including the value
4905of your $PATH and any error possibly output before this message.  This
4906can help us improve future automake versions.
4907
4908END
4909  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4910    echo 'Configuration will proceed anyway, since you have set the' >&2
4911    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4912    echo >&2
4913  else
4914    cat >&2 <<'END'
4915Aborting the configuration process, to ensure you take notice of the issue.
4916
4917You can download and install GNU coreutils to get an 'rm' implementation
4918that behaves properly: <https://www.gnu.org/software/coreutils/>.
4919
4920If you want to complete the configuration process using your problematic
4921'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4922to "yes", and re-run configure.
4923
4924END
4925    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4926  fi
4927fi
4928
4929
4930# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4944printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4945if test ${ac_cv_c_undeclared_builtin_options+y}
4946then :
4947  printf %s "(cached) " >&6
4948else $as_nop
4949  ac_save_CFLAGS=$CFLAGS
4950   ac_cv_c_undeclared_builtin_options='cannot detect'
4951   for ac_arg in '' -fno-builtin; do
4952     CFLAGS="$ac_save_CFLAGS $ac_arg"
4953     # This test program should *not* compile successfully.
4954     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955/* end confdefs.h.  */
4956
4957int
4958main (void)
4959{
4960(void) strchr;
4961  ;
4962  return 0;
4963}
4964_ACEOF
4965if ac_fn_c_try_compile "$LINENO"
4966then :
4967
4968else $as_nop
4969  # This test program should compile successfully.
4970        # No library function is consistently available on
4971        # freestanding implementations, so test against a dummy
4972        # declaration.  Include always-available headers on the
4973        # off chance that they somehow elicit warnings.
4974        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975/* end confdefs.h.  */
4976#include <float.h>
4977#include <limits.h>
4978#include <stdarg.h>
4979#include <stddef.h>
4980extern void ac_decl (int, char *);
4981
4982int
4983main (void)
4984{
4985(void) ac_decl (0, (char *) 0);
4986  (void) ac_decl;
4987
4988  ;
4989  return 0;
4990}
4991_ACEOF
4992if ac_fn_c_try_compile "$LINENO"
4993then :
4994  if test x"$ac_arg" = x
4995then :
4996  ac_cv_c_undeclared_builtin_options='none needed'
4997else $as_nop
4998  ac_cv_c_undeclared_builtin_options=$ac_arg
4999fi
5000          break
5001fi
5002rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5003fi
5004rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5005    done
5006    CFLAGS=$ac_save_CFLAGS
5007
5008fi
5009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
5010printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
5011  case $ac_cv_c_undeclared_builtin_options in #(
5012  'cannot detect') :
5013    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5014printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5015as_fn_error $? "cannot make $CC report undeclared builtins
5016See \`config.log' for more details" "$LINENO" 5; } ;; #(
5017  'none needed') :
5018    ac_c_undeclared_builtin_options='' ;; #(
5019  *) :
5020    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
5021esac
5022
5023
5024
5025
5026
5027ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
5028if test "x$ac_cv_have_decl___clang__" = xyes
5029then :
5030  CLANGCC="yes"
5031else $as_nop
5032  CLANGCC="no"
5033fi
5034ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
5035if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
5036then :
5037  INTELCC="yes"
5038else $as_nop
5039  INTELCC="no"
5040fi
5041ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
5042if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
5043then :
5044  SUNCC="yes"
5045else $as_nop
5046  SUNCC="no"
5047fi
5048
5049
5050
5051
5052
5053
5054
5055
5056if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5057	if test -n "$ac_tool_prefix"; then
5058  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5059set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5061printf %s "checking for $ac_word... " >&6; }
5062if test ${ac_cv_path_PKG_CONFIG+y}
5063then :
5064  printf %s "(cached) " >&6
5065else $as_nop
5066  case $PKG_CONFIG in
5067  [\\/]* | ?:[\\/]*)
5068  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5069  ;;
5070  *)
5071  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072for as_dir in $PATH
5073do
5074  IFS=$as_save_IFS
5075  case $as_dir in #(((
5076    '') as_dir=./ ;;
5077    */) ;;
5078    *) as_dir=$as_dir/ ;;
5079  esac
5080    for ac_exec_ext in '' $ac_executable_extensions; do
5081  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5082    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5083    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5084    break 2
5085  fi
5086done
5087  done
5088IFS=$as_save_IFS
5089
5090  ;;
5091esac
5092fi
5093PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5094if test -n "$PKG_CONFIG"; then
5095  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5096printf "%s\n" "$PKG_CONFIG" >&6; }
5097else
5098  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099printf "%s\n" "no" >&6; }
5100fi
5101
5102
5103fi
5104if test -z "$ac_cv_path_PKG_CONFIG"; then
5105  ac_pt_PKG_CONFIG=$PKG_CONFIG
5106  # Extract the first word of "pkg-config", so it can be a program name with args.
5107set dummy pkg-config; ac_word=$2
5108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109printf %s "checking for $ac_word... " >&6; }
5110if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
5111then :
5112  printf %s "(cached) " >&6
5113else $as_nop
5114  case $ac_pt_PKG_CONFIG in
5115  [\\/]* | ?:[\\/]*)
5116  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5117  ;;
5118  *)
5119  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120for as_dir in $PATH
5121do
5122  IFS=$as_save_IFS
5123  case $as_dir in #(((
5124    '') as_dir=./ ;;
5125    */) ;;
5126    *) as_dir=$as_dir/ ;;
5127  esac
5128    for ac_exec_ext in '' $ac_executable_extensions; do
5129  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5130    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5131    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5132    break 2
5133  fi
5134done
5135  done
5136IFS=$as_save_IFS
5137
5138  ;;
5139esac
5140fi
5141ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5142if test -n "$ac_pt_PKG_CONFIG"; then
5143  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5144printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
5145else
5146  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147printf "%s\n" "no" >&6; }
5148fi
5149
5150  if test "x$ac_pt_PKG_CONFIG" = x; then
5151    PKG_CONFIG=""
5152  else
5153    case $cross_compiling:$ac_tool_warned in
5154yes:)
5155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5156printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5157ac_tool_warned=yes ;;
5158esac
5159    PKG_CONFIG=$ac_pt_PKG_CONFIG
5160  fi
5161else
5162  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5163fi
5164
5165fi
5166if test -n "$PKG_CONFIG"; then
5167	_pkg_min_version=0.9.0
5168	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5169printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5170	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5171		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5172printf "%s\n" "yes" >&6; }
5173	else
5174		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175printf "%s\n" "no" >&6; }
5176		PKG_CONFIG=""
5177	fi
5178fi
5179
5180
5181  # Make sure we can run config.sub.
5182$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5183  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5184
5185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5186printf %s "checking build system type... " >&6; }
5187if test ${ac_cv_build+y}
5188then :
5189  printf %s "(cached) " >&6
5190else $as_nop
5191  ac_build_alias=$build_alias
5192test "x$ac_build_alias" = x &&
5193  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5194test "x$ac_build_alias" = x &&
5195  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5196ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5197  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5198
5199fi
5200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5201printf "%s\n" "$ac_cv_build" >&6; }
5202case $ac_cv_build in
5203*-*-*) ;;
5204*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5205esac
5206build=$ac_cv_build
5207ac_save_IFS=$IFS; IFS='-'
5208set x $ac_cv_build
5209shift
5210build_cpu=$1
5211build_vendor=$2
5212shift; shift
5213# Remember, the first character of IFS is used to create $*,
5214# except with old shells:
5215build_os=$*
5216IFS=$ac_save_IFS
5217case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5218
5219
5220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5221printf %s "checking host system type... " >&6; }
5222if test ${ac_cv_host+y}
5223then :
5224  printf %s "(cached) " >&6
5225else $as_nop
5226  if test "x$host_alias" = x; then
5227  ac_cv_host=$ac_cv_build
5228else
5229  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5230    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5231fi
5232
5233fi
5234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5235printf "%s\n" "$ac_cv_host" >&6; }
5236case $ac_cv_host in
5237*-*-*) ;;
5238*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5239esac
5240host=$ac_cv_host
5241ac_save_IFS=$IFS; IFS='-'
5242set x $ac_cv_host
5243shift
5244host_cpu=$1
5245host_vendor=$2
5246shift; shift
5247# Remember, the first character of IFS is used to create $*,
5248# except with old shells:
5249host_os=$*
5250IFS=$ac_save_IFS
5251case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5252
5253
5254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5255printf %s "checking for a sed that does not truncate output... " >&6; }
5256if test ${ac_cv_path_SED+y}
5257then :
5258  printf %s "(cached) " >&6
5259else $as_nop
5260            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5261     for ac_i in 1 2 3 4 5 6 7; do
5262       ac_script="$ac_script$as_nl$ac_script"
5263     done
5264     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5265     { ac_script=; unset ac_script;}
5266     if test -z "$SED"; then
5267  ac_path_SED_found=false
5268  # Loop through the user's path and test for each of PROGNAME-LIST
5269  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270for as_dir in $PATH
5271do
5272  IFS=$as_save_IFS
5273  case $as_dir in #(((
5274    '') as_dir=./ ;;
5275    */) ;;
5276    *) as_dir=$as_dir/ ;;
5277  esac
5278    for ac_prog in sed gsed
5279   do
5280    for ac_exec_ext in '' $ac_executable_extensions; do
5281      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5282      as_fn_executable_p "$ac_path_SED" || continue
5283# Check for GNU ac_path_SED and select it if it is found.
5284  # Check for GNU $ac_path_SED
5285case `"$ac_path_SED" --version 2>&1` in
5286*GNU*)
5287  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5288*)
5289  ac_count=0
5290  printf %s 0123456789 >"conftest.in"
5291  while :
5292  do
5293    cat "conftest.in" "conftest.in" >"conftest.tmp"
5294    mv "conftest.tmp" "conftest.in"
5295    cp "conftest.in" "conftest.nl"
5296    printf "%s\n" '' >> "conftest.nl"
5297    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5298    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5299    as_fn_arith $ac_count + 1 && ac_count=$as_val
5300    if test $ac_count -gt ${ac_path_SED_max-0}; then
5301      # Best one so far, save it but keep looking for a better one
5302      ac_cv_path_SED="$ac_path_SED"
5303      ac_path_SED_max=$ac_count
5304    fi
5305    # 10*(2^10) chars as input seems more than enough
5306    test $ac_count -gt 10 && break
5307  done
5308  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5309esac
5310
5311      $ac_path_SED_found && break 3
5312    done
5313  done
5314  done
5315IFS=$as_save_IFS
5316  if test -z "$ac_cv_path_SED"; then
5317    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5318  fi
5319else
5320  ac_cv_path_SED=$SED
5321fi
5322
5323fi
5324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5325printf "%s\n" "$ac_cv_path_SED" >&6; }
5326 SED="$ac_cv_path_SED"
5327  rm -f conftest.sed
5328
5329
5330
5331
5332
5333
5334# Check whether --enable-selective-werror was given.
5335if test ${enable_selective_werror+y}
5336then :
5337  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5338else $as_nop
5339  SELECTIVE_WERROR=yes
5340fi
5341
5342
5343
5344
5345
5346# -v is too short to test reliably with XORG_TESTSET_CFLAG
5347if test "x$SUNCC" = "xyes"; then
5348    BASE_CFLAGS="-v"
5349else
5350    BASE_CFLAGS=""
5351fi
5352
5353# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367xorg_testset_save_CFLAGS="$CFLAGS"
5368
5369if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5370	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5371	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5372printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5373if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5374then :
5375  printf %s "(cached) " >&6
5376else $as_nop
5377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5378/* end confdefs.h.  */
5379int i;
5380_ACEOF
5381if ac_fn_c_try_compile "$LINENO"
5382then :
5383  xorg_cv_cc_flag_unknown_warning_option=yes
5384else $as_nop
5385  xorg_cv_cc_flag_unknown_warning_option=no
5386fi
5387rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5388fi
5389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5390printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5391	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5392	CFLAGS="$xorg_testset_save_CFLAGS"
5393fi
5394
5395if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5396	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5397		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5398	fi
5399	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5400	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5401printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5402if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5403then :
5404  printf %s "(cached) " >&6
5405else $as_nop
5406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407/* end confdefs.h.  */
5408int i;
5409_ACEOF
5410if ac_fn_c_try_compile "$LINENO"
5411then :
5412  xorg_cv_cc_flag_unused_command_line_argument=yes
5413else $as_nop
5414  xorg_cv_cc_flag_unused_command_line_argument=no
5415fi
5416rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5417fi
5418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5419printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5420	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5421	CFLAGS="$xorg_testset_save_CFLAGS"
5422fi
5423
5424found="no"
5425
5426	if test $found = "no" ; then
5427		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5428			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5429		fi
5430
5431		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5432			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5433		fi
5434
5435		CFLAGS="$CFLAGS -Wall"
5436
5437		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5438printf %s "checking if $CC supports -Wall... " >&6; }
5439		cacheid=xorg_cv_cc_flag__Wall
5440		if eval test \${$cacheid+y}
5441then :
5442  printf %s "(cached) " >&6
5443else $as_nop
5444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445/* end confdefs.h.  */
5446int i;
5447int
5448main (void)
5449{
5450
5451  ;
5452  return 0;
5453}
5454_ACEOF
5455if ac_fn_c_try_link "$LINENO"
5456then :
5457  eval $cacheid=yes
5458else $as_nop
5459  eval $cacheid=no
5460fi
5461rm -f core conftest.err conftest.$ac_objext conftest.beam \
5462    conftest$ac_exeext conftest.$ac_ext
5463fi
5464
5465
5466		CFLAGS="$xorg_testset_save_CFLAGS"
5467
5468		eval supported=\$$cacheid
5469		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5470printf "%s\n" "$supported" >&6; }
5471		if test "$supported" = "yes" ; then
5472			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5473			found="yes"
5474		fi
5475	fi
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491xorg_testset_save_CFLAGS="$CFLAGS"
5492
5493if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5494	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5495	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5496printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5497if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5498then :
5499  printf %s "(cached) " >&6
5500else $as_nop
5501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502/* end confdefs.h.  */
5503int i;
5504_ACEOF
5505if ac_fn_c_try_compile "$LINENO"
5506then :
5507  xorg_cv_cc_flag_unknown_warning_option=yes
5508else $as_nop
5509  xorg_cv_cc_flag_unknown_warning_option=no
5510fi
5511rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5512fi
5513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5514printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5515	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5516	CFLAGS="$xorg_testset_save_CFLAGS"
5517fi
5518
5519if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5520	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5521		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5522	fi
5523	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5524	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5525printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5526if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5527then :
5528  printf %s "(cached) " >&6
5529else $as_nop
5530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5531/* end confdefs.h.  */
5532int i;
5533_ACEOF
5534if ac_fn_c_try_compile "$LINENO"
5535then :
5536  xorg_cv_cc_flag_unused_command_line_argument=yes
5537else $as_nop
5538  xorg_cv_cc_flag_unused_command_line_argument=no
5539fi
5540rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5541fi
5542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5543printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5544	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5545	CFLAGS="$xorg_testset_save_CFLAGS"
5546fi
5547
5548found="no"
5549
5550	if test $found = "no" ; then
5551		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5552			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5553		fi
5554
5555		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5556			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5557		fi
5558
5559		CFLAGS="$CFLAGS -Wpointer-arith"
5560
5561		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5562printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5563		cacheid=xorg_cv_cc_flag__Wpointer_arith
5564		if eval test \${$cacheid+y}
5565then :
5566  printf %s "(cached) " >&6
5567else $as_nop
5568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569/* end confdefs.h.  */
5570int i;
5571int
5572main (void)
5573{
5574
5575  ;
5576  return 0;
5577}
5578_ACEOF
5579if ac_fn_c_try_link "$LINENO"
5580then :
5581  eval $cacheid=yes
5582else $as_nop
5583  eval $cacheid=no
5584fi
5585rm -f core conftest.err conftest.$ac_objext conftest.beam \
5586    conftest$ac_exeext conftest.$ac_ext
5587fi
5588
5589
5590		CFLAGS="$xorg_testset_save_CFLAGS"
5591
5592		eval supported=\$$cacheid
5593		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5594printf "%s\n" "$supported" >&6; }
5595		if test "$supported" = "yes" ; then
5596			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5597			found="yes"
5598		fi
5599	fi
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615xorg_testset_save_CFLAGS="$CFLAGS"
5616
5617if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5618	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5619	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5620printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5621if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5622then :
5623  printf %s "(cached) " >&6
5624else $as_nop
5625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626/* end confdefs.h.  */
5627int i;
5628_ACEOF
5629if ac_fn_c_try_compile "$LINENO"
5630then :
5631  xorg_cv_cc_flag_unknown_warning_option=yes
5632else $as_nop
5633  xorg_cv_cc_flag_unknown_warning_option=no
5634fi
5635rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5636fi
5637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5638printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5639	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5640	CFLAGS="$xorg_testset_save_CFLAGS"
5641fi
5642
5643if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5644	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5645		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5646	fi
5647	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5648	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5649printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5650if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5651then :
5652  printf %s "(cached) " >&6
5653else $as_nop
5654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655/* end confdefs.h.  */
5656int i;
5657_ACEOF
5658if ac_fn_c_try_compile "$LINENO"
5659then :
5660  xorg_cv_cc_flag_unused_command_line_argument=yes
5661else $as_nop
5662  xorg_cv_cc_flag_unused_command_line_argument=no
5663fi
5664rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5665fi
5666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5667printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5668	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5669	CFLAGS="$xorg_testset_save_CFLAGS"
5670fi
5671
5672found="no"
5673
5674	if test $found = "no" ; then
5675		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5676			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5677		fi
5678
5679		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5680			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5681		fi
5682
5683		CFLAGS="$CFLAGS -Wmissing-declarations"
5684
5685		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5686printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5687		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5688		if eval test \${$cacheid+y}
5689then :
5690  printf %s "(cached) " >&6
5691else $as_nop
5692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693/* end confdefs.h.  */
5694int i;
5695int
5696main (void)
5697{
5698
5699  ;
5700  return 0;
5701}
5702_ACEOF
5703if ac_fn_c_try_link "$LINENO"
5704then :
5705  eval $cacheid=yes
5706else $as_nop
5707  eval $cacheid=no
5708fi
5709rm -f core conftest.err conftest.$ac_objext conftest.beam \
5710    conftest$ac_exeext conftest.$ac_ext
5711fi
5712
5713
5714		CFLAGS="$xorg_testset_save_CFLAGS"
5715
5716		eval supported=\$$cacheid
5717		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5718printf "%s\n" "$supported" >&6; }
5719		if test "$supported" = "yes" ; then
5720			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5721			found="yes"
5722		fi
5723	fi
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739xorg_testset_save_CFLAGS="$CFLAGS"
5740
5741if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5742	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5743	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5744printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5745if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5746then :
5747  printf %s "(cached) " >&6
5748else $as_nop
5749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750/* end confdefs.h.  */
5751int i;
5752_ACEOF
5753if ac_fn_c_try_compile "$LINENO"
5754then :
5755  xorg_cv_cc_flag_unknown_warning_option=yes
5756else $as_nop
5757  xorg_cv_cc_flag_unknown_warning_option=no
5758fi
5759rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5760fi
5761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5762printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5763	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5764	CFLAGS="$xorg_testset_save_CFLAGS"
5765fi
5766
5767if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5768	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5769		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5770	fi
5771	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5772	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5773printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5774if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5775then :
5776  printf %s "(cached) " >&6
5777else $as_nop
5778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779/* end confdefs.h.  */
5780int i;
5781_ACEOF
5782if ac_fn_c_try_compile "$LINENO"
5783then :
5784  xorg_cv_cc_flag_unused_command_line_argument=yes
5785else $as_nop
5786  xorg_cv_cc_flag_unused_command_line_argument=no
5787fi
5788rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5789fi
5790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5791printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5792	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5793	CFLAGS="$xorg_testset_save_CFLAGS"
5794fi
5795
5796found="no"
5797
5798	if test $found = "no" ; then
5799		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5800			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5801		fi
5802
5803		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5804			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5805		fi
5806
5807		CFLAGS="$CFLAGS -Wformat=2"
5808
5809		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5810printf %s "checking if $CC supports -Wformat=2... " >&6; }
5811		cacheid=xorg_cv_cc_flag__Wformat_2
5812		if eval test \${$cacheid+y}
5813then :
5814  printf %s "(cached) " >&6
5815else $as_nop
5816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817/* end confdefs.h.  */
5818int i;
5819int
5820main (void)
5821{
5822
5823  ;
5824  return 0;
5825}
5826_ACEOF
5827if ac_fn_c_try_link "$LINENO"
5828then :
5829  eval $cacheid=yes
5830else $as_nop
5831  eval $cacheid=no
5832fi
5833rm -f core conftest.err conftest.$ac_objext conftest.beam \
5834    conftest$ac_exeext conftest.$ac_ext
5835fi
5836
5837
5838		CFLAGS="$xorg_testset_save_CFLAGS"
5839
5840		eval supported=\$$cacheid
5841		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5842printf "%s\n" "$supported" >&6; }
5843		if test "$supported" = "yes" ; then
5844			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5845			found="yes"
5846		fi
5847	fi
5848
5849	if test $found = "no" ; then
5850		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5851			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5852		fi
5853
5854		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5855			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5856		fi
5857
5858		CFLAGS="$CFLAGS -Wformat"
5859
5860		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5861printf %s "checking if $CC supports -Wformat... " >&6; }
5862		cacheid=xorg_cv_cc_flag__Wformat
5863		if eval test \${$cacheid+y}
5864then :
5865  printf %s "(cached) " >&6
5866else $as_nop
5867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868/* end confdefs.h.  */
5869int i;
5870int
5871main (void)
5872{
5873
5874  ;
5875  return 0;
5876}
5877_ACEOF
5878if ac_fn_c_try_link "$LINENO"
5879then :
5880  eval $cacheid=yes
5881else $as_nop
5882  eval $cacheid=no
5883fi
5884rm -f core conftest.err conftest.$ac_objext conftest.beam \
5885    conftest$ac_exeext conftest.$ac_ext
5886fi
5887
5888
5889		CFLAGS="$xorg_testset_save_CFLAGS"
5890
5891		eval supported=\$$cacheid
5892		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5893printf "%s\n" "$supported" >&6; }
5894		if test "$supported" = "yes" ; then
5895			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5896			found="yes"
5897		fi
5898	fi
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916xorg_testset_save_CFLAGS="$CFLAGS"
5917
5918if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5919	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5920	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5921printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5922if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5923then :
5924  printf %s "(cached) " >&6
5925else $as_nop
5926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927/* end confdefs.h.  */
5928int i;
5929_ACEOF
5930if ac_fn_c_try_compile "$LINENO"
5931then :
5932  xorg_cv_cc_flag_unknown_warning_option=yes
5933else $as_nop
5934  xorg_cv_cc_flag_unknown_warning_option=no
5935fi
5936rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5937fi
5938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5939printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5940	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5941	CFLAGS="$xorg_testset_save_CFLAGS"
5942fi
5943
5944if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5945	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5946		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5947	fi
5948	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5949	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5950printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5951if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5952then :
5953  printf %s "(cached) " >&6
5954else $as_nop
5955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5956/* end confdefs.h.  */
5957int i;
5958_ACEOF
5959if ac_fn_c_try_compile "$LINENO"
5960then :
5961  xorg_cv_cc_flag_unused_command_line_argument=yes
5962else $as_nop
5963  xorg_cv_cc_flag_unused_command_line_argument=no
5964fi
5965rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5966fi
5967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5968printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5969	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5970	CFLAGS="$xorg_testset_save_CFLAGS"
5971fi
5972
5973found="no"
5974
5975	if test $found = "no" ; then
5976		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5977			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5978		fi
5979
5980		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5981			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5982		fi
5983
5984		CFLAGS="$CFLAGS -Wstrict-prototypes"
5985
5986		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5987printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5988		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5989		if eval test \${$cacheid+y}
5990then :
5991  printf %s "(cached) " >&6
5992else $as_nop
5993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994/* end confdefs.h.  */
5995int i;
5996int
5997main (void)
5998{
5999
6000  ;
6001  return 0;
6002}
6003_ACEOF
6004if ac_fn_c_try_link "$LINENO"
6005then :
6006  eval $cacheid=yes
6007else $as_nop
6008  eval $cacheid=no
6009fi
6010rm -f core conftest.err conftest.$ac_objext conftest.beam \
6011    conftest$ac_exeext conftest.$ac_ext
6012fi
6013
6014
6015		CFLAGS="$xorg_testset_save_CFLAGS"
6016
6017		eval supported=\$$cacheid
6018		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6019printf "%s\n" "$supported" >&6; }
6020		if test "$supported" = "yes" ; then
6021			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
6022			found="yes"
6023		fi
6024	fi
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040xorg_testset_save_CFLAGS="$CFLAGS"
6041
6042if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6043	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6044	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6045printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6046if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6047then :
6048  printf %s "(cached) " >&6
6049else $as_nop
6050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051/* end confdefs.h.  */
6052int i;
6053_ACEOF
6054if ac_fn_c_try_compile "$LINENO"
6055then :
6056  xorg_cv_cc_flag_unknown_warning_option=yes
6057else $as_nop
6058  xorg_cv_cc_flag_unknown_warning_option=no
6059fi
6060rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6061fi
6062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6063printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6064	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6065	CFLAGS="$xorg_testset_save_CFLAGS"
6066fi
6067
6068if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6069	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6070		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6071	fi
6072	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6073	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6074printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6075if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6076then :
6077  printf %s "(cached) " >&6
6078else $as_nop
6079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6080/* end confdefs.h.  */
6081int i;
6082_ACEOF
6083if ac_fn_c_try_compile "$LINENO"
6084then :
6085  xorg_cv_cc_flag_unused_command_line_argument=yes
6086else $as_nop
6087  xorg_cv_cc_flag_unused_command_line_argument=no
6088fi
6089rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6090fi
6091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6092printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6093	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6094	CFLAGS="$xorg_testset_save_CFLAGS"
6095fi
6096
6097found="no"
6098
6099	if test $found = "no" ; then
6100		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6101			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6102		fi
6103
6104		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6105			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6106		fi
6107
6108		CFLAGS="$CFLAGS -Wmissing-prototypes"
6109
6110		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
6111printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
6112		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
6113		if eval test \${$cacheid+y}
6114then :
6115  printf %s "(cached) " >&6
6116else $as_nop
6117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6118/* end confdefs.h.  */
6119int i;
6120int
6121main (void)
6122{
6123
6124  ;
6125  return 0;
6126}
6127_ACEOF
6128if ac_fn_c_try_link "$LINENO"
6129then :
6130  eval $cacheid=yes
6131else $as_nop
6132  eval $cacheid=no
6133fi
6134rm -f core conftest.err conftest.$ac_objext conftest.beam \
6135    conftest$ac_exeext conftest.$ac_ext
6136fi
6137
6138
6139		CFLAGS="$xorg_testset_save_CFLAGS"
6140
6141		eval supported=\$$cacheid
6142		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6143printf "%s\n" "$supported" >&6; }
6144		if test "$supported" = "yes" ; then
6145			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
6146			found="yes"
6147		fi
6148	fi
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164xorg_testset_save_CFLAGS="$CFLAGS"
6165
6166if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6167	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6168	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6169printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6170if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6171then :
6172  printf %s "(cached) " >&6
6173else $as_nop
6174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6175/* end confdefs.h.  */
6176int i;
6177_ACEOF
6178if ac_fn_c_try_compile "$LINENO"
6179then :
6180  xorg_cv_cc_flag_unknown_warning_option=yes
6181else $as_nop
6182  xorg_cv_cc_flag_unknown_warning_option=no
6183fi
6184rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6185fi
6186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6187printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6188	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6189	CFLAGS="$xorg_testset_save_CFLAGS"
6190fi
6191
6192if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6193	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6194		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6195	fi
6196	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6197	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6198printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6199if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6200then :
6201  printf %s "(cached) " >&6
6202else $as_nop
6203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6204/* end confdefs.h.  */
6205int i;
6206_ACEOF
6207if ac_fn_c_try_compile "$LINENO"
6208then :
6209  xorg_cv_cc_flag_unused_command_line_argument=yes
6210else $as_nop
6211  xorg_cv_cc_flag_unused_command_line_argument=no
6212fi
6213rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6214fi
6215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6216printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6217	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6218	CFLAGS="$xorg_testset_save_CFLAGS"
6219fi
6220
6221found="no"
6222
6223	if test $found = "no" ; then
6224		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6225			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6226		fi
6227
6228		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6229			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6230		fi
6231
6232		CFLAGS="$CFLAGS -Wnested-externs"
6233
6234		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6235printf %s "checking if $CC supports -Wnested-externs... " >&6; }
6236		cacheid=xorg_cv_cc_flag__Wnested_externs
6237		if eval test \${$cacheid+y}
6238then :
6239  printf %s "(cached) " >&6
6240else $as_nop
6241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6242/* end confdefs.h.  */
6243int i;
6244int
6245main (void)
6246{
6247
6248  ;
6249  return 0;
6250}
6251_ACEOF
6252if ac_fn_c_try_link "$LINENO"
6253then :
6254  eval $cacheid=yes
6255else $as_nop
6256  eval $cacheid=no
6257fi
6258rm -f core conftest.err conftest.$ac_objext conftest.beam \
6259    conftest$ac_exeext conftest.$ac_ext
6260fi
6261
6262
6263		CFLAGS="$xorg_testset_save_CFLAGS"
6264
6265		eval supported=\$$cacheid
6266		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6267printf "%s\n" "$supported" >&6; }
6268		if test "$supported" = "yes" ; then
6269			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6270			found="yes"
6271		fi
6272	fi
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288xorg_testset_save_CFLAGS="$CFLAGS"
6289
6290if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6291	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6292	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6293printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6294if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6295then :
6296  printf %s "(cached) " >&6
6297else $as_nop
6298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6299/* end confdefs.h.  */
6300int i;
6301_ACEOF
6302if ac_fn_c_try_compile "$LINENO"
6303then :
6304  xorg_cv_cc_flag_unknown_warning_option=yes
6305else $as_nop
6306  xorg_cv_cc_flag_unknown_warning_option=no
6307fi
6308rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6309fi
6310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6311printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6312	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6313	CFLAGS="$xorg_testset_save_CFLAGS"
6314fi
6315
6316if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6317	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6318		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6319	fi
6320	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6321	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6322printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6323if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6324then :
6325  printf %s "(cached) " >&6
6326else $as_nop
6327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328/* end confdefs.h.  */
6329int i;
6330_ACEOF
6331if ac_fn_c_try_compile "$LINENO"
6332then :
6333  xorg_cv_cc_flag_unused_command_line_argument=yes
6334else $as_nop
6335  xorg_cv_cc_flag_unused_command_line_argument=no
6336fi
6337rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6338fi
6339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6340printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6341	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6342	CFLAGS="$xorg_testset_save_CFLAGS"
6343fi
6344
6345found="no"
6346
6347	if test $found = "no" ; then
6348		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6349			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6350		fi
6351
6352		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6353			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6354		fi
6355
6356		CFLAGS="$CFLAGS -Wbad-function-cast"
6357
6358		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6359printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6360		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6361		if eval test \${$cacheid+y}
6362then :
6363  printf %s "(cached) " >&6
6364else $as_nop
6365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366/* end confdefs.h.  */
6367int i;
6368int
6369main (void)
6370{
6371
6372  ;
6373  return 0;
6374}
6375_ACEOF
6376if ac_fn_c_try_link "$LINENO"
6377then :
6378  eval $cacheid=yes
6379else $as_nop
6380  eval $cacheid=no
6381fi
6382rm -f core conftest.err conftest.$ac_objext conftest.beam \
6383    conftest$ac_exeext conftest.$ac_ext
6384fi
6385
6386
6387		CFLAGS="$xorg_testset_save_CFLAGS"
6388
6389		eval supported=\$$cacheid
6390		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6391printf "%s\n" "$supported" >&6; }
6392		if test "$supported" = "yes" ; then
6393			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6394			found="yes"
6395		fi
6396	fi
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412xorg_testset_save_CFLAGS="$CFLAGS"
6413
6414if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6415	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6416	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6417printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6418if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6419then :
6420  printf %s "(cached) " >&6
6421else $as_nop
6422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6423/* end confdefs.h.  */
6424int i;
6425_ACEOF
6426if ac_fn_c_try_compile "$LINENO"
6427then :
6428  xorg_cv_cc_flag_unknown_warning_option=yes
6429else $as_nop
6430  xorg_cv_cc_flag_unknown_warning_option=no
6431fi
6432rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6433fi
6434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6435printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6436	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6437	CFLAGS="$xorg_testset_save_CFLAGS"
6438fi
6439
6440if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6441	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6442		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6443	fi
6444	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6445	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6446printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6447if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6448then :
6449  printf %s "(cached) " >&6
6450else $as_nop
6451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452/* end confdefs.h.  */
6453int i;
6454_ACEOF
6455if ac_fn_c_try_compile "$LINENO"
6456then :
6457  xorg_cv_cc_flag_unused_command_line_argument=yes
6458else $as_nop
6459  xorg_cv_cc_flag_unused_command_line_argument=no
6460fi
6461rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6462fi
6463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6464printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6465	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6466	CFLAGS="$xorg_testset_save_CFLAGS"
6467fi
6468
6469found="no"
6470
6471	if test $found = "no" ; then
6472		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6473			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6474		fi
6475
6476		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6477			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6478		fi
6479
6480		CFLAGS="$CFLAGS -Wold-style-definition"
6481
6482		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6483printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6484		cacheid=xorg_cv_cc_flag__Wold_style_definition
6485		if eval test \${$cacheid+y}
6486then :
6487  printf %s "(cached) " >&6
6488else $as_nop
6489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490/* end confdefs.h.  */
6491int i;
6492int
6493main (void)
6494{
6495
6496  ;
6497  return 0;
6498}
6499_ACEOF
6500if ac_fn_c_try_link "$LINENO"
6501then :
6502  eval $cacheid=yes
6503else $as_nop
6504  eval $cacheid=no
6505fi
6506rm -f core conftest.err conftest.$ac_objext conftest.beam \
6507    conftest$ac_exeext conftest.$ac_ext
6508fi
6509
6510
6511		CFLAGS="$xorg_testset_save_CFLAGS"
6512
6513		eval supported=\$$cacheid
6514		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6515printf "%s\n" "$supported" >&6; }
6516		if test "$supported" = "yes" ; then
6517			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6518			found="yes"
6519		fi
6520	fi
6521
6522	if test $found = "no" ; then
6523		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6524			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6525		fi
6526
6527		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6528			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6529		fi
6530
6531		CFLAGS="$CFLAGS -fd"
6532
6533		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6534printf %s "checking if $CC supports -fd... " >&6; }
6535		cacheid=xorg_cv_cc_flag__fd
6536		if eval test \${$cacheid+y}
6537then :
6538  printf %s "(cached) " >&6
6539else $as_nop
6540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6541/* end confdefs.h.  */
6542int i;
6543int
6544main (void)
6545{
6546
6547  ;
6548  return 0;
6549}
6550_ACEOF
6551if ac_fn_c_try_link "$LINENO"
6552then :
6553  eval $cacheid=yes
6554else $as_nop
6555  eval $cacheid=no
6556fi
6557rm -f core conftest.err conftest.$ac_objext conftest.beam \
6558    conftest$ac_exeext conftest.$ac_ext
6559fi
6560
6561
6562		CFLAGS="$xorg_testset_save_CFLAGS"
6563
6564		eval supported=\$$cacheid
6565		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6566printf "%s\n" "$supported" >&6; }
6567		if test "$supported" = "yes" ; then
6568			BASE_CFLAGS="$BASE_CFLAGS -fd"
6569			found="yes"
6570		fi
6571	fi
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587xorg_testset_save_CFLAGS="$CFLAGS"
6588
6589if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6590	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6591	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6592printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6593if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6594then :
6595  printf %s "(cached) " >&6
6596else $as_nop
6597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598/* end confdefs.h.  */
6599int i;
6600_ACEOF
6601if ac_fn_c_try_compile "$LINENO"
6602then :
6603  xorg_cv_cc_flag_unknown_warning_option=yes
6604else $as_nop
6605  xorg_cv_cc_flag_unknown_warning_option=no
6606fi
6607rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6608fi
6609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6610printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6611	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6612	CFLAGS="$xorg_testset_save_CFLAGS"
6613fi
6614
6615if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6616	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6617		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6618	fi
6619	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6620	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6621printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6622if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6623then :
6624  printf %s "(cached) " >&6
6625else $as_nop
6626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6627/* end confdefs.h.  */
6628int i;
6629_ACEOF
6630if ac_fn_c_try_compile "$LINENO"
6631then :
6632  xorg_cv_cc_flag_unused_command_line_argument=yes
6633else $as_nop
6634  xorg_cv_cc_flag_unused_command_line_argument=no
6635fi
6636rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6637fi
6638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6639printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6640	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6641	CFLAGS="$xorg_testset_save_CFLAGS"
6642fi
6643
6644found="no"
6645
6646	if test $found = "no" ; then
6647		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6648			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6649		fi
6650
6651		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6652			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6653		fi
6654
6655		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6656
6657		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6658printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6659		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6660		if eval test \${$cacheid+y}
6661then :
6662  printf %s "(cached) " >&6
6663else $as_nop
6664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665/* end confdefs.h.  */
6666int i;
6667int
6668main (void)
6669{
6670
6671  ;
6672  return 0;
6673}
6674_ACEOF
6675if ac_fn_c_try_link "$LINENO"
6676then :
6677  eval $cacheid=yes
6678else $as_nop
6679  eval $cacheid=no
6680fi
6681rm -f core conftest.err conftest.$ac_objext conftest.beam \
6682    conftest$ac_exeext conftest.$ac_ext
6683fi
6684
6685
6686		CFLAGS="$xorg_testset_save_CFLAGS"
6687
6688		eval supported=\$$cacheid
6689		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6690printf "%s\n" "$supported" >&6; }
6691		if test "$supported" = "yes" ; then
6692			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6693			found="yes"
6694		fi
6695	fi
6696
6697
6698
6699
6700
6701# This chunk adds additional warnings that could catch undesired effects.
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715xorg_testset_save_CFLAGS="$CFLAGS"
6716
6717if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6718	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6719	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6720printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6721if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6722then :
6723  printf %s "(cached) " >&6
6724else $as_nop
6725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6726/* end confdefs.h.  */
6727int i;
6728_ACEOF
6729if ac_fn_c_try_compile "$LINENO"
6730then :
6731  xorg_cv_cc_flag_unknown_warning_option=yes
6732else $as_nop
6733  xorg_cv_cc_flag_unknown_warning_option=no
6734fi
6735rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6736fi
6737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6738printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6739	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6740	CFLAGS="$xorg_testset_save_CFLAGS"
6741fi
6742
6743if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6744	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6745		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6746	fi
6747	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6748	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6749printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6750if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6751then :
6752  printf %s "(cached) " >&6
6753else $as_nop
6754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6755/* end confdefs.h.  */
6756int i;
6757_ACEOF
6758if ac_fn_c_try_compile "$LINENO"
6759then :
6760  xorg_cv_cc_flag_unused_command_line_argument=yes
6761else $as_nop
6762  xorg_cv_cc_flag_unused_command_line_argument=no
6763fi
6764rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6765fi
6766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6767printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6768	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6769	CFLAGS="$xorg_testset_save_CFLAGS"
6770fi
6771
6772found="no"
6773
6774	if test $found = "no" ; then
6775		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6776			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6777		fi
6778
6779		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6780			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6781		fi
6782
6783		CFLAGS="$CFLAGS -Wunused"
6784
6785		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6786printf %s "checking if $CC supports -Wunused... " >&6; }
6787		cacheid=xorg_cv_cc_flag__Wunused
6788		if eval test \${$cacheid+y}
6789then :
6790  printf %s "(cached) " >&6
6791else $as_nop
6792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6793/* end confdefs.h.  */
6794int i;
6795int
6796main (void)
6797{
6798
6799  ;
6800  return 0;
6801}
6802_ACEOF
6803if ac_fn_c_try_link "$LINENO"
6804then :
6805  eval $cacheid=yes
6806else $as_nop
6807  eval $cacheid=no
6808fi
6809rm -f core conftest.err conftest.$ac_objext conftest.beam \
6810    conftest$ac_exeext conftest.$ac_ext
6811fi
6812
6813
6814		CFLAGS="$xorg_testset_save_CFLAGS"
6815
6816		eval supported=\$$cacheid
6817		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6818printf "%s\n" "$supported" >&6; }
6819		if test "$supported" = "yes" ; then
6820			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6821			found="yes"
6822		fi
6823	fi
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839xorg_testset_save_CFLAGS="$CFLAGS"
6840
6841if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6842	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6843	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6844printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6845if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6846then :
6847  printf %s "(cached) " >&6
6848else $as_nop
6849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850/* end confdefs.h.  */
6851int i;
6852_ACEOF
6853if ac_fn_c_try_compile "$LINENO"
6854then :
6855  xorg_cv_cc_flag_unknown_warning_option=yes
6856else $as_nop
6857  xorg_cv_cc_flag_unknown_warning_option=no
6858fi
6859rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6860fi
6861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6862printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6863	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6864	CFLAGS="$xorg_testset_save_CFLAGS"
6865fi
6866
6867if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6868	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6869		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6870	fi
6871	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6872	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6873printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6874if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6875then :
6876  printf %s "(cached) " >&6
6877else $as_nop
6878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6879/* end confdefs.h.  */
6880int i;
6881_ACEOF
6882if ac_fn_c_try_compile "$LINENO"
6883then :
6884  xorg_cv_cc_flag_unused_command_line_argument=yes
6885else $as_nop
6886  xorg_cv_cc_flag_unused_command_line_argument=no
6887fi
6888rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6889fi
6890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6891printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6892	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6893	CFLAGS="$xorg_testset_save_CFLAGS"
6894fi
6895
6896found="no"
6897
6898	if test $found = "no" ; then
6899		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6900			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6901		fi
6902
6903		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6904			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6905		fi
6906
6907		CFLAGS="$CFLAGS -Wuninitialized"
6908
6909		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6910printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6911		cacheid=xorg_cv_cc_flag__Wuninitialized
6912		if eval test \${$cacheid+y}
6913then :
6914  printf %s "(cached) " >&6
6915else $as_nop
6916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6917/* end confdefs.h.  */
6918int i;
6919int
6920main (void)
6921{
6922
6923  ;
6924  return 0;
6925}
6926_ACEOF
6927if ac_fn_c_try_link "$LINENO"
6928then :
6929  eval $cacheid=yes
6930else $as_nop
6931  eval $cacheid=no
6932fi
6933rm -f core conftest.err conftest.$ac_objext conftest.beam \
6934    conftest$ac_exeext conftest.$ac_ext
6935fi
6936
6937
6938		CFLAGS="$xorg_testset_save_CFLAGS"
6939
6940		eval supported=\$$cacheid
6941		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6942printf "%s\n" "$supported" >&6; }
6943		if test "$supported" = "yes" ; then
6944			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6945			found="yes"
6946		fi
6947	fi
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963xorg_testset_save_CFLAGS="$CFLAGS"
6964
6965if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6966	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6967	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6968printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6969if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6970then :
6971  printf %s "(cached) " >&6
6972else $as_nop
6973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974/* end confdefs.h.  */
6975int i;
6976_ACEOF
6977if ac_fn_c_try_compile "$LINENO"
6978then :
6979  xorg_cv_cc_flag_unknown_warning_option=yes
6980else $as_nop
6981  xorg_cv_cc_flag_unknown_warning_option=no
6982fi
6983rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6984fi
6985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6986printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6987	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6988	CFLAGS="$xorg_testset_save_CFLAGS"
6989fi
6990
6991if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6992	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6993		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6994	fi
6995	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6996	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6997printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6998if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6999then :
7000  printf %s "(cached) " >&6
7001else $as_nop
7002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7003/* end confdefs.h.  */
7004int i;
7005_ACEOF
7006if ac_fn_c_try_compile "$LINENO"
7007then :
7008  xorg_cv_cc_flag_unused_command_line_argument=yes
7009else $as_nop
7010  xorg_cv_cc_flag_unused_command_line_argument=no
7011fi
7012rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7013fi
7014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7015printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7016	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7017	CFLAGS="$xorg_testset_save_CFLAGS"
7018fi
7019
7020found="no"
7021
7022	if test $found = "no" ; then
7023		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7024			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7025		fi
7026
7027		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7028			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7029		fi
7030
7031		CFLAGS="$CFLAGS -Wshadow"
7032
7033		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
7034printf %s "checking if $CC supports -Wshadow... " >&6; }
7035		cacheid=xorg_cv_cc_flag__Wshadow
7036		if eval test \${$cacheid+y}
7037then :
7038  printf %s "(cached) " >&6
7039else $as_nop
7040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7041/* end confdefs.h.  */
7042int i;
7043int
7044main (void)
7045{
7046
7047  ;
7048  return 0;
7049}
7050_ACEOF
7051if ac_fn_c_try_link "$LINENO"
7052then :
7053  eval $cacheid=yes
7054else $as_nop
7055  eval $cacheid=no
7056fi
7057rm -f core conftest.err conftest.$ac_objext conftest.beam \
7058    conftest$ac_exeext conftest.$ac_ext
7059fi
7060
7061
7062		CFLAGS="$xorg_testset_save_CFLAGS"
7063
7064		eval supported=\$$cacheid
7065		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7066printf "%s\n" "$supported" >&6; }
7067		if test "$supported" = "yes" ; then
7068			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
7069			found="yes"
7070		fi
7071	fi
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087xorg_testset_save_CFLAGS="$CFLAGS"
7088
7089if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7090	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7091	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7092printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7093if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7094then :
7095  printf %s "(cached) " >&6
7096else $as_nop
7097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098/* end confdefs.h.  */
7099int i;
7100_ACEOF
7101if ac_fn_c_try_compile "$LINENO"
7102then :
7103  xorg_cv_cc_flag_unknown_warning_option=yes
7104else $as_nop
7105  xorg_cv_cc_flag_unknown_warning_option=no
7106fi
7107rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7108fi
7109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7110printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7111	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7112	CFLAGS="$xorg_testset_save_CFLAGS"
7113fi
7114
7115if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7116	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7117		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7118	fi
7119	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7120	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7121printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7122if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7123then :
7124  printf %s "(cached) " >&6
7125else $as_nop
7126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7127/* end confdefs.h.  */
7128int i;
7129_ACEOF
7130if ac_fn_c_try_compile "$LINENO"
7131then :
7132  xorg_cv_cc_flag_unused_command_line_argument=yes
7133else $as_nop
7134  xorg_cv_cc_flag_unused_command_line_argument=no
7135fi
7136rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7137fi
7138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7139printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7140	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7141	CFLAGS="$xorg_testset_save_CFLAGS"
7142fi
7143
7144found="no"
7145
7146	if test $found = "no" ; then
7147		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7148			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7149		fi
7150
7151		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7152			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7153		fi
7154
7155		CFLAGS="$CFLAGS -Wmissing-noreturn"
7156
7157		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
7158printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
7159		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
7160		if eval test \${$cacheid+y}
7161then :
7162  printf %s "(cached) " >&6
7163else $as_nop
7164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7165/* end confdefs.h.  */
7166int i;
7167int
7168main (void)
7169{
7170
7171  ;
7172  return 0;
7173}
7174_ACEOF
7175if ac_fn_c_try_link "$LINENO"
7176then :
7177  eval $cacheid=yes
7178else $as_nop
7179  eval $cacheid=no
7180fi
7181rm -f core conftest.err conftest.$ac_objext conftest.beam \
7182    conftest$ac_exeext conftest.$ac_ext
7183fi
7184
7185
7186		CFLAGS="$xorg_testset_save_CFLAGS"
7187
7188		eval supported=\$$cacheid
7189		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7190printf "%s\n" "$supported" >&6; }
7191		if test "$supported" = "yes" ; then
7192			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7193			found="yes"
7194		fi
7195	fi
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211xorg_testset_save_CFLAGS="$CFLAGS"
7212
7213if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7214	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7215	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7216printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7217if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7218then :
7219  printf %s "(cached) " >&6
7220else $as_nop
7221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7222/* end confdefs.h.  */
7223int i;
7224_ACEOF
7225if ac_fn_c_try_compile "$LINENO"
7226then :
7227  xorg_cv_cc_flag_unknown_warning_option=yes
7228else $as_nop
7229  xorg_cv_cc_flag_unknown_warning_option=no
7230fi
7231rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7232fi
7233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7234printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7235	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7236	CFLAGS="$xorg_testset_save_CFLAGS"
7237fi
7238
7239if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7240	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7241		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7242	fi
7243	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7244	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7245printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7246if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7247then :
7248  printf %s "(cached) " >&6
7249else $as_nop
7250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251/* end confdefs.h.  */
7252int i;
7253_ACEOF
7254if ac_fn_c_try_compile "$LINENO"
7255then :
7256  xorg_cv_cc_flag_unused_command_line_argument=yes
7257else $as_nop
7258  xorg_cv_cc_flag_unused_command_line_argument=no
7259fi
7260rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7261fi
7262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7263printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7264	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7265	CFLAGS="$xorg_testset_save_CFLAGS"
7266fi
7267
7268found="no"
7269
7270	if test $found = "no" ; then
7271		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7272			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7273		fi
7274
7275		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7276			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7277		fi
7278
7279		CFLAGS="$CFLAGS -Wmissing-format-attribute"
7280
7281		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7282printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7283		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7284		if eval test \${$cacheid+y}
7285then :
7286  printf %s "(cached) " >&6
7287else $as_nop
7288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7289/* end confdefs.h.  */
7290int i;
7291int
7292main (void)
7293{
7294
7295  ;
7296  return 0;
7297}
7298_ACEOF
7299if ac_fn_c_try_link "$LINENO"
7300then :
7301  eval $cacheid=yes
7302else $as_nop
7303  eval $cacheid=no
7304fi
7305rm -f core conftest.err conftest.$ac_objext conftest.beam \
7306    conftest$ac_exeext conftest.$ac_ext
7307fi
7308
7309
7310		CFLAGS="$xorg_testset_save_CFLAGS"
7311
7312		eval supported=\$$cacheid
7313		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7314printf "%s\n" "$supported" >&6; }
7315		if test "$supported" = "yes" ; then
7316			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7317			found="yes"
7318		fi
7319	fi
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335xorg_testset_save_CFLAGS="$CFLAGS"
7336
7337if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7338	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7339	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7340printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7341if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7342then :
7343  printf %s "(cached) " >&6
7344else $as_nop
7345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346/* end confdefs.h.  */
7347int i;
7348_ACEOF
7349if ac_fn_c_try_compile "$LINENO"
7350then :
7351  xorg_cv_cc_flag_unknown_warning_option=yes
7352else $as_nop
7353  xorg_cv_cc_flag_unknown_warning_option=no
7354fi
7355rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7356fi
7357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7358printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7359	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7360	CFLAGS="$xorg_testset_save_CFLAGS"
7361fi
7362
7363if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7364	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7365		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7366	fi
7367	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7368	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7369printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7370if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7371then :
7372  printf %s "(cached) " >&6
7373else $as_nop
7374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7375/* end confdefs.h.  */
7376int i;
7377_ACEOF
7378if ac_fn_c_try_compile "$LINENO"
7379then :
7380  xorg_cv_cc_flag_unused_command_line_argument=yes
7381else $as_nop
7382  xorg_cv_cc_flag_unused_command_line_argument=no
7383fi
7384rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7385fi
7386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7387printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7388	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7389	CFLAGS="$xorg_testset_save_CFLAGS"
7390fi
7391
7392found="no"
7393
7394	if test $found = "no" ; then
7395		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7396			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7397		fi
7398
7399		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7400			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7401		fi
7402
7403		CFLAGS="$CFLAGS -Wredundant-decls"
7404
7405		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7406printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7407		cacheid=xorg_cv_cc_flag__Wredundant_decls
7408		if eval test \${$cacheid+y}
7409then :
7410  printf %s "(cached) " >&6
7411else $as_nop
7412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7413/* end confdefs.h.  */
7414int i;
7415int
7416main (void)
7417{
7418
7419  ;
7420  return 0;
7421}
7422_ACEOF
7423if ac_fn_c_try_link "$LINENO"
7424then :
7425  eval $cacheid=yes
7426else $as_nop
7427  eval $cacheid=no
7428fi
7429rm -f core conftest.err conftest.$ac_objext conftest.beam \
7430    conftest$ac_exeext conftest.$ac_ext
7431fi
7432
7433
7434		CFLAGS="$xorg_testset_save_CFLAGS"
7435
7436		eval supported=\$$cacheid
7437		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7438printf "%s\n" "$supported" >&6; }
7439		if test "$supported" = "yes" ; then
7440			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7441			found="yes"
7442		fi
7443	fi
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459xorg_testset_save_CFLAGS="$CFLAGS"
7460
7461if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7462	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7463	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7464printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7465if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7466then :
7467  printf %s "(cached) " >&6
7468else $as_nop
7469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7470/* end confdefs.h.  */
7471int i;
7472_ACEOF
7473if ac_fn_c_try_compile "$LINENO"
7474then :
7475  xorg_cv_cc_flag_unknown_warning_option=yes
7476else $as_nop
7477  xorg_cv_cc_flag_unknown_warning_option=no
7478fi
7479rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7480fi
7481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7482printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7483	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7484	CFLAGS="$xorg_testset_save_CFLAGS"
7485fi
7486
7487if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7488	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7489		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7490	fi
7491	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7492	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7493printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7494if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7495then :
7496  printf %s "(cached) " >&6
7497else $as_nop
7498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7499/* end confdefs.h.  */
7500int i;
7501_ACEOF
7502if ac_fn_c_try_compile "$LINENO"
7503then :
7504  xorg_cv_cc_flag_unused_command_line_argument=yes
7505else $as_nop
7506  xorg_cv_cc_flag_unused_command_line_argument=no
7507fi
7508rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7509fi
7510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7511printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7512	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7513	CFLAGS="$xorg_testset_save_CFLAGS"
7514fi
7515
7516found="no"
7517
7518	if test $found = "no" ; then
7519		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7520			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7521		fi
7522
7523		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7524			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7525		fi
7526
7527		CFLAGS="$CFLAGS -Wlogical-op"
7528
7529		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7530printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7531		cacheid=xorg_cv_cc_flag__Wlogical_op
7532		if eval test \${$cacheid+y}
7533then :
7534  printf %s "(cached) " >&6
7535else $as_nop
7536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7537/* end confdefs.h.  */
7538int i;
7539int
7540main (void)
7541{
7542
7543  ;
7544  return 0;
7545}
7546_ACEOF
7547if ac_fn_c_try_link "$LINENO"
7548then :
7549  eval $cacheid=yes
7550else $as_nop
7551  eval $cacheid=no
7552fi
7553rm -f core conftest.err conftest.$ac_objext conftest.beam \
7554    conftest$ac_exeext conftest.$ac_ext
7555fi
7556
7557
7558		CFLAGS="$xorg_testset_save_CFLAGS"
7559
7560		eval supported=\$$cacheid
7561		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7562printf "%s\n" "$supported" >&6; }
7563		if test "$supported" = "yes" ; then
7564			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7565			found="yes"
7566		fi
7567	fi
7568
7569
7570
7571# These are currently disabled because they are noisy.  They will be enabled
7572# in the future once the codebase is sufficiently modernized to silence
7573# them.  For now, I don't want them to drown out the other warnings.
7574# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7575# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7576# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7577
7578# Turn some warnings into errors, so we don't accidently get successful builds
7579# when there are problems that should be fixed.
7580
7581if test "x$SELECTIVE_WERROR" = "xyes" ; then
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595xorg_testset_save_CFLAGS="$CFLAGS"
7596
7597if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7598	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7599	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7600printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7601if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7602then :
7603  printf %s "(cached) " >&6
7604else $as_nop
7605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7606/* end confdefs.h.  */
7607int i;
7608_ACEOF
7609if ac_fn_c_try_compile "$LINENO"
7610then :
7611  xorg_cv_cc_flag_unknown_warning_option=yes
7612else $as_nop
7613  xorg_cv_cc_flag_unknown_warning_option=no
7614fi
7615rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7616fi
7617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7618printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7619	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7620	CFLAGS="$xorg_testset_save_CFLAGS"
7621fi
7622
7623if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7624	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7625		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7626	fi
7627	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7628	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7629printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7630if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7631then :
7632  printf %s "(cached) " >&6
7633else $as_nop
7634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635/* end confdefs.h.  */
7636int i;
7637_ACEOF
7638if ac_fn_c_try_compile "$LINENO"
7639then :
7640  xorg_cv_cc_flag_unused_command_line_argument=yes
7641else $as_nop
7642  xorg_cv_cc_flag_unused_command_line_argument=no
7643fi
7644rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7645fi
7646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7647printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7648	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7649	CFLAGS="$xorg_testset_save_CFLAGS"
7650fi
7651
7652found="no"
7653
7654	if test $found = "no" ; then
7655		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7656			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7657		fi
7658
7659		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7660			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7661		fi
7662
7663		CFLAGS="$CFLAGS -Werror=implicit"
7664
7665		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7666printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7667		cacheid=xorg_cv_cc_flag__Werror_implicit
7668		if eval test \${$cacheid+y}
7669then :
7670  printf %s "(cached) " >&6
7671else $as_nop
7672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7673/* end confdefs.h.  */
7674int i;
7675int
7676main (void)
7677{
7678
7679  ;
7680  return 0;
7681}
7682_ACEOF
7683if ac_fn_c_try_link "$LINENO"
7684then :
7685  eval $cacheid=yes
7686else $as_nop
7687  eval $cacheid=no
7688fi
7689rm -f core conftest.err conftest.$ac_objext conftest.beam \
7690    conftest$ac_exeext conftest.$ac_ext
7691fi
7692
7693
7694		CFLAGS="$xorg_testset_save_CFLAGS"
7695
7696		eval supported=\$$cacheid
7697		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7698printf "%s\n" "$supported" >&6; }
7699		if test "$supported" = "yes" ; then
7700			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7701			found="yes"
7702		fi
7703	fi
7704
7705	if test $found = "no" ; then
7706		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7707			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7708		fi
7709
7710		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7711			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7712		fi
7713
7714		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7715
7716		{ 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
7717printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7718		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7719		if eval test \${$cacheid+y}
7720then :
7721  printf %s "(cached) " >&6
7722else $as_nop
7723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724/* end confdefs.h.  */
7725int i;
7726int
7727main (void)
7728{
7729
7730  ;
7731  return 0;
7732}
7733_ACEOF
7734if ac_fn_c_try_link "$LINENO"
7735then :
7736  eval $cacheid=yes
7737else $as_nop
7738  eval $cacheid=no
7739fi
7740rm -f core conftest.err conftest.$ac_objext conftest.beam \
7741    conftest$ac_exeext conftest.$ac_ext
7742fi
7743
7744
7745		CFLAGS="$xorg_testset_save_CFLAGS"
7746
7747		eval supported=\$$cacheid
7748		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7749printf "%s\n" "$supported" >&6; }
7750		if test "$supported" = "yes" ; then
7751			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7752			found="yes"
7753		fi
7754	fi
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770xorg_testset_save_CFLAGS="$CFLAGS"
7771
7772if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7773	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7774	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7775printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7776if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7777then :
7778  printf %s "(cached) " >&6
7779else $as_nop
7780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7781/* end confdefs.h.  */
7782int i;
7783_ACEOF
7784if ac_fn_c_try_compile "$LINENO"
7785then :
7786  xorg_cv_cc_flag_unknown_warning_option=yes
7787else $as_nop
7788  xorg_cv_cc_flag_unknown_warning_option=no
7789fi
7790rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7791fi
7792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7793printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7794	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7795	CFLAGS="$xorg_testset_save_CFLAGS"
7796fi
7797
7798if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7799	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7800		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7801	fi
7802	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7803	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7804printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7805if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7806then :
7807  printf %s "(cached) " >&6
7808else $as_nop
7809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7810/* end confdefs.h.  */
7811int i;
7812_ACEOF
7813if ac_fn_c_try_compile "$LINENO"
7814then :
7815  xorg_cv_cc_flag_unused_command_line_argument=yes
7816else $as_nop
7817  xorg_cv_cc_flag_unused_command_line_argument=no
7818fi
7819rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7820fi
7821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7822printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7823	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7824	CFLAGS="$xorg_testset_save_CFLAGS"
7825fi
7826
7827found="no"
7828
7829	if test $found = "no" ; then
7830		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7831			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7832		fi
7833
7834		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7835			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7836		fi
7837
7838		CFLAGS="$CFLAGS -Werror=nonnull"
7839
7840		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7841printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7842		cacheid=xorg_cv_cc_flag__Werror_nonnull
7843		if eval test \${$cacheid+y}
7844then :
7845  printf %s "(cached) " >&6
7846else $as_nop
7847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848/* end confdefs.h.  */
7849int i;
7850int
7851main (void)
7852{
7853
7854  ;
7855  return 0;
7856}
7857_ACEOF
7858if ac_fn_c_try_link "$LINENO"
7859then :
7860  eval $cacheid=yes
7861else $as_nop
7862  eval $cacheid=no
7863fi
7864rm -f core conftest.err conftest.$ac_objext conftest.beam \
7865    conftest$ac_exeext conftest.$ac_ext
7866fi
7867
7868
7869		CFLAGS="$xorg_testset_save_CFLAGS"
7870
7871		eval supported=\$$cacheid
7872		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7873printf "%s\n" "$supported" >&6; }
7874		if test "$supported" = "yes" ; then
7875			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7876			found="yes"
7877		fi
7878	fi
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894xorg_testset_save_CFLAGS="$CFLAGS"
7895
7896if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7897	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7898	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7899printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7900if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7901then :
7902  printf %s "(cached) " >&6
7903else $as_nop
7904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7905/* end confdefs.h.  */
7906int i;
7907_ACEOF
7908if ac_fn_c_try_compile "$LINENO"
7909then :
7910  xorg_cv_cc_flag_unknown_warning_option=yes
7911else $as_nop
7912  xorg_cv_cc_flag_unknown_warning_option=no
7913fi
7914rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7915fi
7916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7917printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7918	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7919	CFLAGS="$xorg_testset_save_CFLAGS"
7920fi
7921
7922if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7923	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7924		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7925	fi
7926	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7927	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7928printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7929if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7930then :
7931  printf %s "(cached) " >&6
7932else $as_nop
7933  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934/* end confdefs.h.  */
7935int i;
7936_ACEOF
7937if ac_fn_c_try_compile "$LINENO"
7938then :
7939  xorg_cv_cc_flag_unused_command_line_argument=yes
7940else $as_nop
7941  xorg_cv_cc_flag_unused_command_line_argument=no
7942fi
7943rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7944fi
7945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7946printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7947	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7948	CFLAGS="$xorg_testset_save_CFLAGS"
7949fi
7950
7951found="no"
7952
7953	if test $found = "no" ; then
7954		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7955			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7956		fi
7957
7958		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7959			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7960		fi
7961
7962		CFLAGS="$CFLAGS -Werror=init-self"
7963
7964		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7965printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7966		cacheid=xorg_cv_cc_flag__Werror_init_self
7967		if eval test \${$cacheid+y}
7968then :
7969  printf %s "(cached) " >&6
7970else $as_nop
7971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7972/* end confdefs.h.  */
7973int i;
7974int
7975main (void)
7976{
7977
7978  ;
7979  return 0;
7980}
7981_ACEOF
7982if ac_fn_c_try_link "$LINENO"
7983then :
7984  eval $cacheid=yes
7985else $as_nop
7986  eval $cacheid=no
7987fi
7988rm -f core conftest.err conftest.$ac_objext conftest.beam \
7989    conftest$ac_exeext conftest.$ac_ext
7990fi
7991
7992
7993		CFLAGS="$xorg_testset_save_CFLAGS"
7994
7995		eval supported=\$$cacheid
7996		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7997printf "%s\n" "$supported" >&6; }
7998		if test "$supported" = "yes" ; then
7999			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
8000			found="yes"
8001		fi
8002	fi
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018xorg_testset_save_CFLAGS="$CFLAGS"
8019
8020if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8021	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8022	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8023printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8024if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8025then :
8026  printf %s "(cached) " >&6
8027else $as_nop
8028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029/* end confdefs.h.  */
8030int i;
8031_ACEOF
8032if ac_fn_c_try_compile "$LINENO"
8033then :
8034  xorg_cv_cc_flag_unknown_warning_option=yes
8035else $as_nop
8036  xorg_cv_cc_flag_unknown_warning_option=no
8037fi
8038rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8039fi
8040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8041printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8042	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8043	CFLAGS="$xorg_testset_save_CFLAGS"
8044fi
8045
8046if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8047	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8048		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8049	fi
8050	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8051	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8052printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8053if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8054then :
8055  printf %s "(cached) " >&6
8056else $as_nop
8057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8058/* end confdefs.h.  */
8059int i;
8060_ACEOF
8061if ac_fn_c_try_compile "$LINENO"
8062then :
8063  xorg_cv_cc_flag_unused_command_line_argument=yes
8064else $as_nop
8065  xorg_cv_cc_flag_unused_command_line_argument=no
8066fi
8067rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8068fi
8069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8070printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8071	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8072	CFLAGS="$xorg_testset_save_CFLAGS"
8073fi
8074
8075found="no"
8076
8077	if test $found = "no" ; then
8078		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8079			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8080		fi
8081
8082		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8083			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8084		fi
8085
8086		CFLAGS="$CFLAGS -Werror=main"
8087
8088		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
8089printf %s "checking if $CC supports -Werror=main... " >&6; }
8090		cacheid=xorg_cv_cc_flag__Werror_main
8091		if eval test \${$cacheid+y}
8092then :
8093  printf %s "(cached) " >&6
8094else $as_nop
8095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8096/* end confdefs.h.  */
8097int i;
8098int
8099main (void)
8100{
8101
8102  ;
8103  return 0;
8104}
8105_ACEOF
8106if ac_fn_c_try_link "$LINENO"
8107then :
8108  eval $cacheid=yes
8109else $as_nop
8110  eval $cacheid=no
8111fi
8112rm -f core conftest.err conftest.$ac_objext conftest.beam \
8113    conftest$ac_exeext conftest.$ac_ext
8114fi
8115
8116
8117		CFLAGS="$xorg_testset_save_CFLAGS"
8118
8119		eval supported=\$$cacheid
8120		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8121printf "%s\n" "$supported" >&6; }
8122		if test "$supported" = "yes" ; then
8123			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
8124			found="yes"
8125		fi
8126	fi
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142xorg_testset_save_CFLAGS="$CFLAGS"
8143
8144if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8145	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8146	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8147printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8148if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8149then :
8150  printf %s "(cached) " >&6
8151else $as_nop
8152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8153/* end confdefs.h.  */
8154int i;
8155_ACEOF
8156if ac_fn_c_try_compile "$LINENO"
8157then :
8158  xorg_cv_cc_flag_unknown_warning_option=yes
8159else $as_nop
8160  xorg_cv_cc_flag_unknown_warning_option=no
8161fi
8162rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8163fi
8164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8165printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8166	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8167	CFLAGS="$xorg_testset_save_CFLAGS"
8168fi
8169
8170if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8171	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8172		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8173	fi
8174	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8175	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8176printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8177if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8178then :
8179  printf %s "(cached) " >&6
8180else $as_nop
8181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8182/* end confdefs.h.  */
8183int i;
8184_ACEOF
8185if ac_fn_c_try_compile "$LINENO"
8186then :
8187  xorg_cv_cc_flag_unused_command_line_argument=yes
8188else $as_nop
8189  xorg_cv_cc_flag_unused_command_line_argument=no
8190fi
8191rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8192fi
8193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8194printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8195	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8196	CFLAGS="$xorg_testset_save_CFLAGS"
8197fi
8198
8199found="no"
8200
8201	if test $found = "no" ; then
8202		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8203			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8204		fi
8205
8206		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8207			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8208		fi
8209
8210		CFLAGS="$CFLAGS -Werror=missing-braces"
8211
8212		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8213printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8214		cacheid=xorg_cv_cc_flag__Werror_missing_braces
8215		if eval test \${$cacheid+y}
8216then :
8217  printf %s "(cached) " >&6
8218else $as_nop
8219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8220/* end confdefs.h.  */
8221int i;
8222int
8223main (void)
8224{
8225
8226  ;
8227  return 0;
8228}
8229_ACEOF
8230if ac_fn_c_try_link "$LINENO"
8231then :
8232  eval $cacheid=yes
8233else $as_nop
8234  eval $cacheid=no
8235fi
8236rm -f core conftest.err conftest.$ac_objext conftest.beam \
8237    conftest$ac_exeext conftest.$ac_ext
8238fi
8239
8240
8241		CFLAGS="$xorg_testset_save_CFLAGS"
8242
8243		eval supported=\$$cacheid
8244		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8245printf "%s\n" "$supported" >&6; }
8246		if test "$supported" = "yes" ; then
8247			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8248			found="yes"
8249		fi
8250	fi
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266xorg_testset_save_CFLAGS="$CFLAGS"
8267
8268if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8269	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8270	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8271printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8272if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8273then :
8274  printf %s "(cached) " >&6
8275else $as_nop
8276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8277/* end confdefs.h.  */
8278int i;
8279_ACEOF
8280if ac_fn_c_try_compile "$LINENO"
8281then :
8282  xorg_cv_cc_flag_unknown_warning_option=yes
8283else $as_nop
8284  xorg_cv_cc_flag_unknown_warning_option=no
8285fi
8286rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8287fi
8288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8289printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8290	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8291	CFLAGS="$xorg_testset_save_CFLAGS"
8292fi
8293
8294if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8295	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8296		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8297	fi
8298	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8299	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8300printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8301if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8302then :
8303  printf %s "(cached) " >&6
8304else $as_nop
8305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8306/* end confdefs.h.  */
8307int i;
8308_ACEOF
8309if ac_fn_c_try_compile "$LINENO"
8310then :
8311  xorg_cv_cc_flag_unused_command_line_argument=yes
8312else $as_nop
8313  xorg_cv_cc_flag_unused_command_line_argument=no
8314fi
8315rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8316fi
8317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8318printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8319	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8320	CFLAGS="$xorg_testset_save_CFLAGS"
8321fi
8322
8323found="no"
8324
8325	if test $found = "no" ; then
8326		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8327			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8328		fi
8329
8330		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8331			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8332		fi
8333
8334		CFLAGS="$CFLAGS -Werror=sequence-point"
8335
8336		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8337printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8338		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8339		if eval test \${$cacheid+y}
8340then :
8341  printf %s "(cached) " >&6
8342else $as_nop
8343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8344/* end confdefs.h.  */
8345int i;
8346int
8347main (void)
8348{
8349
8350  ;
8351  return 0;
8352}
8353_ACEOF
8354if ac_fn_c_try_link "$LINENO"
8355then :
8356  eval $cacheid=yes
8357else $as_nop
8358  eval $cacheid=no
8359fi
8360rm -f core conftest.err conftest.$ac_objext conftest.beam \
8361    conftest$ac_exeext conftest.$ac_ext
8362fi
8363
8364
8365		CFLAGS="$xorg_testset_save_CFLAGS"
8366
8367		eval supported=\$$cacheid
8368		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8369printf "%s\n" "$supported" >&6; }
8370		if test "$supported" = "yes" ; then
8371			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8372			found="yes"
8373		fi
8374	fi
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390xorg_testset_save_CFLAGS="$CFLAGS"
8391
8392if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8393	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8394	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8395printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8396if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8397then :
8398  printf %s "(cached) " >&6
8399else $as_nop
8400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401/* end confdefs.h.  */
8402int i;
8403_ACEOF
8404if ac_fn_c_try_compile "$LINENO"
8405then :
8406  xorg_cv_cc_flag_unknown_warning_option=yes
8407else $as_nop
8408  xorg_cv_cc_flag_unknown_warning_option=no
8409fi
8410rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8411fi
8412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8413printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8414	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8415	CFLAGS="$xorg_testset_save_CFLAGS"
8416fi
8417
8418if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8419	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8420		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8421	fi
8422	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8423	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8424printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8425if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8426then :
8427  printf %s "(cached) " >&6
8428else $as_nop
8429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8430/* end confdefs.h.  */
8431int i;
8432_ACEOF
8433if ac_fn_c_try_compile "$LINENO"
8434then :
8435  xorg_cv_cc_flag_unused_command_line_argument=yes
8436else $as_nop
8437  xorg_cv_cc_flag_unused_command_line_argument=no
8438fi
8439rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8440fi
8441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8442printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8443	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8444	CFLAGS="$xorg_testset_save_CFLAGS"
8445fi
8446
8447found="no"
8448
8449	if test $found = "no" ; then
8450		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8451			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8452		fi
8453
8454		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8455			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8456		fi
8457
8458		CFLAGS="$CFLAGS -Werror=return-type"
8459
8460		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8461printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8462		cacheid=xorg_cv_cc_flag__Werror_return_type
8463		if eval test \${$cacheid+y}
8464then :
8465  printf %s "(cached) " >&6
8466else $as_nop
8467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8468/* end confdefs.h.  */
8469int i;
8470int
8471main (void)
8472{
8473
8474  ;
8475  return 0;
8476}
8477_ACEOF
8478if ac_fn_c_try_link "$LINENO"
8479then :
8480  eval $cacheid=yes
8481else $as_nop
8482  eval $cacheid=no
8483fi
8484rm -f core conftest.err conftest.$ac_objext conftest.beam \
8485    conftest$ac_exeext conftest.$ac_ext
8486fi
8487
8488
8489		CFLAGS="$xorg_testset_save_CFLAGS"
8490
8491		eval supported=\$$cacheid
8492		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8493printf "%s\n" "$supported" >&6; }
8494		if test "$supported" = "yes" ; then
8495			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8496			found="yes"
8497		fi
8498	fi
8499
8500	if test $found = "no" ; then
8501		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8502			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8503		fi
8504
8505		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8506			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8507		fi
8508
8509		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8510
8511		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8512printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8513		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8514		if eval test \${$cacheid+y}
8515then :
8516  printf %s "(cached) " >&6
8517else $as_nop
8518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8519/* end confdefs.h.  */
8520int i;
8521int
8522main (void)
8523{
8524
8525  ;
8526  return 0;
8527}
8528_ACEOF
8529if ac_fn_c_try_link "$LINENO"
8530then :
8531  eval $cacheid=yes
8532else $as_nop
8533  eval $cacheid=no
8534fi
8535rm -f core conftest.err conftest.$ac_objext conftest.beam \
8536    conftest$ac_exeext conftest.$ac_ext
8537fi
8538
8539
8540		CFLAGS="$xorg_testset_save_CFLAGS"
8541
8542		eval supported=\$$cacheid
8543		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8544printf "%s\n" "$supported" >&6; }
8545		if test "$supported" = "yes" ; then
8546			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8547			found="yes"
8548		fi
8549	fi
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565xorg_testset_save_CFLAGS="$CFLAGS"
8566
8567if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8568	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8569	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8570printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8571if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8572then :
8573  printf %s "(cached) " >&6
8574else $as_nop
8575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8576/* end confdefs.h.  */
8577int i;
8578_ACEOF
8579if ac_fn_c_try_compile "$LINENO"
8580then :
8581  xorg_cv_cc_flag_unknown_warning_option=yes
8582else $as_nop
8583  xorg_cv_cc_flag_unknown_warning_option=no
8584fi
8585rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8586fi
8587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8588printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8589	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8590	CFLAGS="$xorg_testset_save_CFLAGS"
8591fi
8592
8593if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8594	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8595		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8596	fi
8597	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8598	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8599printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8600if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8601then :
8602  printf %s "(cached) " >&6
8603else $as_nop
8604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605/* end confdefs.h.  */
8606int i;
8607_ACEOF
8608if ac_fn_c_try_compile "$LINENO"
8609then :
8610  xorg_cv_cc_flag_unused_command_line_argument=yes
8611else $as_nop
8612  xorg_cv_cc_flag_unused_command_line_argument=no
8613fi
8614rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8615fi
8616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8617printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8618	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8619	CFLAGS="$xorg_testset_save_CFLAGS"
8620fi
8621
8622found="no"
8623
8624	if test $found = "no" ; then
8625		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8626			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8627		fi
8628
8629		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8630			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8631		fi
8632
8633		CFLAGS="$CFLAGS -Werror=trigraphs"
8634
8635		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8636printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8637		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8638		if eval test \${$cacheid+y}
8639then :
8640  printf %s "(cached) " >&6
8641else $as_nop
8642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8643/* end confdefs.h.  */
8644int i;
8645int
8646main (void)
8647{
8648
8649  ;
8650  return 0;
8651}
8652_ACEOF
8653if ac_fn_c_try_link "$LINENO"
8654then :
8655  eval $cacheid=yes
8656else $as_nop
8657  eval $cacheid=no
8658fi
8659rm -f core conftest.err conftest.$ac_objext conftest.beam \
8660    conftest$ac_exeext conftest.$ac_ext
8661fi
8662
8663
8664		CFLAGS="$xorg_testset_save_CFLAGS"
8665
8666		eval supported=\$$cacheid
8667		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8668printf "%s\n" "$supported" >&6; }
8669		if test "$supported" = "yes" ; then
8670			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8671			found="yes"
8672		fi
8673	fi
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689xorg_testset_save_CFLAGS="$CFLAGS"
8690
8691if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8692	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8693	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8694printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8695if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8696then :
8697  printf %s "(cached) " >&6
8698else $as_nop
8699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8700/* end confdefs.h.  */
8701int i;
8702_ACEOF
8703if ac_fn_c_try_compile "$LINENO"
8704then :
8705  xorg_cv_cc_flag_unknown_warning_option=yes
8706else $as_nop
8707  xorg_cv_cc_flag_unknown_warning_option=no
8708fi
8709rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8710fi
8711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8712printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8713	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8714	CFLAGS="$xorg_testset_save_CFLAGS"
8715fi
8716
8717if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8718	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8719		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8720	fi
8721	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8722	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8723printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8724if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8725then :
8726  printf %s "(cached) " >&6
8727else $as_nop
8728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8729/* end confdefs.h.  */
8730int i;
8731_ACEOF
8732if ac_fn_c_try_compile "$LINENO"
8733then :
8734  xorg_cv_cc_flag_unused_command_line_argument=yes
8735else $as_nop
8736  xorg_cv_cc_flag_unused_command_line_argument=no
8737fi
8738rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8739fi
8740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8741printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8742	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8743	CFLAGS="$xorg_testset_save_CFLAGS"
8744fi
8745
8746found="no"
8747
8748	if test $found = "no" ; then
8749		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8750			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8751		fi
8752
8753		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8754			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8755		fi
8756
8757		CFLAGS="$CFLAGS -Werror=array-bounds"
8758
8759		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8760printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8761		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8762		if eval test \${$cacheid+y}
8763then :
8764  printf %s "(cached) " >&6
8765else $as_nop
8766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8767/* end confdefs.h.  */
8768int i;
8769int
8770main (void)
8771{
8772
8773  ;
8774  return 0;
8775}
8776_ACEOF
8777if ac_fn_c_try_link "$LINENO"
8778then :
8779  eval $cacheid=yes
8780else $as_nop
8781  eval $cacheid=no
8782fi
8783rm -f core conftest.err conftest.$ac_objext conftest.beam \
8784    conftest$ac_exeext conftest.$ac_ext
8785fi
8786
8787
8788		CFLAGS="$xorg_testset_save_CFLAGS"
8789
8790		eval supported=\$$cacheid
8791		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8792printf "%s\n" "$supported" >&6; }
8793		if test "$supported" = "yes" ; then
8794			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8795			found="yes"
8796		fi
8797	fi
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813xorg_testset_save_CFLAGS="$CFLAGS"
8814
8815if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8816	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8817	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8818printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8819if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8820then :
8821  printf %s "(cached) " >&6
8822else $as_nop
8823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824/* end confdefs.h.  */
8825int i;
8826_ACEOF
8827if ac_fn_c_try_compile "$LINENO"
8828then :
8829  xorg_cv_cc_flag_unknown_warning_option=yes
8830else $as_nop
8831  xorg_cv_cc_flag_unknown_warning_option=no
8832fi
8833rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8834fi
8835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8836printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8837	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8838	CFLAGS="$xorg_testset_save_CFLAGS"
8839fi
8840
8841if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8842	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8843		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8844	fi
8845	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8846	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8847printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8848if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8849then :
8850  printf %s "(cached) " >&6
8851else $as_nop
8852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853/* end confdefs.h.  */
8854int i;
8855_ACEOF
8856if ac_fn_c_try_compile "$LINENO"
8857then :
8858  xorg_cv_cc_flag_unused_command_line_argument=yes
8859else $as_nop
8860  xorg_cv_cc_flag_unused_command_line_argument=no
8861fi
8862rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8863fi
8864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8865printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8866	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8867	CFLAGS="$xorg_testset_save_CFLAGS"
8868fi
8869
8870found="no"
8871
8872	if test $found = "no" ; then
8873		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8874			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8875		fi
8876
8877		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8878			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8879		fi
8880
8881		CFLAGS="$CFLAGS -Werror=write-strings"
8882
8883		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8884printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8885		cacheid=xorg_cv_cc_flag__Werror_write_strings
8886		if eval test \${$cacheid+y}
8887then :
8888  printf %s "(cached) " >&6
8889else $as_nop
8890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8891/* end confdefs.h.  */
8892int i;
8893int
8894main (void)
8895{
8896
8897  ;
8898  return 0;
8899}
8900_ACEOF
8901if ac_fn_c_try_link "$LINENO"
8902then :
8903  eval $cacheid=yes
8904else $as_nop
8905  eval $cacheid=no
8906fi
8907rm -f core conftest.err conftest.$ac_objext conftest.beam \
8908    conftest$ac_exeext conftest.$ac_ext
8909fi
8910
8911
8912		CFLAGS="$xorg_testset_save_CFLAGS"
8913
8914		eval supported=\$$cacheid
8915		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8916printf "%s\n" "$supported" >&6; }
8917		if test "$supported" = "yes" ; then
8918			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8919			found="yes"
8920		fi
8921	fi
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937xorg_testset_save_CFLAGS="$CFLAGS"
8938
8939if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8940	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8941	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8942printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8943if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8944then :
8945  printf %s "(cached) " >&6
8946else $as_nop
8947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8948/* end confdefs.h.  */
8949int i;
8950_ACEOF
8951if ac_fn_c_try_compile "$LINENO"
8952then :
8953  xorg_cv_cc_flag_unknown_warning_option=yes
8954else $as_nop
8955  xorg_cv_cc_flag_unknown_warning_option=no
8956fi
8957rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8958fi
8959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8960printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8961	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8962	CFLAGS="$xorg_testset_save_CFLAGS"
8963fi
8964
8965if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8966	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8967		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8968	fi
8969	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8970	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8971printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8972if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8973then :
8974  printf %s "(cached) " >&6
8975else $as_nop
8976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977/* end confdefs.h.  */
8978int i;
8979_ACEOF
8980if ac_fn_c_try_compile "$LINENO"
8981then :
8982  xorg_cv_cc_flag_unused_command_line_argument=yes
8983else $as_nop
8984  xorg_cv_cc_flag_unused_command_line_argument=no
8985fi
8986rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8987fi
8988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8989printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8990	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8991	CFLAGS="$xorg_testset_save_CFLAGS"
8992fi
8993
8994found="no"
8995
8996	if test $found = "no" ; then
8997		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8998			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8999		fi
9000
9001		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9002			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9003		fi
9004
9005		CFLAGS="$CFLAGS -Werror=address"
9006
9007		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
9008printf %s "checking if $CC supports -Werror=address... " >&6; }
9009		cacheid=xorg_cv_cc_flag__Werror_address
9010		if eval test \${$cacheid+y}
9011then :
9012  printf %s "(cached) " >&6
9013else $as_nop
9014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9015/* end confdefs.h.  */
9016int i;
9017int
9018main (void)
9019{
9020
9021  ;
9022  return 0;
9023}
9024_ACEOF
9025if ac_fn_c_try_link "$LINENO"
9026then :
9027  eval $cacheid=yes
9028else $as_nop
9029  eval $cacheid=no
9030fi
9031rm -f core conftest.err conftest.$ac_objext conftest.beam \
9032    conftest$ac_exeext conftest.$ac_ext
9033fi
9034
9035
9036		CFLAGS="$xorg_testset_save_CFLAGS"
9037
9038		eval supported=\$$cacheid
9039		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9040printf "%s\n" "$supported" >&6; }
9041		if test "$supported" = "yes" ; then
9042			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
9043			found="yes"
9044		fi
9045	fi
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061xorg_testset_save_CFLAGS="$CFLAGS"
9062
9063if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9064	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9065	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9066printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9067if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9068then :
9069  printf %s "(cached) " >&6
9070else $as_nop
9071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9072/* end confdefs.h.  */
9073int i;
9074_ACEOF
9075if ac_fn_c_try_compile "$LINENO"
9076then :
9077  xorg_cv_cc_flag_unknown_warning_option=yes
9078else $as_nop
9079  xorg_cv_cc_flag_unknown_warning_option=no
9080fi
9081rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9082fi
9083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9084printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9085	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9086	CFLAGS="$xorg_testset_save_CFLAGS"
9087fi
9088
9089if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9090	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9091		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9092	fi
9093	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9094	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9095printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9096if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9097then :
9098  printf %s "(cached) " >&6
9099else $as_nop
9100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9101/* end confdefs.h.  */
9102int i;
9103_ACEOF
9104if ac_fn_c_try_compile "$LINENO"
9105then :
9106  xorg_cv_cc_flag_unused_command_line_argument=yes
9107else $as_nop
9108  xorg_cv_cc_flag_unused_command_line_argument=no
9109fi
9110rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9111fi
9112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9113printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9114	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9115	CFLAGS="$xorg_testset_save_CFLAGS"
9116fi
9117
9118found="no"
9119
9120	if test $found = "no" ; then
9121		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9122			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9123		fi
9124
9125		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9126			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9127		fi
9128
9129		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
9130
9131		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9132printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
9133		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9134		if eval test \${$cacheid+y}
9135then :
9136  printf %s "(cached) " >&6
9137else $as_nop
9138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9139/* end confdefs.h.  */
9140int i;
9141int
9142main (void)
9143{
9144
9145  ;
9146  return 0;
9147}
9148_ACEOF
9149if ac_fn_c_try_link "$LINENO"
9150then :
9151  eval $cacheid=yes
9152else $as_nop
9153  eval $cacheid=no
9154fi
9155rm -f core conftest.err conftest.$ac_objext conftest.beam \
9156    conftest$ac_exeext conftest.$ac_ext
9157fi
9158
9159
9160		CFLAGS="$xorg_testset_save_CFLAGS"
9161
9162		eval supported=\$$cacheid
9163		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9164printf "%s\n" "$supported" >&6; }
9165		if test "$supported" = "yes" ; then
9166			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9167			found="yes"
9168		fi
9169	fi
9170
9171	if test $found = "no" ; then
9172		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9173			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9174		fi
9175
9176		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9177			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9178		fi
9179
9180		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9181
9182		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9183printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9184		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9185		if eval test \${$cacheid+y}
9186then :
9187  printf %s "(cached) " >&6
9188else $as_nop
9189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9190/* end confdefs.h.  */
9191int i;
9192int
9193main (void)
9194{
9195
9196  ;
9197  return 0;
9198}
9199_ACEOF
9200if ac_fn_c_try_link "$LINENO"
9201then :
9202  eval $cacheid=yes
9203else $as_nop
9204  eval $cacheid=no
9205fi
9206rm -f core conftest.err conftest.$ac_objext conftest.beam \
9207    conftest$ac_exeext conftest.$ac_ext
9208fi
9209
9210
9211		CFLAGS="$xorg_testset_save_CFLAGS"
9212
9213		eval supported=\$$cacheid
9214		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9215printf "%s\n" "$supported" >&6; }
9216		if test "$supported" = "yes" ; then
9217			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9218			found="yes"
9219		fi
9220	fi
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236xorg_testset_save_CFLAGS="$CFLAGS"
9237
9238if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9239	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9240	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9241printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9242if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9243then :
9244  printf %s "(cached) " >&6
9245else $as_nop
9246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9247/* end confdefs.h.  */
9248int i;
9249_ACEOF
9250if ac_fn_c_try_compile "$LINENO"
9251then :
9252  xorg_cv_cc_flag_unknown_warning_option=yes
9253else $as_nop
9254  xorg_cv_cc_flag_unknown_warning_option=no
9255fi
9256rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9257fi
9258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9259printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9260	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9261	CFLAGS="$xorg_testset_save_CFLAGS"
9262fi
9263
9264if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9265	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9266		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9267	fi
9268	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9269	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9270printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9271if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9272then :
9273  printf %s "(cached) " >&6
9274else $as_nop
9275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9276/* end confdefs.h.  */
9277int i;
9278_ACEOF
9279if ac_fn_c_try_compile "$LINENO"
9280then :
9281  xorg_cv_cc_flag_unused_command_line_argument=yes
9282else $as_nop
9283  xorg_cv_cc_flag_unused_command_line_argument=no
9284fi
9285rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9286fi
9287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9288printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9289	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9290	CFLAGS="$xorg_testset_save_CFLAGS"
9291fi
9292
9293found="no"
9294
9295	if test $found = "no" ; then
9296		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9297			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9298		fi
9299
9300		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9301			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9302		fi
9303
9304		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9305
9306		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9307printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9308		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9309		if eval test \${$cacheid+y}
9310then :
9311  printf %s "(cached) " >&6
9312else $as_nop
9313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9314/* end confdefs.h.  */
9315int i;
9316int
9317main (void)
9318{
9319
9320  ;
9321  return 0;
9322}
9323_ACEOF
9324if ac_fn_c_try_link "$LINENO"
9325then :
9326  eval $cacheid=yes
9327else $as_nop
9328  eval $cacheid=no
9329fi
9330rm -f core conftest.err conftest.$ac_objext conftest.beam \
9331    conftest$ac_exeext conftest.$ac_ext
9332fi
9333
9334
9335		CFLAGS="$xorg_testset_save_CFLAGS"
9336
9337		eval supported=\$$cacheid
9338		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9339printf "%s\n" "$supported" >&6; }
9340		if test "$supported" = "yes" ; then
9341			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9342			found="yes"
9343		fi
9344	fi
9345
9346 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9347else
9348{ 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
9349printf "%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;}
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363xorg_testset_save_CFLAGS="$CFLAGS"
9364
9365if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9366	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9367	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9368printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9369if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9370then :
9371  printf %s "(cached) " >&6
9372else $as_nop
9373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9374/* end confdefs.h.  */
9375int i;
9376_ACEOF
9377if ac_fn_c_try_compile "$LINENO"
9378then :
9379  xorg_cv_cc_flag_unknown_warning_option=yes
9380else $as_nop
9381  xorg_cv_cc_flag_unknown_warning_option=no
9382fi
9383rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9384fi
9385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9386printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9387	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9388	CFLAGS="$xorg_testset_save_CFLAGS"
9389fi
9390
9391if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9392	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9393		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9394	fi
9395	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9396	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9397printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9398if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9399then :
9400  printf %s "(cached) " >&6
9401else $as_nop
9402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9403/* end confdefs.h.  */
9404int i;
9405_ACEOF
9406if ac_fn_c_try_compile "$LINENO"
9407then :
9408  xorg_cv_cc_flag_unused_command_line_argument=yes
9409else $as_nop
9410  xorg_cv_cc_flag_unused_command_line_argument=no
9411fi
9412rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9413fi
9414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9415printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9416	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9417	CFLAGS="$xorg_testset_save_CFLAGS"
9418fi
9419
9420found="no"
9421
9422	if test $found = "no" ; then
9423		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9424			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9425		fi
9426
9427		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9428			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9429		fi
9430
9431		CFLAGS="$CFLAGS -Wimplicit"
9432
9433		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9434printf %s "checking if $CC supports -Wimplicit... " >&6; }
9435		cacheid=xorg_cv_cc_flag__Wimplicit
9436		if eval test \${$cacheid+y}
9437then :
9438  printf %s "(cached) " >&6
9439else $as_nop
9440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9441/* end confdefs.h.  */
9442int i;
9443int
9444main (void)
9445{
9446
9447  ;
9448  return 0;
9449}
9450_ACEOF
9451if ac_fn_c_try_link "$LINENO"
9452then :
9453  eval $cacheid=yes
9454else $as_nop
9455  eval $cacheid=no
9456fi
9457rm -f core conftest.err conftest.$ac_objext conftest.beam \
9458    conftest$ac_exeext conftest.$ac_ext
9459fi
9460
9461
9462		CFLAGS="$xorg_testset_save_CFLAGS"
9463
9464		eval supported=\$$cacheid
9465		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9466printf "%s\n" "$supported" >&6; }
9467		if test "$supported" = "yes" ; then
9468			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9469			found="yes"
9470		fi
9471	fi
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487xorg_testset_save_CFLAGS="$CFLAGS"
9488
9489if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9490	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9491	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9492printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9493if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9494then :
9495  printf %s "(cached) " >&6
9496else $as_nop
9497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9498/* end confdefs.h.  */
9499int i;
9500_ACEOF
9501if ac_fn_c_try_compile "$LINENO"
9502then :
9503  xorg_cv_cc_flag_unknown_warning_option=yes
9504else $as_nop
9505  xorg_cv_cc_flag_unknown_warning_option=no
9506fi
9507rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9508fi
9509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9510printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9511	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9512	CFLAGS="$xorg_testset_save_CFLAGS"
9513fi
9514
9515if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9516	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9517		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9518	fi
9519	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9520	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9521printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9522if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9523then :
9524  printf %s "(cached) " >&6
9525else $as_nop
9526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9527/* end confdefs.h.  */
9528int i;
9529_ACEOF
9530if ac_fn_c_try_compile "$LINENO"
9531then :
9532  xorg_cv_cc_flag_unused_command_line_argument=yes
9533else $as_nop
9534  xorg_cv_cc_flag_unused_command_line_argument=no
9535fi
9536rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9537fi
9538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9539printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9540	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9541	CFLAGS="$xorg_testset_save_CFLAGS"
9542fi
9543
9544found="no"
9545
9546	if test $found = "no" ; then
9547		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9548			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9549		fi
9550
9551		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9552			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9553		fi
9554
9555		CFLAGS="$CFLAGS -Wnonnull"
9556
9557		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9558printf %s "checking if $CC supports -Wnonnull... " >&6; }
9559		cacheid=xorg_cv_cc_flag__Wnonnull
9560		if eval test \${$cacheid+y}
9561then :
9562  printf %s "(cached) " >&6
9563else $as_nop
9564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9565/* end confdefs.h.  */
9566int i;
9567int
9568main (void)
9569{
9570
9571  ;
9572  return 0;
9573}
9574_ACEOF
9575if ac_fn_c_try_link "$LINENO"
9576then :
9577  eval $cacheid=yes
9578else $as_nop
9579  eval $cacheid=no
9580fi
9581rm -f core conftest.err conftest.$ac_objext conftest.beam \
9582    conftest$ac_exeext conftest.$ac_ext
9583fi
9584
9585
9586		CFLAGS="$xorg_testset_save_CFLAGS"
9587
9588		eval supported=\$$cacheid
9589		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9590printf "%s\n" "$supported" >&6; }
9591		if test "$supported" = "yes" ; then
9592			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9593			found="yes"
9594		fi
9595	fi
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611xorg_testset_save_CFLAGS="$CFLAGS"
9612
9613if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9614	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9615	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9616printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9617if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9618then :
9619  printf %s "(cached) " >&6
9620else $as_nop
9621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9622/* end confdefs.h.  */
9623int i;
9624_ACEOF
9625if ac_fn_c_try_compile "$LINENO"
9626then :
9627  xorg_cv_cc_flag_unknown_warning_option=yes
9628else $as_nop
9629  xorg_cv_cc_flag_unknown_warning_option=no
9630fi
9631rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9632fi
9633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9634printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9635	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9636	CFLAGS="$xorg_testset_save_CFLAGS"
9637fi
9638
9639if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9640	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9641		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9642	fi
9643	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9644	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9645printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9646if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9647then :
9648  printf %s "(cached) " >&6
9649else $as_nop
9650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9651/* end confdefs.h.  */
9652int i;
9653_ACEOF
9654if ac_fn_c_try_compile "$LINENO"
9655then :
9656  xorg_cv_cc_flag_unused_command_line_argument=yes
9657else $as_nop
9658  xorg_cv_cc_flag_unused_command_line_argument=no
9659fi
9660rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9661fi
9662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9663printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9664	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9665	CFLAGS="$xorg_testset_save_CFLAGS"
9666fi
9667
9668found="no"
9669
9670	if test $found = "no" ; then
9671		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9672			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9673		fi
9674
9675		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9676			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9677		fi
9678
9679		CFLAGS="$CFLAGS -Winit-self"
9680
9681		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9682printf %s "checking if $CC supports -Winit-self... " >&6; }
9683		cacheid=xorg_cv_cc_flag__Winit_self
9684		if eval test \${$cacheid+y}
9685then :
9686  printf %s "(cached) " >&6
9687else $as_nop
9688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9689/* end confdefs.h.  */
9690int i;
9691int
9692main (void)
9693{
9694
9695  ;
9696  return 0;
9697}
9698_ACEOF
9699if ac_fn_c_try_link "$LINENO"
9700then :
9701  eval $cacheid=yes
9702else $as_nop
9703  eval $cacheid=no
9704fi
9705rm -f core conftest.err conftest.$ac_objext conftest.beam \
9706    conftest$ac_exeext conftest.$ac_ext
9707fi
9708
9709
9710		CFLAGS="$xorg_testset_save_CFLAGS"
9711
9712		eval supported=\$$cacheid
9713		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9714printf "%s\n" "$supported" >&6; }
9715		if test "$supported" = "yes" ; then
9716			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9717			found="yes"
9718		fi
9719	fi
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735xorg_testset_save_CFLAGS="$CFLAGS"
9736
9737if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9738	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9739	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9740printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9741if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9742then :
9743  printf %s "(cached) " >&6
9744else $as_nop
9745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9746/* end confdefs.h.  */
9747int i;
9748_ACEOF
9749if ac_fn_c_try_compile "$LINENO"
9750then :
9751  xorg_cv_cc_flag_unknown_warning_option=yes
9752else $as_nop
9753  xorg_cv_cc_flag_unknown_warning_option=no
9754fi
9755rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9756fi
9757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9758printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9759	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9760	CFLAGS="$xorg_testset_save_CFLAGS"
9761fi
9762
9763if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9764	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9765		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9766	fi
9767	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9768	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9769printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9770if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9771then :
9772  printf %s "(cached) " >&6
9773else $as_nop
9774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775/* end confdefs.h.  */
9776int i;
9777_ACEOF
9778if ac_fn_c_try_compile "$LINENO"
9779then :
9780  xorg_cv_cc_flag_unused_command_line_argument=yes
9781else $as_nop
9782  xorg_cv_cc_flag_unused_command_line_argument=no
9783fi
9784rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9785fi
9786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9787printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9788	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9789	CFLAGS="$xorg_testset_save_CFLAGS"
9790fi
9791
9792found="no"
9793
9794	if test $found = "no" ; then
9795		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9796			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9797		fi
9798
9799		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9800			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9801		fi
9802
9803		CFLAGS="$CFLAGS -Wmain"
9804
9805		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9806printf %s "checking if $CC supports -Wmain... " >&6; }
9807		cacheid=xorg_cv_cc_flag__Wmain
9808		if eval test \${$cacheid+y}
9809then :
9810  printf %s "(cached) " >&6
9811else $as_nop
9812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9813/* end confdefs.h.  */
9814int i;
9815int
9816main (void)
9817{
9818
9819  ;
9820  return 0;
9821}
9822_ACEOF
9823if ac_fn_c_try_link "$LINENO"
9824then :
9825  eval $cacheid=yes
9826else $as_nop
9827  eval $cacheid=no
9828fi
9829rm -f core conftest.err conftest.$ac_objext conftest.beam \
9830    conftest$ac_exeext conftest.$ac_ext
9831fi
9832
9833
9834		CFLAGS="$xorg_testset_save_CFLAGS"
9835
9836		eval supported=\$$cacheid
9837		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9838printf "%s\n" "$supported" >&6; }
9839		if test "$supported" = "yes" ; then
9840			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9841			found="yes"
9842		fi
9843	fi
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859xorg_testset_save_CFLAGS="$CFLAGS"
9860
9861if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9862	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9863	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9864printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9865if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9866then :
9867  printf %s "(cached) " >&6
9868else $as_nop
9869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870/* end confdefs.h.  */
9871int i;
9872_ACEOF
9873if ac_fn_c_try_compile "$LINENO"
9874then :
9875  xorg_cv_cc_flag_unknown_warning_option=yes
9876else $as_nop
9877  xorg_cv_cc_flag_unknown_warning_option=no
9878fi
9879rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9880fi
9881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9882printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9883	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9884	CFLAGS="$xorg_testset_save_CFLAGS"
9885fi
9886
9887if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9888	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9889		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9890	fi
9891	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9892	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9893printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9894if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9895then :
9896  printf %s "(cached) " >&6
9897else $as_nop
9898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9899/* end confdefs.h.  */
9900int i;
9901_ACEOF
9902if ac_fn_c_try_compile "$LINENO"
9903then :
9904  xorg_cv_cc_flag_unused_command_line_argument=yes
9905else $as_nop
9906  xorg_cv_cc_flag_unused_command_line_argument=no
9907fi
9908rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9909fi
9910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9911printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9912	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9913	CFLAGS="$xorg_testset_save_CFLAGS"
9914fi
9915
9916found="no"
9917
9918	if test $found = "no" ; then
9919		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9920			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9921		fi
9922
9923		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9924			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9925		fi
9926
9927		CFLAGS="$CFLAGS -Wmissing-braces"
9928
9929		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9930printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9931		cacheid=xorg_cv_cc_flag__Wmissing_braces
9932		if eval test \${$cacheid+y}
9933then :
9934  printf %s "(cached) " >&6
9935else $as_nop
9936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9937/* end confdefs.h.  */
9938int i;
9939int
9940main (void)
9941{
9942
9943  ;
9944  return 0;
9945}
9946_ACEOF
9947if ac_fn_c_try_link "$LINENO"
9948then :
9949  eval $cacheid=yes
9950else $as_nop
9951  eval $cacheid=no
9952fi
9953rm -f core conftest.err conftest.$ac_objext conftest.beam \
9954    conftest$ac_exeext conftest.$ac_ext
9955fi
9956
9957
9958		CFLAGS="$xorg_testset_save_CFLAGS"
9959
9960		eval supported=\$$cacheid
9961		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9962printf "%s\n" "$supported" >&6; }
9963		if test "$supported" = "yes" ; then
9964			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9965			found="yes"
9966		fi
9967	fi
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983xorg_testset_save_CFLAGS="$CFLAGS"
9984
9985if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9986	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9987	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9988printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9989if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9990then :
9991  printf %s "(cached) " >&6
9992else $as_nop
9993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9994/* end confdefs.h.  */
9995int i;
9996_ACEOF
9997if ac_fn_c_try_compile "$LINENO"
9998then :
9999  xorg_cv_cc_flag_unknown_warning_option=yes
10000else $as_nop
10001  xorg_cv_cc_flag_unknown_warning_option=no
10002fi
10003rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10004fi
10005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10006printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10007	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10008	CFLAGS="$xorg_testset_save_CFLAGS"
10009fi
10010
10011if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10012	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10013		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10014	fi
10015	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10016	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10017printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10018if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10019then :
10020  printf %s "(cached) " >&6
10021else $as_nop
10022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10023/* end confdefs.h.  */
10024int i;
10025_ACEOF
10026if ac_fn_c_try_compile "$LINENO"
10027then :
10028  xorg_cv_cc_flag_unused_command_line_argument=yes
10029else $as_nop
10030  xorg_cv_cc_flag_unused_command_line_argument=no
10031fi
10032rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10033fi
10034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10035printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10036	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10037	CFLAGS="$xorg_testset_save_CFLAGS"
10038fi
10039
10040found="no"
10041
10042	if test $found = "no" ; then
10043		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10044			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10045		fi
10046
10047		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10048			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10049		fi
10050
10051		CFLAGS="$CFLAGS -Wsequence-point"
10052
10053		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
10054printf %s "checking if $CC supports -Wsequence-point... " >&6; }
10055		cacheid=xorg_cv_cc_flag__Wsequence_point
10056		if eval test \${$cacheid+y}
10057then :
10058  printf %s "(cached) " >&6
10059else $as_nop
10060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10061/* end confdefs.h.  */
10062int i;
10063int
10064main (void)
10065{
10066
10067  ;
10068  return 0;
10069}
10070_ACEOF
10071if ac_fn_c_try_link "$LINENO"
10072then :
10073  eval $cacheid=yes
10074else $as_nop
10075  eval $cacheid=no
10076fi
10077rm -f core conftest.err conftest.$ac_objext conftest.beam \
10078    conftest$ac_exeext conftest.$ac_ext
10079fi
10080
10081
10082		CFLAGS="$xorg_testset_save_CFLAGS"
10083
10084		eval supported=\$$cacheid
10085		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10086printf "%s\n" "$supported" >&6; }
10087		if test "$supported" = "yes" ; then
10088			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
10089			found="yes"
10090		fi
10091	fi
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107xorg_testset_save_CFLAGS="$CFLAGS"
10108
10109if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10110	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10111	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10112printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10113if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10114then :
10115  printf %s "(cached) " >&6
10116else $as_nop
10117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118/* end confdefs.h.  */
10119int i;
10120_ACEOF
10121if ac_fn_c_try_compile "$LINENO"
10122then :
10123  xorg_cv_cc_flag_unknown_warning_option=yes
10124else $as_nop
10125  xorg_cv_cc_flag_unknown_warning_option=no
10126fi
10127rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10128fi
10129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10130printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10131	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10132	CFLAGS="$xorg_testset_save_CFLAGS"
10133fi
10134
10135if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10136	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10137		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10138	fi
10139	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10140	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10141printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10142if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10143then :
10144  printf %s "(cached) " >&6
10145else $as_nop
10146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10147/* end confdefs.h.  */
10148int i;
10149_ACEOF
10150if ac_fn_c_try_compile "$LINENO"
10151then :
10152  xorg_cv_cc_flag_unused_command_line_argument=yes
10153else $as_nop
10154  xorg_cv_cc_flag_unused_command_line_argument=no
10155fi
10156rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10157fi
10158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10159printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10160	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10161	CFLAGS="$xorg_testset_save_CFLAGS"
10162fi
10163
10164found="no"
10165
10166	if test $found = "no" ; then
10167		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10168			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10169		fi
10170
10171		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10172			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10173		fi
10174
10175		CFLAGS="$CFLAGS -Wreturn-type"
10176
10177		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10178printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10179		cacheid=xorg_cv_cc_flag__Wreturn_type
10180		if eval test \${$cacheid+y}
10181then :
10182  printf %s "(cached) " >&6
10183else $as_nop
10184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10185/* end confdefs.h.  */
10186int i;
10187int
10188main (void)
10189{
10190
10191  ;
10192  return 0;
10193}
10194_ACEOF
10195if ac_fn_c_try_link "$LINENO"
10196then :
10197  eval $cacheid=yes
10198else $as_nop
10199  eval $cacheid=no
10200fi
10201rm -f core conftest.err conftest.$ac_objext conftest.beam \
10202    conftest$ac_exeext conftest.$ac_ext
10203fi
10204
10205
10206		CFLAGS="$xorg_testset_save_CFLAGS"
10207
10208		eval supported=\$$cacheid
10209		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10210printf "%s\n" "$supported" >&6; }
10211		if test "$supported" = "yes" ; then
10212			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10213			found="yes"
10214		fi
10215	fi
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231xorg_testset_save_CFLAGS="$CFLAGS"
10232
10233if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10234	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10235	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10236printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10237if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10238then :
10239  printf %s "(cached) " >&6
10240else $as_nop
10241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10242/* end confdefs.h.  */
10243int i;
10244_ACEOF
10245if ac_fn_c_try_compile "$LINENO"
10246then :
10247  xorg_cv_cc_flag_unknown_warning_option=yes
10248else $as_nop
10249  xorg_cv_cc_flag_unknown_warning_option=no
10250fi
10251rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10252fi
10253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10254printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10255	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10256	CFLAGS="$xorg_testset_save_CFLAGS"
10257fi
10258
10259if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10260	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10261		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10262	fi
10263	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10264	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10265printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10266if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10267then :
10268  printf %s "(cached) " >&6
10269else $as_nop
10270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10271/* end confdefs.h.  */
10272int i;
10273_ACEOF
10274if ac_fn_c_try_compile "$LINENO"
10275then :
10276  xorg_cv_cc_flag_unused_command_line_argument=yes
10277else $as_nop
10278  xorg_cv_cc_flag_unused_command_line_argument=no
10279fi
10280rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10281fi
10282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10283printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10284	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10285	CFLAGS="$xorg_testset_save_CFLAGS"
10286fi
10287
10288found="no"
10289
10290	if test $found = "no" ; then
10291		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10292			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10293		fi
10294
10295		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10296			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10297		fi
10298
10299		CFLAGS="$CFLAGS -Wtrigraphs"
10300
10301		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10302printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10303		cacheid=xorg_cv_cc_flag__Wtrigraphs
10304		if eval test \${$cacheid+y}
10305then :
10306  printf %s "(cached) " >&6
10307else $as_nop
10308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10309/* end confdefs.h.  */
10310int i;
10311int
10312main (void)
10313{
10314
10315  ;
10316  return 0;
10317}
10318_ACEOF
10319if ac_fn_c_try_link "$LINENO"
10320then :
10321  eval $cacheid=yes
10322else $as_nop
10323  eval $cacheid=no
10324fi
10325rm -f core conftest.err conftest.$ac_objext conftest.beam \
10326    conftest$ac_exeext conftest.$ac_ext
10327fi
10328
10329
10330		CFLAGS="$xorg_testset_save_CFLAGS"
10331
10332		eval supported=\$$cacheid
10333		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10334printf "%s\n" "$supported" >&6; }
10335		if test "$supported" = "yes" ; then
10336			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10337			found="yes"
10338		fi
10339	fi
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355xorg_testset_save_CFLAGS="$CFLAGS"
10356
10357if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10358	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10359	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10360printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10361if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10362then :
10363  printf %s "(cached) " >&6
10364else $as_nop
10365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10366/* end confdefs.h.  */
10367int i;
10368_ACEOF
10369if ac_fn_c_try_compile "$LINENO"
10370then :
10371  xorg_cv_cc_flag_unknown_warning_option=yes
10372else $as_nop
10373  xorg_cv_cc_flag_unknown_warning_option=no
10374fi
10375rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10376fi
10377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10378printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10379	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10380	CFLAGS="$xorg_testset_save_CFLAGS"
10381fi
10382
10383if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10384	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10385		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10386	fi
10387	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10388	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10389printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10390if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10391then :
10392  printf %s "(cached) " >&6
10393else $as_nop
10394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10395/* end confdefs.h.  */
10396int i;
10397_ACEOF
10398if ac_fn_c_try_compile "$LINENO"
10399then :
10400  xorg_cv_cc_flag_unused_command_line_argument=yes
10401else $as_nop
10402  xorg_cv_cc_flag_unused_command_line_argument=no
10403fi
10404rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10405fi
10406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10407printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10408	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10409	CFLAGS="$xorg_testset_save_CFLAGS"
10410fi
10411
10412found="no"
10413
10414	if test $found = "no" ; then
10415		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10416			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10417		fi
10418
10419		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10420			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10421		fi
10422
10423		CFLAGS="$CFLAGS -Warray-bounds"
10424
10425		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10426printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10427		cacheid=xorg_cv_cc_flag__Warray_bounds
10428		if eval test \${$cacheid+y}
10429then :
10430  printf %s "(cached) " >&6
10431else $as_nop
10432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10433/* end confdefs.h.  */
10434int i;
10435int
10436main (void)
10437{
10438
10439  ;
10440  return 0;
10441}
10442_ACEOF
10443if ac_fn_c_try_link "$LINENO"
10444then :
10445  eval $cacheid=yes
10446else $as_nop
10447  eval $cacheid=no
10448fi
10449rm -f core conftest.err conftest.$ac_objext conftest.beam \
10450    conftest$ac_exeext conftest.$ac_ext
10451fi
10452
10453
10454		CFLAGS="$xorg_testset_save_CFLAGS"
10455
10456		eval supported=\$$cacheid
10457		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10458printf "%s\n" "$supported" >&6; }
10459		if test "$supported" = "yes" ; then
10460			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10461			found="yes"
10462		fi
10463	fi
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479xorg_testset_save_CFLAGS="$CFLAGS"
10480
10481if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10482	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10483	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10484printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10485if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10486then :
10487  printf %s "(cached) " >&6
10488else $as_nop
10489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10490/* end confdefs.h.  */
10491int i;
10492_ACEOF
10493if ac_fn_c_try_compile "$LINENO"
10494then :
10495  xorg_cv_cc_flag_unknown_warning_option=yes
10496else $as_nop
10497  xorg_cv_cc_flag_unknown_warning_option=no
10498fi
10499rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10500fi
10501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10502printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10503	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10504	CFLAGS="$xorg_testset_save_CFLAGS"
10505fi
10506
10507if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10508	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10509		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10510	fi
10511	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10512	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10513printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10514if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10515then :
10516  printf %s "(cached) " >&6
10517else $as_nop
10518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10519/* end confdefs.h.  */
10520int i;
10521_ACEOF
10522if ac_fn_c_try_compile "$LINENO"
10523then :
10524  xorg_cv_cc_flag_unused_command_line_argument=yes
10525else $as_nop
10526  xorg_cv_cc_flag_unused_command_line_argument=no
10527fi
10528rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10529fi
10530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10531printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10532	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10533	CFLAGS="$xorg_testset_save_CFLAGS"
10534fi
10535
10536found="no"
10537
10538	if test $found = "no" ; then
10539		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10540			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10541		fi
10542
10543		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10544			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10545		fi
10546
10547		CFLAGS="$CFLAGS -Wwrite-strings"
10548
10549		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10550printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10551		cacheid=xorg_cv_cc_flag__Wwrite_strings
10552		if eval test \${$cacheid+y}
10553then :
10554  printf %s "(cached) " >&6
10555else $as_nop
10556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10557/* end confdefs.h.  */
10558int i;
10559int
10560main (void)
10561{
10562
10563  ;
10564  return 0;
10565}
10566_ACEOF
10567if ac_fn_c_try_link "$LINENO"
10568then :
10569  eval $cacheid=yes
10570else $as_nop
10571  eval $cacheid=no
10572fi
10573rm -f core conftest.err conftest.$ac_objext conftest.beam \
10574    conftest$ac_exeext conftest.$ac_ext
10575fi
10576
10577
10578		CFLAGS="$xorg_testset_save_CFLAGS"
10579
10580		eval supported=\$$cacheid
10581		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10582printf "%s\n" "$supported" >&6; }
10583		if test "$supported" = "yes" ; then
10584			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10585			found="yes"
10586		fi
10587	fi
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603xorg_testset_save_CFLAGS="$CFLAGS"
10604
10605if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10606	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10607	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10608printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10609if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10610then :
10611  printf %s "(cached) " >&6
10612else $as_nop
10613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10614/* end confdefs.h.  */
10615int i;
10616_ACEOF
10617if ac_fn_c_try_compile "$LINENO"
10618then :
10619  xorg_cv_cc_flag_unknown_warning_option=yes
10620else $as_nop
10621  xorg_cv_cc_flag_unknown_warning_option=no
10622fi
10623rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10624fi
10625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10626printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10627	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10628	CFLAGS="$xorg_testset_save_CFLAGS"
10629fi
10630
10631if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10632	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10633		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10634	fi
10635	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10636	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10637printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10638if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10639then :
10640  printf %s "(cached) " >&6
10641else $as_nop
10642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10643/* end confdefs.h.  */
10644int i;
10645_ACEOF
10646if ac_fn_c_try_compile "$LINENO"
10647then :
10648  xorg_cv_cc_flag_unused_command_line_argument=yes
10649else $as_nop
10650  xorg_cv_cc_flag_unused_command_line_argument=no
10651fi
10652rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10653fi
10654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10655printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10656	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10657	CFLAGS="$xorg_testset_save_CFLAGS"
10658fi
10659
10660found="no"
10661
10662	if test $found = "no" ; then
10663		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10664			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10665		fi
10666
10667		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10668			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10669		fi
10670
10671		CFLAGS="$CFLAGS -Waddress"
10672
10673		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10674printf %s "checking if $CC supports -Waddress... " >&6; }
10675		cacheid=xorg_cv_cc_flag__Waddress
10676		if eval test \${$cacheid+y}
10677then :
10678  printf %s "(cached) " >&6
10679else $as_nop
10680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10681/* end confdefs.h.  */
10682int i;
10683int
10684main (void)
10685{
10686
10687  ;
10688  return 0;
10689}
10690_ACEOF
10691if ac_fn_c_try_link "$LINENO"
10692then :
10693  eval $cacheid=yes
10694else $as_nop
10695  eval $cacheid=no
10696fi
10697rm -f core conftest.err conftest.$ac_objext conftest.beam \
10698    conftest$ac_exeext conftest.$ac_ext
10699fi
10700
10701
10702		CFLAGS="$xorg_testset_save_CFLAGS"
10703
10704		eval supported=\$$cacheid
10705		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10706printf "%s\n" "$supported" >&6; }
10707		if test "$supported" = "yes" ; then
10708			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10709			found="yes"
10710		fi
10711	fi
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727xorg_testset_save_CFLAGS="$CFLAGS"
10728
10729if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10730	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10731	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10732printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10733if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10734then :
10735  printf %s "(cached) " >&6
10736else $as_nop
10737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10738/* end confdefs.h.  */
10739int i;
10740_ACEOF
10741if ac_fn_c_try_compile "$LINENO"
10742then :
10743  xorg_cv_cc_flag_unknown_warning_option=yes
10744else $as_nop
10745  xorg_cv_cc_flag_unknown_warning_option=no
10746fi
10747rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10748fi
10749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10750printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10751	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10752	CFLAGS="$xorg_testset_save_CFLAGS"
10753fi
10754
10755if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10756	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10757		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10758	fi
10759	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10760	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10761printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10762if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10763then :
10764  printf %s "(cached) " >&6
10765else $as_nop
10766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10767/* end confdefs.h.  */
10768int i;
10769_ACEOF
10770if ac_fn_c_try_compile "$LINENO"
10771then :
10772  xorg_cv_cc_flag_unused_command_line_argument=yes
10773else $as_nop
10774  xorg_cv_cc_flag_unused_command_line_argument=no
10775fi
10776rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10777fi
10778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10779printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10780	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10781	CFLAGS="$xorg_testset_save_CFLAGS"
10782fi
10783
10784found="no"
10785
10786	if test $found = "no" ; then
10787		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10788			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10789		fi
10790
10791		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10792			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10793		fi
10794
10795		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10796
10797		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10798printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10799		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10800		if eval test \${$cacheid+y}
10801then :
10802  printf %s "(cached) " >&6
10803else $as_nop
10804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10805/* end confdefs.h.  */
10806int i;
10807int
10808main (void)
10809{
10810
10811  ;
10812  return 0;
10813}
10814_ACEOF
10815if ac_fn_c_try_link "$LINENO"
10816then :
10817  eval $cacheid=yes
10818else $as_nop
10819  eval $cacheid=no
10820fi
10821rm -f core conftest.err conftest.$ac_objext conftest.beam \
10822    conftest$ac_exeext conftest.$ac_ext
10823fi
10824
10825
10826		CFLAGS="$xorg_testset_save_CFLAGS"
10827
10828		eval supported=\$$cacheid
10829		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10830printf "%s\n" "$supported" >&6; }
10831		if test "$supported" = "yes" ; then
10832			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10833			found="yes"
10834		fi
10835	fi
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851xorg_testset_save_CFLAGS="$CFLAGS"
10852
10853if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10854	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10855	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10856printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10857if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10858then :
10859  printf %s "(cached) " >&6
10860else $as_nop
10861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10862/* end confdefs.h.  */
10863int i;
10864_ACEOF
10865if ac_fn_c_try_compile "$LINENO"
10866then :
10867  xorg_cv_cc_flag_unknown_warning_option=yes
10868else $as_nop
10869  xorg_cv_cc_flag_unknown_warning_option=no
10870fi
10871rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10872fi
10873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10874printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10875	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10876	CFLAGS="$xorg_testset_save_CFLAGS"
10877fi
10878
10879if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10880	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10881		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10882	fi
10883	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10884	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10885printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10886if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10887then :
10888  printf %s "(cached) " >&6
10889else $as_nop
10890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10891/* end confdefs.h.  */
10892int i;
10893_ACEOF
10894if ac_fn_c_try_compile "$LINENO"
10895then :
10896  xorg_cv_cc_flag_unused_command_line_argument=yes
10897else $as_nop
10898  xorg_cv_cc_flag_unused_command_line_argument=no
10899fi
10900rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10901fi
10902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10903printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10904	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10905	CFLAGS="$xorg_testset_save_CFLAGS"
10906fi
10907
10908found="no"
10909
10910	if test $found = "no" ; then
10911		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10912			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10913		fi
10914
10915		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10916			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10917		fi
10918
10919		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10920
10921		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10922printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10923		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10924		if eval test \${$cacheid+y}
10925then :
10926  printf %s "(cached) " >&6
10927else $as_nop
10928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10929/* end confdefs.h.  */
10930int i;
10931int
10932main (void)
10933{
10934
10935  ;
10936  return 0;
10937}
10938_ACEOF
10939if ac_fn_c_try_link "$LINENO"
10940then :
10941  eval $cacheid=yes
10942else $as_nop
10943  eval $cacheid=no
10944fi
10945rm -f core conftest.err conftest.$ac_objext conftest.beam \
10946    conftest$ac_exeext conftest.$ac_ext
10947fi
10948
10949
10950		CFLAGS="$xorg_testset_save_CFLAGS"
10951
10952		eval supported=\$$cacheid
10953		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10954printf "%s\n" "$supported" >&6; }
10955		if test "$supported" = "yes" ; then
10956			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10957			found="yes"
10958		fi
10959	fi
10960
10961
10962fi
10963
10964
10965
10966
10967
10968
10969
10970		CWARNFLAGS="$BASE_CFLAGS"
10971		if  test "x$GCC" = xyes ; then
10972		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10973		fi
10974
10975
10976
10977
10978
10979
10980
10981
10982# Check whether --enable-strict-compilation was given.
10983if test ${enable_strict_compilation+y}
10984then :
10985  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10986else $as_nop
10987  STRICT_COMPILE=no
10988fi
10989
10990
10991
10992
10993
10994
10995STRICT_CFLAGS=""
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009xorg_testset_save_CFLAGS="$CFLAGS"
11010
11011if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11012	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11013	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11014printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11015if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11016then :
11017  printf %s "(cached) " >&6
11018else $as_nop
11019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11020/* end confdefs.h.  */
11021int i;
11022_ACEOF
11023if ac_fn_c_try_compile "$LINENO"
11024then :
11025  xorg_cv_cc_flag_unknown_warning_option=yes
11026else $as_nop
11027  xorg_cv_cc_flag_unknown_warning_option=no
11028fi
11029rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11030fi
11031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11032printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11033	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11034	CFLAGS="$xorg_testset_save_CFLAGS"
11035fi
11036
11037if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11038	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11039		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11040	fi
11041	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11042	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11043printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11044if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11045then :
11046  printf %s "(cached) " >&6
11047else $as_nop
11048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11049/* end confdefs.h.  */
11050int i;
11051_ACEOF
11052if ac_fn_c_try_compile "$LINENO"
11053then :
11054  xorg_cv_cc_flag_unused_command_line_argument=yes
11055else $as_nop
11056  xorg_cv_cc_flag_unused_command_line_argument=no
11057fi
11058rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11059fi
11060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11061printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11062	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11063	CFLAGS="$xorg_testset_save_CFLAGS"
11064fi
11065
11066found="no"
11067
11068	if test $found = "no" ; then
11069		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11070			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11071		fi
11072
11073		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11074			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11075		fi
11076
11077		CFLAGS="$CFLAGS -pedantic"
11078
11079		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11080printf %s "checking if $CC supports -pedantic... " >&6; }
11081		cacheid=xorg_cv_cc_flag__pedantic
11082		if eval test \${$cacheid+y}
11083then :
11084  printf %s "(cached) " >&6
11085else $as_nop
11086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11087/* end confdefs.h.  */
11088int i;
11089int
11090main (void)
11091{
11092
11093  ;
11094  return 0;
11095}
11096_ACEOF
11097if ac_fn_c_try_link "$LINENO"
11098then :
11099  eval $cacheid=yes
11100else $as_nop
11101  eval $cacheid=no
11102fi
11103rm -f core conftest.err conftest.$ac_objext conftest.beam \
11104    conftest$ac_exeext conftest.$ac_ext
11105fi
11106
11107
11108		CFLAGS="$xorg_testset_save_CFLAGS"
11109
11110		eval supported=\$$cacheid
11111		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11112printf "%s\n" "$supported" >&6; }
11113		if test "$supported" = "yes" ; then
11114			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11115			found="yes"
11116		fi
11117	fi
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133xorg_testset_save_CFLAGS="$CFLAGS"
11134
11135if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11136	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11137	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11138printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11139if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11140then :
11141  printf %s "(cached) " >&6
11142else $as_nop
11143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11144/* end confdefs.h.  */
11145int i;
11146_ACEOF
11147if ac_fn_c_try_compile "$LINENO"
11148then :
11149  xorg_cv_cc_flag_unknown_warning_option=yes
11150else $as_nop
11151  xorg_cv_cc_flag_unknown_warning_option=no
11152fi
11153rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11154fi
11155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11156printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11157	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11158	CFLAGS="$xorg_testset_save_CFLAGS"
11159fi
11160
11161if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11162	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11163		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11164	fi
11165	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11166	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11167printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11168if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11169then :
11170  printf %s "(cached) " >&6
11171else $as_nop
11172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11173/* end confdefs.h.  */
11174int i;
11175_ACEOF
11176if ac_fn_c_try_compile "$LINENO"
11177then :
11178  xorg_cv_cc_flag_unused_command_line_argument=yes
11179else $as_nop
11180  xorg_cv_cc_flag_unused_command_line_argument=no
11181fi
11182rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11183fi
11184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11185printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11186	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11187	CFLAGS="$xorg_testset_save_CFLAGS"
11188fi
11189
11190found="no"
11191
11192	if test $found = "no" ; then
11193		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11194			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11195		fi
11196
11197		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11198			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11199		fi
11200
11201		CFLAGS="$CFLAGS -Werror"
11202
11203		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11204printf %s "checking if $CC supports -Werror... " >&6; }
11205		cacheid=xorg_cv_cc_flag__Werror
11206		if eval test \${$cacheid+y}
11207then :
11208  printf %s "(cached) " >&6
11209else $as_nop
11210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11211/* end confdefs.h.  */
11212int i;
11213int
11214main (void)
11215{
11216
11217  ;
11218  return 0;
11219}
11220_ACEOF
11221if ac_fn_c_try_link "$LINENO"
11222then :
11223  eval $cacheid=yes
11224else $as_nop
11225  eval $cacheid=no
11226fi
11227rm -f core conftest.err conftest.$ac_objext conftest.beam \
11228    conftest$ac_exeext conftest.$ac_ext
11229fi
11230
11231
11232		CFLAGS="$xorg_testset_save_CFLAGS"
11233
11234		eval supported=\$$cacheid
11235		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11236printf "%s\n" "$supported" >&6; }
11237		if test "$supported" = "yes" ; then
11238			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11239			found="yes"
11240		fi
11241	fi
11242
11243	if test $found = "no" ; then
11244		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11245			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11246		fi
11247
11248		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11249			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11250		fi
11251
11252		CFLAGS="$CFLAGS -errwarn"
11253
11254		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11255printf %s "checking if $CC supports -errwarn... " >&6; }
11256		cacheid=xorg_cv_cc_flag__errwarn
11257		if eval test \${$cacheid+y}
11258then :
11259  printf %s "(cached) " >&6
11260else $as_nop
11261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11262/* end confdefs.h.  */
11263int i;
11264int
11265main (void)
11266{
11267
11268  ;
11269  return 0;
11270}
11271_ACEOF
11272if ac_fn_c_try_link "$LINENO"
11273then :
11274  eval $cacheid=yes
11275else $as_nop
11276  eval $cacheid=no
11277fi
11278rm -f core conftest.err conftest.$ac_objext conftest.beam \
11279    conftest$ac_exeext conftest.$ac_ext
11280fi
11281
11282
11283		CFLAGS="$xorg_testset_save_CFLAGS"
11284
11285		eval supported=\$$cacheid
11286		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11287printf "%s\n" "$supported" >&6; }
11288		if test "$supported" = "yes" ; then
11289			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11290			found="yes"
11291		fi
11292	fi
11293
11294
11295
11296# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11297# activate it with -Werror, so we add it here explicitly.
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311xorg_testset_save_CFLAGS="$CFLAGS"
11312
11313if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11314	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11315	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11316printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11317if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11318then :
11319  printf %s "(cached) " >&6
11320else $as_nop
11321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11322/* end confdefs.h.  */
11323int i;
11324_ACEOF
11325if ac_fn_c_try_compile "$LINENO"
11326then :
11327  xorg_cv_cc_flag_unknown_warning_option=yes
11328else $as_nop
11329  xorg_cv_cc_flag_unknown_warning_option=no
11330fi
11331rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11332fi
11333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11334printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11335	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11336	CFLAGS="$xorg_testset_save_CFLAGS"
11337fi
11338
11339if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11340	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11341		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11342	fi
11343	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11344	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11345printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11346if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11347then :
11348  printf %s "(cached) " >&6
11349else $as_nop
11350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11351/* end confdefs.h.  */
11352int i;
11353_ACEOF
11354if ac_fn_c_try_compile "$LINENO"
11355then :
11356  xorg_cv_cc_flag_unused_command_line_argument=yes
11357else $as_nop
11358  xorg_cv_cc_flag_unused_command_line_argument=no
11359fi
11360rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11361fi
11362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11363printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11364	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11365	CFLAGS="$xorg_testset_save_CFLAGS"
11366fi
11367
11368found="no"
11369
11370	if test $found = "no" ; then
11371		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11372			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11373		fi
11374
11375		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11376			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11377		fi
11378
11379		CFLAGS="$CFLAGS -Werror=attributes"
11380
11381		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11382printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11383		cacheid=xorg_cv_cc_flag__Werror_attributes
11384		if eval test \${$cacheid+y}
11385then :
11386  printf %s "(cached) " >&6
11387else $as_nop
11388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11389/* end confdefs.h.  */
11390int i;
11391int
11392main (void)
11393{
11394
11395  ;
11396  return 0;
11397}
11398_ACEOF
11399if ac_fn_c_try_link "$LINENO"
11400then :
11401  eval $cacheid=yes
11402else $as_nop
11403  eval $cacheid=no
11404fi
11405rm -f core conftest.err conftest.$ac_objext conftest.beam \
11406    conftest$ac_exeext conftest.$ac_ext
11407fi
11408
11409
11410		CFLAGS="$xorg_testset_save_CFLAGS"
11411
11412		eval supported=\$$cacheid
11413		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11414printf "%s\n" "$supported" >&6; }
11415		if test "$supported" = "yes" ; then
11416			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11417			found="yes"
11418		fi
11419	fi
11420
11421
11422
11423if test "x$STRICT_COMPILE" = "xyes"; then
11424    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11425    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11426fi
11427
11428
11429
11430
11431
11432
11433cat >>confdefs.h <<_ACEOF
11434#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11435_ACEOF
11436
11437	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11438	if test "x$PVM" = "x"; then
11439		PVM="0"
11440	fi
11441
11442printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11443
11444	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11445	if test "x$PVP" = "x"; then
11446		PVP="0"
11447	fi
11448
11449printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11450
11451
11452
11453CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11454mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11455|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11456touch \$(top_srcdir)/ChangeLog; \
11457echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11458
11459
11460
11461
11462macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11463INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11464mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11465|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11466touch \$(top_srcdir)/INSTALL; \
11467echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11468
11469
11470
11471
11472
11473
11474case $host_os in
11475    solaris*)
11476        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11477        # check for a man page file found in later versions that use
11478        # traditional section numbers instead
11479        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11480printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11481if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11482then :
11483  printf %s "(cached) " >&6
11484else $as_nop
11485  test "$cross_compiling" = yes &&
11486  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11487if test -r "/usr/share/man/man7/attributes.7"; then
11488  ac_cv_file__usr_share_man_man7_attributes_7=yes
11489else
11490  ac_cv_file__usr_share_man_man7_attributes_7=no
11491fi
11492fi
11493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11494printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11495if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11496then :
11497  SYSV_MAN_SECTIONS=false
11498else $as_nop
11499  SYSV_MAN_SECTIONS=true
11500fi
11501
11502        ;;
11503    *) SYSV_MAN_SECTIONS=false ;;
11504esac
11505
11506if test x$APP_MAN_SUFFIX = x    ; then
11507    APP_MAN_SUFFIX=1
11508fi
11509if test x$APP_MAN_DIR = x    ; then
11510    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11511fi
11512
11513if test x$LIB_MAN_SUFFIX = x    ; then
11514    LIB_MAN_SUFFIX=3
11515fi
11516if test x$LIB_MAN_DIR = x    ; then
11517    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11518fi
11519
11520if test x$FILE_MAN_SUFFIX = x    ; then
11521    case $SYSV_MAN_SECTIONS in
11522	true)				FILE_MAN_SUFFIX=4  ;;
11523	*)				FILE_MAN_SUFFIX=5  ;;
11524    esac
11525fi
11526if test x$FILE_MAN_DIR = x    ; then
11527    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11528fi
11529
11530if test x$MISC_MAN_SUFFIX = x    ; then
11531    case $SYSV_MAN_SECTIONS in
11532	true)				MISC_MAN_SUFFIX=5  ;;
11533	*)				MISC_MAN_SUFFIX=7  ;;
11534    esac
11535fi
11536if test x$MISC_MAN_DIR = x    ; then
11537    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11538fi
11539
11540if test x$DRIVER_MAN_SUFFIX = x    ; then
11541    case $SYSV_MAN_SECTIONS in
11542	true)				DRIVER_MAN_SUFFIX=7  ;;
11543	*)				DRIVER_MAN_SUFFIX=4  ;;
11544    esac
11545fi
11546if test x$DRIVER_MAN_DIR = x    ; then
11547    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11548fi
11549
11550if test x$ADMIN_MAN_SUFFIX = x    ; then
11551    case $SYSV_MAN_SECTIONS in
11552	true)				ADMIN_MAN_SUFFIX=1m ;;
11553	*)				ADMIN_MAN_SUFFIX=8  ;;
11554    esac
11555fi
11556if test x$ADMIN_MAN_DIR = x    ; then
11557    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11558fi
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574XORG_MAN_PAGE="X Version 11"
11575
11576MAN_SUBSTS="\
11577	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11578	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11579	-e 's|__xservername__|Xorg|g' \
11580	-e 's|__xconfigfile__|xorg.conf|g' \
11581	-e 's|__projectroot__|\$(prefix)|g' \
11582	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11583	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11584	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11585	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11586	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11587	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11588	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11589
11590
11591
11592# Check whether --enable-silent-rules was given.
11593if test ${enable_silent_rules+y}
11594then :
11595  enableval=$enable_silent_rules;
11596fi
11597
11598case $enable_silent_rules in # (((
11599  yes) AM_DEFAULT_VERBOSITY=0;;
11600   no) AM_DEFAULT_VERBOSITY=1;;
11601    *) AM_DEFAULT_VERBOSITY=0;;
11602esac
11603am_make=${MAKE-make}
11604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11605printf %s "checking whether $am_make supports nested variables... " >&6; }
11606if test ${am_cv_make_support_nested_variables+y}
11607then :
11608  printf %s "(cached) " >&6
11609else $as_nop
11610  if printf "%s\n" 'TRUE=$(BAR$(V))
11611BAR0=false
11612BAR1=true
11613V=1
11614am__doit:
11615	@$(TRUE)
11616.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11617  am_cv_make_support_nested_variables=yes
11618else
11619  am_cv_make_support_nested_variables=no
11620fi
11621fi
11622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11623printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11624if test $am_cv_make_support_nested_variables = yes; then
11625    AM_V='$(V)'
11626  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11627else
11628  AM_V=$AM_DEFAULT_VERBOSITY
11629  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11630fi
11631AM_BACKSLASH='\'
11632
11633
11634
11635
11636
11637
11638
11639# Check whether --with-lint was given.
11640if test ${with_lint+y}
11641then :
11642  withval=$with_lint; use_lint=$withval
11643else $as_nop
11644  use_lint=no
11645fi
11646
11647
11648# Obtain platform specific info like program name and options
11649# The lint program on FreeBSD and NetBSD is different from the one on Solaris
11650case $host_os in
11651  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
11652	lint_name=splint
11653	lint_options="-badflag"
11654	;;
11655  *freebsd* | *netbsd*)
11656	lint_name=lint
11657	lint_options="-u -b"
11658	;;
11659  *solaris*)
11660	lint_name=lint
11661	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
11662	;;
11663esac
11664
11665# Test for the presence of the program (either guessed by the code or spelled out by the user)
11666if test "x$use_lint" = x"yes" ; then
11667   # Extract the first word of "$lint_name", so it can be a program name with args.
11668set dummy $lint_name; ac_word=$2
11669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11670printf %s "checking for $ac_word... " >&6; }
11671if test ${ac_cv_path_LINT+y}
11672then :
11673  printf %s "(cached) " >&6
11674else $as_nop
11675  case $LINT in
11676  [\\/]* | ?:[\\/]*)
11677  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
11678  ;;
11679  *)
11680  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11681for as_dir in $PATH
11682do
11683  IFS=$as_save_IFS
11684  case $as_dir in #(((
11685    '') as_dir=./ ;;
11686    */) ;;
11687    *) as_dir=$as_dir/ ;;
11688  esac
11689    for ac_exec_ext in '' $ac_executable_extensions; do
11690  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11691    ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
11692    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11693    break 2
11694  fi
11695done
11696  done
11697IFS=$as_save_IFS
11698
11699  ;;
11700esac
11701fi
11702LINT=$ac_cv_path_LINT
11703if test -n "$LINT"; then
11704  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
11705printf "%s\n" "$LINT" >&6; }
11706else
11707  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708printf "%s\n" "no" >&6; }
11709fi
11710
11711
11712   if test "x$LINT" = "x"; then
11713        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
11714   fi
11715elif test "x$use_lint" = x"no" ; then
11716   if test "x$LINT" != "x"; then
11717      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
11718printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
11719   fi
11720else
11721   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
11722fi
11723
11724# User supplied flags override default flags
11725if test "x$LINT_FLAGS" != "x"; then
11726   lint_options=$LINT_FLAGS
11727fi
11728
11729LINT_FLAGS=$lint_options
11730
11731 if test "x$LINT" != x; then
11732  LINT_TRUE=
11733  LINT_FALSE='#'
11734else
11735  LINT_TRUE='#'
11736  LINT_FALSE=
11737fi
11738
11739
11740
11741
11742# Checks for header files.
11743ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default"
11744if test "x$ac_cv_header_lastlog_h" = xyes
11745then :
11746  printf "%s\n" "#define HAVE_LASTLOG_H 1" >>confdefs.h
11747
11748fi
11749ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
11750if test "x$ac_cv_header_pwd_h" = xyes
11751then :
11752  printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
11753
11754fi
11755ac_fn_c_check_header_compile "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
11756if test "x$ac_cv_header_utmp_h" = xyes
11757then :
11758  printf "%s\n" "#define HAVE_UTMP_H 1" >>confdefs.h
11759
11760fi
11761ac_fn_c_check_header_compile "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
11762if test "x$ac_cv_header_utmpx_h" = xyes
11763then :
11764  printf "%s\n" "#define HAVE_UTMPX_H 1" >>confdefs.h
11765
11766fi
11767ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
11768if test "x$ac_cv_header_sys_param_h" = xyes
11769then :
11770  printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
11771
11772fi
11773
11774
11775# Checks for typedefs, structures, and compiler characteristics.
11776ac_fn_c_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "
11777	#include <sys/types.h>
11778	#include <utmp.h>
11779
11780"
11781if test "x$ac_cv_member_struct_utmp_ut_host" = xyes
11782then :
11783
11784printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_HOST 1" >>confdefs.h
11785
11786
11787fi
11788ac_fn_c_check_member "$LINENO" "struct utmp" "ut_id" "ac_cv_member_struct_utmp_ut_id" "
11789	#include <sys/types.h>
11790	#include <utmp.h>
11791
11792"
11793if test "x$ac_cv_member_struct_utmp_ut_id" = xyes
11794then :
11795
11796printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_ID 1" >>confdefs.h
11797
11798
11799fi
11800ac_fn_c_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
11801	#include <sys/types.h>
11802	#include <utmp.h>
11803
11804"
11805if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes
11806then :
11807
11808printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_PID 1" >>confdefs.h
11809
11810
11811fi
11812ac_fn_c_check_member "$LINENO" "struct utmp" "ut_type" "ac_cv_member_struct_utmp_ut_type" "
11813	#include <sys/types.h>
11814	#include <utmp.h>
11815
11816"
11817if test "x$ac_cv_member_struct_utmp_ut_type" = xyes
11818then :
11819
11820printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_TYPE 1" >>confdefs.h
11821
11822
11823fi
11824
11825ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_syslen" "ac_cv_member_struct_utmpx_ut_syslen" "#include <utmpx.h>
11826"
11827if test "x$ac_cv_member_struct_utmpx_ut_syslen" = xyes
11828then :
11829
11830printf "%s\n" "#define HAVE_STRUCT_UTMPX_UT_SYSLEN 1" >>confdefs.h
11831
11832
11833fi
11834
11835ac_fn_c_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" "
11836	#include <sys/types.h>
11837	#ifdef HAVE_UTMP_H
11838	#include <utmp.h>
11839	#endif
11840	#ifdef HAVE_LASTLOG_H
11841	#include <lastlog.h>
11842	#endif
11843
11844"
11845if test "x$ac_cv_type_struct_lastlog" = xyes
11846then :
11847
11848printf "%s\n" "#define HAVE_STRUCT_LASTLOG 1" >>confdefs.h
11849
11850
11851fi
11852
11853
11854# Checks for library functions.
11855ac_fn_c_check_func "$LINENO" "pututline" "ac_cv_func_pututline"
11856if test "x$ac_cv_func_pututline" = xyes
11857then :
11858  printf "%s\n" "#define HAVE_PUTUTLINE 1" >>confdefs.h
11859
11860fi
11861ac_fn_c_check_func "$LINENO" "updwtmpx" "ac_cv_func_updwtmpx"
11862if test "x$ac_cv_func_updwtmpx" = xyes
11863then :
11864  printf "%s\n" "#define HAVE_UPDWTMPX 1" >>confdefs.h
11865
11866fi
11867ac_fn_c_check_func "$LINENO" "utmpxname" "ac_cv_func_utmpxname"
11868if test "x$ac_cv_func_utmpxname" = xyes
11869then :
11870  printf "%s\n" "#define HAVE_UTMPXNAME 1" >>confdefs.h
11871
11872fi
11873
11874
11875# Obtain compiler/linker options for dependencies
11876
11877pkg_failed=no
11878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SESSREG" >&5
11879printf %s "checking for SESSREG... " >&6; }
11880
11881if test -n "$SESSREG_CFLAGS"; then
11882    pkg_cv_SESSREG_CFLAGS="$SESSREG_CFLAGS"
11883 elif test -n "$PKG_CONFIG"; then
11884    if test -n "$PKG_CONFIG" && \
11885    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25\""; } >&5
11886  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25") 2>&5
11887  ac_status=$?
11888  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11889  test $ac_status = 0; }; then
11890  pkg_cv_SESSREG_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.25" 2>/dev/null`
11891		      test "x$?" != "x0" && pkg_failed=yes
11892else
11893  pkg_failed=yes
11894fi
11895 else
11896    pkg_failed=untried
11897fi
11898if test -n "$SESSREG_LIBS"; then
11899    pkg_cv_SESSREG_LIBS="$SESSREG_LIBS"
11900 elif test -n "$PKG_CONFIG"; then
11901    if test -n "$PKG_CONFIG" && \
11902    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25\""; } >&5
11903  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25") 2>&5
11904  ac_status=$?
11905  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11906  test $ac_status = 0; }; then
11907  pkg_cv_SESSREG_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.25" 2>/dev/null`
11908		      test "x$?" != "x0" && pkg_failed=yes
11909else
11910  pkg_failed=yes
11911fi
11912 else
11913    pkg_failed=untried
11914fi
11915
11916
11917
11918if test $pkg_failed = yes; then
11919   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920printf "%s\n" "no" >&6; }
11921
11922if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11923        _pkg_short_errors_supported=yes
11924else
11925        _pkg_short_errors_supported=no
11926fi
11927        if test $_pkg_short_errors_supported = yes; then
11928	        SESSREG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.25" 2>&1`
11929        else
11930	        SESSREG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.25" 2>&1`
11931        fi
11932	# Put the nasty error message in config.log where it belongs
11933	echo "$SESSREG_PKG_ERRORS" >&5
11934
11935	as_fn_error $? "Package requirements (xproto >= 7.0.25) were not met:
11936
11937$SESSREG_PKG_ERRORS
11938
11939Consider adjusting the PKG_CONFIG_PATH environment variable if you
11940installed software in a non-standard prefix.
11941
11942Alternatively, you may set the environment variables SESSREG_CFLAGS
11943and SESSREG_LIBS to avoid the need to call pkg-config.
11944See the pkg-config man page for more details." "$LINENO" 5
11945elif test $pkg_failed = untried; then
11946     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11947printf "%s\n" "no" >&6; }
11948	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11949printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11950as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11951is in your PATH or set the PKG_CONFIG environment variable to the full
11952path to pkg-config.
11953
11954Alternatively, you may set the environment variables SESSREG_CFLAGS
11955and SESSREG_LIBS to avoid the need to call pkg-config.
11956See the pkg-config man page for more details.
11957
11958To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11959See \`config.log' for more details" "$LINENO" 5; }
11960else
11961	SESSREG_CFLAGS=$pkg_cv_SESSREG_CFLAGS
11962	SESSREG_LIBS=$pkg_cv_SESSREG_LIBS
11963        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11964printf "%s\n" "yes" >&6; }
11965
11966fi
11967
11968ac_config_files="$ac_config_files Makefile man/Makefile"
11969
11970cat >confcache <<\_ACEOF
11971# This file is a shell script that caches the results of configure
11972# tests run on this system so they can be shared between configure
11973# scripts and configure runs, see configure's option --config-cache.
11974# It is not useful on other systems.  If it contains results you don't
11975# want to keep, you may remove or edit it.
11976#
11977# config.status only pays attention to the cache file if you give it
11978# the --recheck option to rerun configure.
11979#
11980# `ac_cv_env_foo' variables (set or unset) will be overridden when
11981# loading this file, other *unset* `ac_cv_foo' will be assigned the
11982# following values.
11983
11984_ACEOF
11985
11986# The following way of writing the cache mishandles newlines in values,
11987# but we know of no workaround that is simple, portable, and efficient.
11988# So, we kill variables containing newlines.
11989# Ultrix sh set writes to stderr and can't be redirected directly,
11990# and sets the high bit in the cache file unless we assign to the vars.
11991(
11992  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11993    eval ac_val=\$$ac_var
11994    case $ac_val in #(
11995    *${as_nl}*)
11996      case $ac_var in #(
11997      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11998printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11999      esac
12000      case $ac_var in #(
12001      _ | IFS | as_nl) ;; #(
12002      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12003      *) { eval $ac_var=; unset $ac_var;} ;;
12004      esac ;;
12005    esac
12006  done
12007
12008  (set) 2>&1 |
12009    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12010    *${as_nl}ac_space=\ *)
12011      # `set' does not quote correctly, so add quotes: double-quote
12012      # substitution turns \\\\ into \\, and sed turns \\ into \.
12013      sed -n \
12014	"s/'/'\\\\''/g;
12015	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12016      ;; #(
12017    *)
12018      # `set' quotes correctly as required by POSIX, so do not add quotes.
12019      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12020      ;;
12021    esac |
12022    sort
12023) |
12024  sed '
12025     /^ac_cv_env_/b end
12026     t clear
12027     :clear
12028     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12029     t end
12030     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12031     :end' >>confcache
12032if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12033  if test -w "$cache_file"; then
12034    if test "x$cache_file" != "x/dev/null"; then
12035      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12036printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12037      if test ! -f "$cache_file" || test -h "$cache_file"; then
12038	cat confcache >"$cache_file"
12039      else
12040        case $cache_file in #(
12041        */* | ?:*)
12042	  mv -f confcache "$cache_file"$$ &&
12043	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12044        *)
12045	  mv -f confcache "$cache_file" ;;
12046	esac
12047      fi
12048    fi
12049  else
12050    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12051printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12052  fi
12053fi
12054rm -f confcache
12055
12056test "x$prefix" = xNONE && prefix=$ac_default_prefix
12057# Let make expand exec_prefix.
12058test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12059
12060DEFS=-DHAVE_CONFIG_H
12061
12062ac_libobjs=
12063ac_ltlibobjs=
12064U=
12065for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12066  # 1. Remove the extension, and $U if already installed.
12067  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12068  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12069  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12070  #    will be set to the directory where LIBOBJS objects are built.
12071  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12072  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12073done
12074LIBOBJS=$ac_libobjs
12075
12076LTLIBOBJS=$ac_ltlibobjs
12077
12078
12079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12080printf %s "checking that generated files are newer than configure... " >&6; }
12081   if test -n "$am_sleep_pid"; then
12082     # Hide warnings about reused PIDs.
12083     wait $am_sleep_pid 2>/dev/null
12084   fi
12085   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
12086printf "%s\n" "done" >&6; }
12087if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12088  as_fn_error $? "conditional \"AMDEP\" was never defined.
12089Usually this means the macro was only invoked conditionally." "$LINENO" 5
12090fi
12091if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12092  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12093Usually this means the macro was only invoked conditionally." "$LINENO" 5
12094fi
12095 if test -n "$EXEEXT"; then
12096  am__EXEEXT_TRUE=
12097  am__EXEEXT_FALSE='#'
12098else
12099  am__EXEEXT_TRUE='#'
12100  am__EXEEXT_FALSE=
12101fi
12102
12103if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
12104  as_fn_error $? "conditional \"LINT\" was never defined.
12105Usually this means the macro was only invoked conditionally." "$LINENO" 5
12106fi
12107
12108: "${CONFIG_STATUS=./config.status}"
12109ac_write_fail=0
12110ac_clean_files_save=$ac_clean_files
12111ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12113printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12114as_write_fail=0
12115cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12116#! $SHELL
12117# Generated by $as_me.
12118# Run this file to recreate the current configuration.
12119# Compiler output produced by configure, useful for debugging
12120# configure, is in config.log if it exists.
12121
12122debug=false
12123ac_cs_recheck=false
12124ac_cs_silent=false
12125
12126SHELL=\${CONFIG_SHELL-$SHELL}
12127export SHELL
12128_ASEOF
12129cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12130## -------------------- ##
12131## M4sh Initialization. ##
12132## -------------------- ##
12133
12134# Be more Bourne compatible
12135DUALCASE=1; export DUALCASE # for MKS sh
12136as_nop=:
12137if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12138then :
12139  emulate sh
12140  NULLCMD=:
12141  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12142  # is contrary to our usage.  Disable this feature.
12143  alias -g '${1+"$@"}'='"$@"'
12144  setopt NO_GLOB_SUBST
12145else $as_nop
12146  case `(set -o) 2>/dev/null` in #(
12147  *posix*) :
12148    set -o posix ;; #(
12149  *) :
12150     ;;
12151esac
12152fi
12153
12154
12155
12156# Reset variables that may have inherited troublesome values from
12157# the environment.
12158
12159# IFS needs to be set, to space, tab, and newline, in precisely that order.
12160# (If _AS_PATH_WALK were called with IFS unset, it would have the
12161# side effect of setting IFS to empty, thus disabling word splitting.)
12162# Quoting is to prevent editors from complaining about space-tab.
12163as_nl='
12164'
12165export as_nl
12166IFS=" ""	$as_nl"
12167
12168PS1='$ '
12169PS2='> '
12170PS4='+ '
12171
12172# Ensure predictable behavior from utilities with locale-dependent output.
12173LC_ALL=C
12174export LC_ALL
12175LANGUAGE=C
12176export LANGUAGE
12177
12178# We cannot yet rely on "unset" to work, but we need these variables
12179# to be unset--not just set to an empty or harmless value--now, to
12180# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
12181# also avoids known problems related to "unset" and subshell syntax
12182# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12183for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12184do eval test \${$as_var+y} \
12185  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12186done
12187
12188# Ensure that fds 0, 1, and 2 are open.
12189if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12190if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12191if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
12192
12193# The user is always right.
12194if ${PATH_SEPARATOR+false} :; then
12195  PATH_SEPARATOR=:
12196  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12197    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12198      PATH_SEPARATOR=';'
12199  }
12200fi
12201
12202
12203# Find who we are.  Look in the path if we contain no directory separator.
12204as_myself=
12205case $0 in #((
12206  *[\\/]* ) as_myself=$0 ;;
12207  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12208for as_dir in $PATH
12209do
12210  IFS=$as_save_IFS
12211  case $as_dir in #(((
12212    '') as_dir=./ ;;
12213    */) ;;
12214    *) as_dir=$as_dir/ ;;
12215  esac
12216    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12217  done
12218IFS=$as_save_IFS
12219
12220     ;;
12221esac
12222# We did not find ourselves, most probably we were run as `sh COMMAND'
12223# in which case we are not to be found in the path.
12224if test "x$as_myself" = x; then
12225  as_myself=$0
12226fi
12227if test ! -f "$as_myself"; then
12228  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12229  exit 1
12230fi
12231
12232
12233
12234# as_fn_error STATUS ERROR [LINENO LOG_FD]
12235# ----------------------------------------
12236# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12237# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12238# script with STATUS, using 1 if that was 0.
12239as_fn_error ()
12240{
12241  as_status=$1; test $as_status -eq 0 && as_status=1
12242  if test "$4"; then
12243    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12244    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12245  fi
12246  printf "%s\n" "$as_me: error: $2" >&2
12247  as_fn_exit $as_status
12248} # as_fn_error
12249
12250
12251
12252# as_fn_set_status STATUS
12253# -----------------------
12254# Set $? to STATUS, without forking.
12255as_fn_set_status ()
12256{
12257  return $1
12258} # as_fn_set_status
12259
12260# as_fn_exit STATUS
12261# -----------------
12262# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12263as_fn_exit ()
12264{
12265  set +e
12266  as_fn_set_status $1
12267  exit $1
12268} # as_fn_exit
12269
12270# as_fn_unset VAR
12271# ---------------
12272# Portably unset VAR.
12273as_fn_unset ()
12274{
12275  { eval $1=; unset $1;}
12276}
12277as_unset=as_fn_unset
12278
12279# as_fn_append VAR VALUE
12280# ----------------------
12281# Append the text in VALUE to the end of the definition contained in VAR. Take
12282# advantage of any shell optimizations that allow amortized linear growth over
12283# repeated appends, instead of the typical quadratic growth present in naive
12284# implementations.
12285if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12286then :
12287  eval 'as_fn_append ()
12288  {
12289    eval $1+=\$2
12290  }'
12291else $as_nop
12292  as_fn_append ()
12293  {
12294    eval $1=\$$1\$2
12295  }
12296fi # as_fn_append
12297
12298# as_fn_arith ARG...
12299# ------------------
12300# Perform arithmetic evaluation on the ARGs, and store the result in the
12301# global $as_val. Take advantage of shells that can avoid forks. The arguments
12302# must be portable across $(()) and expr.
12303if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12304then :
12305  eval 'as_fn_arith ()
12306  {
12307    as_val=$(( $* ))
12308  }'
12309else $as_nop
12310  as_fn_arith ()
12311  {
12312    as_val=`expr "$@" || test $? -eq 1`
12313  }
12314fi # as_fn_arith
12315
12316
12317if expr a : '\(a\)' >/dev/null 2>&1 &&
12318   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12319  as_expr=expr
12320else
12321  as_expr=false
12322fi
12323
12324if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12325  as_basename=basename
12326else
12327  as_basename=false
12328fi
12329
12330if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12331  as_dirname=dirname
12332else
12333  as_dirname=false
12334fi
12335
12336as_me=`$as_basename -- "$0" ||
12337$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12338	 X"$0" : 'X\(//\)$' \| \
12339	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12340printf "%s\n" X/"$0" |
12341    sed '/^.*\/\([^/][^/]*\)\/*$/{
12342	    s//\1/
12343	    q
12344	  }
12345	  /^X\/\(\/\/\)$/{
12346	    s//\1/
12347	    q
12348	  }
12349	  /^X\/\(\/\).*/{
12350	    s//\1/
12351	    q
12352	  }
12353	  s/.*/./; q'`
12354
12355# Avoid depending upon Character Ranges.
12356as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12357as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12358as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12359as_cr_digits='0123456789'
12360as_cr_alnum=$as_cr_Letters$as_cr_digits
12361
12362
12363# Determine whether it's possible to make 'echo' print without a newline.
12364# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12365# for compatibility with existing Makefiles.
12366ECHO_C= ECHO_N= ECHO_T=
12367case `echo -n x` in #(((((
12368-n*)
12369  case `echo 'xy\c'` in
12370  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12371  xy)  ECHO_C='\c';;
12372  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12373       ECHO_T='	';;
12374  esac;;
12375*)
12376  ECHO_N='-n';;
12377esac
12378
12379# For backward compatibility with old third-party macros, we provide
12380# the shell variables $as_echo and $as_echo_n.  New code should use
12381# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12382as_echo='printf %s\n'
12383as_echo_n='printf %s'
12384
12385rm -f conf$$ conf$$.exe conf$$.file
12386if test -d conf$$.dir; then
12387  rm -f conf$$.dir/conf$$.file
12388else
12389  rm -f conf$$.dir
12390  mkdir conf$$.dir 2>/dev/null
12391fi
12392if (echo >conf$$.file) 2>/dev/null; then
12393  if ln -s conf$$.file conf$$ 2>/dev/null; then
12394    as_ln_s='ln -s'
12395    # ... but there are two gotchas:
12396    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12397    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12398    # In both cases, we have to default to `cp -pR'.
12399    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12400      as_ln_s='cp -pR'
12401  elif ln conf$$.file conf$$ 2>/dev/null; then
12402    as_ln_s=ln
12403  else
12404    as_ln_s='cp -pR'
12405  fi
12406else
12407  as_ln_s='cp -pR'
12408fi
12409rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12410rmdir conf$$.dir 2>/dev/null
12411
12412
12413# as_fn_mkdir_p
12414# -------------
12415# Create "$as_dir" as a directory, including parents if necessary.
12416as_fn_mkdir_p ()
12417{
12418
12419  case $as_dir in #(
12420  -*) as_dir=./$as_dir;;
12421  esac
12422  test -d "$as_dir" || eval $as_mkdir_p || {
12423    as_dirs=
12424    while :; do
12425      case $as_dir in #(
12426      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12427      *) as_qdir=$as_dir;;
12428      esac
12429      as_dirs="'$as_qdir' $as_dirs"
12430      as_dir=`$as_dirname -- "$as_dir" ||
12431$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12432	 X"$as_dir" : 'X\(//\)[^/]' \| \
12433	 X"$as_dir" : 'X\(//\)$' \| \
12434	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12435printf "%s\n" X"$as_dir" |
12436    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12437	    s//\1/
12438	    q
12439	  }
12440	  /^X\(\/\/\)[^/].*/{
12441	    s//\1/
12442	    q
12443	  }
12444	  /^X\(\/\/\)$/{
12445	    s//\1/
12446	    q
12447	  }
12448	  /^X\(\/\).*/{
12449	    s//\1/
12450	    q
12451	  }
12452	  s/.*/./; q'`
12453      test -d "$as_dir" && break
12454    done
12455    test -z "$as_dirs" || eval "mkdir $as_dirs"
12456  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12457
12458
12459} # as_fn_mkdir_p
12460if mkdir -p . 2>/dev/null; then
12461  as_mkdir_p='mkdir -p "$as_dir"'
12462else
12463  test -d ./-p && rmdir ./-p
12464  as_mkdir_p=false
12465fi
12466
12467
12468# as_fn_executable_p FILE
12469# -----------------------
12470# Test if FILE is an executable regular file.
12471as_fn_executable_p ()
12472{
12473  test -f "$1" && test -x "$1"
12474} # as_fn_executable_p
12475as_test_x='test -x'
12476as_executable_p=as_fn_executable_p
12477
12478# Sed expression to map a string onto a valid CPP name.
12479as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12480
12481# Sed expression to map a string onto a valid variable name.
12482as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12483
12484
12485exec 6>&1
12486## ----------------------------------- ##
12487## Main body of $CONFIG_STATUS script. ##
12488## ----------------------------------- ##
12489_ASEOF
12490test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12491
12492cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12493# Save the log message, to keep $0 and so on meaningful, and to
12494# report actual input values of CONFIG_FILES etc. instead of their
12495# values after options handling.
12496ac_log="
12497This file was extended by sessreg $as_me 1.1.3, which was
12498generated by GNU Autoconf 2.71.  Invocation command line was
12499
12500  CONFIG_FILES    = $CONFIG_FILES
12501  CONFIG_HEADERS  = $CONFIG_HEADERS
12502  CONFIG_LINKS    = $CONFIG_LINKS
12503  CONFIG_COMMANDS = $CONFIG_COMMANDS
12504  $ $0 $@
12505
12506on `(hostname || uname -n) 2>/dev/null | sed 1q`
12507"
12508
12509_ACEOF
12510
12511case $ac_config_files in *"
12512"*) set x $ac_config_files; shift; ac_config_files=$*;;
12513esac
12514
12515case $ac_config_headers in *"
12516"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12517esac
12518
12519
12520cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12521# Files that config.status was made for.
12522config_files="$ac_config_files"
12523config_headers="$ac_config_headers"
12524config_commands="$ac_config_commands"
12525
12526_ACEOF
12527
12528cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12529ac_cs_usage="\
12530\`$as_me' instantiates files and other configuration actions
12531from templates according to the current configuration.  Unless the files
12532and actions are specified as TAGs, all are instantiated by default.
12533
12534Usage: $0 [OPTION]... [TAG]...
12535
12536  -h, --help       print this help, then exit
12537  -V, --version    print version number and configuration settings, then exit
12538      --config     print configuration, then exit
12539  -q, --quiet, --silent
12540                   do not print progress messages
12541  -d, --debug      don't remove temporary files
12542      --recheck    update $as_me by reconfiguring in the same conditions
12543      --file=FILE[:TEMPLATE]
12544                   instantiate the configuration file FILE
12545      --header=FILE[:TEMPLATE]
12546                   instantiate the configuration header FILE
12547
12548Configuration files:
12549$config_files
12550
12551Configuration headers:
12552$config_headers
12553
12554Configuration commands:
12555$config_commands
12556
12557Report bugs to <https://gitlab.freedesktop.org/xorg/app/sessreg/-/issues>."
12558
12559_ACEOF
12560ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12561ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12562cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12563ac_cs_config='$ac_cs_config_escaped'
12564ac_cs_version="\\
12565sessreg config.status 1.1.3
12566configured by $0, generated by GNU Autoconf 2.71,
12567  with options \\"\$ac_cs_config\\"
12568
12569Copyright (C) 2021 Free Software Foundation, Inc.
12570This config.status script is free software; the Free Software Foundation
12571gives unlimited permission to copy, distribute and modify it."
12572
12573ac_pwd='$ac_pwd'
12574srcdir='$srcdir'
12575INSTALL='$INSTALL'
12576MKDIR_P='$MKDIR_P'
12577AWK='$AWK'
12578test -n "\$AWK" || AWK=awk
12579_ACEOF
12580
12581cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12582# The default lists apply if the user does not specify any file.
12583ac_need_defaults=:
12584while test $# != 0
12585do
12586  case $1 in
12587  --*=?*)
12588    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12589    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12590    ac_shift=:
12591    ;;
12592  --*=)
12593    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12594    ac_optarg=
12595    ac_shift=:
12596    ;;
12597  *)
12598    ac_option=$1
12599    ac_optarg=$2
12600    ac_shift=shift
12601    ;;
12602  esac
12603
12604  case $ac_option in
12605  # Handling of the options.
12606  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12607    ac_cs_recheck=: ;;
12608  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12609    printf "%s\n" "$ac_cs_version"; exit ;;
12610  --config | --confi | --conf | --con | --co | --c )
12611    printf "%s\n" "$ac_cs_config"; exit ;;
12612  --debug | --debu | --deb | --de | --d | -d )
12613    debug=: ;;
12614  --file | --fil | --fi | --f )
12615    $ac_shift
12616    case $ac_optarg in
12617    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12618    '') as_fn_error $? "missing file argument" ;;
12619    esac
12620    as_fn_append CONFIG_FILES " '$ac_optarg'"
12621    ac_need_defaults=false;;
12622  --header | --heade | --head | --hea )
12623    $ac_shift
12624    case $ac_optarg in
12625    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12626    esac
12627    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12628    ac_need_defaults=false;;
12629  --he | --h)
12630    # Conflict between --help and --header
12631    as_fn_error $? "ambiguous option: \`$1'
12632Try \`$0 --help' for more information.";;
12633  --help | --hel | -h )
12634    printf "%s\n" "$ac_cs_usage"; exit ;;
12635  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12636  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12637    ac_cs_silent=: ;;
12638
12639  # This is an error.
12640  -*) as_fn_error $? "unrecognized option: \`$1'
12641Try \`$0 --help' for more information." ;;
12642
12643  *) as_fn_append ac_config_targets " $1"
12644     ac_need_defaults=false ;;
12645
12646  esac
12647  shift
12648done
12649
12650ac_configure_extra_args=
12651
12652if $ac_cs_silent; then
12653  exec 6>/dev/null
12654  ac_configure_extra_args="$ac_configure_extra_args --silent"
12655fi
12656
12657_ACEOF
12658cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12659if \$ac_cs_recheck; then
12660  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12661  shift
12662  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12663  CONFIG_SHELL='$SHELL'
12664  export CONFIG_SHELL
12665  exec "\$@"
12666fi
12667
12668_ACEOF
12669cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12670exec 5>>config.log
12671{
12672  echo
12673  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12674## Running $as_me. ##
12675_ASBOX
12676  printf "%s\n" "$ac_log"
12677} >&5
12678
12679_ACEOF
12680cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12681#
12682# INIT-COMMANDS
12683#
12684AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12685
12686_ACEOF
12687
12688cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12689
12690# Handling of arguments.
12691for ac_config_target in $ac_config_targets
12692do
12693  case $ac_config_target in
12694    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12695    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12696    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12697    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12698
12699  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12700  esac
12701done
12702
12703
12704# If the user did not use the arguments to specify the items to instantiate,
12705# then the envvar interface is used.  Set only those that are not.
12706# We use the long form for the default assignment because of an extremely
12707# bizarre bug on SunOS 4.1.3.
12708if $ac_need_defaults; then
12709  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12710  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12711  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12712fi
12713
12714# Have a temporary directory for convenience.  Make it in the build tree
12715# simply because there is no reason against having it here, and in addition,
12716# creating and moving files from /tmp can sometimes cause problems.
12717# Hook for its removal unless debugging.
12718# Note that there is a small window in which the directory will not be cleaned:
12719# after its creation but before its name has been assigned to `$tmp'.
12720$debug ||
12721{
12722  tmp= ac_tmp=
12723  trap 'exit_status=$?
12724  : "${ac_tmp:=$tmp}"
12725  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12726' 0
12727  trap 'as_fn_exit 1' 1 2 13 15
12728}
12729# Create a (secure) tmp directory for tmp files.
12730
12731{
12732  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12733  test -d "$tmp"
12734}  ||
12735{
12736  tmp=./conf$$-$RANDOM
12737  (umask 077 && mkdir "$tmp")
12738} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12739ac_tmp=$tmp
12740
12741# Set up the scripts for CONFIG_FILES section.
12742# No need to generate them if there are no CONFIG_FILES.
12743# This happens for instance with `./config.status config.h'.
12744if test -n "$CONFIG_FILES"; then
12745
12746
12747ac_cr=`echo X | tr X '\015'`
12748# On cygwin, bash can eat \r inside `` if the user requested igncr.
12749# But we know of no other shell where ac_cr would be empty at this
12750# point, so we can use a bashism as a fallback.
12751if test "x$ac_cr" = x; then
12752  eval ac_cr=\$\'\\r\'
12753fi
12754ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12755if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12756  ac_cs_awk_cr='\\r'
12757else
12758  ac_cs_awk_cr=$ac_cr
12759fi
12760
12761echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12762_ACEOF
12763
12764
12765{
12766  echo "cat >conf$$subs.awk <<_ACEOF" &&
12767  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12768  echo "_ACEOF"
12769} >conf$$subs.sh ||
12770  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12771ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12772ac_delim='%!_!# '
12773for ac_last_try in false false false false false :; do
12774  . ./conf$$subs.sh ||
12775    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12776
12777  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12778  if test $ac_delim_n = $ac_delim_num; then
12779    break
12780  elif $ac_last_try; then
12781    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12782  else
12783    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12784  fi
12785done
12786rm -f conf$$subs.sh
12787
12788cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12789cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12790_ACEOF
12791sed -n '
12792h
12793s/^/S["/; s/!.*/"]=/
12794p
12795g
12796s/^[^!]*!//
12797:repl
12798t repl
12799s/'"$ac_delim"'$//
12800t delim
12801:nl
12802h
12803s/\(.\{148\}\)..*/\1/
12804t more1
12805s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12806p
12807n
12808b repl
12809:more1
12810s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12811p
12812g
12813s/.\{148\}//
12814t nl
12815:delim
12816h
12817s/\(.\{148\}\)..*/\1/
12818t more2
12819s/["\\]/\\&/g; s/^/"/; s/$/"/
12820p
12821b
12822:more2
12823s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12824p
12825g
12826s/.\{148\}//
12827t delim
12828' <conf$$subs.awk | sed '
12829/^[^""]/{
12830  N
12831  s/\n//
12832}
12833' >>$CONFIG_STATUS || ac_write_fail=1
12834rm -f conf$$subs.awk
12835cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12836_ACAWK
12837cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12838  for (key in S) S_is_set[key] = 1
12839  FS = ""
12840
12841}
12842{
12843  line = $ 0
12844  nfields = split(line, field, "@")
12845  substed = 0
12846  len = length(field[1])
12847  for (i = 2; i < nfields; i++) {
12848    key = field[i]
12849    keylen = length(key)
12850    if (S_is_set[key]) {
12851      value = S[key]
12852      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12853      len += length(value) + length(field[++i])
12854      substed = 1
12855    } else
12856      len += 1 + keylen
12857  }
12858
12859  print line
12860}
12861
12862_ACAWK
12863_ACEOF
12864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12865if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12866  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12867else
12868  cat
12869fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12870  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12871_ACEOF
12872
12873# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12874# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12875# trailing colons and then remove the whole line if VPATH becomes empty
12876# (actually we leave an empty line to preserve line numbers).
12877if test "x$srcdir" = x.; then
12878  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12879h
12880s///
12881s/^/:/
12882s/[	 ]*$/:/
12883s/:\$(srcdir):/:/g
12884s/:\${srcdir}:/:/g
12885s/:@srcdir@:/:/g
12886s/^:*//
12887s/:*$//
12888x
12889s/\(=[	 ]*\).*/\1/
12890G
12891s/\n//
12892s/^[^=]*=[	 ]*$//
12893}'
12894fi
12895
12896cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12897fi # test -n "$CONFIG_FILES"
12898
12899# Set up the scripts for CONFIG_HEADERS section.
12900# No need to generate them if there are no CONFIG_HEADERS.
12901# This happens for instance with `./config.status Makefile'.
12902if test -n "$CONFIG_HEADERS"; then
12903cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12904BEGIN {
12905_ACEOF
12906
12907# Transform confdefs.h into an awk script `defines.awk', embedded as
12908# here-document in config.status, that substitutes the proper values into
12909# config.h.in to produce config.h.
12910
12911# Create a delimiter string that does not exist in confdefs.h, to ease
12912# handling of long lines.
12913ac_delim='%!_!# '
12914for ac_last_try in false false :; do
12915  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12916  if test -z "$ac_tt"; then
12917    break
12918  elif $ac_last_try; then
12919    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12920  else
12921    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12922  fi
12923done
12924
12925# For the awk script, D is an array of macro values keyed by name,
12926# likewise P contains macro parameters if any.  Preserve backslash
12927# newline sequences.
12928
12929ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12930sed -n '
12931s/.\{148\}/&'"$ac_delim"'/g
12932t rset
12933:rset
12934s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12935t def
12936d
12937:def
12938s/\\$//
12939t bsnl
12940s/["\\]/\\&/g
12941s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12942D["\1"]=" \3"/p
12943s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12944d
12945:bsnl
12946s/["\\]/\\&/g
12947s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12948D["\1"]=" \3\\\\\\n"\\/p
12949t cont
12950s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12951t cont
12952d
12953:cont
12954n
12955s/.\{148\}/&'"$ac_delim"'/g
12956t clear
12957:clear
12958s/\\$//
12959t bsnlc
12960s/["\\]/\\&/g; s/^/"/; s/$/"/p
12961d
12962:bsnlc
12963s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12964b cont
12965' <confdefs.h | sed '
12966s/'"$ac_delim"'/"\\\
12967"/g' >>$CONFIG_STATUS || ac_write_fail=1
12968
12969cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12970  for (key in D) D_is_set[key] = 1
12971  FS = ""
12972}
12973/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12974  line = \$ 0
12975  split(line, arg, " ")
12976  if (arg[1] == "#") {
12977    defundef = arg[2]
12978    mac1 = arg[3]
12979  } else {
12980    defundef = substr(arg[1], 2)
12981    mac1 = arg[2]
12982  }
12983  split(mac1, mac2, "(") #)
12984  macro = mac2[1]
12985  prefix = substr(line, 1, index(line, defundef) - 1)
12986  if (D_is_set[macro]) {
12987    # Preserve the white space surrounding the "#".
12988    print prefix "define", macro P[macro] D[macro]
12989    next
12990  } else {
12991    # Replace #undef with comments.  This is necessary, for example,
12992    # in the case of _POSIX_SOURCE, which is predefined and required
12993    # on some systems where configure will not decide to define it.
12994    if (defundef == "undef") {
12995      print "/*", prefix defundef, macro, "*/"
12996      next
12997    }
12998  }
12999}
13000{ print }
13001_ACAWK
13002_ACEOF
13003cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13004  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13005fi # test -n "$CONFIG_HEADERS"
13006
13007
13008eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13009shift
13010for ac_tag
13011do
13012  case $ac_tag in
13013  :[FHLC]) ac_mode=$ac_tag; continue;;
13014  esac
13015  case $ac_mode$ac_tag in
13016  :[FHL]*:*);;
13017  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13018  :[FH]-) ac_tag=-:-;;
13019  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13020  esac
13021  ac_save_IFS=$IFS
13022  IFS=:
13023  set x $ac_tag
13024  IFS=$ac_save_IFS
13025  shift
13026  ac_file=$1
13027  shift
13028
13029  case $ac_mode in
13030  :L) ac_source=$1;;
13031  :[FH])
13032    ac_file_inputs=
13033    for ac_f
13034    do
13035      case $ac_f in
13036      -) ac_f="$ac_tmp/stdin";;
13037      *) # Look for the file first in the build tree, then in the source tree
13038	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13039	 # because $ac_f cannot contain `:'.
13040	 test -f "$ac_f" ||
13041	   case $ac_f in
13042	   [\\/$]*) false;;
13043	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13044	   esac ||
13045	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13046      esac
13047      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13048      as_fn_append ac_file_inputs " '$ac_f'"
13049    done
13050
13051    # Let's still pretend it is `configure' which instantiates (i.e., don't
13052    # use $as_me), people would be surprised to read:
13053    #    /* config.h.  Generated by config.status.  */
13054    configure_input='Generated from '`
13055	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13056	`' by configure.'
13057    if test x"$ac_file" != x-; then
13058      configure_input="$ac_file.  $configure_input"
13059      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13060printf "%s\n" "$as_me: creating $ac_file" >&6;}
13061    fi
13062    # Neutralize special characters interpreted by sed in replacement strings.
13063    case $configure_input in #(
13064    *\&* | *\|* | *\\* )
13065       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13066       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13067    *) ac_sed_conf_input=$configure_input;;
13068    esac
13069
13070    case $ac_tag in
13071    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13072      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13073    esac
13074    ;;
13075  esac
13076
13077  ac_dir=`$as_dirname -- "$ac_file" ||
13078$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13079	 X"$ac_file" : 'X\(//\)[^/]' \| \
13080	 X"$ac_file" : 'X\(//\)$' \| \
13081	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13082printf "%s\n" X"$ac_file" |
13083    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13084	    s//\1/
13085	    q
13086	  }
13087	  /^X\(\/\/\)[^/].*/{
13088	    s//\1/
13089	    q
13090	  }
13091	  /^X\(\/\/\)$/{
13092	    s//\1/
13093	    q
13094	  }
13095	  /^X\(\/\).*/{
13096	    s//\1/
13097	    q
13098	  }
13099	  s/.*/./; q'`
13100  as_dir="$ac_dir"; as_fn_mkdir_p
13101  ac_builddir=.
13102
13103case "$ac_dir" in
13104.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13105*)
13106  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13107  # A ".." for each directory in $ac_dir_suffix.
13108  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13109  case $ac_top_builddir_sub in
13110  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13111  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13112  esac ;;
13113esac
13114ac_abs_top_builddir=$ac_pwd
13115ac_abs_builddir=$ac_pwd$ac_dir_suffix
13116# for backward compatibility:
13117ac_top_builddir=$ac_top_build_prefix
13118
13119case $srcdir in
13120  .)  # We are building in place.
13121    ac_srcdir=.
13122    ac_top_srcdir=$ac_top_builddir_sub
13123    ac_abs_top_srcdir=$ac_pwd ;;
13124  [\\/]* | ?:[\\/]* )  # Absolute name.
13125    ac_srcdir=$srcdir$ac_dir_suffix;
13126    ac_top_srcdir=$srcdir
13127    ac_abs_top_srcdir=$srcdir ;;
13128  *) # Relative name.
13129    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13130    ac_top_srcdir=$ac_top_build_prefix$srcdir
13131    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13132esac
13133ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13134
13135
13136  case $ac_mode in
13137  :F)
13138  #
13139  # CONFIG_FILE
13140  #
13141
13142  case $INSTALL in
13143  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13144  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13145  esac
13146  ac_MKDIR_P=$MKDIR_P
13147  case $MKDIR_P in
13148  [\\/$]* | ?:[\\/]* ) ;;
13149  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13150  esac
13151_ACEOF
13152
13153cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13154# If the template does not know about datarootdir, expand it.
13155# FIXME: This hack should be removed a few years after 2.60.
13156ac_datarootdir_hack=; ac_datarootdir_seen=
13157ac_sed_dataroot='
13158/datarootdir/ {
13159  p
13160  q
13161}
13162/@datadir@/p
13163/@docdir@/p
13164/@infodir@/p
13165/@localedir@/p
13166/@mandir@/p'
13167case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13168*datarootdir*) ac_datarootdir_seen=yes;;
13169*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13170  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13171printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13172_ACEOF
13173cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13174  ac_datarootdir_hack='
13175  s&@datadir@&$datadir&g
13176  s&@docdir@&$docdir&g
13177  s&@infodir@&$infodir&g
13178  s&@localedir@&$localedir&g
13179  s&@mandir@&$mandir&g
13180  s&\\\${datarootdir}&$datarootdir&g' ;;
13181esac
13182_ACEOF
13183
13184# Neutralize VPATH when `$srcdir' = `.'.
13185# Shell code in configure.ac might set extrasub.
13186# FIXME: do we really want to maintain this feature?
13187cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13188ac_sed_extra="$ac_vpsub
13189$extrasub
13190_ACEOF
13191cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13192:t
13193/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13194s|@configure_input@|$ac_sed_conf_input|;t t
13195s&@top_builddir@&$ac_top_builddir_sub&;t t
13196s&@top_build_prefix@&$ac_top_build_prefix&;t t
13197s&@srcdir@&$ac_srcdir&;t t
13198s&@abs_srcdir@&$ac_abs_srcdir&;t t
13199s&@top_srcdir@&$ac_top_srcdir&;t t
13200s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13201s&@builddir@&$ac_builddir&;t t
13202s&@abs_builddir@&$ac_abs_builddir&;t t
13203s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13204s&@INSTALL@&$ac_INSTALL&;t t
13205s&@MKDIR_P@&$ac_MKDIR_P&;t t
13206$ac_datarootdir_hack
13207"
13208eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13209  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13210
13211test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13212  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13213  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13214      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13215  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13216which seems to be undefined.  Please make sure it is defined" >&5
13217printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13218which seems to be undefined.  Please make sure it is defined" >&2;}
13219
13220  rm -f "$ac_tmp/stdin"
13221  case $ac_file in
13222  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13223  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13224  esac \
13225  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13226 ;;
13227  :H)
13228  #
13229  # CONFIG_HEADER
13230  #
13231  if test x"$ac_file" != x-; then
13232    {
13233      printf "%s\n" "/* $configure_input  */" >&1 \
13234      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13235    } >"$ac_tmp/config.h" \
13236      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13237    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13238      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13239printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13240    else
13241      rm -f "$ac_file"
13242      mv "$ac_tmp/config.h" "$ac_file" \
13243	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13244    fi
13245  else
13246    printf "%s\n" "/* $configure_input  */" >&1 \
13247      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13248      || as_fn_error $? "could not create -" "$LINENO" 5
13249  fi
13250# Compute "$ac_file"'s index in $config_headers.
13251_am_arg="$ac_file"
13252_am_stamp_count=1
13253for _am_header in $config_headers :; do
13254  case $_am_header in
13255    $_am_arg | $_am_arg:* )
13256      break ;;
13257    * )
13258      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13259  esac
13260done
13261echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13262$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13263	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13264	 X"$_am_arg" : 'X\(//\)$' \| \
13265	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13266printf "%s\n" X"$_am_arg" |
13267    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13268	    s//\1/
13269	    q
13270	  }
13271	  /^X\(\/\/\)[^/].*/{
13272	    s//\1/
13273	    q
13274	  }
13275	  /^X\(\/\/\)$/{
13276	    s//\1/
13277	    q
13278	  }
13279	  /^X\(\/\).*/{
13280	    s//\1/
13281	    q
13282	  }
13283	  s/.*/./; q'`/stamp-h$_am_stamp_count
13284 ;;
13285
13286  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13287printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13288 ;;
13289  esac
13290
13291
13292  case $ac_file$ac_mode in
13293    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13294  # Older Autoconf quotes --file arguments for eval, but not when files
13295  # are listed without --file.  Let's play safe and only enable the eval
13296  # if we detect the quoting.
13297  # TODO: see whether this extra hack can be removed once we start
13298  # requiring Autoconf 2.70 or later.
13299  case $CONFIG_FILES in #(
13300  *\'*) :
13301    eval set x "$CONFIG_FILES" ;; #(
13302  *) :
13303    set x $CONFIG_FILES ;; #(
13304  *) :
13305     ;;
13306esac
13307  shift
13308  # Used to flag and report bootstrapping failures.
13309  am_rc=0
13310  for am_mf
13311  do
13312    # Strip MF so we end up with the name of the file.
13313    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13314    # Check whether this is an Automake generated Makefile which includes
13315    # dependency-tracking related rules and includes.
13316    # Grep'ing the whole file directly is not great: AIX grep has a line
13317    # limit of 2048, but all sed's we know have understand at least 4000.
13318    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13319      || continue
13320    am_dirpart=`$as_dirname -- "$am_mf" ||
13321$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13322	 X"$am_mf" : 'X\(//\)[^/]' \| \
13323	 X"$am_mf" : 'X\(//\)$' \| \
13324	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13325printf "%s\n" X"$am_mf" |
13326    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13327	    s//\1/
13328	    q
13329	  }
13330	  /^X\(\/\/\)[^/].*/{
13331	    s//\1/
13332	    q
13333	  }
13334	  /^X\(\/\/\)$/{
13335	    s//\1/
13336	    q
13337	  }
13338	  /^X\(\/\).*/{
13339	    s//\1/
13340	    q
13341	  }
13342	  s/.*/./; q'`
13343    am_filepart=`$as_basename -- "$am_mf" ||
13344$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13345	 X"$am_mf" : 'X\(//\)$' \| \
13346	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13347printf "%s\n" X/"$am_mf" |
13348    sed '/^.*\/\([^/][^/]*\)\/*$/{
13349	    s//\1/
13350	    q
13351	  }
13352	  /^X\/\(\/\/\)$/{
13353	    s//\1/
13354	    q
13355	  }
13356	  /^X\/\(\/\).*/{
13357	    s//\1/
13358	    q
13359	  }
13360	  s/.*/./; q'`
13361    { echo "$as_me:$LINENO: cd "$am_dirpart" \
13362      && sed -e '/# am--include-marker/d' "$am_filepart" \
13363        | $MAKE -f - am--depfiles" >&5
13364   (cd "$am_dirpart" \
13365      && sed -e '/# am--include-marker/d' "$am_filepart" \
13366        | $MAKE -f - am--depfiles) >&5 2>&5
13367   ac_status=$?
13368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369   (exit $ac_status); } || am_rc=$?
13370  done
13371  if test $am_rc -ne 0; then
13372    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13373printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13374as_fn_error $? "Something went wrong bootstrapping makefile fragments
13375    for automatic dependency tracking.  If GNU make was not used, consider
13376    re-running the configure script with MAKE=\"gmake\" (or whatever is
13377    necessary).  You can also try re-running configure with the
13378    '--disable-dependency-tracking' option to at least be able to build
13379    the package (albeit without support for automatic dependency tracking).
13380See \`config.log' for more details" "$LINENO" 5; }
13381  fi
13382  { am_dirpart=; unset am_dirpart;}
13383  { am_filepart=; unset am_filepart;}
13384  { am_mf=; unset am_mf;}
13385  { am_rc=; unset am_rc;}
13386  rm -f conftest-deps.mk
13387}
13388 ;;
13389
13390  esac
13391done # for ac_tag
13392
13393
13394as_fn_exit 0
13395_ACEOF
13396ac_clean_files=$ac_clean_files_save
13397
13398test $ac_write_fail = 0 ||
13399  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13400
13401
13402# configure is writing to config.log, and then calls config.status.
13403# config.status does its own redirection, appending to config.log.
13404# Unfortunately, on DOS this fails, as config.log is still kept open
13405# by configure, so config.status won't be able to write to it; its
13406# output is simply discarded.  So we exec the FD to /dev/null,
13407# effectively closing config.log, so it can be properly (re)opened and
13408# appended to by config.status.  When coming back to configure, we
13409# need to make the FD available again.
13410if test "$no_create" != yes; then
13411  ac_cs_success=:
13412  ac_config_status_args=
13413  test "$silent" = yes &&
13414    ac_config_status_args="$ac_config_status_args --quiet"
13415  exec 5>/dev/null
13416  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13417  exec 5>>config.log
13418  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13419  # would make configure fail if this is the last instruction.
13420  $ac_cs_success || as_fn_exit 1
13421fi
13422if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13423  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13424printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13425fi
13426
13427
13428