1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xclock 1.1.1.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xclock/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/xclock/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='xclock'
614PACKAGE_TARNAME='xclock'
615PACKAGE_VERSION='1.1.1'
616PACKAGE_STRING='xclock 1.1.1'
617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xclock/issues'
618PACKAGE_URL=''
619
620ac_unique_file="Makefile.am"
621# Factoring default headers for most tests.
622ac_includes_default="\
623#include <stddef.h>
624#ifdef HAVE_STDIO_H
625# include <stdio.h>
626#endif
627#ifdef HAVE_STDLIB_H
628# include <stdlib.h>
629#endif
630#ifdef HAVE_STRING_H
631# include <string.h>
632#endif
633#ifdef HAVE_INTTYPES_H
634# include <inttypes.h>
635#endif
636#ifdef HAVE_STDINT_H
637# include <stdint.h>
638#endif
639#ifdef HAVE_STRINGS_H
640# include <strings.h>
641#endif
642#ifdef HAVE_SYS_TYPES_H
643# include <sys/types.h>
644#endif
645#ifdef HAVE_SYS_STAT_H
646# include <sys/stat.h>
647#endif
648#ifdef HAVE_UNISTD_H
649# include <unistd.h>
650#endif"
651
652ac_header_c_list=
653ac_subst_vars='am__EXEEXT_FALSE
654am__EXEEXT_TRUE
655LTLIBOBJS
656LIBOBJS
657appdefaultdir
658APPDEFS_LIBS
659APPDEFS_CFLAGS
660XKB_LIBS
661XKB_CFLAGS
662XFT_LIBS
663XFT_CFLAGS
664XCLOCK_LIBS
665XCLOCK_CFLAGS
666LTLIBICONV
667LIBICONV
668EGREP
669GREP
670CPP
671MAN_SUBSTS
672XORG_MAN_PAGE
673ADMIN_MAN_DIR
674DRIVER_MAN_DIR
675MISC_MAN_DIR
676FILE_MAN_DIR
677LIB_MAN_DIR
678APP_MAN_DIR
679ADMIN_MAN_SUFFIX
680DRIVER_MAN_SUFFIX
681MISC_MAN_SUFFIX
682FILE_MAN_SUFFIX
683LIB_MAN_SUFFIX
684APP_MAN_SUFFIX
685SED
686host_os
687host_vendor
688host_cpu
689host
690build_os
691build_vendor
692build_cpu
693build
694INSTALL_CMD
695PKG_CONFIG_LIBDIR
696PKG_CONFIG_PATH
697PKG_CONFIG
698CHANGELOG_CMD
699STRICT_CFLAGS
700CWARNFLAGS
701BASE_CFLAGS
702am__fastdepCC_FALSE
703am__fastdepCC_TRUE
704CCDEPMODE
705am__nodep
706AMDEPBACKSLASH
707AMDEP_FALSE
708AMDEP_TRUE
709am__include
710DEPDIR
711OBJEXT
712EXEEXT
713ac_ct_CC
714CPPFLAGS
715LDFLAGS
716CFLAGS
717CC
718AM_BACKSLASH
719AM_DEFAULT_VERBOSITY
720AM_DEFAULT_V
721AM_V
722CSCOPE
723ETAGS
724CTAGS
725am__untar
726am__tar
727AMTAR
728am__leading_dot
729SET_MAKE
730AWK
731mkdir_p
732MKDIR_P
733INSTALL_STRIP_PROGRAM
734STRIP
735install_sh
736MAKEINFO
737AUTOHEADER
738AUTOMAKE
739AUTOCONF
740ACLOCAL
741VERSION
742PACKAGE
743CYGPATH_W
744am__isrc
745INSTALL_DATA
746INSTALL_SCRIPT
747INSTALL_PROGRAM
748target_alias
749host_alias
750build_alias
751LIBS
752ECHO_T
753ECHO_N
754ECHO_C
755DEFS
756mandir
757localedir
758libdir
759psdir
760pdfdir
761dvidir
762htmldir
763infodir
764docdir
765oldincludedir
766includedir
767runstatedir
768localstatedir
769sharedstatedir
770sysconfdir
771datadir
772datarootdir
773libexecdir
774sbindir
775bindir
776program_transform_name
777prefix
778exec_prefix
779PACKAGE_URL
780PACKAGE_BUGREPORT
781PACKAGE_STRING
782PACKAGE_VERSION
783PACKAGE_TARNAME
784PACKAGE_NAME
785PATH_SEPARATOR
786SHELL
787am__quote'
788ac_subst_files=''
789ac_user_opts='
790enable_option_checking
791enable_silent_rules
792enable_dependency_tracking
793enable_selective_werror
794enable_strict_compilation
795with_gnu_ld
796enable_rpath
797with_libiconv_prefix
798with_xft
799with_xkb
800with_appdefaultdir
801'
802      ac_precious_vars='build_alias
803host_alias
804target_alias
805CC
806CFLAGS
807LDFLAGS
808LIBS
809CPPFLAGS
810PKG_CONFIG
811PKG_CONFIG_PATH
812PKG_CONFIG_LIBDIR
813CPP
814XCLOCK_CFLAGS
815XCLOCK_LIBS
816XFT_CFLAGS
817XFT_LIBS
818XKB_CFLAGS
819XKB_LIBS
820APPDEFS_CFLAGS
821APPDEFS_LIBS'
822
823
824# Initialize some variables set by options.
825ac_init_help=
826ac_init_version=false
827ac_unrecognized_opts=
828ac_unrecognized_sep=
829# The variables have the same names as the options, with
830# dashes changed to underlines.
831cache_file=/dev/null
832exec_prefix=NONE
833no_create=
834no_recursion=
835prefix=NONE
836program_prefix=NONE
837program_suffix=NONE
838program_transform_name=s,x,x,
839silent=
840site=
841srcdir=
842verbose=
843x_includes=NONE
844x_libraries=NONE
845
846# Installation directory options.
847# These are left unexpanded so users can "make install exec_prefix=/foo"
848# and all the variables that are supposed to be based on exec_prefix
849# by default will actually change.
850# Use braces instead of parens because sh, perl, etc. also accept them.
851# (The list follows the same order as the GNU Coding Standards.)
852bindir='${exec_prefix}/bin'
853sbindir='${exec_prefix}/sbin'
854libexecdir='${exec_prefix}/libexec'
855datarootdir='${prefix}/share'
856datadir='${datarootdir}'
857sysconfdir='${prefix}/etc'
858sharedstatedir='${prefix}/com'
859localstatedir='${prefix}/var'
860runstatedir='${localstatedir}/run'
861includedir='${prefix}/include'
862oldincludedir='/usr/include'
863docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
864infodir='${datarootdir}/info'
865htmldir='${docdir}'
866dvidir='${docdir}'
867pdfdir='${docdir}'
868psdir='${docdir}'
869libdir='${exec_prefix}/lib'
870localedir='${datarootdir}/locale'
871mandir='${datarootdir}/man'
872
873ac_prev=
874ac_dashdash=
875for ac_option
876do
877  # If the previous option needs an argument, assign it.
878  if test -n "$ac_prev"; then
879    eval $ac_prev=\$ac_option
880    ac_prev=
881    continue
882  fi
883
884  case $ac_option in
885  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
886  *=)   ac_optarg= ;;
887  *)    ac_optarg=yes ;;
888  esac
889
890  case $ac_dashdash$ac_option in
891  --)
892    ac_dashdash=yes ;;
893
894  -bindir | --bindir | --bindi | --bind | --bin | --bi)
895    ac_prev=bindir ;;
896  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
897    bindir=$ac_optarg ;;
898
899  -build | --build | --buil | --bui | --bu)
900    ac_prev=build_alias ;;
901  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
902    build_alias=$ac_optarg ;;
903
904  -cache-file | --cache-file | --cache-fil | --cache-fi \
905  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
906    ac_prev=cache_file ;;
907  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
908  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
909    cache_file=$ac_optarg ;;
910
911  --config-cache | -C)
912    cache_file=config.cache ;;
913
914  -datadir | --datadir | --datadi | --datad)
915    ac_prev=datadir ;;
916  -datadir=* | --datadir=* | --datadi=* | --datad=*)
917    datadir=$ac_optarg ;;
918
919  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
920  | --dataroo | --dataro | --datar)
921    ac_prev=datarootdir ;;
922  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
923  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
924    datarootdir=$ac_optarg ;;
925
926  -disable-* | --disable-*)
927    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928    # Reject names that are not valid shell variable names.
929    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930      as_fn_error $? "invalid feature name: \`$ac_useropt'"
931    ac_useropt_orig=$ac_useropt
932    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
933    case $ac_user_opts in
934      *"
935"enable_$ac_useropt"
936"*) ;;
937      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
938	 ac_unrecognized_sep=', ';;
939    esac
940    eval enable_$ac_useropt=no ;;
941
942  -docdir | --docdir | --docdi | --doc | --do)
943    ac_prev=docdir ;;
944  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
945    docdir=$ac_optarg ;;
946
947  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948    ac_prev=dvidir ;;
949  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
950    dvidir=$ac_optarg ;;
951
952  -enable-* | --enable-*)
953    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954    # Reject names that are not valid shell variable names.
955    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956      as_fn_error $? "invalid feature name: \`$ac_useropt'"
957    ac_useropt_orig=$ac_useropt
958    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
959    case $ac_user_opts in
960      *"
961"enable_$ac_useropt"
962"*) ;;
963      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
964	 ac_unrecognized_sep=', ';;
965    esac
966    eval enable_$ac_useropt=\$ac_optarg ;;
967
968  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
969  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
970  | --exec | --exe | --ex)
971    ac_prev=exec_prefix ;;
972  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
973  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
974  | --exec=* | --exe=* | --ex=*)
975    exec_prefix=$ac_optarg ;;
976
977  -gas | --gas | --ga | --g)
978    # Obsolete; use --with-gas.
979    with_gas=yes ;;
980
981  -help | --help | --hel | --he | -h)
982    ac_init_help=long ;;
983  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
984    ac_init_help=recursive ;;
985  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
986    ac_init_help=short ;;
987
988  -host | --host | --hos | --ho)
989    ac_prev=host_alias ;;
990  -host=* | --host=* | --hos=* | --ho=*)
991    host_alias=$ac_optarg ;;
992
993  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
994    ac_prev=htmldir ;;
995  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
996  | --ht=*)
997    htmldir=$ac_optarg ;;
998
999  -includedir | --includedir | --includedi | --included | --include \
1000  | --includ | --inclu | --incl | --inc)
1001    ac_prev=includedir ;;
1002  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1003  | --includ=* | --inclu=* | --incl=* | --inc=*)
1004    includedir=$ac_optarg ;;
1005
1006  -infodir | --infodir | --infodi | --infod | --info | --inf)
1007    ac_prev=infodir ;;
1008  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1009    infodir=$ac_optarg ;;
1010
1011  -libdir | --libdir | --libdi | --libd)
1012    ac_prev=libdir ;;
1013  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1014    libdir=$ac_optarg ;;
1015
1016  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1017  | --libexe | --libex | --libe)
1018    ac_prev=libexecdir ;;
1019  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1020  | --libexe=* | --libex=* | --libe=*)
1021    libexecdir=$ac_optarg ;;
1022
1023  -localedir | --localedir | --localedi | --localed | --locale)
1024    ac_prev=localedir ;;
1025  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1026    localedir=$ac_optarg ;;
1027
1028  -localstatedir | --localstatedir | --localstatedi | --localstated \
1029  | --localstate | --localstat | --localsta | --localst | --locals)
1030    ac_prev=localstatedir ;;
1031  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1032  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1033    localstatedir=$ac_optarg ;;
1034
1035  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1036    ac_prev=mandir ;;
1037  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1038    mandir=$ac_optarg ;;
1039
1040  -nfp | --nfp | --nf)
1041    # Obsolete; use --without-fp.
1042    with_fp=no ;;
1043
1044  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1045  | --no-cr | --no-c | -n)
1046    no_create=yes ;;
1047
1048  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1049  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1050    no_recursion=yes ;;
1051
1052  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1053  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1054  | --oldin | --oldi | --old | --ol | --o)
1055    ac_prev=oldincludedir ;;
1056  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1057  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1058  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1059    oldincludedir=$ac_optarg ;;
1060
1061  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1062    ac_prev=prefix ;;
1063  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1064    prefix=$ac_optarg ;;
1065
1066  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1067  | --program-pre | --program-pr | --program-p)
1068    ac_prev=program_prefix ;;
1069  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1070  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1071    program_prefix=$ac_optarg ;;
1072
1073  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1074  | --program-suf | --program-su | --program-s)
1075    ac_prev=program_suffix ;;
1076  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1077  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1078    program_suffix=$ac_optarg ;;
1079
1080  -program-transform-name | --program-transform-name \
1081  | --program-transform-nam | --program-transform-na \
1082  | --program-transform-n | --program-transform- \
1083  | --program-transform | --program-transfor \
1084  | --program-transfo | --program-transf \
1085  | --program-trans | --program-tran \
1086  | --progr-tra | --program-tr | --program-t)
1087    ac_prev=program_transform_name ;;
1088  -program-transform-name=* | --program-transform-name=* \
1089  | --program-transform-nam=* | --program-transform-na=* \
1090  | --program-transform-n=* | --program-transform-=* \
1091  | --program-transform=* | --program-transfor=* \
1092  | --program-transfo=* | --program-transf=* \
1093  | --program-trans=* | --program-tran=* \
1094  | --progr-tra=* | --program-tr=* | --program-t=*)
1095    program_transform_name=$ac_optarg ;;
1096
1097  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1098    ac_prev=pdfdir ;;
1099  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1100    pdfdir=$ac_optarg ;;
1101
1102  -psdir | --psdir | --psdi | --psd | --ps)
1103    ac_prev=psdir ;;
1104  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1105    psdir=$ac_optarg ;;
1106
1107  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1108  | -silent | --silent | --silen | --sile | --sil)
1109    silent=yes ;;
1110
1111  -runstatedir | --runstatedir | --runstatedi | --runstated \
1112  | --runstate | --runstat | --runsta | --runst | --runs \
1113  | --run | --ru | --r)
1114    ac_prev=runstatedir ;;
1115  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1116  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1117  | --run=* | --ru=* | --r=*)
1118    runstatedir=$ac_optarg ;;
1119
1120  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121    ac_prev=sbindir ;;
1122  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123  | --sbi=* | --sb=*)
1124    sbindir=$ac_optarg ;;
1125
1126  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128  | --sharedst | --shareds | --shared | --share | --shar \
1129  | --sha | --sh)
1130    ac_prev=sharedstatedir ;;
1131  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134  | --sha=* | --sh=*)
1135    sharedstatedir=$ac_optarg ;;
1136
1137  -site | --site | --sit)
1138    ac_prev=site ;;
1139  -site=* | --site=* | --sit=*)
1140    site=$ac_optarg ;;
1141
1142  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143    ac_prev=srcdir ;;
1144  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1145    srcdir=$ac_optarg ;;
1146
1147  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148  | --syscon | --sysco | --sysc | --sys | --sy)
1149    ac_prev=sysconfdir ;;
1150  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1152    sysconfdir=$ac_optarg ;;
1153
1154  -target | --target | --targe | --targ | --tar | --ta | --t)
1155    ac_prev=target_alias ;;
1156  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1157    target_alias=$ac_optarg ;;
1158
1159  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160    verbose=yes ;;
1161
1162  -version | --version | --versio | --versi | --vers | -V)
1163    ac_init_version=: ;;
1164
1165  -with-* | --with-*)
1166    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1167    # Reject names that are not valid shell variable names.
1168    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169      as_fn_error $? "invalid package name: \`$ac_useropt'"
1170    ac_useropt_orig=$ac_useropt
1171    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1172    case $ac_user_opts in
1173      *"
1174"with_$ac_useropt"
1175"*) ;;
1176      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1177	 ac_unrecognized_sep=', ';;
1178    esac
1179    eval with_$ac_useropt=\$ac_optarg ;;
1180
1181  -without-* | --without-*)
1182    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1183    # Reject names that are not valid shell variable names.
1184    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185      as_fn_error $? "invalid package name: \`$ac_useropt'"
1186    ac_useropt_orig=$ac_useropt
1187    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1188    case $ac_user_opts in
1189      *"
1190"with_$ac_useropt"
1191"*) ;;
1192      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1193	 ac_unrecognized_sep=', ';;
1194    esac
1195    eval with_$ac_useropt=no ;;
1196
1197  --x)
1198    # Obsolete; use --with-x.
1199    with_x=yes ;;
1200
1201  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202  | --x-incl | --x-inc | --x-in | --x-i)
1203    ac_prev=x_includes ;;
1204  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1206    x_includes=$ac_optarg ;;
1207
1208  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210    ac_prev=x_libraries ;;
1211  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1213    x_libraries=$ac_optarg ;;
1214
1215  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1216Try \`$0 --help' for more information"
1217    ;;
1218
1219  *=*)
1220    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221    # Reject names that are not valid shell variable names.
1222    case $ac_envvar in #(
1223      '' | [0-9]* | *[!_$as_cr_alnum]* )
1224      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1225    esac
1226    eval $ac_envvar=\$ac_optarg
1227    export $ac_envvar ;;
1228
1229  *)
1230    # FIXME: should be removed in autoconf 3.0.
1231    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1232    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1234    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1235    ;;
1236
1237  esac
1238done
1239
1240if test -n "$ac_prev"; then
1241  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1242  as_fn_error $? "missing argument to $ac_option"
1243fi
1244
1245if test -n "$ac_unrecognized_opts"; then
1246  case $enable_option_checking in
1247    no) ;;
1248    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1249    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1250  esac
1251fi
1252
1253# Check all directory arguments for consistency.
1254for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255		datadir sysconfdir sharedstatedir localstatedir includedir \
1256		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1257		libdir localedir mandir runstatedir
1258do
1259  eval ac_val=\$$ac_var
1260  # Remove trailing slashes.
1261  case $ac_val in
1262    */ )
1263      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264      eval $ac_var=\$ac_val;;
1265  esac
1266  # Be sure to have absolute directory names.
1267  case $ac_val in
1268    [\\/$]* | ?:[\\/]* )  continue;;
1269    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1270  esac
1271  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1272done
1273
1274# There might be people who depend on the old broken behavior: `$host'
1275# used to hold the argument of --host etc.
1276# FIXME: To remove some day.
1277build=$build_alias
1278host=$host_alias
1279target=$target_alias
1280
1281# FIXME: To remove some day.
1282if test "x$host_alias" != x; then
1283  if test "x$build_alias" = x; then
1284    cross_compiling=maybe
1285  elif test "x$build_alias" != "x$host_alias"; then
1286    cross_compiling=yes
1287  fi
1288fi
1289
1290ac_tool_prefix=
1291test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292
1293test "$silent" = yes && exec 6>/dev/null
1294
1295
1296ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297ac_ls_di=`ls -di .` &&
1298ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299  as_fn_error $? "working directory cannot be determined"
1300test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1301  as_fn_error $? "pwd does not report name of working directory"
1302
1303
1304# Find the source files, if location was not specified.
1305if test -z "$srcdir"; then
1306  ac_srcdir_defaulted=yes
1307  # Try the directory containing this script, then the parent directory.
1308  ac_confdir=`$as_dirname -- "$as_myself" ||
1309$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310	 X"$as_myself" : 'X\(//\)[^/]' \| \
1311	 X"$as_myself" : 'X\(//\)$' \| \
1312	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313printf "%s\n" X"$as_myself" |
1314    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315	    s//\1/
1316	    q
1317	  }
1318	  /^X\(\/\/\)[^/].*/{
1319	    s//\1/
1320	    q
1321	  }
1322	  /^X\(\/\/\)$/{
1323	    s//\1/
1324	    q
1325	  }
1326	  /^X\(\/\).*/{
1327	    s//\1/
1328	    q
1329	  }
1330	  s/.*/./; q'`
1331  srcdir=$ac_confdir
1332  if test ! -r "$srcdir/$ac_unique_file"; then
1333    srcdir=..
1334  fi
1335else
1336  ac_srcdir_defaulted=no
1337fi
1338if test ! -r "$srcdir/$ac_unique_file"; then
1339  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1341fi
1342ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343ac_abs_confdir=`(
1344	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1345	pwd)`
1346# When building in place, set srcdir=.
1347if test "$ac_abs_confdir" = "$ac_pwd"; then
1348  srcdir=.
1349fi
1350# Remove unnecessary trailing slashes from srcdir.
1351# Double slashes in file names in object file debugging info
1352# mess up M-x gdb in Emacs.
1353case $srcdir in
1354*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355esac
1356for ac_var in $ac_precious_vars; do
1357  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1358  eval ac_env_${ac_var}_value=\$${ac_var}
1359  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1360  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1361done
1362
1363#
1364# Report the --help message.
1365#
1366if test "$ac_init_help" = "long"; then
1367  # Omit some internal or obsolete options to make the list less imposing.
1368  # This message is too long to be a string in the A/UX 3.1 sh.
1369  cat <<_ACEOF
1370\`configure' configures xclock 1.1.1 to adapt to many kinds of systems.
1371
1372Usage: $0 [OPTION]... [VAR=VALUE]...
1373
1374To assign environment variables (e.g., CC, CFLAGS...), specify them as
1375VAR=VALUE.  See below for descriptions of some of the useful variables.
1376
1377Defaults for the options are specified in brackets.
1378
1379Configuration:
1380  -h, --help              display this help and exit
1381      --help=short        display options specific to this package
1382      --help=recursive    display the short help of all the included packages
1383  -V, --version           display version information and exit
1384  -q, --quiet, --silent   do not print \`checking ...' messages
1385      --cache-file=FILE   cache test results in FILE [disabled]
1386  -C, --config-cache      alias for \`--cache-file=config.cache'
1387  -n, --no-create         do not create output files
1388      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1389
1390Installation directories:
1391  --prefix=PREFIX         install architecture-independent files in PREFIX
1392                          [$ac_default_prefix]
1393  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1394                          [PREFIX]
1395
1396By default, \`make install' will install all the files in
1397\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1398an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1399for instance \`--prefix=\$HOME'.
1400
1401For better control, use the options below.
1402
1403Fine tuning of the installation directories:
1404  --bindir=DIR            user executables [EPREFIX/bin]
1405  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1406  --libexecdir=DIR        program executables [EPREFIX/libexec]
1407  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1408  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1409  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1410  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1411  --libdir=DIR            object code libraries [EPREFIX/lib]
1412  --includedir=DIR        C header files [PREFIX/include]
1413  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1414  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1415  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1416  --infodir=DIR           info documentation [DATAROOTDIR/info]
1417  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1418  --mandir=DIR            man documentation [DATAROOTDIR/man]
1419  --docdir=DIR            documentation root [DATAROOTDIR/doc/xclock]
1420  --htmldir=DIR           html documentation [DOCDIR]
1421  --dvidir=DIR            dvi documentation [DOCDIR]
1422  --pdfdir=DIR            pdf documentation [DOCDIR]
1423  --psdir=DIR             ps documentation [DOCDIR]
1424_ACEOF
1425
1426  cat <<\_ACEOF
1427
1428Program names:
1429  --program-prefix=PREFIX            prepend PREFIX to installed program names
1430  --program-suffix=SUFFIX            append SUFFIX to installed program names
1431  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1432
1433System types:
1434  --build=BUILD     configure for building on BUILD [guessed]
1435  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1436_ACEOF
1437fi
1438
1439if test -n "$ac_init_help"; then
1440  case $ac_init_help in
1441     short | recursive ) echo "Configuration of xclock 1.1.1:";;
1442   esac
1443  cat <<\_ACEOF
1444
1445Optional Features:
1446  --disable-option-checking  ignore unrecognized --enable/--with options
1447  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1448  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1449  --enable-silent-rules   less verbose build output (undo: "make V=1")
1450  --disable-silent-rules  verbose build output (undo: "make V=0")
1451  --enable-dependency-tracking
1452                          do not reject slow dependency extractors
1453  --disable-dependency-tracking
1454                          speeds up one-time build
1455  --disable-selective-werror
1456                          Turn off selective compiler errors. (default:
1457                          enabled)
1458  --enable-strict-compilation
1459                          Enable all warnings from compiler and make them
1460                          errors (default: disabled)
1461  --disable-rpath         do not hardcode runtime library paths
1462
1463Optional Packages:
1464  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1465  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1466  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1467  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1468  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1469  --with-xft              Use Xft2 and Xrender for rendering (Default is YES)
1470  --with-xkb              Use XKB to sound bells (Default is YES)
1471  --with-appdefaultdir=<pathname>
1472                          specify directory for app-defaults files (default is
1473                          autodetected)
1474
1475Some influential environment variables:
1476  CC          C compiler command
1477  CFLAGS      C compiler flags
1478  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1479              nonstandard directory <lib dir>
1480  LIBS        libraries to pass to the linker, e.g. -l<library>
1481  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1482              you have headers in a nonstandard directory <include dir>
1483  PKG_CONFIG  path to pkg-config utility
1484  PKG_CONFIG_PATH
1485              directories to add to pkg-config's search path
1486  PKG_CONFIG_LIBDIR
1487              path overriding pkg-config's built-in search path
1488  CPP         C preprocessor
1489  XCLOCK_CFLAGS
1490              C compiler flags for XCLOCK, overriding pkg-config
1491  XCLOCK_LIBS linker flags for XCLOCK, overriding pkg-config
1492  XFT_CFLAGS  C compiler flags for XFT, overriding pkg-config
1493  XFT_LIBS    linker flags for XFT, overriding pkg-config
1494  XKB_CFLAGS  C compiler flags for XKB, overriding pkg-config
1495  XKB_LIBS    linker flags for XKB, overriding pkg-config
1496  APPDEFS_CFLAGS
1497              C compiler flags for APPDEFS, overriding pkg-config
1498  APPDEFS_LIBS
1499              linker flags for APPDEFS, overriding pkg-config
1500
1501Use these variables to override the choices made by `configure' or to help
1502it to find libraries and programs with nonstandard names/locations.
1503
1504Report bugs to <https://gitlab.freedesktop.org/xorg/app/xclock/issues>.
1505_ACEOF
1506ac_status=$?
1507fi
1508
1509if test "$ac_init_help" = "recursive"; then
1510  # If there are subdirs, report their specific --help.
1511  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1512    test -d "$ac_dir" ||
1513      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1514      continue
1515    ac_builddir=.
1516
1517case "$ac_dir" in
1518.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519*)
1520  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1521  # A ".." for each directory in $ac_dir_suffix.
1522  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1523  case $ac_top_builddir_sub in
1524  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526  esac ;;
1527esac
1528ac_abs_top_builddir=$ac_pwd
1529ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530# for backward compatibility:
1531ac_top_builddir=$ac_top_build_prefix
1532
1533case $srcdir in
1534  .)  # We are building in place.
1535    ac_srcdir=.
1536    ac_top_srcdir=$ac_top_builddir_sub
1537    ac_abs_top_srcdir=$ac_pwd ;;
1538  [\\/]* | ?:[\\/]* )  # Absolute name.
1539    ac_srcdir=$srcdir$ac_dir_suffix;
1540    ac_top_srcdir=$srcdir
1541    ac_abs_top_srcdir=$srcdir ;;
1542  *) # Relative name.
1543    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544    ac_top_srcdir=$ac_top_build_prefix$srcdir
1545    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1546esac
1547ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1548
1549    cd "$ac_dir" || { ac_status=$?; continue; }
1550    # Check for configure.gnu first; this name is used for a wrapper for
1551    # Metaconfig's "Configure" on case-insensitive file systems.
1552    if test -f "$ac_srcdir/configure.gnu"; then
1553      echo &&
1554      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1555    elif test -f "$ac_srcdir/configure"; then
1556      echo &&
1557      $SHELL "$ac_srcdir/configure" --help=recursive
1558    else
1559      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1560    fi || ac_status=$?
1561    cd "$ac_pwd" || { ac_status=$?; break; }
1562  done
1563fi
1564
1565test -n "$ac_init_help" && exit $ac_status
1566if $ac_init_version; then
1567  cat <<\_ACEOF
1568xclock configure 1.1.1
1569generated by GNU Autoconf 2.71
1570
1571Copyright (C) 2021 Free Software Foundation, Inc.
1572This configure script is free software; the Free Software Foundation
1573gives unlimited permission to copy, distribute and modify it.
1574_ACEOF
1575  exit
1576fi
1577
1578## ------------------------ ##
1579## Autoconf initialization. ##
1580## ------------------------ ##
1581
1582# ac_fn_c_try_compile LINENO
1583# --------------------------
1584# Try to compile conftest.$ac_ext, and return whether this succeeded.
1585ac_fn_c_try_compile ()
1586{
1587  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588  rm -f conftest.$ac_objext conftest.beam
1589  if { { ac_try="$ac_compile"
1590case "(($ac_try" in
1591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592  *) ac_try_echo=$ac_try;;
1593esac
1594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595printf "%s\n" "$ac_try_echo"; } >&5
1596  (eval "$ac_compile") 2>conftest.err
1597  ac_status=$?
1598  if test -s conftest.err; then
1599    grep -v '^ *+' conftest.err >conftest.er1
1600    cat conftest.er1 >&5
1601    mv -f conftest.er1 conftest.err
1602  fi
1603  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604  test $ac_status = 0; } && {
1605	 test -z "$ac_c_werror_flag" ||
1606	 test ! -s conftest.err
1607       } && test -s conftest.$ac_objext
1608then :
1609  ac_retval=0
1610else $as_nop
1611  printf "%s\n" "$as_me: failed program was:" >&5
1612sed 's/^/| /' conftest.$ac_ext >&5
1613
1614	ac_retval=1
1615fi
1616  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617  as_fn_set_status $ac_retval
1618
1619} # ac_fn_c_try_compile
1620
1621# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1622# ------------------------------------------------------------------
1623# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1624# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1625ac_fn_check_decl ()
1626{
1627  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628  as_decl_name=`echo $2|sed 's/ *(.*//'`
1629  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1630printf %s "checking whether $as_decl_name is declared... " >&6; }
1631if eval test \${$3+y}
1632then :
1633  printf %s "(cached) " >&6
1634else $as_nop
1635  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1636  eval ac_save_FLAGS=\$$6
1637  as_fn_append $6 " $5"
1638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639/* end confdefs.h.  */
1640$4
1641int
1642main (void)
1643{
1644#ifndef $as_decl_name
1645#ifdef __cplusplus
1646  (void) $as_decl_use;
1647#else
1648  (void) $as_decl_name;
1649#endif
1650#endif
1651
1652  ;
1653  return 0;
1654}
1655_ACEOF
1656if ac_fn_c_try_compile "$LINENO"
1657then :
1658  eval "$3=yes"
1659else $as_nop
1660  eval "$3=no"
1661fi
1662rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1663  eval $6=\$ac_save_FLAGS
1664
1665fi
1666eval ac_res=\$$3
1667	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668printf "%s\n" "$ac_res" >&6; }
1669  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670
1671} # ac_fn_check_decl
1672
1673# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1674# -------------------------------------------------------
1675# Tests whether HEADER exists and can be compiled using the include files in
1676# INCLUDES, setting the cache variable VAR accordingly.
1677ac_fn_c_check_header_compile ()
1678{
1679  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1681printf %s "checking for $2... " >&6; }
1682if eval test \${$3+y}
1683then :
1684  printf %s "(cached) " >&6
1685else $as_nop
1686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687/* end confdefs.h.  */
1688$4
1689#include <$2>
1690_ACEOF
1691if ac_fn_c_try_compile "$LINENO"
1692then :
1693  eval "$3=yes"
1694else $as_nop
1695  eval "$3=no"
1696fi
1697rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1698fi
1699eval ac_res=\$$3
1700	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701printf "%s\n" "$ac_res" >&6; }
1702  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703
1704} # ac_fn_c_check_header_compile
1705
1706# ac_fn_c_try_link LINENO
1707# -----------------------
1708# Try to link conftest.$ac_ext, and return whether this succeeded.
1709ac_fn_c_try_link ()
1710{
1711  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1713  if { { ac_try="$ac_link"
1714case "(($ac_try" in
1715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716  *) ac_try_echo=$ac_try;;
1717esac
1718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719printf "%s\n" "$ac_try_echo"; } >&5
1720  (eval "$ac_link") 2>conftest.err
1721  ac_status=$?
1722  if test -s conftest.err; then
1723    grep -v '^ *+' conftest.err >conftest.er1
1724    cat conftest.er1 >&5
1725    mv -f conftest.er1 conftest.err
1726  fi
1727  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728  test $ac_status = 0; } && {
1729	 test -z "$ac_c_werror_flag" ||
1730	 test ! -s conftest.err
1731       } && test -s conftest$ac_exeext && {
1732	 test "$cross_compiling" = yes ||
1733	 test -x conftest$ac_exeext
1734       }
1735then :
1736  ac_retval=0
1737else $as_nop
1738  printf "%s\n" "$as_me: failed program was:" >&5
1739sed 's/^/| /' conftest.$ac_ext >&5
1740
1741	ac_retval=1
1742fi
1743  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1744  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1745  # interfere with the next link command; also delete a directory that is
1746  # left behind by Apple's compiler.  We do this before executing the actions.
1747  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1748  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749  as_fn_set_status $ac_retval
1750
1751} # ac_fn_c_try_link
1752
1753# ac_fn_c_check_func LINENO FUNC VAR
1754# ----------------------------------
1755# Tests whether FUNC exists, setting the cache variable VAR accordingly
1756ac_fn_c_check_func ()
1757{
1758  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760printf %s "checking for $2... " >&6; }
1761if eval test \${$3+y}
1762then :
1763  printf %s "(cached) " >&6
1764else $as_nop
1765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766/* end confdefs.h.  */
1767/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1768   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1769#define $2 innocuous_$2
1770
1771/* System header to define __stub macros and hopefully few prototypes,
1772   which can conflict with char $2 (); below.  */
1773
1774#include <limits.h>
1775#undef $2
1776
1777/* Override any GCC internal prototype to avoid an error.
1778   Use char because int might match the return type of a GCC
1779   builtin and then its argument prototype would still apply.  */
1780#ifdef __cplusplus
1781extern "C"
1782#endif
1783char $2 ();
1784/* The GNU C library defines this for functions which it implements
1785    to always fail with ENOSYS.  Some functions are actually named
1786    something starting with __ and the normal name is an alias.  */
1787#if defined __stub_$2 || defined __stub___$2
1788choke me
1789#endif
1790
1791int
1792main (void)
1793{
1794return $2 ();
1795  ;
1796  return 0;
1797}
1798_ACEOF
1799if ac_fn_c_try_link "$LINENO"
1800then :
1801  eval "$3=yes"
1802else $as_nop
1803  eval "$3=no"
1804fi
1805rm -f core conftest.err conftest.$ac_objext conftest.beam \
1806    conftest$ac_exeext conftest.$ac_ext
1807fi
1808eval ac_res=\$$3
1809	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810printf "%s\n" "$ac_res" >&6; }
1811  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812
1813} # ac_fn_c_check_func
1814
1815# ac_fn_c_try_cpp LINENO
1816# ----------------------
1817# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1818ac_fn_c_try_cpp ()
1819{
1820  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821  if { { ac_try="$ac_cpp conftest.$ac_ext"
1822case "(($ac_try" in
1823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824  *) ac_try_echo=$ac_try;;
1825esac
1826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827printf "%s\n" "$ac_try_echo"; } >&5
1828  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1829  ac_status=$?
1830  if test -s conftest.err; then
1831    grep -v '^ *+' conftest.err >conftest.er1
1832    cat conftest.er1 >&5
1833    mv -f conftest.er1 conftest.err
1834  fi
1835  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836  test $ac_status = 0; } > conftest.i && {
1837	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1838	 test ! -s conftest.err
1839       }
1840then :
1841  ac_retval=0
1842else $as_nop
1843  printf "%s\n" "$as_me: failed program was:" >&5
1844sed 's/^/| /' conftest.$ac_ext >&5
1845
1846    ac_retval=1
1847fi
1848  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849  as_fn_set_status $ac_retval
1850
1851} # ac_fn_c_try_cpp
1852
1853# ac_fn_c_try_run LINENO
1854# ----------------------
1855# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1856# executables *can* be run.
1857ac_fn_c_try_run ()
1858{
1859  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860  if { { ac_try="$ac_link"
1861case "(($ac_try" in
1862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863  *) ac_try_echo=$ac_try;;
1864esac
1865eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866printf "%s\n" "$ac_try_echo"; } >&5
1867  (eval "$ac_link") 2>&5
1868  ac_status=$?
1869  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1871  { { case "(($ac_try" in
1872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873  *) ac_try_echo=$ac_try;;
1874esac
1875eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876printf "%s\n" "$ac_try_echo"; } >&5
1877  (eval "$ac_try") 2>&5
1878  ac_status=$?
1879  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1880  test $ac_status = 0; }; }
1881then :
1882  ac_retval=0
1883else $as_nop
1884  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1885       printf "%s\n" "$as_me: failed program was:" >&5
1886sed 's/^/| /' conftest.$ac_ext >&5
1887
1888       ac_retval=$ac_status
1889fi
1890  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1891  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892  as_fn_set_status $ac_retval
1893
1894} # ac_fn_c_try_run
1895ac_configure_args_raw=
1896for ac_arg
1897do
1898  case $ac_arg in
1899  *\'*)
1900    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1901  esac
1902  as_fn_append ac_configure_args_raw " '$ac_arg'"
1903done
1904
1905case $ac_configure_args_raw in
1906  *$as_nl*)
1907    ac_safe_unquote= ;;
1908  *)
1909    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1910    ac_unsafe_a="$ac_unsafe_z#~"
1911    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1912    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1913esac
1914
1915cat >config.log <<_ACEOF
1916This file contains any messages produced by compilers while
1917running configure, to aid debugging if configure makes a mistake.
1918
1919It was created by xclock $as_me 1.1.1, which was
1920generated by GNU Autoconf 2.71.  Invocation command line was
1921
1922  $ $0$ac_configure_args_raw
1923
1924_ACEOF
1925exec 5>>config.log
1926{
1927cat <<_ASUNAME
1928## --------- ##
1929## Platform. ##
1930## --------- ##
1931
1932hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1933uname -m = `(uname -m) 2>/dev/null || echo unknown`
1934uname -r = `(uname -r) 2>/dev/null || echo unknown`
1935uname -s = `(uname -s) 2>/dev/null || echo unknown`
1936uname -v = `(uname -v) 2>/dev/null || echo unknown`
1937
1938/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1939/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1940
1941/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1942/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1943/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1944/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1945/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1946/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1947/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1948
1949_ASUNAME
1950
1951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952for as_dir in $PATH
1953do
1954  IFS=$as_save_IFS
1955  case $as_dir in #(((
1956    '') as_dir=./ ;;
1957    */) ;;
1958    *) as_dir=$as_dir/ ;;
1959  esac
1960    printf "%s\n" "PATH: $as_dir"
1961  done
1962IFS=$as_save_IFS
1963
1964} >&5
1965
1966cat >&5 <<_ACEOF
1967
1968
1969## ----------- ##
1970## Core tests. ##
1971## ----------- ##
1972
1973_ACEOF
1974
1975
1976# Keep a trace of the command line.
1977# Strip out --no-create and --no-recursion so they do not pile up.
1978# Strip out --silent because we don't want to record it for future runs.
1979# Also quote any args containing shell meta-characters.
1980# Make two passes to allow for proper duplicate-argument suppression.
1981ac_configure_args=
1982ac_configure_args0=
1983ac_configure_args1=
1984ac_must_keep_next=false
1985for ac_pass in 1 2
1986do
1987  for ac_arg
1988  do
1989    case $ac_arg in
1990    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1991    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1992    | -silent | --silent | --silen | --sile | --sil)
1993      continue ;;
1994    *\'*)
1995      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1996    esac
1997    case $ac_pass in
1998    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1999    2)
2000      as_fn_append ac_configure_args1 " '$ac_arg'"
2001      if test $ac_must_keep_next = true; then
2002	ac_must_keep_next=false # Got value, back to normal.
2003      else
2004	case $ac_arg in
2005	  *=* | --config-cache | -C | -disable-* | --disable-* \
2006	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2007	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2008	  | -with-* | --with-* | -without-* | --without-* | --x)
2009	    case "$ac_configure_args0 " in
2010	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2011	    esac
2012	    ;;
2013	  -* ) ac_must_keep_next=true ;;
2014	esac
2015      fi
2016      as_fn_append ac_configure_args " '$ac_arg'"
2017      ;;
2018    esac
2019  done
2020done
2021{ ac_configure_args0=; unset ac_configure_args0;}
2022{ ac_configure_args1=; unset ac_configure_args1;}
2023
2024# When interrupted or exit'd, cleanup temporary files, and complete
2025# config.log.  We remove comments because anyway the quotes in there
2026# would cause problems or look ugly.
2027# WARNING: Use '\'' to represent an apostrophe within the trap.
2028# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2029trap 'exit_status=$?
2030  # Sanitize IFS.
2031  IFS=" ""	$as_nl"
2032  # Save into config.log some information that might help in debugging.
2033  {
2034    echo
2035
2036    printf "%s\n" "## ---------------- ##
2037## Cache variables. ##
2038## ---------------- ##"
2039    echo
2040    # The following way of writing the cache mishandles newlines in values,
2041(
2042  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2043    eval ac_val=\$$ac_var
2044    case $ac_val in #(
2045    *${as_nl}*)
2046      case $ac_var in #(
2047      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2048printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2049      esac
2050      case $ac_var in #(
2051      _ | IFS | as_nl) ;; #(
2052      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2053      *) { eval $ac_var=; unset $ac_var;} ;;
2054      esac ;;
2055    esac
2056  done
2057  (set) 2>&1 |
2058    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2059    *${as_nl}ac_space=\ *)
2060      sed -n \
2061	"s/'\''/'\''\\\\'\'''\''/g;
2062	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2063      ;; #(
2064    *)
2065      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2066      ;;
2067    esac |
2068    sort
2069)
2070    echo
2071
2072    printf "%s\n" "## ----------------- ##
2073## Output variables. ##
2074## ----------------- ##"
2075    echo
2076    for ac_var in $ac_subst_vars
2077    do
2078      eval ac_val=\$$ac_var
2079      case $ac_val in
2080      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2081      esac
2082      printf "%s\n" "$ac_var='\''$ac_val'\''"
2083    done | sort
2084    echo
2085
2086    if test -n "$ac_subst_files"; then
2087      printf "%s\n" "## ------------------- ##
2088## File substitutions. ##
2089## ------------------- ##"
2090      echo
2091      for ac_var in $ac_subst_files
2092      do
2093	eval ac_val=\$$ac_var
2094	case $ac_val in
2095	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2096	esac
2097	printf "%s\n" "$ac_var='\''$ac_val'\''"
2098      done | sort
2099      echo
2100    fi
2101
2102    if test -s confdefs.h; then
2103      printf "%s\n" "## ----------- ##
2104## confdefs.h. ##
2105## ----------- ##"
2106      echo
2107      cat confdefs.h
2108      echo
2109    fi
2110    test "$ac_signal" != 0 &&
2111      printf "%s\n" "$as_me: caught signal $ac_signal"
2112    printf "%s\n" "$as_me: exit $exit_status"
2113  } >&5
2114  rm -f core *.core core.conftest.* &&
2115    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2116    exit $exit_status
2117' 0
2118for ac_signal in 1 2 13 15; do
2119  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2120done
2121ac_signal=0
2122
2123# confdefs.h avoids OS command line length limits that DEFS can exceed.
2124rm -f -r conftest* confdefs.h
2125
2126printf "%s\n" "/* confdefs.h */" > confdefs.h
2127
2128# Predefined preprocessor variables.
2129
2130printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2131
2132printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2133
2134printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2135
2136printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2137
2138printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2139
2140printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2141
2142
2143# Let the site file select an alternate cache file if it wants to.
2144# Prefer an explicitly selected file to automatically selected ones.
2145if test -n "$CONFIG_SITE"; then
2146  ac_site_files="$CONFIG_SITE"
2147elif test "x$prefix" != xNONE; then
2148  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2149else
2150  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2151fi
2152
2153for ac_site_file in $ac_site_files
2154do
2155  case $ac_site_file in #(
2156  */*) :
2157     ;; #(
2158  *) :
2159    ac_site_file=./$ac_site_file ;;
2160esac
2161  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2162    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2163printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2164    sed 's/^/| /' "$ac_site_file" >&5
2165    . "$ac_site_file" \
2166      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2167printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2168as_fn_error $? "failed to load site script $ac_site_file
2169See \`config.log' for more details" "$LINENO" 5; }
2170  fi
2171done
2172
2173if test -r "$cache_file"; then
2174  # Some versions of bash will fail to source /dev/null (special files
2175  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2176  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2177    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2178printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2179    case $cache_file in
2180      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2181      *)                      . "./$cache_file";;
2182    esac
2183  fi
2184else
2185  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2186printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2187  >$cache_file
2188fi
2189
2190# Test code for whether the C compiler supports C89 (global declarations)
2191ac_c_conftest_c89_globals='
2192/* Does the compiler advertise C89 conformance?
2193   Do not test the value of __STDC__, because some compilers set it to 0
2194   while being otherwise adequately conformant. */
2195#if !defined __STDC__
2196# error "Compiler does not advertise C89 conformance"
2197#endif
2198
2199#include <stddef.h>
2200#include <stdarg.h>
2201struct stat;
2202/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2203struct buf { int x; };
2204struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2205static char *e (p, i)
2206     char **p;
2207     int i;
2208{
2209  return p[i];
2210}
2211static char *f (char * (*g) (char **, int), char **p, ...)
2212{
2213  char *s;
2214  va_list v;
2215  va_start (v,p);
2216  s = g (p, va_arg (v,int));
2217  va_end (v);
2218  return s;
2219}
2220
2221/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2222   function prototypes and stuff, but not \xHH hex character constants.
2223   These do not provoke an error unfortunately, instead are silently treated
2224   as an "x".  The following induces an error, until -std is added to get
2225   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2226   array size at least.  It is necessary to write \x00 == 0 to get something
2227   that is true only with -std.  */
2228int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2229
2230/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2231   inside strings and character constants.  */
2232#define FOO(x) '\''x'\''
2233int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2234
2235int test (int i, double x);
2236struct s1 {int (*f) (int a);};
2237struct s2 {int (*f) (double a);};
2238int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2239               int, int);'
2240
2241# Test code for whether the C compiler supports C89 (body of main).
2242ac_c_conftest_c89_main='
2243ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2244'
2245
2246# Test code for whether the C compiler supports C99 (global declarations)
2247ac_c_conftest_c99_globals='
2248// Does the compiler advertise C99 conformance?
2249#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2250# error "Compiler does not advertise C99 conformance"
2251#endif
2252
2253#include <stdbool.h>
2254extern int puts (const char *);
2255extern int printf (const char *, ...);
2256extern int dprintf (int, const char *, ...);
2257extern void *malloc (size_t);
2258
2259// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2260// dprintf is used instead of fprintf to avoid needing to declare
2261// FILE and stderr.
2262#define debug(...) dprintf (2, __VA_ARGS__)
2263#define showlist(...) puts (#__VA_ARGS__)
2264#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2265static void
2266test_varargs_macros (void)
2267{
2268  int x = 1234;
2269  int y = 5678;
2270  debug ("Flag");
2271  debug ("X = %d\n", x);
2272  showlist (The first, second, and third items.);
2273  report (x>y, "x is %d but y is %d", x, y);
2274}
2275
2276// Check long long types.
2277#define BIG64 18446744073709551615ull
2278#define BIG32 4294967295ul
2279#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2280#if !BIG_OK
2281  #error "your preprocessor is broken"
2282#endif
2283#if BIG_OK
2284#else
2285  #error "your preprocessor is broken"
2286#endif
2287static long long int bignum = -9223372036854775807LL;
2288static unsigned long long int ubignum = BIG64;
2289
2290struct incomplete_array
2291{
2292  int datasize;
2293  double data[];
2294};
2295
2296struct named_init {
2297  int number;
2298  const wchar_t *name;
2299  double average;
2300};
2301
2302typedef const char *ccp;
2303
2304static inline int
2305test_restrict (ccp restrict text)
2306{
2307  // See if C++-style comments work.
2308  // Iterate through items via the restricted pointer.
2309  // Also check for declarations in for loops.
2310  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2311    continue;
2312  return 0;
2313}
2314
2315// Check varargs and va_copy.
2316static bool
2317test_varargs (const char *format, ...)
2318{
2319  va_list args;
2320  va_start (args, format);
2321  va_list args_copy;
2322  va_copy (args_copy, args);
2323
2324  const char *str = "";
2325  int number = 0;
2326  float fnumber = 0;
2327
2328  while (*format)
2329    {
2330      switch (*format++)
2331	{
2332	case '\''s'\'': // string
2333	  str = va_arg (args_copy, const char *);
2334	  break;
2335	case '\''d'\'': // int
2336	  number = va_arg (args_copy, int);
2337	  break;
2338	case '\''f'\'': // float
2339	  fnumber = va_arg (args_copy, double);
2340	  break;
2341	default:
2342	  break;
2343	}
2344    }
2345  va_end (args_copy);
2346  va_end (args);
2347
2348  return *str && number && fnumber;
2349}
2350'
2351
2352# Test code for whether the C compiler supports C99 (body of main).
2353ac_c_conftest_c99_main='
2354  // Check bool.
2355  _Bool success = false;
2356  success |= (argc != 0);
2357
2358  // Check restrict.
2359  if (test_restrict ("String literal") == 0)
2360    success = true;
2361  char *restrict newvar = "Another string";
2362
2363  // Check varargs.
2364  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2365  test_varargs_macros ();
2366
2367  // Check flexible array members.
2368  struct incomplete_array *ia =
2369    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2370  ia->datasize = 10;
2371  for (int i = 0; i < ia->datasize; ++i)
2372    ia->data[i] = i * 1.234;
2373
2374  // Check named initializers.
2375  struct named_init ni = {
2376    .number = 34,
2377    .name = L"Test wide string",
2378    .average = 543.34343,
2379  };
2380
2381  ni.number = 58;
2382
2383  int dynamic_array[ni.number];
2384  dynamic_array[0] = argv[0][0];
2385  dynamic_array[ni.number - 1] = 543;
2386
2387  // work around unused variable warnings
2388  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2389	 || dynamic_array[ni.number - 1] != 543);
2390'
2391
2392# Test code for whether the C compiler supports C11 (global declarations)
2393ac_c_conftest_c11_globals='
2394// Does the compiler advertise C11 conformance?
2395#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2396# error "Compiler does not advertise C11 conformance"
2397#endif
2398
2399// Check _Alignas.
2400char _Alignas (double) aligned_as_double;
2401char _Alignas (0) no_special_alignment;
2402extern char aligned_as_int;
2403char _Alignas (0) _Alignas (int) aligned_as_int;
2404
2405// Check _Alignof.
2406enum
2407{
2408  int_alignment = _Alignof (int),
2409  int_array_alignment = _Alignof (int[100]),
2410  char_alignment = _Alignof (char)
2411};
2412_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2413
2414// Check _Noreturn.
2415int _Noreturn does_not_return (void) { for (;;) continue; }
2416
2417// Check _Static_assert.
2418struct test_static_assert
2419{
2420  int x;
2421  _Static_assert (sizeof (int) <= sizeof (long int),
2422                  "_Static_assert does not work in struct");
2423  long int y;
2424};
2425
2426// Check UTF-8 literals.
2427#define u8 syntax error!
2428char const utf8_literal[] = u8"happens to be ASCII" "another string";
2429
2430// Check duplicate typedefs.
2431typedef long *long_ptr;
2432typedef long int *long_ptr;
2433typedef long_ptr long_ptr;
2434
2435// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2436struct anonymous
2437{
2438  union {
2439    struct { int i; int j; };
2440    struct { int k; long int l; } w;
2441  };
2442  int m;
2443} v1;
2444'
2445
2446# Test code for whether the C compiler supports C11 (body of main).
2447ac_c_conftest_c11_main='
2448  _Static_assert ((offsetof (struct anonymous, i)
2449		   == offsetof (struct anonymous, w.k)),
2450		  "Anonymous union alignment botch");
2451  v1.i = 2;
2452  v1.w.k = 5;
2453  ok |= v1.i != 5;
2454'
2455
2456# Test code for whether the C compiler supports C11 (complete).
2457ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2458${ac_c_conftest_c99_globals}
2459${ac_c_conftest_c11_globals}
2460
2461int
2462main (int argc, char **argv)
2463{
2464  int ok = 0;
2465  ${ac_c_conftest_c89_main}
2466  ${ac_c_conftest_c99_main}
2467  ${ac_c_conftest_c11_main}
2468  return ok;
2469}
2470"
2471
2472# Test code for whether the C compiler supports C99 (complete).
2473ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2474${ac_c_conftest_c99_globals}
2475
2476int
2477main (int argc, char **argv)
2478{
2479  int ok = 0;
2480  ${ac_c_conftest_c89_main}
2481  ${ac_c_conftest_c99_main}
2482  return ok;
2483}
2484"
2485
2486# Test code for whether the C compiler supports C89 (complete).
2487ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2488
2489int
2490main (int argc, char **argv)
2491{
2492  int ok = 0;
2493  ${ac_c_conftest_c89_main}
2494  return ok;
2495}
2496"
2497
2498as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2499as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2500as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2501as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2502as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2503as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2504as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2505as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2506as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2507
2508# Auxiliary files required by this configure script.
2509ac_aux_files="config.rpath config.guess config.sub compile missing install-sh"
2510
2511# Locations in which to look for auxiliary files.
2512ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2513
2514# Search for a directory containing all of the required auxiliary files,
2515# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2516# If we don't find one directory that contains all the files we need,
2517# we report the set of missing files from the *first* directory in
2518# $ac_aux_dir_candidates and give up.
2519ac_missing_aux_files=""
2520ac_first_candidate=:
2521printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523as_found=false
2524for as_dir in $ac_aux_dir_candidates
2525do
2526  IFS=$as_save_IFS
2527  case $as_dir in #(((
2528    '') as_dir=./ ;;
2529    */) ;;
2530    *) as_dir=$as_dir/ ;;
2531  esac
2532  as_found=:
2533
2534  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2535  ac_aux_dir_found=yes
2536  ac_install_sh=
2537  for ac_aux in $ac_aux_files
2538  do
2539    # As a special case, if "install-sh" is required, that requirement
2540    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2541    # and $ac_install_sh is set appropriately for whichever one is found.
2542    if test x"$ac_aux" = x"install-sh"
2543    then
2544      if test -f "${as_dir}install-sh"; then
2545        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2546        ac_install_sh="${as_dir}install-sh -c"
2547      elif test -f "${as_dir}install.sh"; then
2548        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2549        ac_install_sh="${as_dir}install.sh -c"
2550      elif test -f "${as_dir}shtool"; then
2551        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2552        ac_install_sh="${as_dir}shtool install -c"
2553      else
2554        ac_aux_dir_found=no
2555        if $ac_first_candidate; then
2556          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2557        else
2558          break
2559        fi
2560      fi
2561    else
2562      if test -f "${as_dir}${ac_aux}"; then
2563        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2564      else
2565        ac_aux_dir_found=no
2566        if $ac_first_candidate; then
2567          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2568        else
2569          break
2570        fi
2571      fi
2572    fi
2573  done
2574  if test "$ac_aux_dir_found" = yes; then
2575    ac_aux_dir="$as_dir"
2576    break
2577  fi
2578  ac_first_candidate=false
2579
2580  as_found=false
2581done
2582IFS=$as_save_IFS
2583if $as_found
2584then :
2585
2586else $as_nop
2587  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2588fi
2589
2590
2591# These three variables are undocumented and unsupported,
2592# and are intended to be withdrawn in a future Autoconf release.
2593# They can cause serious problems if a builder's source tree is in a directory
2594# whose full name contains unusual characters.
2595if test -f "${ac_aux_dir}config.guess"; then
2596  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2597fi
2598if test -f "${ac_aux_dir}config.sub"; then
2599  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2600fi
2601if test -f "$ac_aux_dir/configure"; then
2602  ac_configure="$SHELL ${ac_aux_dir}configure"
2603fi
2604
2605# Check that the precious variables saved in the cache have kept the same
2606# value.
2607ac_cache_corrupted=false
2608for ac_var in $ac_precious_vars; do
2609  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2610  eval ac_new_set=\$ac_env_${ac_var}_set
2611  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2612  eval ac_new_val=\$ac_env_${ac_var}_value
2613  case $ac_old_set,$ac_new_set in
2614    set,)
2615      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2616printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2617      ac_cache_corrupted=: ;;
2618    ,set)
2619      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2620printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2621      ac_cache_corrupted=: ;;
2622    ,);;
2623    *)
2624      if test "x$ac_old_val" != "x$ac_new_val"; then
2625	# differences in whitespace do not lead to failure.
2626	ac_old_val_w=`echo x $ac_old_val`
2627	ac_new_val_w=`echo x $ac_new_val`
2628	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2629	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2630printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2631	  ac_cache_corrupted=:
2632	else
2633	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2634printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2635	  eval $ac_var=\$ac_old_val
2636	fi
2637	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2638printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2639	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2640printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2641      fi;;
2642  esac
2643  # Pass precious variables to config.status.
2644  if test "$ac_new_set" = set; then
2645    case $ac_new_val in
2646    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2647    *) ac_arg=$ac_var=$ac_new_val ;;
2648    esac
2649    case " $ac_configure_args " in
2650      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2651      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2652    esac
2653  fi
2654done
2655if $ac_cache_corrupted; then
2656  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2657printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2658  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2659printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2660  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2661	    and start over" "$LINENO" 5
2662fi
2663## -------------------- ##
2664## Main body of script. ##
2665## -------------------- ##
2666
2667ac_ext=c
2668ac_cpp='$CPP $CPPFLAGS'
2669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2671ac_compiler_gnu=$ac_cv_c_compiler_gnu
2672
2673
2674
2675ac_config_headers="$ac_config_headers config.h"
2676
2677
2678# Initialize Automake
2679am__api_version='1.16'
2680
2681
2682
2683  # Find a good install program.  We prefer a C program (faster),
2684# so one script is as good as another.  But avoid the broken or
2685# incompatible versions:
2686# SysV /etc/install, /usr/sbin/install
2687# SunOS /usr/etc/install
2688# IRIX /sbin/install
2689# AIX /bin/install
2690# AmigaOS /C/install, which installs bootblocks on floppy discs
2691# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2692# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2693# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2694# OS/2's system install, which has a completely different semantic
2695# ./install, which can be erroneously created by make from ./install.sh.
2696# Reject install programs that cannot install multiple files.
2697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2698printf %s "checking for a BSD-compatible install... " >&6; }
2699if test -z "$INSTALL"; then
2700if test ${ac_cv_path_install+y}
2701then :
2702  printf %s "(cached) " >&6
2703else $as_nop
2704  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705for as_dir in $PATH
2706do
2707  IFS=$as_save_IFS
2708  case $as_dir in #(((
2709    '') as_dir=./ ;;
2710    */) ;;
2711    *) as_dir=$as_dir/ ;;
2712  esac
2713    # Account for fact that we put trailing slashes in our PATH walk.
2714case $as_dir in #((
2715  ./ | /[cC]/* | \
2716  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2717  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2718  /usr/ucb/* ) ;;
2719  *)
2720    # OSF1 and SCO ODT 3.0 have their own names for install.
2721    # Don't use installbsd from OSF since it installs stuff as root
2722    # by default.
2723    for ac_prog in ginstall scoinst install; do
2724      for ac_exec_ext in '' $ac_executable_extensions; do
2725	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2726	  if test $ac_prog = install &&
2727	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2728	    # AIX install.  It has an incompatible calling convention.
2729	    :
2730	  elif test $ac_prog = install &&
2731	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2732	    # program-specific install script used by HP pwplus--don't use.
2733	    :
2734	  else
2735	    rm -rf conftest.one conftest.two conftest.dir
2736	    echo one > conftest.one
2737	    echo two > conftest.two
2738	    mkdir conftest.dir
2739	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2740	      test -s conftest.one && test -s conftest.two &&
2741	      test -s conftest.dir/conftest.one &&
2742	      test -s conftest.dir/conftest.two
2743	    then
2744	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2745	      break 3
2746	    fi
2747	  fi
2748	fi
2749      done
2750    done
2751    ;;
2752esac
2753
2754  done
2755IFS=$as_save_IFS
2756
2757rm -rf conftest.one conftest.two conftest.dir
2758
2759fi
2760  if test ${ac_cv_path_install+y}; then
2761    INSTALL=$ac_cv_path_install
2762  else
2763    # As a last resort, use the slow shell script.  Don't cache a
2764    # value for INSTALL within a source directory, because that will
2765    # break other packages using the cache if that directory is
2766    # removed, or if the value is a relative name.
2767    INSTALL=$ac_install_sh
2768  fi
2769fi
2770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2771printf "%s\n" "$INSTALL" >&6; }
2772
2773# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2774# It thinks the first close brace ends the variable substitution.
2775test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2776
2777test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2778
2779test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2780
2781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2782printf %s "checking whether build environment is sane... " >&6; }
2783# Reject unsafe characters in $srcdir or the absolute working directory
2784# name.  Accept space and tab only in the latter.
2785am_lf='
2786'
2787case `pwd` in
2788  *[\\\"\#\$\&\'\`$am_lf]*)
2789    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2790esac
2791case $srcdir in
2792  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2793    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2794esac
2795
2796# Do 'set' in a subshell so we don't clobber the current shell's
2797# arguments.  Must try -L first in case configure is actually a
2798# symlink; some systems play weird games with the mod time of symlinks
2799# (eg FreeBSD returns the mod time of the symlink's containing
2800# directory).
2801if (
2802   am_has_slept=no
2803   for am_try in 1 2; do
2804     echo "timestamp, slept: $am_has_slept" > conftest.file
2805     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2806     if test "$*" = "X"; then
2807	# -L didn't work.
2808	set X `ls -t "$srcdir/configure" conftest.file`
2809     fi
2810     if test "$*" != "X $srcdir/configure conftest.file" \
2811	&& test "$*" != "X conftest.file $srcdir/configure"; then
2812
2813	# If neither matched, then we have a broken ls.  This can happen
2814	# if, for instance, CONFIG_SHELL is bash and it inherits a
2815	# broken ls alias from the environment.  This has actually
2816	# happened.  Such a system could not be considered "sane".
2817	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2818  alias in your environment" "$LINENO" 5
2819     fi
2820     if test "$2" = conftest.file || test $am_try -eq 2; then
2821       break
2822     fi
2823     # Just in case.
2824     sleep 1
2825     am_has_slept=yes
2826   done
2827   test "$2" = conftest.file
2828   )
2829then
2830   # Ok.
2831   :
2832else
2833   as_fn_error $? "newly created file is older than distributed files!
2834Check your system clock" "$LINENO" 5
2835fi
2836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2837printf "%s\n" "yes" >&6; }
2838# If we didn't sleep, we still need to ensure time stamps of config.status and
2839# generated files are strictly newer.
2840am_sleep_pid=
2841if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2842  ( sleep 1 ) &
2843  am_sleep_pid=$!
2844fi
2845
2846rm -f conftest.file
2847
2848test "$program_prefix" != NONE &&
2849  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2850# Use a double $ so make ignores it.
2851test "$program_suffix" != NONE &&
2852  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2853# Double any \ or $.
2854# By default was `s,x,x', remove it if useless.
2855ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2856program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2857
2858
2859# Expand $ac_aux_dir to an absolute path.
2860am_aux_dir=`cd "$ac_aux_dir" && pwd`
2861
2862
2863  if test x"${MISSING+set}" != xset; then
2864  MISSING="\${SHELL} '$am_aux_dir/missing'"
2865fi
2866# Use eval to expand $SHELL
2867if eval "$MISSING --is-lightweight"; then
2868  am_missing_run="$MISSING "
2869else
2870  am_missing_run=
2871  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2872printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2873fi
2874
2875if test x"${install_sh+set}" != xset; then
2876  case $am_aux_dir in
2877  *\ * | *\	*)
2878    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2879  *)
2880    install_sh="\${SHELL} $am_aux_dir/install-sh"
2881  esac
2882fi
2883
2884# Installed binaries are usually stripped using 'strip' when the user
2885# run "make install-strip".  However 'strip' might not be the right
2886# tool to use in cross-compilation environments, therefore Automake
2887# will honor the 'STRIP' environment variable to overrule this program.
2888if test "$cross_compiling" != no; then
2889  if test -n "$ac_tool_prefix"; then
2890  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2891set dummy ${ac_tool_prefix}strip; ac_word=$2
2892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2893printf %s "checking for $ac_word... " >&6; }
2894if test ${ac_cv_prog_STRIP+y}
2895then :
2896  printf %s "(cached) " >&6
2897else $as_nop
2898  if test -n "$STRIP"; then
2899  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2900else
2901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902for as_dir in $PATH
2903do
2904  IFS=$as_save_IFS
2905  case $as_dir in #(((
2906    '') as_dir=./ ;;
2907    */) ;;
2908    *) as_dir=$as_dir/ ;;
2909  esac
2910    for ac_exec_ext in '' $ac_executable_extensions; do
2911  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2912    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2913    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2914    break 2
2915  fi
2916done
2917  done
2918IFS=$as_save_IFS
2919
2920fi
2921fi
2922STRIP=$ac_cv_prog_STRIP
2923if test -n "$STRIP"; then
2924  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2925printf "%s\n" "$STRIP" >&6; }
2926else
2927  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928printf "%s\n" "no" >&6; }
2929fi
2930
2931
2932fi
2933if test -z "$ac_cv_prog_STRIP"; then
2934  ac_ct_STRIP=$STRIP
2935  # Extract the first word of "strip", so it can be a program name with args.
2936set dummy strip; ac_word=$2
2937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938printf %s "checking for $ac_word... " >&6; }
2939if test ${ac_cv_prog_ac_ct_STRIP+y}
2940then :
2941  printf %s "(cached) " >&6
2942else $as_nop
2943  if test -n "$ac_ct_STRIP"; then
2944  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2945else
2946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947for as_dir in $PATH
2948do
2949  IFS=$as_save_IFS
2950  case $as_dir in #(((
2951    '') as_dir=./ ;;
2952    */) ;;
2953    *) as_dir=$as_dir/ ;;
2954  esac
2955    for ac_exec_ext in '' $ac_executable_extensions; do
2956  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2957    ac_cv_prog_ac_ct_STRIP="strip"
2958    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2959    break 2
2960  fi
2961done
2962  done
2963IFS=$as_save_IFS
2964
2965fi
2966fi
2967ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2968if test -n "$ac_ct_STRIP"; then
2969  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2970printf "%s\n" "$ac_ct_STRIP" >&6; }
2971else
2972  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973printf "%s\n" "no" >&6; }
2974fi
2975
2976  if test "x$ac_ct_STRIP" = x; then
2977    STRIP=":"
2978  else
2979    case $cross_compiling:$ac_tool_warned in
2980yes:)
2981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2982printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2983ac_tool_warned=yes ;;
2984esac
2985    STRIP=$ac_ct_STRIP
2986  fi
2987else
2988  STRIP="$ac_cv_prog_STRIP"
2989fi
2990
2991fi
2992INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2993
2994
2995  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2996printf %s "checking for a race-free mkdir -p... " >&6; }
2997if test -z "$MKDIR_P"; then
2998  if test ${ac_cv_path_mkdir+y}
2999then :
3000  printf %s "(cached) " >&6
3001else $as_nop
3002  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3004do
3005  IFS=$as_save_IFS
3006  case $as_dir in #(((
3007    '') as_dir=./ ;;
3008    */) ;;
3009    *) as_dir=$as_dir/ ;;
3010  esac
3011    for ac_prog in mkdir gmkdir; do
3012	 for ac_exec_ext in '' $ac_executable_extensions; do
3013	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3014	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3015	     'mkdir ('*'coreutils) '* | \
3016	     'BusyBox '* | \
3017	     'mkdir (fileutils) '4.1*)
3018	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3019	       break 3;;
3020	   esac
3021	 done
3022       done
3023  done
3024IFS=$as_save_IFS
3025
3026fi
3027
3028  test -d ./--version && rmdir ./--version
3029  if test ${ac_cv_path_mkdir+y}; then
3030    MKDIR_P="$ac_cv_path_mkdir -p"
3031  else
3032    # As a last resort, use the slow shell script.  Don't cache a
3033    # value for MKDIR_P within a source directory, because that will
3034    # break other packages using the cache if that directory is
3035    # removed, or if the value is a relative name.
3036    MKDIR_P="$ac_install_sh -d"
3037  fi
3038fi
3039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3040printf "%s\n" "$MKDIR_P" >&6; }
3041
3042for ac_prog in gawk mawk nawk awk
3043do
3044  # Extract the first word of "$ac_prog", so it can be a program name with args.
3045set dummy $ac_prog; ac_word=$2
3046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047printf %s "checking for $ac_word... " >&6; }
3048if test ${ac_cv_prog_AWK+y}
3049then :
3050  printf %s "(cached) " >&6
3051else $as_nop
3052  if test -n "$AWK"; then
3053  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3054else
3055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056for as_dir in $PATH
3057do
3058  IFS=$as_save_IFS
3059  case $as_dir in #(((
3060    '') as_dir=./ ;;
3061    */) ;;
3062    *) as_dir=$as_dir/ ;;
3063  esac
3064    for ac_exec_ext in '' $ac_executable_extensions; do
3065  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3066    ac_cv_prog_AWK="$ac_prog"
3067    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3068    break 2
3069  fi
3070done
3071  done
3072IFS=$as_save_IFS
3073
3074fi
3075fi
3076AWK=$ac_cv_prog_AWK
3077if test -n "$AWK"; then
3078  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3079printf "%s\n" "$AWK" >&6; }
3080else
3081  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082printf "%s\n" "no" >&6; }
3083fi
3084
3085
3086  test -n "$AWK" && break
3087done
3088
3089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3090printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3091set x ${MAKE-make}
3092ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3093if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3094then :
3095  printf %s "(cached) " >&6
3096else $as_nop
3097  cat >conftest.make <<\_ACEOF
3098SHELL = /bin/sh
3099all:
3100	@echo '@@@%%%=$(MAKE)=@@@%%%'
3101_ACEOF
3102# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3103case `${MAKE-make} -f conftest.make 2>/dev/null` in
3104  *@@@%%%=?*=@@@%%%*)
3105    eval ac_cv_prog_make_${ac_make}_set=yes;;
3106  *)
3107    eval ac_cv_prog_make_${ac_make}_set=no;;
3108esac
3109rm -f conftest.make
3110fi
3111if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3112  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3113printf "%s\n" "yes" >&6; }
3114  SET_MAKE=
3115else
3116  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117printf "%s\n" "no" >&6; }
3118  SET_MAKE="MAKE=${MAKE-make}"
3119fi
3120
3121rm -rf .tst 2>/dev/null
3122mkdir .tst 2>/dev/null
3123if test -d .tst; then
3124  am__leading_dot=.
3125else
3126  am__leading_dot=_
3127fi
3128rmdir .tst 2>/dev/null
3129
3130# Check whether --enable-silent-rules was given.
3131if test ${enable_silent_rules+y}
3132then :
3133  enableval=$enable_silent_rules;
3134fi
3135
3136case $enable_silent_rules in # (((
3137  yes) AM_DEFAULT_VERBOSITY=0;;
3138   no) AM_DEFAULT_VERBOSITY=1;;
3139    *) AM_DEFAULT_VERBOSITY=1;;
3140esac
3141am_make=${MAKE-make}
3142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3143printf %s "checking whether $am_make supports nested variables... " >&6; }
3144if test ${am_cv_make_support_nested_variables+y}
3145then :
3146  printf %s "(cached) " >&6
3147else $as_nop
3148  if printf "%s\n" 'TRUE=$(BAR$(V))
3149BAR0=false
3150BAR1=true
3151V=1
3152am__doit:
3153	@$(TRUE)
3154.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3155  am_cv_make_support_nested_variables=yes
3156else
3157  am_cv_make_support_nested_variables=no
3158fi
3159fi
3160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3161printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3162if test $am_cv_make_support_nested_variables = yes; then
3163    AM_V='$(V)'
3164  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3165else
3166  AM_V=$AM_DEFAULT_VERBOSITY
3167  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3168fi
3169AM_BACKSLASH='\'
3170
3171if test "`cd $srcdir && pwd`" != "`pwd`"; then
3172  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3173  # is not polluted with repeated "-I."
3174  am__isrc=' -I$(srcdir)'
3175  # test to see if srcdir already configured
3176  if test -f $srcdir/config.status; then
3177    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3178  fi
3179fi
3180
3181# test whether we have cygpath
3182if test -z "$CYGPATH_W"; then
3183  if (cygpath --version) >/dev/null 2>/dev/null; then
3184    CYGPATH_W='cygpath -w'
3185  else
3186    CYGPATH_W=echo
3187  fi
3188fi
3189
3190
3191# Define the identity of the package.
3192 PACKAGE='xclock'
3193 VERSION='1.1.1'
3194
3195
3196printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3197
3198
3199printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3200
3201# Some tools Automake needs.
3202
3203ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3204
3205
3206AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3207
3208
3209AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3210
3211
3212AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3213
3214
3215MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3216
3217# For better backward compatibility.  To be removed once Automake 1.9.x
3218# dies out for good.  For more background, see:
3219# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3220# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3221mkdir_p='$(MKDIR_P)'
3222
3223# We need awk for the "check" target (and possibly the TAP driver).  The
3224# system "awk" is bad on some platforms.
3225# Always define AMTAR for backward compatibility.  Yes, it's still used
3226# in the wild :-(  We should find a proper way to deprecate it ...
3227AMTAR='$${TAR-tar}'
3228
3229
3230# We'll loop over all known methods to create a tar archive until one works.
3231_am_tools='gnutar  pax cpio none'
3232
3233am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3234
3235
3236
3237
3238
3239# Variables for tags utilities; see am/tags.am
3240if test -z "$CTAGS"; then
3241  CTAGS=ctags
3242fi
3243
3244if test -z "$ETAGS"; then
3245  ETAGS=etags
3246fi
3247
3248if test -z "$CSCOPE"; then
3249  CSCOPE=cscope
3250fi
3251
3252
3253
3254# POSIX will say in a future version that running "rm -f" with no argument
3255# is OK; and we want to be able to make that assumption in our Makefile
3256# recipes.  So use an aggressive probe to check that the usage we want is
3257# actually supported "in the wild" to an acceptable degree.
3258# See automake bug#10828.
3259# To make any issue more visible, cause the running configure to be aborted
3260# by default if the 'rm' program in use doesn't match our expectations; the
3261# user can still override this though.
3262if rm -f && rm -fr && rm -rf; then : OK; else
3263  cat >&2 <<'END'
3264Oops!
3265
3266Your 'rm' program seems unable to run without file operands specified
3267on the command line, even when the '-f' option is present.  This is contrary
3268to the behaviour of most rm programs out there, and not conforming with
3269the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3270
3271Please tell bug-automake@gnu.org about your system, including the value
3272of your $PATH and any error possibly output before this message.  This
3273can help us improve future automake versions.
3274
3275END
3276  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3277    echo 'Configuration will proceed anyway, since you have set the' >&2
3278    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3279    echo >&2
3280  else
3281    cat >&2 <<'END'
3282Aborting the configuration process, to ensure you take notice of the issue.
3283
3284You can download and install GNU coreutils to get an 'rm' implementation
3285that behaves properly: <https://www.gnu.org/software/coreutils/>.
3286
3287If you want to complete the configuration process using your problematic
3288'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3289to "yes", and re-run configure.
3290
3291END
3292    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3293  fi
3294fi
3295
3296
3297# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318DEPDIR="${am__leading_dot}deps"
3319
3320ac_config_commands="$ac_config_commands depfiles"
3321
3322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3323printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3324cat > confinc.mk << 'END'
3325am__doit:
3326	@echo this is the am__doit target >confinc.out
3327.PHONY: am__doit
3328END
3329am__include="#"
3330am__quote=
3331# BSD make does it like this.
3332echo '.include "confinc.mk" # ignored' > confmf.BSD
3333# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3334echo 'include confinc.mk # ignored' > confmf.GNU
3335_am_result=no
3336for s in GNU BSD; do
3337  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3338   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3339   ac_status=$?
3340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341   (exit $ac_status); }
3342  case $?:`cat confinc.out 2>/dev/null` in #(
3343  '0:this is the am__doit target') :
3344    case $s in #(
3345  BSD) :
3346    am__include='.include' am__quote='"' ;; #(
3347  *) :
3348    am__include='include' am__quote='' ;;
3349esac ;; #(
3350  *) :
3351     ;;
3352esac
3353  if test "$am__include" != "#"; then
3354    _am_result="yes ($s style)"
3355    break
3356  fi
3357done
3358rm -f confinc.* confmf.*
3359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3360printf "%s\n" "${_am_result}" >&6; }
3361
3362# Check whether --enable-dependency-tracking was given.
3363if test ${enable_dependency_tracking+y}
3364then :
3365  enableval=$enable_dependency_tracking;
3366fi
3367
3368if test "x$enable_dependency_tracking" != xno; then
3369  am_depcomp="$ac_aux_dir/depcomp"
3370  AMDEPBACKSLASH='\'
3371  am__nodep='_no'
3372fi
3373 if test "x$enable_dependency_tracking" != xno; then
3374  AMDEP_TRUE=
3375  AMDEP_FALSE='#'
3376else
3377  AMDEP_TRUE='#'
3378  AMDEP_FALSE=
3379fi
3380
3381
3382ac_ext=c
3383ac_cpp='$CPP $CPPFLAGS'
3384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3386ac_compiler_gnu=$ac_cv_c_compiler_gnu
3387if test -n "$ac_tool_prefix"; then
3388  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3389set dummy ${ac_tool_prefix}gcc; ac_word=$2
3390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391printf %s "checking for $ac_word... " >&6; }
3392if test ${ac_cv_prog_CC+y}
3393then :
3394  printf %s "(cached) " >&6
3395else $as_nop
3396  if test -n "$CC"; then
3397  ac_cv_prog_CC="$CC" # Let the user override the test.
3398else
3399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400for as_dir in $PATH
3401do
3402  IFS=$as_save_IFS
3403  case $as_dir in #(((
3404    '') as_dir=./ ;;
3405    */) ;;
3406    *) as_dir=$as_dir/ ;;
3407  esac
3408    for ac_exec_ext in '' $ac_executable_extensions; do
3409  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3410    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3411    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3412    break 2
3413  fi
3414done
3415  done
3416IFS=$as_save_IFS
3417
3418fi
3419fi
3420CC=$ac_cv_prog_CC
3421if test -n "$CC"; then
3422  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3423printf "%s\n" "$CC" >&6; }
3424else
3425  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426printf "%s\n" "no" >&6; }
3427fi
3428
3429
3430fi
3431if test -z "$ac_cv_prog_CC"; then
3432  ac_ct_CC=$CC
3433  # Extract the first word of "gcc", so it can be a program name with args.
3434set dummy gcc; ac_word=$2
3435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3436printf %s "checking for $ac_word... " >&6; }
3437if test ${ac_cv_prog_ac_ct_CC+y}
3438then :
3439  printf %s "(cached) " >&6
3440else $as_nop
3441  if test -n "$ac_ct_CC"; then
3442  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3443else
3444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445for as_dir in $PATH
3446do
3447  IFS=$as_save_IFS
3448  case $as_dir in #(((
3449    '') as_dir=./ ;;
3450    */) ;;
3451    *) as_dir=$as_dir/ ;;
3452  esac
3453    for ac_exec_ext in '' $ac_executable_extensions; do
3454  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3455    ac_cv_prog_ac_ct_CC="gcc"
3456    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3457    break 2
3458  fi
3459done
3460  done
3461IFS=$as_save_IFS
3462
3463fi
3464fi
3465ac_ct_CC=$ac_cv_prog_ac_ct_CC
3466if test -n "$ac_ct_CC"; then
3467  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3468printf "%s\n" "$ac_ct_CC" >&6; }
3469else
3470  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471printf "%s\n" "no" >&6; }
3472fi
3473
3474  if test "x$ac_ct_CC" = x; then
3475    CC=""
3476  else
3477    case $cross_compiling:$ac_tool_warned in
3478yes:)
3479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3480printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3481ac_tool_warned=yes ;;
3482esac
3483    CC=$ac_ct_CC
3484  fi
3485else
3486  CC="$ac_cv_prog_CC"
3487fi
3488
3489if test -z "$CC"; then
3490          if test -n "$ac_tool_prefix"; then
3491    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3492set dummy ${ac_tool_prefix}cc; ac_word=$2
3493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494printf %s "checking for $ac_word... " >&6; }
3495if test ${ac_cv_prog_CC+y}
3496then :
3497  printf %s "(cached) " >&6
3498else $as_nop
3499  if test -n "$CC"; then
3500  ac_cv_prog_CC="$CC" # Let the user override the test.
3501else
3502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503for as_dir in $PATH
3504do
3505  IFS=$as_save_IFS
3506  case $as_dir in #(((
3507    '') as_dir=./ ;;
3508    */) ;;
3509    *) as_dir=$as_dir/ ;;
3510  esac
3511    for ac_exec_ext in '' $ac_executable_extensions; do
3512  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3513    ac_cv_prog_CC="${ac_tool_prefix}cc"
3514    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3515    break 2
3516  fi
3517done
3518  done
3519IFS=$as_save_IFS
3520
3521fi
3522fi
3523CC=$ac_cv_prog_CC
3524if test -n "$CC"; then
3525  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3526printf "%s\n" "$CC" >&6; }
3527else
3528  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529printf "%s\n" "no" >&6; }
3530fi
3531
3532
3533  fi
3534fi
3535if test -z "$CC"; then
3536  # Extract the first word of "cc", so it can be a program name with args.
3537set dummy cc; ac_word=$2
3538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539printf %s "checking for $ac_word... " >&6; }
3540if test ${ac_cv_prog_CC+y}
3541then :
3542  printf %s "(cached) " >&6
3543else $as_nop
3544  if test -n "$CC"; then
3545  ac_cv_prog_CC="$CC" # Let the user override the test.
3546else
3547  ac_prog_rejected=no
3548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549for as_dir in $PATH
3550do
3551  IFS=$as_save_IFS
3552  case $as_dir in #(((
3553    '') as_dir=./ ;;
3554    */) ;;
3555    *) as_dir=$as_dir/ ;;
3556  esac
3557    for ac_exec_ext in '' $ac_executable_extensions; do
3558  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3559    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3560       ac_prog_rejected=yes
3561       continue
3562     fi
3563    ac_cv_prog_CC="cc"
3564    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3565    break 2
3566  fi
3567done
3568  done
3569IFS=$as_save_IFS
3570
3571if test $ac_prog_rejected = yes; then
3572  # We found a bogon in the path, so make sure we never use it.
3573  set dummy $ac_cv_prog_CC
3574  shift
3575  if test $# != 0; then
3576    # We chose a different compiler from the bogus one.
3577    # However, it has the same basename, so the bogon will be chosen
3578    # first if we set CC to just the basename; use the full file name.
3579    shift
3580    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3581  fi
3582fi
3583fi
3584fi
3585CC=$ac_cv_prog_CC
3586if test -n "$CC"; then
3587  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3588printf "%s\n" "$CC" >&6; }
3589else
3590  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591printf "%s\n" "no" >&6; }
3592fi
3593
3594
3595fi
3596if test -z "$CC"; then
3597  if test -n "$ac_tool_prefix"; then
3598  for ac_prog in cl.exe
3599  do
3600    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3601set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3603printf %s "checking for $ac_word... " >&6; }
3604if test ${ac_cv_prog_CC+y}
3605then :
3606  printf %s "(cached) " >&6
3607else $as_nop
3608  if test -n "$CC"; then
3609  ac_cv_prog_CC="$CC" # Let the user override the test.
3610else
3611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612for as_dir in $PATH
3613do
3614  IFS=$as_save_IFS
3615  case $as_dir in #(((
3616    '') as_dir=./ ;;
3617    */) ;;
3618    *) as_dir=$as_dir/ ;;
3619  esac
3620    for ac_exec_ext in '' $ac_executable_extensions; do
3621  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3622    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3623    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3624    break 2
3625  fi
3626done
3627  done
3628IFS=$as_save_IFS
3629
3630fi
3631fi
3632CC=$ac_cv_prog_CC
3633if test -n "$CC"; then
3634  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3635printf "%s\n" "$CC" >&6; }
3636else
3637  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638printf "%s\n" "no" >&6; }
3639fi
3640
3641
3642    test -n "$CC" && break
3643  done
3644fi
3645if test -z "$CC"; then
3646  ac_ct_CC=$CC
3647  for ac_prog in cl.exe
3648do
3649  # Extract the first word of "$ac_prog", so it can be a program name with args.
3650set dummy $ac_prog; ac_word=$2
3651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3652printf %s "checking for $ac_word... " >&6; }
3653if test ${ac_cv_prog_ac_ct_CC+y}
3654then :
3655  printf %s "(cached) " >&6
3656else $as_nop
3657  if test -n "$ac_ct_CC"; then
3658  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3659else
3660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661for as_dir in $PATH
3662do
3663  IFS=$as_save_IFS
3664  case $as_dir in #(((
3665    '') as_dir=./ ;;
3666    */) ;;
3667    *) as_dir=$as_dir/ ;;
3668  esac
3669    for ac_exec_ext in '' $ac_executable_extensions; do
3670  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3671    ac_cv_prog_ac_ct_CC="$ac_prog"
3672    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3673    break 2
3674  fi
3675done
3676  done
3677IFS=$as_save_IFS
3678
3679fi
3680fi
3681ac_ct_CC=$ac_cv_prog_ac_ct_CC
3682if test -n "$ac_ct_CC"; then
3683  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3684printf "%s\n" "$ac_ct_CC" >&6; }
3685else
3686  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3687printf "%s\n" "no" >&6; }
3688fi
3689
3690
3691  test -n "$ac_ct_CC" && break
3692done
3693
3694  if test "x$ac_ct_CC" = x; then
3695    CC=""
3696  else
3697    case $cross_compiling:$ac_tool_warned in
3698yes:)
3699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3700printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3701ac_tool_warned=yes ;;
3702esac
3703    CC=$ac_ct_CC
3704  fi
3705fi
3706
3707fi
3708if test -z "$CC"; then
3709  if test -n "$ac_tool_prefix"; then
3710  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3711set dummy ${ac_tool_prefix}clang; ac_word=$2
3712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3713printf %s "checking for $ac_word... " >&6; }
3714if test ${ac_cv_prog_CC+y}
3715then :
3716  printf %s "(cached) " >&6
3717else $as_nop
3718  if test -n "$CC"; then
3719  ac_cv_prog_CC="$CC" # Let the user override the test.
3720else
3721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722for as_dir in $PATH
3723do
3724  IFS=$as_save_IFS
3725  case $as_dir in #(((
3726    '') as_dir=./ ;;
3727    */) ;;
3728    *) as_dir=$as_dir/ ;;
3729  esac
3730    for ac_exec_ext in '' $ac_executable_extensions; do
3731  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3732    ac_cv_prog_CC="${ac_tool_prefix}clang"
3733    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3734    break 2
3735  fi
3736done
3737  done
3738IFS=$as_save_IFS
3739
3740fi
3741fi
3742CC=$ac_cv_prog_CC
3743if test -n "$CC"; then
3744  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3745printf "%s\n" "$CC" >&6; }
3746else
3747  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3748printf "%s\n" "no" >&6; }
3749fi
3750
3751
3752fi
3753if test -z "$ac_cv_prog_CC"; then
3754  ac_ct_CC=$CC
3755  # Extract the first word of "clang", so it can be a program name with args.
3756set dummy clang; ac_word=$2
3757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3758printf %s "checking for $ac_word... " >&6; }
3759if test ${ac_cv_prog_ac_ct_CC+y}
3760then :
3761  printf %s "(cached) " >&6
3762else $as_nop
3763  if test -n "$ac_ct_CC"; then
3764  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3765else
3766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767for as_dir in $PATH
3768do
3769  IFS=$as_save_IFS
3770  case $as_dir in #(((
3771    '') as_dir=./ ;;
3772    */) ;;
3773    *) as_dir=$as_dir/ ;;
3774  esac
3775    for ac_exec_ext in '' $ac_executable_extensions; do
3776  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3777    ac_cv_prog_ac_ct_CC="clang"
3778    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3779    break 2
3780  fi
3781done
3782  done
3783IFS=$as_save_IFS
3784
3785fi
3786fi
3787ac_ct_CC=$ac_cv_prog_ac_ct_CC
3788if test -n "$ac_ct_CC"; then
3789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3790printf "%s\n" "$ac_ct_CC" >&6; }
3791else
3792  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793printf "%s\n" "no" >&6; }
3794fi
3795
3796  if test "x$ac_ct_CC" = x; then
3797    CC=""
3798  else
3799    case $cross_compiling:$ac_tool_warned in
3800yes:)
3801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3802printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3803ac_tool_warned=yes ;;
3804esac
3805    CC=$ac_ct_CC
3806  fi
3807else
3808  CC="$ac_cv_prog_CC"
3809fi
3810
3811fi
3812
3813
3814test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3815printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3816as_fn_error $? "no acceptable C compiler found in \$PATH
3817See \`config.log' for more details" "$LINENO" 5; }
3818
3819# Provide some information about the compiler.
3820printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3821set X $ac_compile
3822ac_compiler=$2
3823for ac_option in --version -v -V -qversion -version; do
3824  { { ac_try="$ac_compiler $ac_option >&5"
3825case "(($ac_try" in
3826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827  *) ac_try_echo=$ac_try;;
3828esac
3829eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3830printf "%s\n" "$ac_try_echo"; } >&5
3831  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3832  ac_status=$?
3833  if test -s conftest.err; then
3834    sed '10a\
3835... rest of stderr output deleted ...
3836         10q' conftest.err >conftest.er1
3837    cat conftest.er1 >&5
3838  fi
3839  rm -f conftest.er1 conftest.err
3840  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3841  test $ac_status = 0; }
3842done
3843
3844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845/* end confdefs.h.  */
3846
3847int
3848main (void)
3849{
3850
3851  ;
3852  return 0;
3853}
3854_ACEOF
3855ac_clean_files_save=$ac_clean_files
3856ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3857# Try to create an executable without -o first, disregard a.out.
3858# It will help us diagnose broken compilers, and finding out an intuition
3859# of exeext.
3860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3861printf %s "checking whether the C compiler works... " >&6; }
3862ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3863
3864# The possible output files:
3865ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3866
3867ac_rmfiles=
3868for ac_file in $ac_files
3869do
3870  case $ac_file in
3871    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3872    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3873  esac
3874done
3875rm -f $ac_rmfiles
3876
3877if { { ac_try="$ac_link_default"
3878case "(($ac_try" in
3879  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880  *) ac_try_echo=$ac_try;;
3881esac
3882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3883printf "%s\n" "$ac_try_echo"; } >&5
3884  (eval "$ac_link_default") 2>&5
3885  ac_status=$?
3886  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3887  test $ac_status = 0; }
3888then :
3889  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3890# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3891# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3892# so that the user can short-circuit this test for compilers unknown to
3893# Autoconf.
3894for ac_file in $ac_files ''
3895do
3896  test -f "$ac_file" || continue
3897  case $ac_file in
3898    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3899	;;
3900    [ab].out )
3901	# We found the default executable, but exeext='' is most
3902	# certainly right.
3903	break;;
3904    *.* )
3905	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3906	then :; else
3907	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3908	fi
3909	# We set ac_cv_exeext here because the later test for it is not
3910	# safe: cross compilers may not add the suffix if given an `-o'
3911	# argument, so we may need to know it at that point already.
3912	# Even if this section looks crufty: it has the advantage of
3913	# actually working.
3914	break;;
3915    * )
3916	break;;
3917  esac
3918done
3919test "$ac_cv_exeext" = no && ac_cv_exeext=
3920
3921else $as_nop
3922  ac_file=''
3923fi
3924if test -z "$ac_file"
3925then :
3926  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3927printf "%s\n" "no" >&6; }
3928printf "%s\n" "$as_me: failed program was:" >&5
3929sed 's/^/| /' conftest.$ac_ext >&5
3930
3931{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3932printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3933as_fn_error 77 "C compiler cannot create executables
3934See \`config.log' for more details" "$LINENO" 5; }
3935else $as_nop
3936  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3937printf "%s\n" "yes" >&6; }
3938fi
3939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3940printf %s "checking for C compiler default output file name... " >&6; }
3941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3942printf "%s\n" "$ac_file" >&6; }
3943ac_exeext=$ac_cv_exeext
3944
3945rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3946ac_clean_files=$ac_clean_files_save
3947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3948printf %s "checking for suffix of executables... " >&6; }
3949if { { ac_try="$ac_link"
3950case "(($ac_try" in
3951  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952  *) ac_try_echo=$ac_try;;
3953esac
3954eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3955printf "%s\n" "$ac_try_echo"; } >&5
3956  (eval "$ac_link") 2>&5
3957  ac_status=$?
3958  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3959  test $ac_status = 0; }
3960then :
3961  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3962# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3963# work properly (i.e., refer to `conftest.exe'), while it won't with
3964# `rm'.
3965for ac_file in conftest.exe conftest conftest.*; do
3966  test -f "$ac_file" || continue
3967  case $ac_file in
3968    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3969    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3970	  break;;
3971    * ) break;;
3972  esac
3973done
3974else $as_nop
3975  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3976printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3977as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3978See \`config.log' for more details" "$LINENO" 5; }
3979fi
3980rm -f conftest conftest$ac_cv_exeext
3981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3982printf "%s\n" "$ac_cv_exeext" >&6; }
3983
3984rm -f conftest.$ac_ext
3985EXEEXT=$ac_cv_exeext
3986ac_exeext=$EXEEXT
3987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988/* end confdefs.h.  */
3989#include <stdio.h>
3990int
3991main (void)
3992{
3993FILE *f = fopen ("conftest.out", "w");
3994 return ferror (f) || fclose (f) != 0;
3995
3996  ;
3997  return 0;
3998}
3999_ACEOF
4000ac_clean_files="$ac_clean_files conftest.out"
4001# Check that the compiler produces executables we can run.  If not, either
4002# the compiler is broken, or we cross compile.
4003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4004printf %s "checking whether we are cross compiling... " >&6; }
4005if test "$cross_compiling" != yes; then
4006  { { ac_try="$ac_link"
4007case "(($ac_try" in
4008  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009  *) ac_try_echo=$ac_try;;
4010esac
4011eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4012printf "%s\n" "$ac_try_echo"; } >&5
4013  (eval "$ac_link") 2>&5
4014  ac_status=$?
4015  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4016  test $ac_status = 0; }
4017  if { ac_try='./conftest$ac_cv_exeext'
4018  { { case "(($ac_try" in
4019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020  *) ac_try_echo=$ac_try;;
4021esac
4022eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4023printf "%s\n" "$ac_try_echo"; } >&5
4024  (eval "$ac_try") 2>&5
4025  ac_status=$?
4026  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4027  test $ac_status = 0; }; }; then
4028    cross_compiling=no
4029  else
4030    if test "$cross_compiling" = maybe; then
4031	cross_compiling=yes
4032    else
4033	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4034printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4035as_fn_error 77 "cannot run C compiled programs.
4036If you meant to cross compile, use \`--host'.
4037See \`config.log' for more details" "$LINENO" 5; }
4038    fi
4039  fi
4040fi
4041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4042printf "%s\n" "$cross_compiling" >&6; }
4043
4044rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4045ac_clean_files=$ac_clean_files_save
4046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4047printf %s "checking for suffix of object files... " >&6; }
4048if test ${ac_cv_objext+y}
4049then :
4050  printf %s "(cached) " >&6
4051else $as_nop
4052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053/* end confdefs.h.  */
4054
4055int
4056main (void)
4057{
4058
4059  ;
4060  return 0;
4061}
4062_ACEOF
4063rm -f conftest.o conftest.obj
4064if { { ac_try="$ac_compile"
4065case "(($ac_try" in
4066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067  *) ac_try_echo=$ac_try;;
4068esac
4069eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4070printf "%s\n" "$ac_try_echo"; } >&5
4071  (eval "$ac_compile") 2>&5
4072  ac_status=$?
4073  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4074  test $ac_status = 0; }
4075then :
4076  for ac_file in conftest.o conftest.obj conftest.*; do
4077  test -f "$ac_file" || continue;
4078  case $ac_file in
4079    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4080    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4081       break;;
4082  esac
4083done
4084else $as_nop
4085  printf "%s\n" "$as_me: failed program was:" >&5
4086sed 's/^/| /' conftest.$ac_ext >&5
4087
4088{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4089printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4090as_fn_error $? "cannot compute suffix of object files: cannot compile
4091See \`config.log' for more details" "$LINENO" 5; }
4092fi
4093rm -f conftest.$ac_cv_objext conftest.$ac_ext
4094fi
4095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4096printf "%s\n" "$ac_cv_objext" >&6; }
4097OBJEXT=$ac_cv_objext
4098ac_objext=$OBJEXT
4099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4100printf %s "checking whether the compiler supports GNU C... " >&6; }
4101if test ${ac_cv_c_compiler_gnu+y}
4102then :
4103  printf %s "(cached) " >&6
4104else $as_nop
4105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106/* end confdefs.h.  */
4107
4108int
4109main (void)
4110{
4111#ifndef __GNUC__
4112       choke me
4113#endif
4114
4115  ;
4116  return 0;
4117}
4118_ACEOF
4119if ac_fn_c_try_compile "$LINENO"
4120then :
4121  ac_compiler_gnu=yes
4122else $as_nop
4123  ac_compiler_gnu=no
4124fi
4125rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4126ac_cv_c_compiler_gnu=$ac_compiler_gnu
4127
4128fi
4129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4130printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4131ac_compiler_gnu=$ac_cv_c_compiler_gnu
4132
4133if test $ac_compiler_gnu = yes; then
4134  GCC=yes
4135else
4136  GCC=
4137fi
4138ac_test_CFLAGS=${CFLAGS+y}
4139ac_save_CFLAGS=$CFLAGS
4140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4141printf %s "checking whether $CC accepts -g... " >&6; }
4142if test ${ac_cv_prog_cc_g+y}
4143then :
4144  printf %s "(cached) " >&6
4145else $as_nop
4146  ac_save_c_werror_flag=$ac_c_werror_flag
4147   ac_c_werror_flag=yes
4148   ac_cv_prog_cc_g=no
4149   CFLAGS="-g"
4150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151/* end confdefs.h.  */
4152
4153int
4154main (void)
4155{
4156
4157  ;
4158  return 0;
4159}
4160_ACEOF
4161if ac_fn_c_try_compile "$LINENO"
4162then :
4163  ac_cv_prog_cc_g=yes
4164else $as_nop
4165  CFLAGS=""
4166      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167/* end confdefs.h.  */
4168
4169int
4170main (void)
4171{
4172
4173  ;
4174  return 0;
4175}
4176_ACEOF
4177if ac_fn_c_try_compile "$LINENO"
4178then :
4179
4180else $as_nop
4181  ac_c_werror_flag=$ac_save_c_werror_flag
4182	 CFLAGS="-g"
4183	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184/* end confdefs.h.  */
4185
4186int
4187main (void)
4188{
4189
4190  ;
4191  return 0;
4192}
4193_ACEOF
4194if ac_fn_c_try_compile "$LINENO"
4195then :
4196  ac_cv_prog_cc_g=yes
4197fi
4198rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4199fi
4200rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4201fi
4202rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4203   ac_c_werror_flag=$ac_save_c_werror_flag
4204fi
4205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4206printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4207if test $ac_test_CFLAGS; then
4208  CFLAGS=$ac_save_CFLAGS
4209elif test $ac_cv_prog_cc_g = yes; then
4210  if test "$GCC" = yes; then
4211    CFLAGS="-g -O2"
4212  else
4213    CFLAGS="-g"
4214  fi
4215else
4216  if test "$GCC" = yes; then
4217    CFLAGS="-O2"
4218  else
4219    CFLAGS=
4220  fi
4221fi
4222ac_prog_cc_stdc=no
4223if test x$ac_prog_cc_stdc = xno
4224then :
4225  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4226printf %s "checking for $CC option to enable C11 features... " >&6; }
4227if test ${ac_cv_prog_cc_c11+y}
4228then :
4229  printf %s "(cached) " >&6
4230else $as_nop
4231  ac_cv_prog_cc_c11=no
4232ac_save_CC=$CC
4233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4234/* end confdefs.h.  */
4235$ac_c_conftest_c11_program
4236_ACEOF
4237for ac_arg in '' -std=gnu11
4238do
4239  CC="$ac_save_CC $ac_arg"
4240  if ac_fn_c_try_compile "$LINENO"
4241then :
4242  ac_cv_prog_cc_c11=$ac_arg
4243fi
4244rm -f core conftest.err conftest.$ac_objext conftest.beam
4245  test "x$ac_cv_prog_cc_c11" != "xno" && break
4246done
4247rm -f conftest.$ac_ext
4248CC=$ac_save_CC
4249fi
4250
4251if test "x$ac_cv_prog_cc_c11" = xno
4252then :
4253  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4254printf "%s\n" "unsupported" >&6; }
4255else $as_nop
4256  if test "x$ac_cv_prog_cc_c11" = x
4257then :
4258  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4259printf "%s\n" "none needed" >&6; }
4260else $as_nop
4261  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4262printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4263     CC="$CC $ac_cv_prog_cc_c11"
4264fi
4265  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4266  ac_prog_cc_stdc=c11
4267fi
4268fi
4269if test x$ac_prog_cc_stdc = xno
4270then :
4271  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4272printf %s "checking for $CC option to enable C99 features... " >&6; }
4273if test ${ac_cv_prog_cc_c99+y}
4274then :
4275  printf %s "(cached) " >&6
4276else $as_nop
4277  ac_cv_prog_cc_c99=no
4278ac_save_CC=$CC
4279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280/* end confdefs.h.  */
4281$ac_c_conftest_c99_program
4282_ACEOF
4283for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4284do
4285  CC="$ac_save_CC $ac_arg"
4286  if ac_fn_c_try_compile "$LINENO"
4287then :
4288  ac_cv_prog_cc_c99=$ac_arg
4289fi
4290rm -f core conftest.err conftest.$ac_objext conftest.beam
4291  test "x$ac_cv_prog_cc_c99" != "xno" && break
4292done
4293rm -f conftest.$ac_ext
4294CC=$ac_save_CC
4295fi
4296
4297if test "x$ac_cv_prog_cc_c99" = xno
4298then :
4299  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4300printf "%s\n" "unsupported" >&6; }
4301else $as_nop
4302  if test "x$ac_cv_prog_cc_c99" = x
4303then :
4304  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4305printf "%s\n" "none needed" >&6; }
4306else $as_nop
4307  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4308printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4309     CC="$CC $ac_cv_prog_cc_c99"
4310fi
4311  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4312  ac_prog_cc_stdc=c99
4313fi
4314fi
4315if test x$ac_prog_cc_stdc = xno
4316then :
4317  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4318printf %s "checking for $CC option to enable C89 features... " >&6; }
4319if test ${ac_cv_prog_cc_c89+y}
4320then :
4321  printf %s "(cached) " >&6
4322else $as_nop
4323  ac_cv_prog_cc_c89=no
4324ac_save_CC=$CC
4325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326/* end confdefs.h.  */
4327$ac_c_conftest_c89_program
4328_ACEOF
4329for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4330do
4331  CC="$ac_save_CC $ac_arg"
4332  if ac_fn_c_try_compile "$LINENO"
4333then :
4334  ac_cv_prog_cc_c89=$ac_arg
4335fi
4336rm -f core conftest.err conftest.$ac_objext conftest.beam
4337  test "x$ac_cv_prog_cc_c89" != "xno" && break
4338done
4339rm -f conftest.$ac_ext
4340CC=$ac_save_CC
4341fi
4342
4343if test "x$ac_cv_prog_cc_c89" = xno
4344then :
4345  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4346printf "%s\n" "unsupported" >&6; }
4347else $as_nop
4348  if test "x$ac_cv_prog_cc_c89" = x
4349then :
4350  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4351printf "%s\n" "none needed" >&6; }
4352else $as_nop
4353  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4354printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4355     CC="$CC $ac_cv_prog_cc_c89"
4356fi
4357  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4358  ac_prog_cc_stdc=c89
4359fi
4360fi
4361
4362ac_ext=c
4363ac_cpp='$CPP $CPPFLAGS'
4364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4366ac_compiler_gnu=$ac_cv_c_compiler_gnu
4367
4368
4369  ac_ext=c
4370ac_cpp='$CPP $CPPFLAGS'
4371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4373ac_compiler_gnu=$ac_cv_c_compiler_gnu
4374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4375printf %s "checking whether $CC understands -c and -o together... " >&6; }
4376if test ${am_cv_prog_cc_c_o+y}
4377then :
4378  printf %s "(cached) " >&6
4379else $as_nop
4380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381/* end confdefs.h.  */
4382
4383int
4384main (void)
4385{
4386
4387  ;
4388  return 0;
4389}
4390_ACEOF
4391  # Make sure it works both with $CC and with simple cc.
4392  # Following AC_PROG_CC_C_O, we do the test twice because some
4393  # compilers refuse to overwrite an existing .o file with -o,
4394  # though they will create one.
4395  am_cv_prog_cc_c_o=yes
4396  for am_i in 1 2; do
4397    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4398   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4399   ac_status=$?
4400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401   (exit $ac_status); } \
4402         && test -f conftest2.$ac_objext; then
4403      : OK
4404    else
4405      am_cv_prog_cc_c_o=no
4406      break
4407    fi
4408  done
4409  rm -f core conftest*
4410  unset am_i
4411fi
4412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4413printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4414if test "$am_cv_prog_cc_c_o" != yes; then
4415   # Losing compiler, so override with the script.
4416   # FIXME: It is wrong to rewrite CC.
4417   # But if we don't then we get into trouble of one sort or another.
4418   # A longer-term fix would be to have automake use am__CC in this case,
4419   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4420   CC="$am_aux_dir/compile $CC"
4421fi
4422ac_ext=c
4423ac_cpp='$CPP $CPPFLAGS'
4424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4426ac_compiler_gnu=$ac_cv_c_compiler_gnu
4427
4428
4429depcc="$CC"   am_compiler_list=
4430
4431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4432printf %s "checking dependency style of $depcc... " >&6; }
4433if test ${am_cv_CC_dependencies_compiler_type+y}
4434then :
4435  printf %s "(cached) " >&6
4436else $as_nop
4437  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4438  # We make a subdir and do the tests there.  Otherwise we can end up
4439  # making bogus files that we don't know about and never remove.  For
4440  # instance it was reported that on HP-UX the gcc test will end up
4441  # making a dummy file named 'D' -- because '-MD' means "put the output
4442  # in D".
4443  rm -rf conftest.dir
4444  mkdir conftest.dir
4445  # Copy depcomp to subdir because otherwise we won't find it if we're
4446  # using a relative directory.
4447  cp "$am_depcomp" conftest.dir
4448  cd conftest.dir
4449  # We will build objects and dependencies in a subdirectory because
4450  # it helps to detect inapplicable dependency modes.  For instance
4451  # both Tru64's cc and ICC support -MD to output dependencies as a
4452  # side effect of compilation, but ICC will put the dependencies in
4453  # the current directory while Tru64 will put them in the object
4454  # directory.
4455  mkdir sub
4456
4457  am_cv_CC_dependencies_compiler_type=none
4458  if test "$am_compiler_list" = ""; then
4459     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4460  fi
4461  am__universal=false
4462  case " $depcc " in #(
4463     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4464     esac
4465
4466  for depmode in $am_compiler_list; do
4467    # Setup a source with many dependencies, because some compilers
4468    # like to wrap large dependency lists on column 80 (with \), and
4469    # we should not choose a depcomp mode which is confused by this.
4470    #
4471    # We need to recreate these files for each test, as the compiler may
4472    # overwrite some of them when testing with obscure command lines.
4473    # This happens at least with the AIX C compiler.
4474    : > sub/conftest.c
4475    for i in 1 2 3 4 5 6; do
4476      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4477      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4478      # Solaris 10 /bin/sh.
4479      echo '/* dummy */' > sub/conftst$i.h
4480    done
4481    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4482
4483    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4484    # mode.  It turns out that the SunPro C++ compiler does not properly
4485    # handle '-M -o', and we need to detect this.  Also, some Intel
4486    # versions had trouble with output in subdirs.
4487    am__obj=sub/conftest.${OBJEXT-o}
4488    am__minus_obj="-o $am__obj"
4489    case $depmode in
4490    gcc)
4491      # This depmode causes a compiler race in universal mode.
4492      test "$am__universal" = false || continue
4493      ;;
4494    nosideeffect)
4495      # After this tag, mechanisms are not by side-effect, so they'll
4496      # only be used when explicitly requested.
4497      if test "x$enable_dependency_tracking" = xyes; then
4498	continue
4499      else
4500	break
4501      fi
4502      ;;
4503    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4504      # This compiler won't grok '-c -o', but also, the minuso test has
4505      # not run yet.  These depmodes are late enough in the game, and
4506      # so weak that their functioning should not be impacted.
4507      am__obj=conftest.${OBJEXT-o}
4508      am__minus_obj=
4509      ;;
4510    none) break ;;
4511    esac
4512    if depmode=$depmode \
4513       source=sub/conftest.c object=$am__obj \
4514       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4515       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4516         >/dev/null 2>conftest.err &&
4517       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4518       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4519       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4520       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4521      # icc doesn't choke on unknown options, it will just issue warnings
4522      # or remarks (even with -Werror).  So we grep stderr for any message
4523      # that says an option was ignored or not supported.
4524      # When given -MP, icc 7.0 and 7.1 complain thusly:
4525      #   icc: Command line warning: ignoring option '-M'; no argument required
4526      # The diagnosis changed in icc 8.0:
4527      #   icc: Command line remark: option '-MP' not supported
4528      if (grep 'ignoring option' conftest.err ||
4529          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4530        am_cv_CC_dependencies_compiler_type=$depmode
4531        break
4532      fi
4533    fi
4534  done
4535
4536  cd ..
4537  rm -rf conftest.dir
4538else
4539  am_cv_CC_dependencies_compiler_type=none
4540fi
4541
4542fi
4543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4544printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4545CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4546
4547 if
4548  test "x$enable_dependency_tracking" != xno \
4549  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4550  am__fastdepCC_TRUE=
4551  am__fastdepCC_FALSE='#'
4552else
4553  am__fastdepCC_TRUE='#'
4554  am__fastdepCC_FALSE=
4555fi
4556
4557
4558
4559
4560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4561printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4562if test ${ac_cv_c_undeclared_builtin_options+y}
4563then :
4564  printf %s "(cached) " >&6
4565else $as_nop
4566  ac_save_CFLAGS=$CFLAGS
4567   ac_cv_c_undeclared_builtin_options='cannot detect'
4568   for ac_arg in '' -fno-builtin; do
4569     CFLAGS="$ac_save_CFLAGS $ac_arg"
4570     # This test program should *not* compile successfully.
4571     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572/* end confdefs.h.  */
4573
4574int
4575main (void)
4576{
4577(void) strchr;
4578  ;
4579  return 0;
4580}
4581_ACEOF
4582if ac_fn_c_try_compile "$LINENO"
4583then :
4584
4585else $as_nop
4586  # This test program should compile successfully.
4587        # No library function is consistently available on
4588        # freestanding implementations, so test against a dummy
4589        # declaration.  Include always-available headers on the
4590        # off chance that they somehow elicit warnings.
4591        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592/* end confdefs.h.  */
4593#include <float.h>
4594#include <limits.h>
4595#include <stdarg.h>
4596#include <stddef.h>
4597extern void ac_decl (int, char *);
4598
4599int
4600main (void)
4601{
4602(void) ac_decl (0, (char *) 0);
4603  (void) ac_decl;
4604
4605  ;
4606  return 0;
4607}
4608_ACEOF
4609if ac_fn_c_try_compile "$LINENO"
4610then :
4611  if test x"$ac_arg" = x
4612then :
4613  ac_cv_c_undeclared_builtin_options='none needed'
4614else $as_nop
4615  ac_cv_c_undeclared_builtin_options=$ac_arg
4616fi
4617          break
4618fi
4619rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4620fi
4621rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4622    done
4623    CFLAGS=$ac_save_CFLAGS
4624
4625fi
4626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4627printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4628  case $ac_cv_c_undeclared_builtin_options in #(
4629  'cannot detect') :
4630    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4631printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4632as_fn_error $? "cannot make $CC report undeclared builtins
4633See \`config.log' for more details" "$LINENO" 5; } ;; #(
4634  'none needed') :
4635    ac_c_undeclared_builtin_options='' ;; #(
4636  *) :
4637    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4638esac
4639
4640ac_header= ac_cache=
4641for ac_item in $ac_header_c_list
4642do
4643  if test $ac_cache; then
4644    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4645    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4646      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4647    fi
4648    ac_header= ac_cache=
4649  elif test $ac_header; then
4650    ac_cache=$ac_item
4651  else
4652    ac_header=$ac_item
4653  fi
4654done
4655
4656
4657
4658
4659
4660
4661
4662
4663if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4664then :
4665
4666printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4667
4668fi
4669
4670
4671
4672
4673ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4674if test "x$ac_cv_have_decl___clang__" = xyes
4675then :
4676  CLANGCC="yes"
4677else $as_nop
4678  CLANGCC="no"
4679fi
4680ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4681if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4682then :
4683  INTELCC="yes"
4684else $as_nop
4685  INTELCC="no"
4686fi
4687ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4688if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4689then :
4690  SUNCC="yes"
4691else $as_nop
4692  SUNCC="no"
4693fi
4694
4695
4696
4697
4698
4699
4700
4701
4702if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4703	if test -n "$ac_tool_prefix"; then
4704  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4705set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4707printf %s "checking for $ac_word... " >&6; }
4708if test ${ac_cv_path_PKG_CONFIG+y}
4709then :
4710  printf %s "(cached) " >&6
4711else $as_nop
4712  case $PKG_CONFIG in
4713  [\\/]* | ?:[\\/]*)
4714  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4715  ;;
4716  *)
4717  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718for as_dir in $PATH
4719do
4720  IFS=$as_save_IFS
4721  case $as_dir in #(((
4722    '') as_dir=./ ;;
4723    */) ;;
4724    *) as_dir=$as_dir/ ;;
4725  esac
4726    for ac_exec_ext in '' $ac_executable_extensions; do
4727  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4728    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4729    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4730    break 2
4731  fi
4732done
4733  done
4734IFS=$as_save_IFS
4735
4736  ;;
4737esac
4738fi
4739PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4740if test -n "$PKG_CONFIG"; then
4741  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4742printf "%s\n" "$PKG_CONFIG" >&6; }
4743else
4744  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4745printf "%s\n" "no" >&6; }
4746fi
4747
4748
4749fi
4750if test -z "$ac_cv_path_PKG_CONFIG"; then
4751  ac_pt_PKG_CONFIG=$PKG_CONFIG
4752  # Extract the first word of "pkg-config", so it can be a program name with args.
4753set dummy pkg-config; ac_word=$2
4754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4755printf %s "checking for $ac_word... " >&6; }
4756if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4757then :
4758  printf %s "(cached) " >&6
4759else $as_nop
4760  case $ac_pt_PKG_CONFIG in
4761  [\\/]* | ?:[\\/]*)
4762  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4763  ;;
4764  *)
4765  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766for as_dir in $PATH
4767do
4768  IFS=$as_save_IFS
4769  case $as_dir in #(((
4770    '') as_dir=./ ;;
4771    */) ;;
4772    *) as_dir=$as_dir/ ;;
4773  esac
4774    for ac_exec_ext in '' $ac_executable_extensions; do
4775  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4776    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4777    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4778    break 2
4779  fi
4780done
4781  done
4782IFS=$as_save_IFS
4783
4784  ;;
4785esac
4786fi
4787ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4788if test -n "$ac_pt_PKG_CONFIG"; then
4789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4790printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4791else
4792  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4793printf "%s\n" "no" >&6; }
4794fi
4795
4796  if test "x$ac_pt_PKG_CONFIG" = x; then
4797    PKG_CONFIG=""
4798  else
4799    case $cross_compiling:$ac_tool_warned in
4800yes:)
4801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4802printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4803ac_tool_warned=yes ;;
4804esac
4805    PKG_CONFIG=$ac_pt_PKG_CONFIG
4806  fi
4807else
4808  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4809fi
4810
4811fi
4812if test -n "$PKG_CONFIG"; then
4813	_pkg_min_version=0.9.0
4814	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4815printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4816	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4817		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4818printf "%s\n" "yes" >&6; }
4819	else
4820		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4821printf "%s\n" "no" >&6; }
4822		PKG_CONFIG=""
4823	fi
4824fi
4825
4826
4827  # Make sure we can run config.sub.
4828$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4829  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4830
4831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4832printf %s "checking build system type... " >&6; }
4833if test ${ac_cv_build+y}
4834then :
4835  printf %s "(cached) " >&6
4836else $as_nop
4837  ac_build_alias=$build_alias
4838test "x$ac_build_alias" = x &&
4839  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4840test "x$ac_build_alias" = x &&
4841  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4842ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4843  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4844
4845fi
4846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4847printf "%s\n" "$ac_cv_build" >&6; }
4848case $ac_cv_build in
4849*-*-*) ;;
4850*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4851esac
4852build=$ac_cv_build
4853ac_save_IFS=$IFS; IFS='-'
4854set x $ac_cv_build
4855shift
4856build_cpu=$1
4857build_vendor=$2
4858shift; shift
4859# Remember, the first character of IFS is used to create $*,
4860# except with old shells:
4861build_os=$*
4862IFS=$ac_save_IFS
4863case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4864
4865
4866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4867printf %s "checking host system type... " >&6; }
4868if test ${ac_cv_host+y}
4869then :
4870  printf %s "(cached) " >&6
4871else $as_nop
4872  if test "x$host_alias" = x; then
4873  ac_cv_host=$ac_cv_build
4874else
4875  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4876    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4877fi
4878
4879fi
4880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4881printf "%s\n" "$ac_cv_host" >&6; }
4882case $ac_cv_host in
4883*-*-*) ;;
4884*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4885esac
4886host=$ac_cv_host
4887ac_save_IFS=$IFS; IFS='-'
4888set x $ac_cv_host
4889shift
4890host_cpu=$1
4891host_vendor=$2
4892shift; shift
4893# Remember, the first character of IFS is used to create $*,
4894# except with old shells:
4895host_os=$*
4896IFS=$ac_save_IFS
4897case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4898
4899
4900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4901printf %s "checking for a sed that does not truncate output... " >&6; }
4902if test ${ac_cv_path_SED+y}
4903then :
4904  printf %s "(cached) " >&6
4905else $as_nop
4906            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4907     for ac_i in 1 2 3 4 5 6 7; do
4908       ac_script="$ac_script$as_nl$ac_script"
4909     done
4910     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4911     { ac_script=; unset ac_script;}
4912     if test -z "$SED"; then
4913  ac_path_SED_found=false
4914  # Loop through the user's path and test for each of PROGNAME-LIST
4915  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916for as_dir in $PATH
4917do
4918  IFS=$as_save_IFS
4919  case $as_dir in #(((
4920    '') as_dir=./ ;;
4921    */) ;;
4922    *) as_dir=$as_dir/ ;;
4923  esac
4924    for ac_prog in sed gsed
4925   do
4926    for ac_exec_ext in '' $ac_executable_extensions; do
4927      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4928      as_fn_executable_p "$ac_path_SED" || continue
4929# Check for GNU ac_path_SED and select it if it is found.
4930  # Check for GNU $ac_path_SED
4931case `"$ac_path_SED" --version 2>&1` in
4932*GNU*)
4933  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4934*)
4935  ac_count=0
4936  printf %s 0123456789 >"conftest.in"
4937  while :
4938  do
4939    cat "conftest.in" "conftest.in" >"conftest.tmp"
4940    mv "conftest.tmp" "conftest.in"
4941    cp "conftest.in" "conftest.nl"
4942    printf "%s\n" '' >> "conftest.nl"
4943    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4944    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4945    as_fn_arith $ac_count + 1 && ac_count=$as_val
4946    if test $ac_count -gt ${ac_path_SED_max-0}; then
4947      # Best one so far, save it but keep looking for a better one
4948      ac_cv_path_SED="$ac_path_SED"
4949      ac_path_SED_max=$ac_count
4950    fi
4951    # 10*(2^10) chars as input seems more than enough
4952    test $ac_count -gt 10 && break
4953  done
4954  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4955esac
4956
4957      $ac_path_SED_found && break 3
4958    done
4959  done
4960  done
4961IFS=$as_save_IFS
4962  if test -z "$ac_cv_path_SED"; then
4963    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4964  fi
4965else
4966  ac_cv_path_SED=$SED
4967fi
4968
4969fi
4970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4971printf "%s\n" "$ac_cv_path_SED" >&6; }
4972 SED="$ac_cv_path_SED"
4973  rm -f conftest.sed
4974
4975
4976
4977
4978
4979
4980# Check whether --enable-selective-werror was given.
4981if test ${enable_selective_werror+y}
4982then :
4983  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4984else $as_nop
4985  SELECTIVE_WERROR=yes
4986fi
4987
4988
4989
4990
4991
4992# -v is too short to test reliably with XORG_TESTSET_CFLAG
4993if test "x$SUNCC" = "xyes"; then
4994    BASE_CFLAGS="-v"
4995else
4996    BASE_CFLAGS=""
4997fi
4998
4999# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013xorg_testset_save_CFLAGS="$CFLAGS"
5014
5015if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5016	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5017	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5018printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5019if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5020then :
5021  printf %s "(cached) " >&6
5022else $as_nop
5023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024/* end confdefs.h.  */
5025int i;
5026_ACEOF
5027if ac_fn_c_try_compile "$LINENO"
5028then :
5029  xorg_cv_cc_flag_unknown_warning_option=yes
5030else $as_nop
5031  xorg_cv_cc_flag_unknown_warning_option=no
5032fi
5033rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5034fi
5035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5036printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5037	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5038	CFLAGS="$xorg_testset_save_CFLAGS"
5039fi
5040
5041if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5042	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5043		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5044	fi
5045	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5046	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5047printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5048if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5049then :
5050  printf %s "(cached) " >&6
5051else $as_nop
5052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053/* end confdefs.h.  */
5054int i;
5055_ACEOF
5056if ac_fn_c_try_compile "$LINENO"
5057then :
5058  xorg_cv_cc_flag_unused_command_line_argument=yes
5059else $as_nop
5060  xorg_cv_cc_flag_unused_command_line_argument=no
5061fi
5062rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5063fi
5064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5065printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5066	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5067	CFLAGS="$xorg_testset_save_CFLAGS"
5068fi
5069
5070found="no"
5071
5072	if test $found = "no" ; then
5073		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5074			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5075		fi
5076
5077		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5078			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5079		fi
5080
5081		CFLAGS="$CFLAGS -Wall"
5082
5083		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5084printf %s "checking if $CC supports -Wall... " >&6; }
5085		cacheid=xorg_cv_cc_flag__Wall
5086		if eval test \${$cacheid+y}
5087then :
5088  printf %s "(cached) " >&6
5089else $as_nop
5090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5091/* end confdefs.h.  */
5092int i;
5093int
5094main (void)
5095{
5096
5097  ;
5098  return 0;
5099}
5100_ACEOF
5101if ac_fn_c_try_link "$LINENO"
5102then :
5103  eval $cacheid=yes
5104else $as_nop
5105  eval $cacheid=no
5106fi
5107rm -f core conftest.err conftest.$ac_objext conftest.beam \
5108    conftest$ac_exeext conftest.$ac_ext
5109fi
5110
5111
5112		CFLAGS="$xorg_testset_save_CFLAGS"
5113
5114		eval supported=\$$cacheid
5115		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5116printf "%s\n" "$supported" >&6; }
5117		if test "$supported" = "yes" ; then
5118			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5119			found="yes"
5120		fi
5121	fi
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137xorg_testset_save_CFLAGS="$CFLAGS"
5138
5139if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5140	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5141	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5142printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5143if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5144then :
5145  printf %s "(cached) " >&6
5146else $as_nop
5147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5148/* end confdefs.h.  */
5149int i;
5150_ACEOF
5151if ac_fn_c_try_compile "$LINENO"
5152then :
5153  xorg_cv_cc_flag_unknown_warning_option=yes
5154else $as_nop
5155  xorg_cv_cc_flag_unknown_warning_option=no
5156fi
5157rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5158fi
5159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5160printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5161	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5162	CFLAGS="$xorg_testset_save_CFLAGS"
5163fi
5164
5165if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5166	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5167		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5168	fi
5169	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5170	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5171printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5172if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5173then :
5174  printf %s "(cached) " >&6
5175else $as_nop
5176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177/* end confdefs.h.  */
5178int i;
5179_ACEOF
5180if ac_fn_c_try_compile "$LINENO"
5181then :
5182  xorg_cv_cc_flag_unused_command_line_argument=yes
5183else $as_nop
5184  xorg_cv_cc_flag_unused_command_line_argument=no
5185fi
5186rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5187fi
5188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5189printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5190	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5191	CFLAGS="$xorg_testset_save_CFLAGS"
5192fi
5193
5194found="no"
5195
5196	if test $found = "no" ; then
5197		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5198			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5199		fi
5200
5201		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5202			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5203		fi
5204
5205		CFLAGS="$CFLAGS -Wpointer-arith"
5206
5207		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5208printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5209		cacheid=xorg_cv_cc_flag__Wpointer_arith
5210		if eval test \${$cacheid+y}
5211then :
5212  printf %s "(cached) " >&6
5213else $as_nop
5214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215/* end confdefs.h.  */
5216int i;
5217int
5218main (void)
5219{
5220
5221  ;
5222  return 0;
5223}
5224_ACEOF
5225if ac_fn_c_try_link "$LINENO"
5226then :
5227  eval $cacheid=yes
5228else $as_nop
5229  eval $cacheid=no
5230fi
5231rm -f core conftest.err conftest.$ac_objext conftest.beam \
5232    conftest$ac_exeext conftest.$ac_ext
5233fi
5234
5235
5236		CFLAGS="$xorg_testset_save_CFLAGS"
5237
5238		eval supported=\$$cacheid
5239		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5240printf "%s\n" "$supported" >&6; }
5241		if test "$supported" = "yes" ; then
5242			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5243			found="yes"
5244		fi
5245	fi
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261xorg_testset_save_CFLAGS="$CFLAGS"
5262
5263if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5264	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5265	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5266printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5267if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5268then :
5269  printf %s "(cached) " >&6
5270else $as_nop
5271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272/* end confdefs.h.  */
5273int i;
5274_ACEOF
5275if ac_fn_c_try_compile "$LINENO"
5276then :
5277  xorg_cv_cc_flag_unknown_warning_option=yes
5278else $as_nop
5279  xorg_cv_cc_flag_unknown_warning_option=no
5280fi
5281rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5282fi
5283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5284printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5285	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5286	CFLAGS="$xorg_testset_save_CFLAGS"
5287fi
5288
5289if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5290	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5291		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5292	fi
5293	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5294	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5295printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5296if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5297then :
5298  printf %s "(cached) " >&6
5299else $as_nop
5300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301/* end confdefs.h.  */
5302int i;
5303_ACEOF
5304if ac_fn_c_try_compile "$LINENO"
5305then :
5306  xorg_cv_cc_flag_unused_command_line_argument=yes
5307else $as_nop
5308  xorg_cv_cc_flag_unused_command_line_argument=no
5309fi
5310rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5311fi
5312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5313printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5314	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5315	CFLAGS="$xorg_testset_save_CFLAGS"
5316fi
5317
5318found="no"
5319
5320	if test $found = "no" ; then
5321		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5322			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5323		fi
5324
5325		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5326			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5327		fi
5328
5329		CFLAGS="$CFLAGS -Wmissing-declarations"
5330
5331		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5332printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5333		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5334		if eval test \${$cacheid+y}
5335then :
5336  printf %s "(cached) " >&6
5337else $as_nop
5338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339/* end confdefs.h.  */
5340int i;
5341int
5342main (void)
5343{
5344
5345  ;
5346  return 0;
5347}
5348_ACEOF
5349if ac_fn_c_try_link "$LINENO"
5350then :
5351  eval $cacheid=yes
5352else $as_nop
5353  eval $cacheid=no
5354fi
5355rm -f core conftest.err conftest.$ac_objext conftest.beam \
5356    conftest$ac_exeext conftest.$ac_ext
5357fi
5358
5359
5360		CFLAGS="$xorg_testset_save_CFLAGS"
5361
5362		eval supported=\$$cacheid
5363		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5364printf "%s\n" "$supported" >&6; }
5365		if test "$supported" = "yes" ; then
5366			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5367			found="yes"
5368		fi
5369	fi
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385xorg_testset_save_CFLAGS="$CFLAGS"
5386
5387if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5388	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5389	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5390printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5391if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5392then :
5393  printf %s "(cached) " >&6
5394else $as_nop
5395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396/* end confdefs.h.  */
5397int i;
5398_ACEOF
5399if ac_fn_c_try_compile "$LINENO"
5400then :
5401  xorg_cv_cc_flag_unknown_warning_option=yes
5402else $as_nop
5403  xorg_cv_cc_flag_unknown_warning_option=no
5404fi
5405rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5406fi
5407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5408printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5409	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5410	CFLAGS="$xorg_testset_save_CFLAGS"
5411fi
5412
5413if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5414	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5415		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5416	fi
5417	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5418	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5419printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5420if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5421then :
5422  printf %s "(cached) " >&6
5423else $as_nop
5424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425/* end confdefs.h.  */
5426int i;
5427_ACEOF
5428if ac_fn_c_try_compile "$LINENO"
5429then :
5430  xorg_cv_cc_flag_unused_command_line_argument=yes
5431else $as_nop
5432  xorg_cv_cc_flag_unused_command_line_argument=no
5433fi
5434rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5435fi
5436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5437printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5438	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5439	CFLAGS="$xorg_testset_save_CFLAGS"
5440fi
5441
5442found="no"
5443
5444	if test $found = "no" ; then
5445		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5446			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5447		fi
5448
5449		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5450			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5451		fi
5452
5453		CFLAGS="$CFLAGS -Wformat=2"
5454
5455		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5456printf %s "checking if $CC supports -Wformat=2... " >&6; }
5457		cacheid=xorg_cv_cc_flag__Wformat_2
5458		if eval test \${$cacheid+y}
5459then :
5460  printf %s "(cached) " >&6
5461else $as_nop
5462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5463/* end confdefs.h.  */
5464int i;
5465int
5466main (void)
5467{
5468
5469  ;
5470  return 0;
5471}
5472_ACEOF
5473if ac_fn_c_try_link "$LINENO"
5474then :
5475  eval $cacheid=yes
5476else $as_nop
5477  eval $cacheid=no
5478fi
5479rm -f core conftest.err conftest.$ac_objext conftest.beam \
5480    conftest$ac_exeext conftest.$ac_ext
5481fi
5482
5483
5484		CFLAGS="$xorg_testset_save_CFLAGS"
5485
5486		eval supported=\$$cacheid
5487		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5488printf "%s\n" "$supported" >&6; }
5489		if test "$supported" = "yes" ; then
5490			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5491			found="yes"
5492		fi
5493	fi
5494
5495	if test $found = "no" ; then
5496		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5497			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5498		fi
5499
5500		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5501			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5502		fi
5503
5504		CFLAGS="$CFLAGS -Wformat"
5505
5506		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5507printf %s "checking if $CC supports -Wformat... " >&6; }
5508		cacheid=xorg_cv_cc_flag__Wformat
5509		if eval test \${$cacheid+y}
5510then :
5511  printf %s "(cached) " >&6
5512else $as_nop
5513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514/* end confdefs.h.  */
5515int i;
5516int
5517main (void)
5518{
5519
5520  ;
5521  return 0;
5522}
5523_ACEOF
5524if ac_fn_c_try_link "$LINENO"
5525then :
5526  eval $cacheid=yes
5527else $as_nop
5528  eval $cacheid=no
5529fi
5530rm -f core conftest.err conftest.$ac_objext conftest.beam \
5531    conftest$ac_exeext conftest.$ac_ext
5532fi
5533
5534
5535		CFLAGS="$xorg_testset_save_CFLAGS"
5536
5537		eval supported=\$$cacheid
5538		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5539printf "%s\n" "$supported" >&6; }
5540		if test "$supported" = "yes" ; then
5541			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5542			found="yes"
5543		fi
5544	fi
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562xorg_testset_save_CFLAGS="$CFLAGS"
5563
5564if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5565	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5566	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5567printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5568if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5569then :
5570  printf %s "(cached) " >&6
5571else $as_nop
5572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573/* end confdefs.h.  */
5574int i;
5575_ACEOF
5576if ac_fn_c_try_compile "$LINENO"
5577then :
5578  xorg_cv_cc_flag_unknown_warning_option=yes
5579else $as_nop
5580  xorg_cv_cc_flag_unknown_warning_option=no
5581fi
5582rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5583fi
5584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5585printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5586	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5587	CFLAGS="$xorg_testset_save_CFLAGS"
5588fi
5589
5590if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5591	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5592		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5593	fi
5594	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5595	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5596printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5597if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5598then :
5599  printf %s "(cached) " >&6
5600else $as_nop
5601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5602/* end confdefs.h.  */
5603int i;
5604_ACEOF
5605if ac_fn_c_try_compile "$LINENO"
5606then :
5607  xorg_cv_cc_flag_unused_command_line_argument=yes
5608else $as_nop
5609  xorg_cv_cc_flag_unused_command_line_argument=no
5610fi
5611rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5612fi
5613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5614printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5615	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5616	CFLAGS="$xorg_testset_save_CFLAGS"
5617fi
5618
5619found="no"
5620
5621	if test $found = "no" ; then
5622		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5623			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5624		fi
5625
5626		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5627			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5628		fi
5629
5630		CFLAGS="$CFLAGS -Wstrict-prototypes"
5631
5632		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5633printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5634		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5635		if eval test \${$cacheid+y}
5636then :
5637  printf %s "(cached) " >&6
5638else $as_nop
5639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640/* end confdefs.h.  */
5641int i;
5642int
5643main (void)
5644{
5645
5646  ;
5647  return 0;
5648}
5649_ACEOF
5650if ac_fn_c_try_link "$LINENO"
5651then :
5652  eval $cacheid=yes
5653else $as_nop
5654  eval $cacheid=no
5655fi
5656rm -f core conftest.err conftest.$ac_objext conftest.beam \
5657    conftest$ac_exeext conftest.$ac_ext
5658fi
5659
5660
5661		CFLAGS="$xorg_testset_save_CFLAGS"
5662
5663		eval supported=\$$cacheid
5664		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5665printf "%s\n" "$supported" >&6; }
5666		if test "$supported" = "yes" ; then
5667			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5668			found="yes"
5669		fi
5670	fi
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686xorg_testset_save_CFLAGS="$CFLAGS"
5687
5688if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5689	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5690	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5691printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5692if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5693then :
5694  printf %s "(cached) " >&6
5695else $as_nop
5696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697/* end confdefs.h.  */
5698int i;
5699_ACEOF
5700if ac_fn_c_try_compile "$LINENO"
5701then :
5702  xorg_cv_cc_flag_unknown_warning_option=yes
5703else $as_nop
5704  xorg_cv_cc_flag_unknown_warning_option=no
5705fi
5706rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5707fi
5708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5709printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5710	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5711	CFLAGS="$xorg_testset_save_CFLAGS"
5712fi
5713
5714if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5715	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5716		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5717	fi
5718	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5719	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5720printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5721if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5722then :
5723  printf %s "(cached) " >&6
5724else $as_nop
5725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5726/* end confdefs.h.  */
5727int i;
5728_ACEOF
5729if ac_fn_c_try_compile "$LINENO"
5730then :
5731  xorg_cv_cc_flag_unused_command_line_argument=yes
5732else $as_nop
5733  xorg_cv_cc_flag_unused_command_line_argument=no
5734fi
5735rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5736fi
5737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5738printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5739	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5740	CFLAGS="$xorg_testset_save_CFLAGS"
5741fi
5742
5743found="no"
5744
5745	if test $found = "no" ; then
5746		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5747			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5748		fi
5749
5750		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5751			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5752		fi
5753
5754		CFLAGS="$CFLAGS -Wmissing-prototypes"
5755
5756		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5757printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5758		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5759		if eval test \${$cacheid+y}
5760then :
5761  printf %s "(cached) " >&6
5762else $as_nop
5763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764/* end confdefs.h.  */
5765int i;
5766int
5767main (void)
5768{
5769
5770  ;
5771  return 0;
5772}
5773_ACEOF
5774if ac_fn_c_try_link "$LINENO"
5775then :
5776  eval $cacheid=yes
5777else $as_nop
5778  eval $cacheid=no
5779fi
5780rm -f core conftest.err conftest.$ac_objext conftest.beam \
5781    conftest$ac_exeext conftest.$ac_ext
5782fi
5783
5784
5785		CFLAGS="$xorg_testset_save_CFLAGS"
5786
5787		eval supported=\$$cacheid
5788		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5789printf "%s\n" "$supported" >&6; }
5790		if test "$supported" = "yes" ; then
5791			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5792			found="yes"
5793		fi
5794	fi
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810xorg_testset_save_CFLAGS="$CFLAGS"
5811
5812if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5813	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5814	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5815printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5816if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5817then :
5818  printf %s "(cached) " >&6
5819else $as_nop
5820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821/* end confdefs.h.  */
5822int i;
5823_ACEOF
5824if ac_fn_c_try_compile "$LINENO"
5825then :
5826  xorg_cv_cc_flag_unknown_warning_option=yes
5827else $as_nop
5828  xorg_cv_cc_flag_unknown_warning_option=no
5829fi
5830rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5831fi
5832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5833printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5834	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5835	CFLAGS="$xorg_testset_save_CFLAGS"
5836fi
5837
5838if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5839	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5840		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5841	fi
5842	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5843	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5844printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5845if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5846then :
5847  printf %s "(cached) " >&6
5848else $as_nop
5849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5850/* end confdefs.h.  */
5851int i;
5852_ACEOF
5853if ac_fn_c_try_compile "$LINENO"
5854then :
5855  xorg_cv_cc_flag_unused_command_line_argument=yes
5856else $as_nop
5857  xorg_cv_cc_flag_unused_command_line_argument=no
5858fi
5859rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5860fi
5861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5862printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5863	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5864	CFLAGS="$xorg_testset_save_CFLAGS"
5865fi
5866
5867found="no"
5868
5869	if test $found = "no" ; then
5870		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5871			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5872		fi
5873
5874		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5875			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5876		fi
5877
5878		CFLAGS="$CFLAGS -Wnested-externs"
5879
5880		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5881printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5882		cacheid=xorg_cv_cc_flag__Wnested_externs
5883		if eval test \${$cacheid+y}
5884then :
5885  printf %s "(cached) " >&6
5886else $as_nop
5887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888/* end confdefs.h.  */
5889int i;
5890int
5891main (void)
5892{
5893
5894  ;
5895  return 0;
5896}
5897_ACEOF
5898if ac_fn_c_try_link "$LINENO"
5899then :
5900  eval $cacheid=yes
5901else $as_nop
5902  eval $cacheid=no
5903fi
5904rm -f core conftest.err conftest.$ac_objext conftest.beam \
5905    conftest$ac_exeext conftest.$ac_ext
5906fi
5907
5908
5909		CFLAGS="$xorg_testset_save_CFLAGS"
5910
5911		eval supported=\$$cacheid
5912		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5913printf "%s\n" "$supported" >&6; }
5914		if test "$supported" = "yes" ; then
5915			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5916			found="yes"
5917		fi
5918	fi
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934xorg_testset_save_CFLAGS="$CFLAGS"
5935
5936if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5937	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5938	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5939printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5940if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5941then :
5942  printf %s "(cached) " >&6
5943else $as_nop
5944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5945/* end confdefs.h.  */
5946int i;
5947_ACEOF
5948if ac_fn_c_try_compile "$LINENO"
5949then :
5950  xorg_cv_cc_flag_unknown_warning_option=yes
5951else $as_nop
5952  xorg_cv_cc_flag_unknown_warning_option=no
5953fi
5954rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5955fi
5956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5957printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5958	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5959	CFLAGS="$xorg_testset_save_CFLAGS"
5960fi
5961
5962if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5963	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5964		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5965	fi
5966	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5967	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5968printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5969if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5970then :
5971  printf %s "(cached) " >&6
5972else $as_nop
5973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974/* end confdefs.h.  */
5975int i;
5976_ACEOF
5977if ac_fn_c_try_compile "$LINENO"
5978then :
5979  xorg_cv_cc_flag_unused_command_line_argument=yes
5980else $as_nop
5981  xorg_cv_cc_flag_unused_command_line_argument=no
5982fi
5983rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5984fi
5985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5986printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5987	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5988	CFLAGS="$xorg_testset_save_CFLAGS"
5989fi
5990
5991found="no"
5992
5993	if test $found = "no" ; then
5994		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5995			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5996		fi
5997
5998		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5999			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6000		fi
6001
6002		CFLAGS="$CFLAGS -Wbad-function-cast"
6003
6004		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6005printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6006		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6007		if eval test \${$cacheid+y}
6008then :
6009  printf %s "(cached) " >&6
6010else $as_nop
6011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012/* end confdefs.h.  */
6013int i;
6014int
6015main (void)
6016{
6017
6018  ;
6019  return 0;
6020}
6021_ACEOF
6022if ac_fn_c_try_link "$LINENO"
6023then :
6024  eval $cacheid=yes
6025else $as_nop
6026  eval $cacheid=no
6027fi
6028rm -f core conftest.err conftest.$ac_objext conftest.beam \
6029    conftest$ac_exeext conftest.$ac_ext
6030fi
6031
6032
6033		CFLAGS="$xorg_testset_save_CFLAGS"
6034
6035		eval supported=\$$cacheid
6036		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6037printf "%s\n" "$supported" >&6; }
6038		if test "$supported" = "yes" ; then
6039			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6040			found="yes"
6041		fi
6042	fi
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058xorg_testset_save_CFLAGS="$CFLAGS"
6059
6060if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6061	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6062	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6063printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6064if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6065then :
6066  printf %s "(cached) " >&6
6067else $as_nop
6068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069/* end confdefs.h.  */
6070int i;
6071_ACEOF
6072if ac_fn_c_try_compile "$LINENO"
6073then :
6074  xorg_cv_cc_flag_unknown_warning_option=yes
6075else $as_nop
6076  xorg_cv_cc_flag_unknown_warning_option=no
6077fi
6078rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6079fi
6080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6081printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6082	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6083	CFLAGS="$xorg_testset_save_CFLAGS"
6084fi
6085
6086if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6087	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6088		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6089	fi
6090	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6091	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6092printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6093if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6094then :
6095  printf %s "(cached) " >&6
6096else $as_nop
6097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6098/* end confdefs.h.  */
6099int i;
6100_ACEOF
6101if ac_fn_c_try_compile "$LINENO"
6102then :
6103  xorg_cv_cc_flag_unused_command_line_argument=yes
6104else $as_nop
6105  xorg_cv_cc_flag_unused_command_line_argument=no
6106fi
6107rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6108fi
6109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6110printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6111	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6112	CFLAGS="$xorg_testset_save_CFLAGS"
6113fi
6114
6115found="no"
6116
6117	if test $found = "no" ; then
6118		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6119			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6120		fi
6121
6122		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6123			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6124		fi
6125
6126		CFLAGS="$CFLAGS -Wold-style-definition"
6127
6128		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6129printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6130		cacheid=xorg_cv_cc_flag__Wold_style_definition
6131		if eval test \${$cacheid+y}
6132then :
6133  printf %s "(cached) " >&6
6134else $as_nop
6135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6136/* end confdefs.h.  */
6137int i;
6138int
6139main (void)
6140{
6141
6142  ;
6143  return 0;
6144}
6145_ACEOF
6146if ac_fn_c_try_link "$LINENO"
6147then :
6148  eval $cacheid=yes
6149else $as_nop
6150  eval $cacheid=no
6151fi
6152rm -f core conftest.err conftest.$ac_objext conftest.beam \
6153    conftest$ac_exeext conftest.$ac_ext
6154fi
6155
6156
6157		CFLAGS="$xorg_testset_save_CFLAGS"
6158
6159		eval supported=\$$cacheid
6160		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6161printf "%s\n" "$supported" >&6; }
6162		if test "$supported" = "yes" ; then
6163			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6164			found="yes"
6165		fi
6166	fi
6167
6168	if test $found = "no" ; then
6169		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6170			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6171		fi
6172
6173		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6174			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6175		fi
6176
6177		CFLAGS="$CFLAGS -fd"
6178
6179		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6180printf %s "checking if $CC supports -fd... " >&6; }
6181		cacheid=xorg_cv_cc_flag__fd
6182		if eval test \${$cacheid+y}
6183then :
6184  printf %s "(cached) " >&6
6185else $as_nop
6186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6187/* end confdefs.h.  */
6188int i;
6189int
6190main (void)
6191{
6192
6193  ;
6194  return 0;
6195}
6196_ACEOF
6197if ac_fn_c_try_link "$LINENO"
6198then :
6199  eval $cacheid=yes
6200else $as_nop
6201  eval $cacheid=no
6202fi
6203rm -f core conftest.err conftest.$ac_objext conftest.beam \
6204    conftest$ac_exeext conftest.$ac_ext
6205fi
6206
6207
6208		CFLAGS="$xorg_testset_save_CFLAGS"
6209
6210		eval supported=\$$cacheid
6211		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6212printf "%s\n" "$supported" >&6; }
6213		if test "$supported" = "yes" ; then
6214			BASE_CFLAGS="$BASE_CFLAGS -fd"
6215			found="yes"
6216		fi
6217	fi
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233xorg_testset_save_CFLAGS="$CFLAGS"
6234
6235if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6236	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6237	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6238printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6239if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6240then :
6241  printf %s "(cached) " >&6
6242else $as_nop
6243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6244/* end confdefs.h.  */
6245int i;
6246_ACEOF
6247if ac_fn_c_try_compile "$LINENO"
6248then :
6249  xorg_cv_cc_flag_unknown_warning_option=yes
6250else $as_nop
6251  xorg_cv_cc_flag_unknown_warning_option=no
6252fi
6253rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6254fi
6255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6256printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6257	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6258	CFLAGS="$xorg_testset_save_CFLAGS"
6259fi
6260
6261if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6262	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6263		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6264	fi
6265	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6266	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6267printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6268if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6269then :
6270  printf %s "(cached) " >&6
6271else $as_nop
6272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273/* end confdefs.h.  */
6274int i;
6275_ACEOF
6276if ac_fn_c_try_compile "$LINENO"
6277then :
6278  xorg_cv_cc_flag_unused_command_line_argument=yes
6279else $as_nop
6280  xorg_cv_cc_flag_unused_command_line_argument=no
6281fi
6282rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6283fi
6284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6285printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6286	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6287	CFLAGS="$xorg_testset_save_CFLAGS"
6288fi
6289
6290found="no"
6291
6292	if test $found = "no" ; then
6293		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6294			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6295		fi
6296
6297		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6298			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6299		fi
6300
6301		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6302
6303		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6304printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6305		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6306		if eval test \${$cacheid+y}
6307then :
6308  printf %s "(cached) " >&6
6309else $as_nop
6310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6311/* end confdefs.h.  */
6312int i;
6313int
6314main (void)
6315{
6316
6317  ;
6318  return 0;
6319}
6320_ACEOF
6321if ac_fn_c_try_link "$LINENO"
6322then :
6323  eval $cacheid=yes
6324else $as_nop
6325  eval $cacheid=no
6326fi
6327rm -f core conftest.err conftest.$ac_objext conftest.beam \
6328    conftest$ac_exeext conftest.$ac_ext
6329fi
6330
6331
6332		CFLAGS="$xorg_testset_save_CFLAGS"
6333
6334		eval supported=\$$cacheid
6335		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6336printf "%s\n" "$supported" >&6; }
6337		if test "$supported" = "yes" ; then
6338			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6339			found="yes"
6340		fi
6341	fi
6342
6343
6344
6345
6346
6347# This chunk adds additional warnings that could catch undesired effects.
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361xorg_testset_save_CFLAGS="$CFLAGS"
6362
6363if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6364	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6365	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6366printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6367if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6368then :
6369  printf %s "(cached) " >&6
6370else $as_nop
6371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372/* end confdefs.h.  */
6373int i;
6374_ACEOF
6375if ac_fn_c_try_compile "$LINENO"
6376then :
6377  xorg_cv_cc_flag_unknown_warning_option=yes
6378else $as_nop
6379  xorg_cv_cc_flag_unknown_warning_option=no
6380fi
6381rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6382fi
6383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6384printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6385	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6386	CFLAGS="$xorg_testset_save_CFLAGS"
6387fi
6388
6389if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6390	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6391		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6392	fi
6393	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6394	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6395printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6396if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6397then :
6398  printf %s "(cached) " >&6
6399else $as_nop
6400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6401/* end confdefs.h.  */
6402int i;
6403_ACEOF
6404if ac_fn_c_try_compile "$LINENO"
6405then :
6406  xorg_cv_cc_flag_unused_command_line_argument=yes
6407else $as_nop
6408  xorg_cv_cc_flag_unused_command_line_argument=no
6409fi
6410rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6411fi
6412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6413printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6414	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6415	CFLAGS="$xorg_testset_save_CFLAGS"
6416fi
6417
6418found="no"
6419
6420	if test $found = "no" ; then
6421		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6422			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6423		fi
6424
6425		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6426			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6427		fi
6428
6429		CFLAGS="$CFLAGS -Wunused"
6430
6431		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6432printf %s "checking if $CC supports -Wunused... " >&6; }
6433		cacheid=xorg_cv_cc_flag__Wunused
6434		if eval test \${$cacheid+y}
6435then :
6436  printf %s "(cached) " >&6
6437else $as_nop
6438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6439/* end confdefs.h.  */
6440int i;
6441int
6442main (void)
6443{
6444
6445  ;
6446  return 0;
6447}
6448_ACEOF
6449if ac_fn_c_try_link "$LINENO"
6450then :
6451  eval $cacheid=yes
6452else $as_nop
6453  eval $cacheid=no
6454fi
6455rm -f core conftest.err conftest.$ac_objext conftest.beam \
6456    conftest$ac_exeext conftest.$ac_ext
6457fi
6458
6459
6460		CFLAGS="$xorg_testset_save_CFLAGS"
6461
6462		eval supported=\$$cacheid
6463		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6464printf "%s\n" "$supported" >&6; }
6465		if test "$supported" = "yes" ; then
6466			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6467			found="yes"
6468		fi
6469	fi
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485xorg_testset_save_CFLAGS="$CFLAGS"
6486
6487if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6488	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6489	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6490printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6491if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6492then :
6493  printf %s "(cached) " >&6
6494else $as_nop
6495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6496/* end confdefs.h.  */
6497int i;
6498_ACEOF
6499if ac_fn_c_try_compile "$LINENO"
6500then :
6501  xorg_cv_cc_flag_unknown_warning_option=yes
6502else $as_nop
6503  xorg_cv_cc_flag_unknown_warning_option=no
6504fi
6505rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6506fi
6507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6508printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6509	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6510	CFLAGS="$xorg_testset_save_CFLAGS"
6511fi
6512
6513if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6514	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6515		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6516	fi
6517	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6518	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6519printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6520if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6521then :
6522  printf %s "(cached) " >&6
6523else $as_nop
6524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525/* end confdefs.h.  */
6526int i;
6527_ACEOF
6528if ac_fn_c_try_compile "$LINENO"
6529then :
6530  xorg_cv_cc_flag_unused_command_line_argument=yes
6531else $as_nop
6532  xorg_cv_cc_flag_unused_command_line_argument=no
6533fi
6534rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6535fi
6536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6537printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6538	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6539	CFLAGS="$xorg_testset_save_CFLAGS"
6540fi
6541
6542found="no"
6543
6544	if test $found = "no" ; then
6545		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6546			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6547		fi
6548
6549		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6550			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6551		fi
6552
6553		CFLAGS="$CFLAGS -Wuninitialized"
6554
6555		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6556printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6557		cacheid=xorg_cv_cc_flag__Wuninitialized
6558		if eval test \${$cacheid+y}
6559then :
6560  printf %s "(cached) " >&6
6561else $as_nop
6562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6563/* end confdefs.h.  */
6564int i;
6565int
6566main (void)
6567{
6568
6569  ;
6570  return 0;
6571}
6572_ACEOF
6573if ac_fn_c_try_link "$LINENO"
6574then :
6575  eval $cacheid=yes
6576else $as_nop
6577  eval $cacheid=no
6578fi
6579rm -f core conftest.err conftest.$ac_objext conftest.beam \
6580    conftest$ac_exeext conftest.$ac_ext
6581fi
6582
6583
6584		CFLAGS="$xorg_testset_save_CFLAGS"
6585
6586		eval supported=\$$cacheid
6587		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6588printf "%s\n" "$supported" >&6; }
6589		if test "$supported" = "yes" ; then
6590			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6591			found="yes"
6592		fi
6593	fi
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609xorg_testset_save_CFLAGS="$CFLAGS"
6610
6611if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6612	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6613	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6614printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6615if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6616then :
6617  printf %s "(cached) " >&6
6618else $as_nop
6619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620/* end confdefs.h.  */
6621int i;
6622_ACEOF
6623if ac_fn_c_try_compile "$LINENO"
6624then :
6625  xorg_cv_cc_flag_unknown_warning_option=yes
6626else $as_nop
6627  xorg_cv_cc_flag_unknown_warning_option=no
6628fi
6629rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6630fi
6631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6632printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6633	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6634	CFLAGS="$xorg_testset_save_CFLAGS"
6635fi
6636
6637if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6638	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6639		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6640	fi
6641	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6642	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6643printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6644if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6645then :
6646  printf %s "(cached) " >&6
6647else $as_nop
6648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6649/* end confdefs.h.  */
6650int i;
6651_ACEOF
6652if ac_fn_c_try_compile "$LINENO"
6653then :
6654  xorg_cv_cc_flag_unused_command_line_argument=yes
6655else $as_nop
6656  xorg_cv_cc_flag_unused_command_line_argument=no
6657fi
6658rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6659fi
6660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6661printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6662	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6663	CFLAGS="$xorg_testset_save_CFLAGS"
6664fi
6665
6666found="no"
6667
6668	if test $found = "no" ; then
6669		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6670			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6671		fi
6672
6673		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6674			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6675		fi
6676
6677		CFLAGS="$CFLAGS -Wshadow"
6678
6679		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6680printf %s "checking if $CC supports -Wshadow... " >&6; }
6681		cacheid=xorg_cv_cc_flag__Wshadow
6682		if eval test \${$cacheid+y}
6683then :
6684  printf %s "(cached) " >&6
6685else $as_nop
6686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6687/* end confdefs.h.  */
6688int i;
6689int
6690main (void)
6691{
6692
6693  ;
6694  return 0;
6695}
6696_ACEOF
6697if ac_fn_c_try_link "$LINENO"
6698then :
6699  eval $cacheid=yes
6700else $as_nop
6701  eval $cacheid=no
6702fi
6703rm -f core conftest.err conftest.$ac_objext conftest.beam \
6704    conftest$ac_exeext conftest.$ac_ext
6705fi
6706
6707
6708		CFLAGS="$xorg_testset_save_CFLAGS"
6709
6710		eval supported=\$$cacheid
6711		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6712printf "%s\n" "$supported" >&6; }
6713		if test "$supported" = "yes" ; then
6714			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6715			found="yes"
6716		fi
6717	fi
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733xorg_testset_save_CFLAGS="$CFLAGS"
6734
6735if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6736	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6737	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6738printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6739if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6740then :
6741  printf %s "(cached) " >&6
6742else $as_nop
6743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6744/* end confdefs.h.  */
6745int i;
6746_ACEOF
6747if ac_fn_c_try_compile "$LINENO"
6748then :
6749  xorg_cv_cc_flag_unknown_warning_option=yes
6750else $as_nop
6751  xorg_cv_cc_flag_unknown_warning_option=no
6752fi
6753rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6754fi
6755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6756printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6757	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6758	CFLAGS="$xorg_testset_save_CFLAGS"
6759fi
6760
6761if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6762	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6763		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6764	fi
6765	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6766	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6767printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6768if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6769then :
6770  printf %s "(cached) " >&6
6771else $as_nop
6772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6773/* end confdefs.h.  */
6774int i;
6775_ACEOF
6776if ac_fn_c_try_compile "$LINENO"
6777then :
6778  xorg_cv_cc_flag_unused_command_line_argument=yes
6779else $as_nop
6780  xorg_cv_cc_flag_unused_command_line_argument=no
6781fi
6782rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6783fi
6784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6785printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6786	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6787	CFLAGS="$xorg_testset_save_CFLAGS"
6788fi
6789
6790found="no"
6791
6792	if test $found = "no" ; then
6793		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6794			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6795		fi
6796
6797		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6798			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6799		fi
6800
6801		CFLAGS="$CFLAGS -Wmissing-noreturn"
6802
6803		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6804printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6805		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6806		if eval test \${$cacheid+y}
6807then :
6808  printf %s "(cached) " >&6
6809else $as_nop
6810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811/* end confdefs.h.  */
6812int i;
6813int
6814main (void)
6815{
6816
6817  ;
6818  return 0;
6819}
6820_ACEOF
6821if ac_fn_c_try_link "$LINENO"
6822then :
6823  eval $cacheid=yes
6824else $as_nop
6825  eval $cacheid=no
6826fi
6827rm -f core conftest.err conftest.$ac_objext conftest.beam \
6828    conftest$ac_exeext conftest.$ac_ext
6829fi
6830
6831
6832		CFLAGS="$xorg_testset_save_CFLAGS"
6833
6834		eval supported=\$$cacheid
6835		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6836printf "%s\n" "$supported" >&6; }
6837		if test "$supported" = "yes" ; then
6838			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6839			found="yes"
6840		fi
6841	fi
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857xorg_testset_save_CFLAGS="$CFLAGS"
6858
6859if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6860	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6861	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6862printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6863if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6864then :
6865  printf %s "(cached) " >&6
6866else $as_nop
6867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6868/* end confdefs.h.  */
6869int i;
6870_ACEOF
6871if ac_fn_c_try_compile "$LINENO"
6872then :
6873  xorg_cv_cc_flag_unknown_warning_option=yes
6874else $as_nop
6875  xorg_cv_cc_flag_unknown_warning_option=no
6876fi
6877rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6878fi
6879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6880printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6881	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6882	CFLAGS="$xorg_testset_save_CFLAGS"
6883fi
6884
6885if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6886	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6887		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6888	fi
6889	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6890	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6891printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6892if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6893then :
6894  printf %s "(cached) " >&6
6895else $as_nop
6896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6897/* end confdefs.h.  */
6898int i;
6899_ACEOF
6900if ac_fn_c_try_compile "$LINENO"
6901then :
6902  xorg_cv_cc_flag_unused_command_line_argument=yes
6903else $as_nop
6904  xorg_cv_cc_flag_unused_command_line_argument=no
6905fi
6906rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6907fi
6908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6909printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6910	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6911	CFLAGS="$xorg_testset_save_CFLAGS"
6912fi
6913
6914found="no"
6915
6916	if test $found = "no" ; then
6917		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6918			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6919		fi
6920
6921		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6922			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6923		fi
6924
6925		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6926
6927		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6928printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6929		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6930		if eval test \${$cacheid+y}
6931then :
6932  printf %s "(cached) " >&6
6933else $as_nop
6934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6935/* end confdefs.h.  */
6936int i;
6937int
6938main (void)
6939{
6940
6941  ;
6942  return 0;
6943}
6944_ACEOF
6945if ac_fn_c_try_link "$LINENO"
6946then :
6947  eval $cacheid=yes
6948else $as_nop
6949  eval $cacheid=no
6950fi
6951rm -f core conftest.err conftest.$ac_objext conftest.beam \
6952    conftest$ac_exeext conftest.$ac_ext
6953fi
6954
6955
6956		CFLAGS="$xorg_testset_save_CFLAGS"
6957
6958		eval supported=\$$cacheid
6959		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6960printf "%s\n" "$supported" >&6; }
6961		if test "$supported" = "yes" ; then
6962			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6963			found="yes"
6964		fi
6965	fi
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981xorg_testset_save_CFLAGS="$CFLAGS"
6982
6983if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6984	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6985	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6986printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6987if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6988then :
6989  printf %s "(cached) " >&6
6990else $as_nop
6991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992/* end confdefs.h.  */
6993int i;
6994_ACEOF
6995if ac_fn_c_try_compile "$LINENO"
6996then :
6997  xorg_cv_cc_flag_unknown_warning_option=yes
6998else $as_nop
6999  xorg_cv_cc_flag_unknown_warning_option=no
7000fi
7001rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7002fi
7003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7004printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7005	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7006	CFLAGS="$xorg_testset_save_CFLAGS"
7007fi
7008
7009if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7010	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7011		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7012	fi
7013	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7014	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7015printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7016if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7017then :
7018  printf %s "(cached) " >&6
7019else $as_nop
7020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7021/* end confdefs.h.  */
7022int i;
7023_ACEOF
7024if ac_fn_c_try_compile "$LINENO"
7025then :
7026  xorg_cv_cc_flag_unused_command_line_argument=yes
7027else $as_nop
7028  xorg_cv_cc_flag_unused_command_line_argument=no
7029fi
7030rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7031fi
7032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7033printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7034	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7035	CFLAGS="$xorg_testset_save_CFLAGS"
7036fi
7037
7038found="no"
7039
7040	if test $found = "no" ; then
7041		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7042			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7043		fi
7044
7045		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7046			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7047		fi
7048
7049		CFLAGS="$CFLAGS -Wredundant-decls"
7050
7051		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7052printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7053		cacheid=xorg_cv_cc_flag__Wredundant_decls
7054		if eval test \${$cacheid+y}
7055then :
7056  printf %s "(cached) " >&6
7057else $as_nop
7058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7059/* end confdefs.h.  */
7060int i;
7061int
7062main (void)
7063{
7064
7065  ;
7066  return 0;
7067}
7068_ACEOF
7069if ac_fn_c_try_link "$LINENO"
7070then :
7071  eval $cacheid=yes
7072else $as_nop
7073  eval $cacheid=no
7074fi
7075rm -f core conftest.err conftest.$ac_objext conftest.beam \
7076    conftest$ac_exeext conftest.$ac_ext
7077fi
7078
7079
7080		CFLAGS="$xorg_testset_save_CFLAGS"
7081
7082		eval supported=\$$cacheid
7083		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7084printf "%s\n" "$supported" >&6; }
7085		if test "$supported" = "yes" ; then
7086			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7087			found="yes"
7088		fi
7089	fi
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105xorg_testset_save_CFLAGS="$CFLAGS"
7106
7107if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7108	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7109	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7110printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7111if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7112then :
7113  printf %s "(cached) " >&6
7114else $as_nop
7115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116/* end confdefs.h.  */
7117int i;
7118_ACEOF
7119if ac_fn_c_try_compile "$LINENO"
7120then :
7121  xorg_cv_cc_flag_unknown_warning_option=yes
7122else $as_nop
7123  xorg_cv_cc_flag_unknown_warning_option=no
7124fi
7125rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7126fi
7127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7128printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7129	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7130	CFLAGS="$xorg_testset_save_CFLAGS"
7131fi
7132
7133if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7134	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7135		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7136	fi
7137	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7138	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7139printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7140if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7141then :
7142  printf %s "(cached) " >&6
7143else $as_nop
7144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145/* end confdefs.h.  */
7146int i;
7147_ACEOF
7148if ac_fn_c_try_compile "$LINENO"
7149then :
7150  xorg_cv_cc_flag_unused_command_line_argument=yes
7151else $as_nop
7152  xorg_cv_cc_flag_unused_command_line_argument=no
7153fi
7154rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7155fi
7156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7157printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7158	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7159	CFLAGS="$xorg_testset_save_CFLAGS"
7160fi
7161
7162found="no"
7163
7164	if test $found = "no" ; then
7165		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7166			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7167		fi
7168
7169		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7170			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7171		fi
7172
7173		CFLAGS="$CFLAGS -Wlogical-op"
7174
7175		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7176printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7177		cacheid=xorg_cv_cc_flag__Wlogical_op
7178		if eval test \${$cacheid+y}
7179then :
7180  printf %s "(cached) " >&6
7181else $as_nop
7182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7183/* end confdefs.h.  */
7184int i;
7185int
7186main (void)
7187{
7188
7189  ;
7190  return 0;
7191}
7192_ACEOF
7193if ac_fn_c_try_link "$LINENO"
7194then :
7195  eval $cacheid=yes
7196else $as_nop
7197  eval $cacheid=no
7198fi
7199rm -f core conftest.err conftest.$ac_objext conftest.beam \
7200    conftest$ac_exeext conftest.$ac_ext
7201fi
7202
7203
7204		CFLAGS="$xorg_testset_save_CFLAGS"
7205
7206		eval supported=\$$cacheid
7207		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7208printf "%s\n" "$supported" >&6; }
7209		if test "$supported" = "yes" ; then
7210			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7211			found="yes"
7212		fi
7213	fi
7214
7215
7216
7217# These are currently disabled because they are noisy.  They will be enabled
7218# in the future once the codebase is sufficiently modernized to silence
7219# them.  For now, I don't want them to drown out the other warnings.
7220# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7221# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7222# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7223
7224# Turn some warnings into errors, so we don't accidently get successful builds
7225# when there are problems that should be fixed.
7226
7227if test "x$SELECTIVE_WERROR" = "xyes" ; then
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241xorg_testset_save_CFLAGS="$CFLAGS"
7242
7243if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7244	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7245	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7246printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7247if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7248then :
7249  printf %s "(cached) " >&6
7250else $as_nop
7251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7252/* end confdefs.h.  */
7253int i;
7254_ACEOF
7255if ac_fn_c_try_compile "$LINENO"
7256then :
7257  xorg_cv_cc_flag_unknown_warning_option=yes
7258else $as_nop
7259  xorg_cv_cc_flag_unknown_warning_option=no
7260fi
7261rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7262fi
7263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7264printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7265	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7266	CFLAGS="$xorg_testset_save_CFLAGS"
7267fi
7268
7269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7270	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7271		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7272	fi
7273	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7274	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7275printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7276if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7277then :
7278  printf %s "(cached) " >&6
7279else $as_nop
7280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7281/* end confdefs.h.  */
7282int i;
7283_ACEOF
7284if ac_fn_c_try_compile "$LINENO"
7285then :
7286  xorg_cv_cc_flag_unused_command_line_argument=yes
7287else $as_nop
7288  xorg_cv_cc_flag_unused_command_line_argument=no
7289fi
7290rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7291fi
7292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7293printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7294	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7295	CFLAGS="$xorg_testset_save_CFLAGS"
7296fi
7297
7298found="no"
7299
7300	if test $found = "no" ; then
7301		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7302			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7303		fi
7304
7305		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7306			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7307		fi
7308
7309		CFLAGS="$CFLAGS -Werror=implicit"
7310
7311		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7312printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7313		cacheid=xorg_cv_cc_flag__Werror_implicit
7314		if eval test \${$cacheid+y}
7315then :
7316  printf %s "(cached) " >&6
7317else $as_nop
7318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7319/* end confdefs.h.  */
7320int i;
7321int
7322main (void)
7323{
7324
7325  ;
7326  return 0;
7327}
7328_ACEOF
7329if ac_fn_c_try_link "$LINENO"
7330then :
7331  eval $cacheid=yes
7332else $as_nop
7333  eval $cacheid=no
7334fi
7335rm -f core conftest.err conftest.$ac_objext conftest.beam \
7336    conftest$ac_exeext conftest.$ac_ext
7337fi
7338
7339
7340		CFLAGS="$xorg_testset_save_CFLAGS"
7341
7342		eval supported=\$$cacheid
7343		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7344printf "%s\n" "$supported" >&6; }
7345		if test "$supported" = "yes" ; then
7346			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7347			found="yes"
7348		fi
7349	fi
7350
7351	if test $found = "no" ; then
7352		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7353			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7354		fi
7355
7356		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7357			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7358		fi
7359
7360		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7361
7362		{ 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
7363printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7364		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7365		if eval test \${$cacheid+y}
7366then :
7367  printf %s "(cached) " >&6
7368else $as_nop
7369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7370/* end confdefs.h.  */
7371int i;
7372int
7373main (void)
7374{
7375
7376  ;
7377  return 0;
7378}
7379_ACEOF
7380if ac_fn_c_try_link "$LINENO"
7381then :
7382  eval $cacheid=yes
7383else $as_nop
7384  eval $cacheid=no
7385fi
7386rm -f core conftest.err conftest.$ac_objext conftest.beam \
7387    conftest$ac_exeext conftest.$ac_ext
7388fi
7389
7390
7391		CFLAGS="$xorg_testset_save_CFLAGS"
7392
7393		eval supported=\$$cacheid
7394		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7395printf "%s\n" "$supported" >&6; }
7396		if test "$supported" = "yes" ; then
7397			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7398			found="yes"
7399		fi
7400	fi
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416xorg_testset_save_CFLAGS="$CFLAGS"
7417
7418if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7419	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7420	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7421printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7422if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7423then :
7424  printf %s "(cached) " >&6
7425else $as_nop
7426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427/* end confdefs.h.  */
7428int i;
7429_ACEOF
7430if ac_fn_c_try_compile "$LINENO"
7431then :
7432  xorg_cv_cc_flag_unknown_warning_option=yes
7433else $as_nop
7434  xorg_cv_cc_flag_unknown_warning_option=no
7435fi
7436rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7437fi
7438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7439printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7440	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7441	CFLAGS="$xorg_testset_save_CFLAGS"
7442fi
7443
7444if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7445	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7446		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7447	fi
7448	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7449	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7450printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7451if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7452then :
7453  printf %s "(cached) " >&6
7454else $as_nop
7455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456/* end confdefs.h.  */
7457int i;
7458_ACEOF
7459if ac_fn_c_try_compile "$LINENO"
7460then :
7461  xorg_cv_cc_flag_unused_command_line_argument=yes
7462else $as_nop
7463  xorg_cv_cc_flag_unused_command_line_argument=no
7464fi
7465rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7466fi
7467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7468printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7469	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7470	CFLAGS="$xorg_testset_save_CFLAGS"
7471fi
7472
7473found="no"
7474
7475	if test $found = "no" ; then
7476		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7477			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7478		fi
7479
7480		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7481			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7482		fi
7483
7484		CFLAGS="$CFLAGS -Werror=nonnull"
7485
7486		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7487printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7488		cacheid=xorg_cv_cc_flag__Werror_nonnull
7489		if eval test \${$cacheid+y}
7490then :
7491  printf %s "(cached) " >&6
7492else $as_nop
7493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494/* end confdefs.h.  */
7495int i;
7496int
7497main (void)
7498{
7499
7500  ;
7501  return 0;
7502}
7503_ACEOF
7504if ac_fn_c_try_link "$LINENO"
7505then :
7506  eval $cacheid=yes
7507else $as_nop
7508  eval $cacheid=no
7509fi
7510rm -f core conftest.err conftest.$ac_objext conftest.beam \
7511    conftest$ac_exeext conftest.$ac_ext
7512fi
7513
7514
7515		CFLAGS="$xorg_testset_save_CFLAGS"
7516
7517		eval supported=\$$cacheid
7518		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7519printf "%s\n" "$supported" >&6; }
7520		if test "$supported" = "yes" ; then
7521			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7522			found="yes"
7523		fi
7524	fi
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540xorg_testset_save_CFLAGS="$CFLAGS"
7541
7542if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7543	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7544	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7545printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7546if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7547then :
7548  printf %s "(cached) " >&6
7549else $as_nop
7550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7551/* end confdefs.h.  */
7552int i;
7553_ACEOF
7554if ac_fn_c_try_compile "$LINENO"
7555then :
7556  xorg_cv_cc_flag_unknown_warning_option=yes
7557else $as_nop
7558  xorg_cv_cc_flag_unknown_warning_option=no
7559fi
7560rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7561fi
7562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7563printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7564	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7565	CFLAGS="$xorg_testset_save_CFLAGS"
7566fi
7567
7568if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7569	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7570		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7571	fi
7572	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7573	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7574printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7575if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7576then :
7577  printf %s "(cached) " >&6
7578else $as_nop
7579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580/* end confdefs.h.  */
7581int i;
7582_ACEOF
7583if ac_fn_c_try_compile "$LINENO"
7584then :
7585  xorg_cv_cc_flag_unused_command_line_argument=yes
7586else $as_nop
7587  xorg_cv_cc_flag_unused_command_line_argument=no
7588fi
7589rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7590fi
7591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7592printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7593	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7594	CFLAGS="$xorg_testset_save_CFLAGS"
7595fi
7596
7597found="no"
7598
7599	if test $found = "no" ; then
7600		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7601			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7602		fi
7603
7604		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7605			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7606		fi
7607
7608		CFLAGS="$CFLAGS -Werror=init-self"
7609
7610		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7611printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7612		cacheid=xorg_cv_cc_flag__Werror_init_self
7613		if eval test \${$cacheid+y}
7614then :
7615  printf %s "(cached) " >&6
7616else $as_nop
7617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618/* end confdefs.h.  */
7619int i;
7620int
7621main (void)
7622{
7623
7624  ;
7625  return 0;
7626}
7627_ACEOF
7628if ac_fn_c_try_link "$LINENO"
7629then :
7630  eval $cacheid=yes
7631else $as_nop
7632  eval $cacheid=no
7633fi
7634rm -f core conftest.err conftest.$ac_objext conftest.beam \
7635    conftest$ac_exeext conftest.$ac_ext
7636fi
7637
7638
7639		CFLAGS="$xorg_testset_save_CFLAGS"
7640
7641		eval supported=\$$cacheid
7642		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7643printf "%s\n" "$supported" >&6; }
7644		if test "$supported" = "yes" ; then
7645			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7646			found="yes"
7647		fi
7648	fi
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664xorg_testset_save_CFLAGS="$CFLAGS"
7665
7666if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7667	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7668	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7669printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7670if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7671then :
7672  printf %s "(cached) " >&6
7673else $as_nop
7674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675/* end confdefs.h.  */
7676int i;
7677_ACEOF
7678if ac_fn_c_try_compile "$LINENO"
7679then :
7680  xorg_cv_cc_flag_unknown_warning_option=yes
7681else $as_nop
7682  xorg_cv_cc_flag_unknown_warning_option=no
7683fi
7684rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7685fi
7686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7687printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7688	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7689	CFLAGS="$xorg_testset_save_CFLAGS"
7690fi
7691
7692if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7693	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7694		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7695	fi
7696	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7697	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7698printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7699if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7700then :
7701  printf %s "(cached) " >&6
7702else $as_nop
7703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7704/* end confdefs.h.  */
7705int i;
7706_ACEOF
7707if ac_fn_c_try_compile "$LINENO"
7708then :
7709  xorg_cv_cc_flag_unused_command_line_argument=yes
7710else $as_nop
7711  xorg_cv_cc_flag_unused_command_line_argument=no
7712fi
7713rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7714fi
7715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7716printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7717	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7718	CFLAGS="$xorg_testset_save_CFLAGS"
7719fi
7720
7721found="no"
7722
7723	if test $found = "no" ; then
7724		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7725			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7726		fi
7727
7728		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7729			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7730		fi
7731
7732		CFLAGS="$CFLAGS -Werror=main"
7733
7734		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7735printf %s "checking if $CC supports -Werror=main... " >&6; }
7736		cacheid=xorg_cv_cc_flag__Werror_main
7737		if eval test \${$cacheid+y}
7738then :
7739  printf %s "(cached) " >&6
7740else $as_nop
7741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742/* end confdefs.h.  */
7743int i;
7744int
7745main (void)
7746{
7747
7748  ;
7749  return 0;
7750}
7751_ACEOF
7752if ac_fn_c_try_link "$LINENO"
7753then :
7754  eval $cacheid=yes
7755else $as_nop
7756  eval $cacheid=no
7757fi
7758rm -f core conftest.err conftest.$ac_objext conftest.beam \
7759    conftest$ac_exeext conftest.$ac_ext
7760fi
7761
7762
7763		CFLAGS="$xorg_testset_save_CFLAGS"
7764
7765		eval supported=\$$cacheid
7766		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7767printf "%s\n" "$supported" >&6; }
7768		if test "$supported" = "yes" ; then
7769			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7770			found="yes"
7771		fi
7772	fi
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788xorg_testset_save_CFLAGS="$CFLAGS"
7789
7790if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7791	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7792	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7793printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7794if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7795then :
7796  printf %s "(cached) " >&6
7797else $as_nop
7798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799/* end confdefs.h.  */
7800int i;
7801_ACEOF
7802if ac_fn_c_try_compile "$LINENO"
7803then :
7804  xorg_cv_cc_flag_unknown_warning_option=yes
7805else $as_nop
7806  xorg_cv_cc_flag_unknown_warning_option=no
7807fi
7808rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7809fi
7810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7811printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7812	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7813	CFLAGS="$xorg_testset_save_CFLAGS"
7814fi
7815
7816if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7817	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7818		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7819	fi
7820	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7821	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7822printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7823if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7824then :
7825  printf %s "(cached) " >&6
7826else $as_nop
7827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7828/* end confdefs.h.  */
7829int i;
7830_ACEOF
7831if ac_fn_c_try_compile "$LINENO"
7832then :
7833  xorg_cv_cc_flag_unused_command_line_argument=yes
7834else $as_nop
7835  xorg_cv_cc_flag_unused_command_line_argument=no
7836fi
7837rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7838fi
7839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7840printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7841	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7842	CFLAGS="$xorg_testset_save_CFLAGS"
7843fi
7844
7845found="no"
7846
7847	if test $found = "no" ; then
7848		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7849			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7850		fi
7851
7852		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7853			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7854		fi
7855
7856		CFLAGS="$CFLAGS -Werror=missing-braces"
7857
7858		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7859printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7860		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7861		if eval test \${$cacheid+y}
7862then :
7863  printf %s "(cached) " >&6
7864else $as_nop
7865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7866/* end confdefs.h.  */
7867int i;
7868int
7869main (void)
7870{
7871
7872  ;
7873  return 0;
7874}
7875_ACEOF
7876if ac_fn_c_try_link "$LINENO"
7877then :
7878  eval $cacheid=yes
7879else $as_nop
7880  eval $cacheid=no
7881fi
7882rm -f core conftest.err conftest.$ac_objext conftest.beam \
7883    conftest$ac_exeext conftest.$ac_ext
7884fi
7885
7886
7887		CFLAGS="$xorg_testset_save_CFLAGS"
7888
7889		eval supported=\$$cacheid
7890		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7891printf "%s\n" "$supported" >&6; }
7892		if test "$supported" = "yes" ; then
7893			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7894			found="yes"
7895		fi
7896	fi
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912xorg_testset_save_CFLAGS="$CFLAGS"
7913
7914if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7915	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7916	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7917printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7918if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7919then :
7920  printf %s "(cached) " >&6
7921else $as_nop
7922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7923/* end confdefs.h.  */
7924int i;
7925_ACEOF
7926if ac_fn_c_try_compile "$LINENO"
7927then :
7928  xorg_cv_cc_flag_unknown_warning_option=yes
7929else $as_nop
7930  xorg_cv_cc_flag_unknown_warning_option=no
7931fi
7932rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7933fi
7934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7935printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7936	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7937	CFLAGS="$xorg_testset_save_CFLAGS"
7938fi
7939
7940if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7941	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7942		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7943	fi
7944	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7945	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7946printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7947if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7948then :
7949  printf %s "(cached) " >&6
7950else $as_nop
7951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7952/* end confdefs.h.  */
7953int i;
7954_ACEOF
7955if ac_fn_c_try_compile "$LINENO"
7956then :
7957  xorg_cv_cc_flag_unused_command_line_argument=yes
7958else $as_nop
7959  xorg_cv_cc_flag_unused_command_line_argument=no
7960fi
7961rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7962fi
7963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7964printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7965	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7966	CFLAGS="$xorg_testset_save_CFLAGS"
7967fi
7968
7969found="no"
7970
7971	if test $found = "no" ; then
7972		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7973			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7974		fi
7975
7976		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7977			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7978		fi
7979
7980		CFLAGS="$CFLAGS -Werror=sequence-point"
7981
7982		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7983printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7984		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7985		if eval test \${$cacheid+y}
7986then :
7987  printf %s "(cached) " >&6
7988else $as_nop
7989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990/* end confdefs.h.  */
7991int i;
7992int
7993main (void)
7994{
7995
7996  ;
7997  return 0;
7998}
7999_ACEOF
8000if ac_fn_c_try_link "$LINENO"
8001then :
8002  eval $cacheid=yes
8003else $as_nop
8004  eval $cacheid=no
8005fi
8006rm -f core conftest.err conftest.$ac_objext conftest.beam \
8007    conftest$ac_exeext conftest.$ac_ext
8008fi
8009
8010
8011		CFLAGS="$xorg_testset_save_CFLAGS"
8012
8013		eval supported=\$$cacheid
8014		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8015printf "%s\n" "$supported" >&6; }
8016		if test "$supported" = "yes" ; then
8017			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8018			found="yes"
8019		fi
8020	fi
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036xorg_testset_save_CFLAGS="$CFLAGS"
8037
8038if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8039	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8040	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8041printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8042if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8043then :
8044  printf %s "(cached) " >&6
8045else $as_nop
8046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047/* end confdefs.h.  */
8048int i;
8049_ACEOF
8050if ac_fn_c_try_compile "$LINENO"
8051then :
8052  xorg_cv_cc_flag_unknown_warning_option=yes
8053else $as_nop
8054  xorg_cv_cc_flag_unknown_warning_option=no
8055fi
8056rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8057fi
8058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8059printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8060	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8061	CFLAGS="$xorg_testset_save_CFLAGS"
8062fi
8063
8064if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8065	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8066		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8067	fi
8068	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8069	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8070printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8071if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8072then :
8073  printf %s "(cached) " >&6
8074else $as_nop
8075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8076/* end confdefs.h.  */
8077int i;
8078_ACEOF
8079if ac_fn_c_try_compile "$LINENO"
8080then :
8081  xorg_cv_cc_flag_unused_command_line_argument=yes
8082else $as_nop
8083  xorg_cv_cc_flag_unused_command_line_argument=no
8084fi
8085rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8086fi
8087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8088printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8089	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8090	CFLAGS="$xorg_testset_save_CFLAGS"
8091fi
8092
8093found="no"
8094
8095	if test $found = "no" ; then
8096		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8097			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8098		fi
8099
8100		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8101			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8102		fi
8103
8104		CFLAGS="$CFLAGS -Werror=return-type"
8105
8106		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8107printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8108		cacheid=xorg_cv_cc_flag__Werror_return_type
8109		if eval test \${$cacheid+y}
8110then :
8111  printf %s "(cached) " >&6
8112else $as_nop
8113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8114/* end confdefs.h.  */
8115int i;
8116int
8117main (void)
8118{
8119
8120  ;
8121  return 0;
8122}
8123_ACEOF
8124if ac_fn_c_try_link "$LINENO"
8125then :
8126  eval $cacheid=yes
8127else $as_nop
8128  eval $cacheid=no
8129fi
8130rm -f core conftest.err conftest.$ac_objext conftest.beam \
8131    conftest$ac_exeext conftest.$ac_ext
8132fi
8133
8134
8135		CFLAGS="$xorg_testset_save_CFLAGS"
8136
8137		eval supported=\$$cacheid
8138		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8139printf "%s\n" "$supported" >&6; }
8140		if test "$supported" = "yes" ; then
8141			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8142			found="yes"
8143		fi
8144	fi
8145
8146	if test $found = "no" ; then
8147		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8148			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8149		fi
8150
8151		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8152			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8153		fi
8154
8155		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8156
8157		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8158printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8159		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8160		if eval test \${$cacheid+y}
8161then :
8162  printf %s "(cached) " >&6
8163else $as_nop
8164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165/* end confdefs.h.  */
8166int i;
8167int
8168main (void)
8169{
8170
8171  ;
8172  return 0;
8173}
8174_ACEOF
8175if ac_fn_c_try_link "$LINENO"
8176then :
8177  eval $cacheid=yes
8178else $as_nop
8179  eval $cacheid=no
8180fi
8181rm -f core conftest.err conftest.$ac_objext conftest.beam \
8182    conftest$ac_exeext conftest.$ac_ext
8183fi
8184
8185
8186		CFLAGS="$xorg_testset_save_CFLAGS"
8187
8188		eval supported=\$$cacheid
8189		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8190printf "%s\n" "$supported" >&6; }
8191		if test "$supported" = "yes" ; then
8192			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8193			found="yes"
8194		fi
8195	fi
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211xorg_testset_save_CFLAGS="$CFLAGS"
8212
8213if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8214	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8215	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8216printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8217if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8218then :
8219  printf %s "(cached) " >&6
8220else $as_nop
8221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8222/* end confdefs.h.  */
8223int i;
8224_ACEOF
8225if ac_fn_c_try_compile "$LINENO"
8226then :
8227  xorg_cv_cc_flag_unknown_warning_option=yes
8228else $as_nop
8229  xorg_cv_cc_flag_unknown_warning_option=no
8230fi
8231rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8232fi
8233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8234printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8235	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8236	CFLAGS="$xorg_testset_save_CFLAGS"
8237fi
8238
8239if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8240	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8241		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8242	fi
8243	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8244	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8245printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8246if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8247then :
8248  printf %s "(cached) " >&6
8249else $as_nop
8250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8251/* end confdefs.h.  */
8252int i;
8253_ACEOF
8254if ac_fn_c_try_compile "$LINENO"
8255then :
8256  xorg_cv_cc_flag_unused_command_line_argument=yes
8257else $as_nop
8258  xorg_cv_cc_flag_unused_command_line_argument=no
8259fi
8260rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8261fi
8262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8263printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8264	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8265	CFLAGS="$xorg_testset_save_CFLAGS"
8266fi
8267
8268found="no"
8269
8270	if test $found = "no" ; then
8271		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8272			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8273		fi
8274
8275		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8276			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8277		fi
8278
8279		CFLAGS="$CFLAGS -Werror=trigraphs"
8280
8281		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8282printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8283		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8284		if eval test \${$cacheid+y}
8285then :
8286  printf %s "(cached) " >&6
8287else $as_nop
8288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8289/* end confdefs.h.  */
8290int i;
8291int
8292main (void)
8293{
8294
8295  ;
8296  return 0;
8297}
8298_ACEOF
8299if ac_fn_c_try_link "$LINENO"
8300then :
8301  eval $cacheid=yes
8302else $as_nop
8303  eval $cacheid=no
8304fi
8305rm -f core conftest.err conftest.$ac_objext conftest.beam \
8306    conftest$ac_exeext conftest.$ac_ext
8307fi
8308
8309
8310		CFLAGS="$xorg_testset_save_CFLAGS"
8311
8312		eval supported=\$$cacheid
8313		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8314printf "%s\n" "$supported" >&6; }
8315		if test "$supported" = "yes" ; then
8316			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8317			found="yes"
8318		fi
8319	fi
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335xorg_testset_save_CFLAGS="$CFLAGS"
8336
8337if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8338	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8339	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8340printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8341if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8342then :
8343  printf %s "(cached) " >&6
8344else $as_nop
8345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8346/* end confdefs.h.  */
8347int i;
8348_ACEOF
8349if ac_fn_c_try_compile "$LINENO"
8350then :
8351  xorg_cv_cc_flag_unknown_warning_option=yes
8352else $as_nop
8353  xorg_cv_cc_flag_unknown_warning_option=no
8354fi
8355rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8356fi
8357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8358printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8359	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8360	CFLAGS="$xorg_testset_save_CFLAGS"
8361fi
8362
8363if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8364	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8365		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8366	fi
8367	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8368	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8369printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8370if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8371then :
8372  printf %s "(cached) " >&6
8373else $as_nop
8374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8375/* end confdefs.h.  */
8376int i;
8377_ACEOF
8378if ac_fn_c_try_compile "$LINENO"
8379then :
8380  xorg_cv_cc_flag_unused_command_line_argument=yes
8381else $as_nop
8382  xorg_cv_cc_flag_unused_command_line_argument=no
8383fi
8384rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8385fi
8386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8387printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8388	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8389	CFLAGS="$xorg_testset_save_CFLAGS"
8390fi
8391
8392found="no"
8393
8394	if test $found = "no" ; then
8395		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8396			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8397		fi
8398
8399		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8400			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8401		fi
8402
8403		CFLAGS="$CFLAGS -Werror=array-bounds"
8404
8405		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8406printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8407		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8408		if eval test \${$cacheid+y}
8409then :
8410  printf %s "(cached) " >&6
8411else $as_nop
8412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8413/* end confdefs.h.  */
8414int i;
8415int
8416main (void)
8417{
8418
8419  ;
8420  return 0;
8421}
8422_ACEOF
8423if ac_fn_c_try_link "$LINENO"
8424then :
8425  eval $cacheid=yes
8426else $as_nop
8427  eval $cacheid=no
8428fi
8429rm -f core conftest.err conftest.$ac_objext conftest.beam \
8430    conftest$ac_exeext conftest.$ac_ext
8431fi
8432
8433
8434		CFLAGS="$xorg_testset_save_CFLAGS"
8435
8436		eval supported=\$$cacheid
8437		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8438printf "%s\n" "$supported" >&6; }
8439		if test "$supported" = "yes" ; then
8440			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8441			found="yes"
8442		fi
8443	fi
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459xorg_testset_save_CFLAGS="$CFLAGS"
8460
8461if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8462	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8463	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8464printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8465if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8466then :
8467  printf %s "(cached) " >&6
8468else $as_nop
8469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8470/* end confdefs.h.  */
8471int i;
8472_ACEOF
8473if ac_fn_c_try_compile "$LINENO"
8474then :
8475  xorg_cv_cc_flag_unknown_warning_option=yes
8476else $as_nop
8477  xorg_cv_cc_flag_unknown_warning_option=no
8478fi
8479rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8480fi
8481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8482printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8483	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8484	CFLAGS="$xorg_testset_save_CFLAGS"
8485fi
8486
8487if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8488	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8489		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8490	fi
8491	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8492	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8493printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8494if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8495then :
8496  printf %s "(cached) " >&6
8497else $as_nop
8498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8499/* end confdefs.h.  */
8500int i;
8501_ACEOF
8502if ac_fn_c_try_compile "$LINENO"
8503then :
8504  xorg_cv_cc_flag_unused_command_line_argument=yes
8505else $as_nop
8506  xorg_cv_cc_flag_unused_command_line_argument=no
8507fi
8508rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8509fi
8510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8511printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8512	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8513	CFLAGS="$xorg_testset_save_CFLAGS"
8514fi
8515
8516found="no"
8517
8518	if test $found = "no" ; then
8519		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8520			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8521		fi
8522
8523		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8524			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8525		fi
8526
8527		CFLAGS="$CFLAGS -Werror=write-strings"
8528
8529		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8530printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8531		cacheid=xorg_cv_cc_flag__Werror_write_strings
8532		if eval test \${$cacheid+y}
8533then :
8534  printf %s "(cached) " >&6
8535else $as_nop
8536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8537/* end confdefs.h.  */
8538int i;
8539int
8540main (void)
8541{
8542
8543  ;
8544  return 0;
8545}
8546_ACEOF
8547if ac_fn_c_try_link "$LINENO"
8548then :
8549  eval $cacheid=yes
8550else $as_nop
8551  eval $cacheid=no
8552fi
8553rm -f core conftest.err conftest.$ac_objext conftest.beam \
8554    conftest$ac_exeext conftest.$ac_ext
8555fi
8556
8557
8558		CFLAGS="$xorg_testset_save_CFLAGS"
8559
8560		eval supported=\$$cacheid
8561		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8562printf "%s\n" "$supported" >&6; }
8563		if test "$supported" = "yes" ; then
8564			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8565			found="yes"
8566		fi
8567	fi
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583xorg_testset_save_CFLAGS="$CFLAGS"
8584
8585if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8586	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8587	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8588printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8589if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8590then :
8591  printf %s "(cached) " >&6
8592else $as_nop
8593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8594/* end confdefs.h.  */
8595int i;
8596_ACEOF
8597if ac_fn_c_try_compile "$LINENO"
8598then :
8599  xorg_cv_cc_flag_unknown_warning_option=yes
8600else $as_nop
8601  xorg_cv_cc_flag_unknown_warning_option=no
8602fi
8603rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8604fi
8605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8606printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8607	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8608	CFLAGS="$xorg_testset_save_CFLAGS"
8609fi
8610
8611if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8612	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8613		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8614	fi
8615	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8616	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8617printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8618if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8619then :
8620  printf %s "(cached) " >&6
8621else $as_nop
8622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8623/* end confdefs.h.  */
8624int i;
8625_ACEOF
8626if ac_fn_c_try_compile "$LINENO"
8627then :
8628  xorg_cv_cc_flag_unused_command_line_argument=yes
8629else $as_nop
8630  xorg_cv_cc_flag_unused_command_line_argument=no
8631fi
8632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8633fi
8634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8635printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8636	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8637	CFLAGS="$xorg_testset_save_CFLAGS"
8638fi
8639
8640found="no"
8641
8642	if test $found = "no" ; then
8643		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8644			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8645		fi
8646
8647		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8648			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8649		fi
8650
8651		CFLAGS="$CFLAGS -Werror=address"
8652
8653		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8654printf %s "checking if $CC supports -Werror=address... " >&6; }
8655		cacheid=xorg_cv_cc_flag__Werror_address
8656		if eval test \${$cacheid+y}
8657then :
8658  printf %s "(cached) " >&6
8659else $as_nop
8660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8661/* end confdefs.h.  */
8662int i;
8663int
8664main (void)
8665{
8666
8667  ;
8668  return 0;
8669}
8670_ACEOF
8671if ac_fn_c_try_link "$LINENO"
8672then :
8673  eval $cacheid=yes
8674else $as_nop
8675  eval $cacheid=no
8676fi
8677rm -f core conftest.err conftest.$ac_objext conftest.beam \
8678    conftest$ac_exeext conftest.$ac_ext
8679fi
8680
8681
8682		CFLAGS="$xorg_testset_save_CFLAGS"
8683
8684		eval supported=\$$cacheid
8685		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8686printf "%s\n" "$supported" >&6; }
8687		if test "$supported" = "yes" ; then
8688			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8689			found="yes"
8690		fi
8691	fi
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707xorg_testset_save_CFLAGS="$CFLAGS"
8708
8709if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8710	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8711	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8712printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8713if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8714then :
8715  printf %s "(cached) " >&6
8716else $as_nop
8717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8718/* end confdefs.h.  */
8719int i;
8720_ACEOF
8721if ac_fn_c_try_compile "$LINENO"
8722then :
8723  xorg_cv_cc_flag_unknown_warning_option=yes
8724else $as_nop
8725  xorg_cv_cc_flag_unknown_warning_option=no
8726fi
8727rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8728fi
8729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8730printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8731	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8732	CFLAGS="$xorg_testset_save_CFLAGS"
8733fi
8734
8735if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8736	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8737		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8738	fi
8739	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8740	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8741printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8742if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8743then :
8744  printf %s "(cached) " >&6
8745else $as_nop
8746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8747/* end confdefs.h.  */
8748int i;
8749_ACEOF
8750if ac_fn_c_try_compile "$LINENO"
8751then :
8752  xorg_cv_cc_flag_unused_command_line_argument=yes
8753else $as_nop
8754  xorg_cv_cc_flag_unused_command_line_argument=no
8755fi
8756rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8757fi
8758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8759printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8760	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8761	CFLAGS="$xorg_testset_save_CFLAGS"
8762fi
8763
8764found="no"
8765
8766	if test $found = "no" ; then
8767		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8768			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8769		fi
8770
8771		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8772			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8773		fi
8774
8775		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8776
8777		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8778printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8779		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8780		if eval test \${$cacheid+y}
8781then :
8782  printf %s "(cached) " >&6
8783else $as_nop
8784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8785/* end confdefs.h.  */
8786int i;
8787int
8788main (void)
8789{
8790
8791  ;
8792  return 0;
8793}
8794_ACEOF
8795if ac_fn_c_try_link "$LINENO"
8796then :
8797  eval $cacheid=yes
8798else $as_nop
8799  eval $cacheid=no
8800fi
8801rm -f core conftest.err conftest.$ac_objext conftest.beam \
8802    conftest$ac_exeext conftest.$ac_ext
8803fi
8804
8805
8806		CFLAGS="$xorg_testset_save_CFLAGS"
8807
8808		eval supported=\$$cacheid
8809		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8810printf "%s\n" "$supported" >&6; }
8811		if test "$supported" = "yes" ; then
8812			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8813			found="yes"
8814		fi
8815	fi
8816
8817	if test $found = "no" ; then
8818		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8819			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8820		fi
8821
8822		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8823			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8824		fi
8825
8826		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8827
8828		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8829printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8830		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8831		if eval test \${$cacheid+y}
8832then :
8833  printf %s "(cached) " >&6
8834else $as_nop
8835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8836/* end confdefs.h.  */
8837int i;
8838int
8839main (void)
8840{
8841
8842  ;
8843  return 0;
8844}
8845_ACEOF
8846if ac_fn_c_try_link "$LINENO"
8847then :
8848  eval $cacheid=yes
8849else $as_nop
8850  eval $cacheid=no
8851fi
8852rm -f core conftest.err conftest.$ac_objext conftest.beam \
8853    conftest$ac_exeext conftest.$ac_ext
8854fi
8855
8856
8857		CFLAGS="$xorg_testset_save_CFLAGS"
8858
8859		eval supported=\$$cacheid
8860		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8861printf "%s\n" "$supported" >&6; }
8862		if test "$supported" = "yes" ; then
8863			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8864			found="yes"
8865		fi
8866	fi
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882xorg_testset_save_CFLAGS="$CFLAGS"
8883
8884if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8885	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8886	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8887printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8888if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8889then :
8890  printf %s "(cached) " >&6
8891else $as_nop
8892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8893/* end confdefs.h.  */
8894int i;
8895_ACEOF
8896if ac_fn_c_try_compile "$LINENO"
8897then :
8898  xorg_cv_cc_flag_unknown_warning_option=yes
8899else $as_nop
8900  xorg_cv_cc_flag_unknown_warning_option=no
8901fi
8902rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8903fi
8904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8905printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8906	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8907	CFLAGS="$xorg_testset_save_CFLAGS"
8908fi
8909
8910if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8911	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8912		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8913	fi
8914	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8915	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8916printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8917if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8918then :
8919  printf %s "(cached) " >&6
8920else $as_nop
8921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8922/* end confdefs.h.  */
8923int i;
8924_ACEOF
8925if ac_fn_c_try_compile "$LINENO"
8926then :
8927  xorg_cv_cc_flag_unused_command_line_argument=yes
8928else $as_nop
8929  xorg_cv_cc_flag_unused_command_line_argument=no
8930fi
8931rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8932fi
8933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8934printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8935	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8936	CFLAGS="$xorg_testset_save_CFLAGS"
8937fi
8938
8939found="no"
8940
8941	if test $found = "no" ; then
8942		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8943			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8944		fi
8945
8946		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8947			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8948		fi
8949
8950		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8951
8952		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8953printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8954		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8955		if eval test \${$cacheid+y}
8956then :
8957  printf %s "(cached) " >&6
8958else $as_nop
8959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8960/* end confdefs.h.  */
8961int i;
8962int
8963main (void)
8964{
8965
8966  ;
8967  return 0;
8968}
8969_ACEOF
8970if ac_fn_c_try_link "$LINENO"
8971then :
8972  eval $cacheid=yes
8973else $as_nop
8974  eval $cacheid=no
8975fi
8976rm -f core conftest.err conftest.$ac_objext conftest.beam \
8977    conftest$ac_exeext conftest.$ac_ext
8978fi
8979
8980
8981		CFLAGS="$xorg_testset_save_CFLAGS"
8982
8983		eval supported=\$$cacheid
8984		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8985printf "%s\n" "$supported" >&6; }
8986		if test "$supported" = "yes" ; then
8987			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8988			found="yes"
8989		fi
8990	fi
8991
8992 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8993else
8994{ 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
8995printf "%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;}
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009xorg_testset_save_CFLAGS="$CFLAGS"
9010
9011if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9012	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9013	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9014printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9015if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9016then :
9017  printf %s "(cached) " >&6
9018else $as_nop
9019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9020/* end confdefs.h.  */
9021int i;
9022_ACEOF
9023if ac_fn_c_try_compile "$LINENO"
9024then :
9025  xorg_cv_cc_flag_unknown_warning_option=yes
9026else $as_nop
9027  xorg_cv_cc_flag_unknown_warning_option=no
9028fi
9029rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9030fi
9031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9032printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9033	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9034	CFLAGS="$xorg_testset_save_CFLAGS"
9035fi
9036
9037if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9038	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9039		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9040	fi
9041	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9042	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9043printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9044if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9045then :
9046  printf %s "(cached) " >&6
9047else $as_nop
9048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9049/* end confdefs.h.  */
9050int i;
9051_ACEOF
9052if ac_fn_c_try_compile "$LINENO"
9053then :
9054  xorg_cv_cc_flag_unused_command_line_argument=yes
9055else $as_nop
9056  xorg_cv_cc_flag_unused_command_line_argument=no
9057fi
9058rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9059fi
9060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9061printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9062	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9063	CFLAGS="$xorg_testset_save_CFLAGS"
9064fi
9065
9066found="no"
9067
9068	if test $found = "no" ; then
9069		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9070			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9071		fi
9072
9073		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9074			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9075		fi
9076
9077		CFLAGS="$CFLAGS -Wimplicit"
9078
9079		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9080printf %s "checking if $CC supports -Wimplicit... " >&6; }
9081		cacheid=xorg_cv_cc_flag__Wimplicit
9082		if eval test \${$cacheid+y}
9083then :
9084  printf %s "(cached) " >&6
9085else $as_nop
9086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087/* end confdefs.h.  */
9088int i;
9089int
9090main (void)
9091{
9092
9093  ;
9094  return 0;
9095}
9096_ACEOF
9097if ac_fn_c_try_link "$LINENO"
9098then :
9099  eval $cacheid=yes
9100else $as_nop
9101  eval $cacheid=no
9102fi
9103rm -f core conftest.err conftest.$ac_objext conftest.beam \
9104    conftest$ac_exeext conftest.$ac_ext
9105fi
9106
9107
9108		CFLAGS="$xorg_testset_save_CFLAGS"
9109
9110		eval supported=\$$cacheid
9111		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9112printf "%s\n" "$supported" >&6; }
9113		if test "$supported" = "yes" ; then
9114			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9115			found="yes"
9116		fi
9117	fi
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133xorg_testset_save_CFLAGS="$CFLAGS"
9134
9135if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9136	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9137	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9138printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9139if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9140then :
9141  printf %s "(cached) " >&6
9142else $as_nop
9143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9144/* end confdefs.h.  */
9145int i;
9146_ACEOF
9147if ac_fn_c_try_compile "$LINENO"
9148then :
9149  xorg_cv_cc_flag_unknown_warning_option=yes
9150else $as_nop
9151  xorg_cv_cc_flag_unknown_warning_option=no
9152fi
9153rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9154fi
9155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9156printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9157	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9158	CFLAGS="$xorg_testset_save_CFLAGS"
9159fi
9160
9161if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9162	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9163		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9164	fi
9165	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9166	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9167printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9168if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9169then :
9170  printf %s "(cached) " >&6
9171else $as_nop
9172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9173/* end confdefs.h.  */
9174int i;
9175_ACEOF
9176if ac_fn_c_try_compile "$LINENO"
9177then :
9178  xorg_cv_cc_flag_unused_command_line_argument=yes
9179else $as_nop
9180  xorg_cv_cc_flag_unused_command_line_argument=no
9181fi
9182rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9183fi
9184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9185printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9186	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9187	CFLAGS="$xorg_testset_save_CFLAGS"
9188fi
9189
9190found="no"
9191
9192	if test $found = "no" ; then
9193		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9194			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9195		fi
9196
9197		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9198			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9199		fi
9200
9201		CFLAGS="$CFLAGS -Wnonnull"
9202
9203		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9204printf %s "checking if $CC supports -Wnonnull... " >&6; }
9205		cacheid=xorg_cv_cc_flag__Wnonnull
9206		if eval test \${$cacheid+y}
9207then :
9208  printf %s "(cached) " >&6
9209else $as_nop
9210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9211/* end confdefs.h.  */
9212int i;
9213int
9214main (void)
9215{
9216
9217  ;
9218  return 0;
9219}
9220_ACEOF
9221if ac_fn_c_try_link "$LINENO"
9222then :
9223  eval $cacheid=yes
9224else $as_nop
9225  eval $cacheid=no
9226fi
9227rm -f core conftest.err conftest.$ac_objext conftest.beam \
9228    conftest$ac_exeext conftest.$ac_ext
9229fi
9230
9231
9232		CFLAGS="$xorg_testset_save_CFLAGS"
9233
9234		eval supported=\$$cacheid
9235		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9236printf "%s\n" "$supported" >&6; }
9237		if test "$supported" = "yes" ; then
9238			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9239			found="yes"
9240		fi
9241	fi
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257xorg_testset_save_CFLAGS="$CFLAGS"
9258
9259if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9260	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9261	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9262printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9263if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9264then :
9265  printf %s "(cached) " >&6
9266else $as_nop
9267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9268/* end confdefs.h.  */
9269int i;
9270_ACEOF
9271if ac_fn_c_try_compile "$LINENO"
9272then :
9273  xorg_cv_cc_flag_unknown_warning_option=yes
9274else $as_nop
9275  xorg_cv_cc_flag_unknown_warning_option=no
9276fi
9277rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9278fi
9279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9280printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9281	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9282	CFLAGS="$xorg_testset_save_CFLAGS"
9283fi
9284
9285if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9286	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9287		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9288	fi
9289	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9290	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9291printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9292if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9293then :
9294  printf %s "(cached) " >&6
9295else $as_nop
9296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9297/* end confdefs.h.  */
9298int i;
9299_ACEOF
9300if ac_fn_c_try_compile "$LINENO"
9301then :
9302  xorg_cv_cc_flag_unused_command_line_argument=yes
9303else $as_nop
9304  xorg_cv_cc_flag_unused_command_line_argument=no
9305fi
9306rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9307fi
9308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9309printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9310	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9311	CFLAGS="$xorg_testset_save_CFLAGS"
9312fi
9313
9314found="no"
9315
9316	if test $found = "no" ; then
9317		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9318			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9319		fi
9320
9321		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9322			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9323		fi
9324
9325		CFLAGS="$CFLAGS -Winit-self"
9326
9327		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9328printf %s "checking if $CC supports -Winit-self... " >&6; }
9329		cacheid=xorg_cv_cc_flag__Winit_self
9330		if eval test \${$cacheid+y}
9331then :
9332  printf %s "(cached) " >&6
9333else $as_nop
9334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335/* end confdefs.h.  */
9336int i;
9337int
9338main (void)
9339{
9340
9341  ;
9342  return 0;
9343}
9344_ACEOF
9345if ac_fn_c_try_link "$LINENO"
9346then :
9347  eval $cacheid=yes
9348else $as_nop
9349  eval $cacheid=no
9350fi
9351rm -f core conftest.err conftest.$ac_objext conftest.beam \
9352    conftest$ac_exeext conftest.$ac_ext
9353fi
9354
9355
9356		CFLAGS="$xorg_testset_save_CFLAGS"
9357
9358		eval supported=\$$cacheid
9359		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9360printf "%s\n" "$supported" >&6; }
9361		if test "$supported" = "yes" ; then
9362			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9363			found="yes"
9364		fi
9365	fi
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381xorg_testset_save_CFLAGS="$CFLAGS"
9382
9383if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9384	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9385	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9386printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9387if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9388then :
9389  printf %s "(cached) " >&6
9390else $as_nop
9391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9392/* end confdefs.h.  */
9393int i;
9394_ACEOF
9395if ac_fn_c_try_compile "$LINENO"
9396then :
9397  xorg_cv_cc_flag_unknown_warning_option=yes
9398else $as_nop
9399  xorg_cv_cc_flag_unknown_warning_option=no
9400fi
9401rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9402fi
9403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9404printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9405	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9406	CFLAGS="$xorg_testset_save_CFLAGS"
9407fi
9408
9409if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9410	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9411		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9412	fi
9413	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9414	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9415printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9416if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9417then :
9418  printf %s "(cached) " >&6
9419else $as_nop
9420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9421/* end confdefs.h.  */
9422int i;
9423_ACEOF
9424if ac_fn_c_try_compile "$LINENO"
9425then :
9426  xorg_cv_cc_flag_unused_command_line_argument=yes
9427else $as_nop
9428  xorg_cv_cc_flag_unused_command_line_argument=no
9429fi
9430rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9431fi
9432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9433printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9434	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9435	CFLAGS="$xorg_testset_save_CFLAGS"
9436fi
9437
9438found="no"
9439
9440	if test $found = "no" ; then
9441		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9442			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9443		fi
9444
9445		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9446			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9447		fi
9448
9449		CFLAGS="$CFLAGS -Wmain"
9450
9451		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9452printf %s "checking if $CC supports -Wmain... " >&6; }
9453		cacheid=xorg_cv_cc_flag__Wmain
9454		if eval test \${$cacheid+y}
9455then :
9456  printf %s "(cached) " >&6
9457else $as_nop
9458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9459/* end confdefs.h.  */
9460int i;
9461int
9462main (void)
9463{
9464
9465  ;
9466  return 0;
9467}
9468_ACEOF
9469if ac_fn_c_try_link "$LINENO"
9470then :
9471  eval $cacheid=yes
9472else $as_nop
9473  eval $cacheid=no
9474fi
9475rm -f core conftest.err conftest.$ac_objext conftest.beam \
9476    conftest$ac_exeext conftest.$ac_ext
9477fi
9478
9479
9480		CFLAGS="$xorg_testset_save_CFLAGS"
9481
9482		eval supported=\$$cacheid
9483		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9484printf "%s\n" "$supported" >&6; }
9485		if test "$supported" = "yes" ; then
9486			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9487			found="yes"
9488		fi
9489	fi
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505xorg_testset_save_CFLAGS="$CFLAGS"
9506
9507if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9508	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9509	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9510printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9511if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9512then :
9513  printf %s "(cached) " >&6
9514else $as_nop
9515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9516/* end confdefs.h.  */
9517int i;
9518_ACEOF
9519if ac_fn_c_try_compile "$LINENO"
9520then :
9521  xorg_cv_cc_flag_unknown_warning_option=yes
9522else $as_nop
9523  xorg_cv_cc_flag_unknown_warning_option=no
9524fi
9525rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9526fi
9527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9528printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9529	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9530	CFLAGS="$xorg_testset_save_CFLAGS"
9531fi
9532
9533if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9534	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9535		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9536	fi
9537	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9538	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9539printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9540if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9541then :
9542  printf %s "(cached) " >&6
9543else $as_nop
9544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9545/* end confdefs.h.  */
9546int i;
9547_ACEOF
9548if ac_fn_c_try_compile "$LINENO"
9549then :
9550  xorg_cv_cc_flag_unused_command_line_argument=yes
9551else $as_nop
9552  xorg_cv_cc_flag_unused_command_line_argument=no
9553fi
9554rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9555fi
9556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9557printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9558	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9559	CFLAGS="$xorg_testset_save_CFLAGS"
9560fi
9561
9562found="no"
9563
9564	if test $found = "no" ; then
9565		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9566			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9567		fi
9568
9569		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9570			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9571		fi
9572
9573		CFLAGS="$CFLAGS -Wmissing-braces"
9574
9575		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9576printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9577		cacheid=xorg_cv_cc_flag__Wmissing_braces
9578		if eval test \${$cacheid+y}
9579then :
9580  printf %s "(cached) " >&6
9581else $as_nop
9582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9583/* end confdefs.h.  */
9584int i;
9585int
9586main (void)
9587{
9588
9589  ;
9590  return 0;
9591}
9592_ACEOF
9593if ac_fn_c_try_link "$LINENO"
9594then :
9595  eval $cacheid=yes
9596else $as_nop
9597  eval $cacheid=no
9598fi
9599rm -f core conftest.err conftest.$ac_objext conftest.beam \
9600    conftest$ac_exeext conftest.$ac_ext
9601fi
9602
9603
9604		CFLAGS="$xorg_testset_save_CFLAGS"
9605
9606		eval supported=\$$cacheid
9607		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9608printf "%s\n" "$supported" >&6; }
9609		if test "$supported" = "yes" ; then
9610			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9611			found="yes"
9612		fi
9613	fi
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629xorg_testset_save_CFLAGS="$CFLAGS"
9630
9631if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9632	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9633	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9634printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9635if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9636then :
9637  printf %s "(cached) " >&6
9638else $as_nop
9639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640/* end confdefs.h.  */
9641int i;
9642_ACEOF
9643if ac_fn_c_try_compile "$LINENO"
9644then :
9645  xorg_cv_cc_flag_unknown_warning_option=yes
9646else $as_nop
9647  xorg_cv_cc_flag_unknown_warning_option=no
9648fi
9649rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9650fi
9651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9652printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9653	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9654	CFLAGS="$xorg_testset_save_CFLAGS"
9655fi
9656
9657if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9658	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9659		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9660	fi
9661	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9662	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9663printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9664if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9665then :
9666  printf %s "(cached) " >&6
9667else $as_nop
9668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9669/* end confdefs.h.  */
9670int i;
9671_ACEOF
9672if ac_fn_c_try_compile "$LINENO"
9673then :
9674  xorg_cv_cc_flag_unused_command_line_argument=yes
9675else $as_nop
9676  xorg_cv_cc_flag_unused_command_line_argument=no
9677fi
9678rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9679fi
9680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9681printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9682	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9683	CFLAGS="$xorg_testset_save_CFLAGS"
9684fi
9685
9686found="no"
9687
9688	if test $found = "no" ; then
9689		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9690			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9691		fi
9692
9693		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9694			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9695		fi
9696
9697		CFLAGS="$CFLAGS -Wsequence-point"
9698
9699		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9700printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9701		cacheid=xorg_cv_cc_flag__Wsequence_point
9702		if eval test \${$cacheid+y}
9703then :
9704  printf %s "(cached) " >&6
9705else $as_nop
9706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9707/* end confdefs.h.  */
9708int i;
9709int
9710main (void)
9711{
9712
9713  ;
9714  return 0;
9715}
9716_ACEOF
9717if ac_fn_c_try_link "$LINENO"
9718then :
9719  eval $cacheid=yes
9720else $as_nop
9721  eval $cacheid=no
9722fi
9723rm -f core conftest.err conftest.$ac_objext conftest.beam \
9724    conftest$ac_exeext conftest.$ac_ext
9725fi
9726
9727
9728		CFLAGS="$xorg_testset_save_CFLAGS"
9729
9730		eval supported=\$$cacheid
9731		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9732printf "%s\n" "$supported" >&6; }
9733		if test "$supported" = "yes" ; then
9734			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9735			found="yes"
9736		fi
9737	fi
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753xorg_testset_save_CFLAGS="$CFLAGS"
9754
9755if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9756	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9757	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9758printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9759if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9760then :
9761  printf %s "(cached) " >&6
9762else $as_nop
9763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764/* end confdefs.h.  */
9765int i;
9766_ACEOF
9767if ac_fn_c_try_compile "$LINENO"
9768then :
9769  xorg_cv_cc_flag_unknown_warning_option=yes
9770else $as_nop
9771  xorg_cv_cc_flag_unknown_warning_option=no
9772fi
9773rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9774fi
9775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9776printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9777	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9778	CFLAGS="$xorg_testset_save_CFLAGS"
9779fi
9780
9781if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9782	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9783		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9784	fi
9785	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9786	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9787printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9788if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9789then :
9790  printf %s "(cached) " >&6
9791else $as_nop
9792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9793/* end confdefs.h.  */
9794int i;
9795_ACEOF
9796if ac_fn_c_try_compile "$LINENO"
9797then :
9798  xorg_cv_cc_flag_unused_command_line_argument=yes
9799else $as_nop
9800  xorg_cv_cc_flag_unused_command_line_argument=no
9801fi
9802rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9803fi
9804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9805printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9806	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9807	CFLAGS="$xorg_testset_save_CFLAGS"
9808fi
9809
9810found="no"
9811
9812	if test $found = "no" ; then
9813		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9814			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9815		fi
9816
9817		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9818			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9819		fi
9820
9821		CFLAGS="$CFLAGS -Wreturn-type"
9822
9823		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9824printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9825		cacheid=xorg_cv_cc_flag__Wreturn_type
9826		if eval test \${$cacheid+y}
9827then :
9828  printf %s "(cached) " >&6
9829else $as_nop
9830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9831/* end confdefs.h.  */
9832int i;
9833int
9834main (void)
9835{
9836
9837  ;
9838  return 0;
9839}
9840_ACEOF
9841if ac_fn_c_try_link "$LINENO"
9842then :
9843  eval $cacheid=yes
9844else $as_nop
9845  eval $cacheid=no
9846fi
9847rm -f core conftest.err conftest.$ac_objext conftest.beam \
9848    conftest$ac_exeext conftest.$ac_ext
9849fi
9850
9851
9852		CFLAGS="$xorg_testset_save_CFLAGS"
9853
9854		eval supported=\$$cacheid
9855		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9856printf "%s\n" "$supported" >&6; }
9857		if test "$supported" = "yes" ; then
9858			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9859			found="yes"
9860		fi
9861	fi
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877xorg_testset_save_CFLAGS="$CFLAGS"
9878
9879if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9880	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9881	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9882printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9883if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9884then :
9885  printf %s "(cached) " >&6
9886else $as_nop
9887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888/* end confdefs.h.  */
9889int i;
9890_ACEOF
9891if ac_fn_c_try_compile "$LINENO"
9892then :
9893  xorg_cv_cc_flag_unknown_warning_option=yes
9894else $as_nop
9895  xorg_cv_cc_flag_unknown_warning_option=no
9896fi
9897rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9898fi
9899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9900printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9901	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9902	CFLAGS="$xorg_testset_save_CFLAGS"
9903fi
9904
9905if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9906	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9907		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9908	fi
9909	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9910	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9911printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9912if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9913then :
9914  printf %s "(cached) " >&6
9915else $as_nop
9916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9917/* end confdefs.h.  */
9918int i;
9919_ACEOF
9920if ac_fn_c_try_compile "$LINENO"
9921then :
9922  xorg_cv_cc_flag_unused_command_line_argument=yes
9923else $as_nop
9924  xorg_cv_cc_flag_unused_command_line_argument=no
9925fi
9926rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9927fi
9928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9929printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9930	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9931	CFLAGS="$xorg_testset_save_CFLAGS"
9932fi
9933
9934found="no"
9935
9936	if test $found = "no" ; then
9937		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9938			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9939		fi
9940
9941		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9942			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9943		fi
9944
9945		CFLAGS="$CFLAGS -Wtrigraphs"
9946
9947		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9948printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9949		cacheid=xorg_cv_cc_flag__Wtrigraphs
9950		if eval test \${$cacheid+y}
9951then :
9952  printf %s "(cached) " >&6
9953else $as_nop
9954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9955/* end confdefs.h.  */
9956int i;
9957int
9958main (void)
9959{
9960
9961  ;
9962  return 0;
9963}
9964_ACEOF
9965if ac_fn_c_try_link "$LINENO"
9966then :
9967  eval $cacheid=yes
9968else $as_nop
9969  eval $cacheid=no
9970fi
9971rm -f core conftest.err conftest.$ac_objext conftest.beam \
9972    conftest$ac_exeext conftest.$ac_ext
9973fi
9974
9975
9976		CFLAGS="$xorg_testset_save_CFLAGS"
9977
9978		eval supported=\$$cacheid
9979		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9980printf "%s\n" "$supported" >&6; }
9981		if test "$supported" = "yes" ; then
9982			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9983			found="yes"
9984		fi
9985	fi
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001xorg_testset_save_CFLAGS="$CFLAGS"
10002
10003if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10004	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10005	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10006printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10007if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10008then :
10009  printf %s "(cached) " >&6
10010else $as_nop
10011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10012/* end confdefs.h.  */
10013int i;
10014_ACEOF
10015if ac_fn_c_try_compile "$LINENO"
10016then :
10017  xorg_cv_cc_flag_unknown_warning_option=yes
10018else $as_nop
10019  xorg_cv_cc_flag_unknown_warning_option=no
10020fi
10021rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10022fi
10023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10024printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10025	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10026	CFLAGS="$xorg_testset_save_CFLAGS"
10027fi
10028
10029if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10030	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10031		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10032	fi
10033	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10034	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10035printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10036if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10037then :
10038  printf %s "(cached) " >&6
10039else $as_nop
10040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10041/* end confdefs.h.  */
10042int i;
10043_ACEOF
10044if ac_fn_c_try_compile "$LINENO"
10045then :
10046  xorg_cv_cc_flag_unused_command_line_argument=yes
10047else $as_nop
10048  xorg_cv_cc_flag_unused_command_line_argument=no
10049fi
10050rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10051fi
10052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10053printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10054	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10055	CFLAGS="$xorg_testset_save_CFLAGS"
10056fi
10057
10058found="no"
10059
10060	if test $found = "no" ; then
10061		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10062			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10063		fi
10064
10065		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10066			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10067		fi
10068
10069		CFLAGS="$CFLAGS -Warray-bounds"
10070
10071		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10072printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10073		cacheid=xorg_cv_cc_flag__Warray_bounds
10074		if eval test \${$cacheid+y}
10075then :
10076  printf %s "(cached) " >&6
10077else $as_nop
10078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10079/* end confdefs.h.  */
10080int i;
10081int
10082main (void)
10083{
10084
10085  ;
10086  return 0;
10087}
10088_ACEOF
10089if ac_fn_c_try_link "$LINENO"
10090then :
10091  eval $cacheid=yes
10092else $as_nop
10093  eval $cacheid=no
10094fi
10095rm -f core conftest.err conftest.$ac_objext conftest.beam \
10096    conftest$ac_exeext conftest.$ac_ext
10097fi
10098
10099
10100		CFLAGS="$xorg_testset_save_CFLAGS"
10101
10102		eval supported=\$$cacheid
10103		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10104printf "%s\n" "$supported" >&6; }
10105		if test "$supported" = "yes" ; then
10106			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10107			found="yes"
10108		fi
10109	fi
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125xorg_testset_save_CFLAGS="$CFLAGS"
10126
10127if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10128	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10129	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10130printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10131if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10132then :
10133  printf %s "(cached) " >&6
10134else $as_nop
10135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10136/* end confdefs.h.  */
10137int i;
10138_ACEOF
10139if ac_fn_c_try_compile "$LINENO"
10140then :
10141  xorg_cv_cc_flag_unknown_warning_option=yes
10142else $as_nop
10143  xorg_cv_cc_flag_unknown_warning_option=no
10144fi
10145rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10146fi
10147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10148printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10149	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10150	CFLAGS="$xorg_testset_save_CFLAGS"
10151fi
10152
10153if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10154	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10155		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10156	fi
10157	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10158	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10159printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10160if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10161then :
10162  printf %s "(cached) " >&6
10163else $as_nop
10164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10165/* end confdefs.h.  */
10166int i;
10167_ACEOF
10168if ac_fn_c_try_compile "$LINENO"
10169then :
10170  xorg_cv_cc_flag_unused_command_line_argument=yes
10171else $as_nop
10172  xorg_cv_cc_flag_unused_command_line_argument=no
10173fi
10174rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10175fi
10176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10177printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10178	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10179	CFLAGS="$xorg_testset_save_CFLAGS"
10180fi
10181
10182found="no"
10183
10184	if test $found = "no" ; then
10185		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10186			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10187		fi
10188
10189		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10190			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10191		fi
10192
10193		CFLAGS="$CFLAGS -Wwrite-strings"
10194
10195		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10196printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10197		cacheid=xorg_cv_cc_flag__Wwrite_strings
10198		if eval test \${$cacheid+y}
10199then :
10200  printf %s "(cached) " >&6
10201else $as_nop
10202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10203/* end confdefs.h.  */
10204int i;
10205int
10206main (void)
10207{
10208
10209  ;
10210  return 0;
10211}
10212_ACEOF
10213if ac_fn_c_try_link "$LINENO"
10214then :
10215  eval $cacheid=yes
10216else $as_nop
10217  eval $cacheid=no
10218fi
10219rm -f core conftest.err conftest.$ac_objext conftest.beam \
10220    conftest$ac_exeext conftest.$ac_ext
10221fi
10222
10223
10224		CFLAGS="$xorg_testset_save_CFLAGS"
10225
10226		eval supported=\$$cacheid
10227		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10228printf "%s\n" "$supported" >&6; }
10229		if test "$supported" = "yes" ; then
10230			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10231			found="yes"
10232		fi
10233	fi
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249xorg_testset_save_CFLAGS="$CFLAGS"
10250
10251if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10252	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10253	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10254printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10255if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10256then :
10257  printf %s "(cached) " >&6
10258else $as_nop
10259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10260/* end confdefs.h.  */
10261int i;
10262_ACEOF
10263if ac_fn_c_try_compile "$LINENO"
10264then :
10265  xorg_cv_cc_flag_unknown_warning_option=yes
10266else $as_nop
10267  xorg_cv_cc_flag_unknown_warning_option=no
10268fi
10269rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10270fi
10271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10272printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10273	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10274	CFLAGS="$xorg_testset_save_CFLAGS"
10275fi
10276
10277if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10278	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10279		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10280	fi
10281	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10282	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10283printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10284if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10285then :
10286  printf %s "(cached) " >&6
10287else $as_nop
10288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10289/* end confdefs.h.  */
10290int i;
10291_ACEOF
10292if ac_fn_c_try_compile "$LINENO"
10293then :
10294  xorg_cv_cc_flag_unused_command_line_argument=yes
10295else $as_nop
10296  xorg_cv_cc_flag_unused_command_line_argument=no
10297fi
10298rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10299fi
10300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10301printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10302	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10303	CFLAGS="$xorg_testset_save_CFLAGS"
10304fi
10305
10306found="no"
10307
10308	if test $found = "no" ; then
10309		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10310			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10311		fi
10312
10313		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10314			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10315		fi
10316
10317		CFLAGS="$CFLAGS -Waddress"
10318
10319		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10320printf %s "checking if $CC supports -Waddress... " >&6; }
10321		cacheid=xorg_cv_cc_flag__Waddress
10322		if eval test \${$cacheid+y}
10323then :
10324  printf %s "(cached) " >&6
10325else $as_nop
10326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10327/* end confdefs.h.  */
10328int i;
10329int
10330main (void)
10331{
10332
10333  ;
10334  return 0;
10335}
10336_ACEOF
10337if ac_fn_c_try_link "$LINENO"
10338then :
10339  eval $cacheid=yes
10340else $as_nop
10341  eval $cacheid=no
10342fi
10343rm -f core conftest.err conftest.$ac_objext conftest.beam \
10344    conftest$ac_exeext conftest.$ac_ext
10345fi
10346
10347
10348		CFLAGS="$xorg_testset_save_CFLAGS"
10349
10350		eval supported=\$$cacheid
10351		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10352printf "%s\n" "$supported" >&6; }
10353		if test "$supported" = "yes" ; then
10354			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10355			found="yes"
10356		fi
10357	fi
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373xorg_testset_save_CFLAGS="$CFLAGS"
10374
10375if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10376	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10377	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10378printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10379if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10380then :
10381  printf %s "(cached) " >&6
10382else $as_nop
10383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10384/* end confdefs.h.  */
10385int i;
10386_ACEOF
10387if ac_fn_c_try_compile "$LINENO"
10388then :
10389  xorg_cv_cc_flag_unknown_warning_option=yes
10390else $as_nop
10391  xorg_cv_cc_flag_unknown_warning_option=no
10392fi
10393rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10394fi
10395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10396printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10397	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10398	CFLAGS="$xorg_testset_save_CFLAGS"
10399fi
10400
10401if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10402	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10403		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10404	fi
10405	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10406	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10407printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10408if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10409then :
10410  printf %s "(cached) " >&6
10411else $as_nop
10412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10413/* end confdefs.h.  */
10414int i;
10415_ACEOF
10416if ac_fn_c_try_compile "$LINENO"
10417then :
10418  xorg_cv_cc_flag_unused_command_line_argument=yes
10419else $as_nop
10420  xorg_cv_cc_flag_unused_command_line_argument=no
10421fi
10422rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10423fi
10424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10425printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10426	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10427	CFLAGS="$xorg_testset_save_CFLAGS"
10428fi
10429
10430found="no"
10431
10432	if test $found = "no" ; then
10433		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10434			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10435		fi
10436
10437		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10438			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10439		fi
10440
10441		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10442
10443		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10444printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10445		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10446		if eval test \${$cacheid+y}
10447then :
10448  printf %s "(cached) " >&6
10449else $as_nop
10450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10451/* end confdefs.h.  */
10452int i;
10453int
10454main (void)
10455{
10456
10457  ;
10458  return 0;
10459}
10460_ACEOF
10461if ac_fn_c_try_link "$LINENO"
10462then :
10463  eval $cacheid=yes
10464else $as_nop
10465  eval $cacheid=no
10466fi
10467rm -f core conftest.err conftest.$ac_objext conftest.beam \
10468    conftest$ac_exeext conftest.$ac_ext
10469fi
10470
10471
10472		CFLAGS="$xorg_testset_save_CFLAGS"
10473
10474		eval supported=\$$cacheid
10475		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10476printf "%s\n" "$supported" >&6; }
10477		if test "$supported" = "yes" ; then
10478			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10479			found="yes"
10480		fi
10481	fi
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497xorg_testset_save_CFLAGS="$CFLAGS"
10498
10499if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10500	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10501	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10502printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10503if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10504then :
10505  printf %s "(cached) " >&6
10506else $as_nop
10507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10508/* end confdefs.h.  */
10509int i;
10510_ACEOF
10511if ac_fn_c_try_compile "$LINENO"
10512then :
10513  xorg_cv_cc_flag_unknown_warning_option=yes
10514else $as_nop
10515  xorg_cv_cc_flag_unknown_warning_option=no
10516fi
10517rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10518fi
10519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10520printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10521	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10522	CFLAGS="$xorg_testset_save_CFLAGS"
10523fi
10524
10525if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10526	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10527		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10528	fi
10529	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10530	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10531printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10532if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10533then :
10534  printf %s "(cached) " >&6
10535else $as_nop
10536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10537/* end confdefs.h.  */
10538int i;
10539_ACEOF
10540if ac_fn_c_try_compile "$LINENO"
10541then :
10542  xorg_cv_cc_flag_unused_command_line_argument=yes
10543else $as_nop
10544  xorg_cv_cc_flag_unused_command_line_argument=no
10545fi
10546rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10547fi
10548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10549printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10550	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10551	CFLAGS="$xorg_testset_save_CFLAGS"
10552fi
10553
10554found="no"
10555
10556	if test $found = "no" ; then
10557		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10558			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10559		fi
10560
10561		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10562			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10563		fi
10564
10565		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10566
10567		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10568printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10569		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10570		if eval test \${$cacheid+y}
10571then :
10572  printf %s "(cached) " >&6
10573else $as_nop
10574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10575/* end confdefs.h.  */
10576int i;
10577int
10578main (void)
10579{
10580
10581  ;
10582  return 0;
10583}
10584_ACEOF
10585if ac_fn_c_try_link "$LINENO"
10586then :
10587  eval $cacheid=yes
10588else $as_nop
10589  eval $cacheid=no
10590fi
10591rm -f core conftest.err conftest.$ac_objext conftest.beam \
10592    conftest$ac_exeext conftest.$ac_ext
10593fi
10594
10595
10596		CFLAGS="$xorg_testset_save_CFLAGS"
10597
10598		eval supported=\$$cacheid
10599		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10600printf "%s\n" "$supported" >&6; }
10601		if test "$supported" = "yes" ; then
10602			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10603			found="yes"
10604		fi
10605	fi
10606
10607
10608fi
10609
10610
10611
10612
10613
10614
10615
10616		CWARNFLAGS="$BASE_CFLAGS"
10617		if  test "x$GCC" = xyes ; then
10618		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10619		fi
10620
10621
10622
10623
10624
10625
10626
10627
10628# Check whether --enable-strict-compilation was given.
10629if test ${enable_strict_compilation+y}
10630then :
10631  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10632else $as_nop
10633  STRICT_COMPILE=no
10634fi
10635
10636
10637
10638
10639
10640
10641STRICT_CFLAGS=""
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655xorg_testset_save_CFLAGS="$CFLAGS"
10656
10657if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10658	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10659	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10660printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10661if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10662then :
10663  printf %s "(cached) " >&6
10664else $as_nop
10665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10666/* end confdefs.h.  */
10667int i;
10668_ACEOF
10669if ac_fn_c_try_compile "$LINENO"
10670then :
10671  xorg_cv_cc_flag_unknown_warning_option=yes
10672else $as_nop
10673  xorg_cv_cc_flag_unknown_warning_option=no
10674fi
10675rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10676fi
10677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10678printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10679	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10680	CFLAGS="$xorg_testset_save_CFLAGS"
10681fi
10682
10683if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10684	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10685		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10686	fi
10687	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10688	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10689printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10690if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10691then :
10692  printf %s "(cached) " >&6
10693else $as_nop
10694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10695/* end confdefs.h.  */
10696int i;
10697_ACEOF
10698if ac_fn_c_try_compile "$LINENO"
10699then :
10700  xorg_cv_cc_flag_unused_command_line_argument=yes
10701else $as_nop
10702  xorg_cv_cc_flag_unused_command_line_argument=no
10703fi
10704rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10705fi
10706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10707printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10708	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10709	CFLAGS="$xorg_testset_save_CFLAGS"
10710fi
10711
10712found="no"
10713
10714	if test $found = "no" ; then
10715		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10716			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10717		fi
10718
10719		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10720			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10721		fi
10722
10723		CFLAGS="$CFLAGS -pedantic"
10724
10725		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10726printf %s "checking if $CC supports -pedantic... " >&6; }
10727		cacheid=xorg_cv_cc_flag__pedantic
10728		if eval test \${$cacheid+y}
10729then :
10730  printf %s "(cached) " >&6
10731else $as_nop
10732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10733/* end confdefs.h.  */
10734int i;
10735int
10736main (void)
10737{
10738
10739  ;
10740  return 0;
10741}
10742_ACEOF
10743if ac_fn_c_try_link "$LINENO"
10744then :
10745  eval $cacheid=yes
10746else $as_nop
10747  eval $cacheid=no
10748fi
10749rm -f core conftest.err conftest.$ac_objext conftest.beam \
10750    conftest$ac_exeext conftest.$ac_ext
10751fi
10752
10753
10754		CFLAGS="$xorg_testset_save_CFLAGS"
10755
10756		eval supported=\$$cacheid
10757		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10758printf "%s\n" "$supported" >&6; }
10759		if test "$supported" = "yes" ; then
10760			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10761			found="yes"
10762		fi
10763	fi
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779xorg_testset_save_CFLAGS="$CFLAGS"
10780
10781if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10782	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10783	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10784printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10785if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10786then :
10787  printf %s "(cached) " >&6
10788else $as_nop
10789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10790/* end confdefs.h.  */
10791int i;
10792_ACEOF
10793if ac_fn_c_try_compile "$LINENO"
10794then :
10795  xorg_cv_cc_flag_unknown_warning_option=yes
10796else $as_nop
10797  xorg_cv_cc_flag_unknown_warning_option=no
10798fi
10799rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10800fi
10801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10802printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10803	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10804	CFLAGS="$xorg_testset_save_CFLAGS"
10805fi
10806
10807if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10808	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10809		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10810	fi
10811	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10812	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10813printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10814if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10815then :
10816  printf %s "(cached) " >&6
10817else $as_nop
10818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10819/* end confdefs.h.  */
10820int i;
10821_ACEOF
10822if ac_fn_c_try_compile "$LINENO"
10823then :
10824  xorg_cv_cc_flag_unused_command_line_argument=yes
10825else $as_nop
10826  xorg_cv_cc_flag_unused_command_line_argument=no
10827fi
10828rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10829fi
10830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10831printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10832	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10833	CFLAGS="$xorg_testset_save_CFLAGS"
10834fi
10835
10836found="no"
10837
10838	if test $found = "no" ; then
10839		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10840			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10841		fi
10842
10843		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10844			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10845		fi
10846
10847		CFLAGS="$CFLAGS -Werror"
10848
10849		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10850printf %s "checking if $CC supports -Werror... " >&6; }
10851		cacheid=xorg_cv_cc_flag__Werror
10852		if eval test \${$cacheid+y}
10853then :
10854  printf %s "(cached) " >&6
10855else $as_nop
10856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10857/* end confdefs.h.  */
10858int i;
10859int
10860main (void)
10861{
10862
10863  ;
10864  return 0;
10865}
10866_ACEOF
10867if ac_fn_c_try_link "$LINENO"
10868then :
10869  eval $cacheid=yes
10870else $as_nop
10871  eval $cacheid=no
10872fi
10873rm -f core conftest.err conftest.$ac_objext conftest.beam \
10874    conftest$ac_exeext conftest.$ac_ext
10875fi
10876
10877
10878		CFLAGS="$xorg_testset_save_CFLAGS"
10879
10880		eval supported=\$$cacheid
10881		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10882printf "%s\n" "$supported" >&6; }
10883		if test "$supported" = "yes" ; then
10884			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10885			found="yes"
10886		fi
10887	fi
10888
10889	if test $found = "no" ; then
10890		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10891			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10892		fi
10893
10894		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10895			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10896		fi
10897
10898		CFLAGS="$CFLAGS -errwarn"
10899
10900		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10901printf %s "checking if $CC supports -errwarn... " >&6; }
10902		cacheid=xorg_cv_cc_flag__errwarn
10903		if eval test \${$cacheid+y}
10904then :
10905  printf %s "(cached) " >&6
10906else $as_nop
10907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10908/* end confdefs.h.  */
10909int i;
10910int
10911main (void)
10912{
10913
10914  ;
10915  return 0;
10916}
10917_ACEOF
10918if ac_fn_c_try_link "$LINENO"
10919then :
10920  eval $cacheid=yes
10921else $as_nop
10922  eval $cacheid=no
10923fi
10924rm -f core conftest.err conftest.$ac_objext conftest.beam \
10925    conftest$ac_exeext conftest.$ac_ext
10926fi
10927
10928
10929		CFLAGS="$xorg_testset_save_CFLAGS"
10930
10931		eval supported=\$$cacheid
10932		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10933printf "%s\n" "$supported" >&6; }
10934		if test "$supported" = "yes" ; then
10935			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10936			found="yes"
10937		fi
10938	fi
10939
10940
10941
10942# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10943# activate it with -Werror, so we add it here explicitly.
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957xorg_testset_save_CFLAGS="$CFLAGS"
10958
10959if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10960	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10961	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10962printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10963if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10964then :
10965  printf %s "(cached) " >&6
10966else $as_nop
10967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968/* end confdefs.h.  */
10969int i;
10970_ACEOF
10971if ac_fn_c_try_compile "$LINENO"
10972then :
10973  xorg_cv_cc_flag_unknown_warning_option=yes
10974else $as_nop
10975  xorg_cv_cc_flag_unknown_warning_option=no
10976fi
10977rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10978fi
10979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10980printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10981	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10982	CFLAGS="$xorg_testset_save_CFLAGS"
10983fi
10984
10985if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10986	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10987		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10988	fi
10989	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10990	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10991printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10992if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10993then :
10994  printf %s "(cached) " >&6
10995else $as_nop
10996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10997/* end confdefs.h.  */
10998int i;
10999_ACEOF
11000if ac_fn_c_try_compile "$LINENO"
11001then :
11002  xorg_cv_cc_flag_unused_command_line_argument=yes
11003else $as_nop
11004  xorg_cv_cc_flag_unused_command_line_argument=no
11005fi
11006rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11007fi
11008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11009printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11010	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11011	CFLAGS="$xorg_testset_save_CFLAGS"
11012fi
11013
11014found="no"
11015
11016	if test $found = "no" ; then
11017		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11018			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11019		fi
11020
11021		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11022			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11023		fi
11024
11025		CFLAGS="$CFLAGS -Werror=attributes"
11026
11027		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11028printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11029		cacheid=xorg_cv_cc_flag__Werror_attributes
11030		if eval test \${$cacheid+y}
11031then :
11032  printf %s "(cached) " >&6
11033else $as_nop
11034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11035/* end confdefs.h.  */
11036int i;
11037int
11038main (void)
11039{
11040
11041  ;
11042  return 0;
11043}
11044_ACEOF
11045if ac_fn_c_try_link "$LINENO"
11046then :
11047  eval $cacheid=yes
11048else $as_nop
11049  eval $cacheid=no
11050fi
11051rm -f core conftest.err conftest.$ac_objext conftest.beam \
11052    conftest$ac_exeext conftest.$ac_ext
11053fi
11054
11055
11056		CFLAGS="$xorg_testset_save_CFLAGS"
11057
11058		eval supported=\$$cacheid
11059		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11060printf "%s\n" "$supported" >&6; }
11061		if test "$supported" = "yes" ; then
11062			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11063			found="yes"
11064		fi
11065	fi
11066
11067
11068
11069if test "x$STRICT_COMPILE" = "xyes"; then
11070    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11071    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11072fi
11073
11074
11075
11076
11077
11078
11079cat >>confdefs.h <<_ACEOF
11080#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11081_ACEOF
11082
11083	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11084	if test "x$PVM" = "x"; then
11085		PVM="0"
11086	fi
11087
11088printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11089
11090	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11091	if test "x$PVP" = "x"; then
11092		PVP="0"
11093	fi
11094
11095printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11096
11097
11098
11099CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11100mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11101|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11102touch \$(top_srcdir)/ChangeLog; \
11103echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11104
11105
11106
11107
11108macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11109INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11110mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11111|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11112touch \$(top_srcdir)/INSTALL; \
11113echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11114
11115
11116
11117
11118
11119
11120case $host_os in
11121    solaris*)
11122        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11123        # check for a man page file found in later versions that use
11124        # traditional section numbers instead
11125        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11126printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11127if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11128then :
11129  printf %s "(cached) " >&6
11130else $as_nop
11131  test "$cross_compiling" = yes &&
11132  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11133if test -r "/usr/share/man/man7/attributes.7"; then
11134  ac_cv_file__usr_share_man_man7_attributes_7=yes
11135else
11136  ac_cv_file__usr_share_man_man7_attributes_7=no
11137fi
11138fi
11139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11140printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11141if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11142then :
11143  SYSV_MAN_SECTIONS=false
11144else $as_nop
11145  SYSV_MAN_SECTIONS=true
11146fi
11147
11148        ;;
11149    *) SYSV_MAN_SECTIONS=false ;;
11150esac
11151
11152if test x$APP_MAN_SUFFIX = x    ; then
11153    APP_MAN_SUFFIX=1
11154fi
11155if test x$APP_MAN_DIR = x    ; then
11156    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11157fi
11158
11159if test x$LIB_MAN_SUFFIX = x    ; then
11160    LIB_MAN_SUFFIX=3
11161fi
11162if test x$LIB_MAN_DIR = x    ; then
11163    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11164fi
11165
11166if test x$FILE_MAN_SUFFIX = x    ; then
11167    case $SYSV_MAN_SECTIONS in
11168	true)				FILE_MAN_SUFFIX=4  ;;
11169	*)				FILE_MAN_SUFFIX=5  ;;
11170    esac
11171fi
11172if test x$FILE_MAN_DIR = x    ; then
11173    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11174fi
11175
11176if test x$MISC_MAN_SUFFIX = x    ; then
11177    case $SYSV_MAN_SECTIONS in
11178	true)				MISC_MAN_SUFFIX=5  ;;
11179	*)				MISC_MAN_SUFFIX=7  ;;
11180    esac
11181fi
11182if test x$MISC_MAN_DIR = x    ; then
11183    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11184fi
11185
11186if test x$DRIVER_MAN_SUFFIX = x    ; then
11187    case $SYSV_MAN_SECTIONS in
11188	true)				DRIVER_MAN_SUFFIX=7  ;;
11189	*)				DRIVER_MAN_SUFFIX=4  ;;
11190    esac
11191fi
11192if test x$DRIVER_MAN_DIR = x    ; then
11193    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11194fi
11195
11196if test x$ADMIN_MAN_SUFFIX = x    ; then
11197    case $SYSV_MAN_SECTIONS in
11198	true)				ADMIN_MAN_SUFFIX=1m ;;
11199	*)				ADMIN_MAN_SUFFIX=8  ;;
11200    esac
11201fi
11202if test x$ADMIN_MAN_DIR = x    ; then
11203    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11204fi
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220XORG_MAN_PAGE="X Version 11"
11221
11222MAN_SUBSTS="\
11223	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11224	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11225	-e 's|__xservername__|Xorg|g' \
11226	-e 's|__xconfigfile__|xorg.conf|g' \
11227	-e 's|__projectroot__|\$(prefix)|g' \
11228	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11229	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11230	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11231	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11232	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11233	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11234	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11235
11236
11237
11238# Check whether --enable-silent-rules was given.
11239if test ${enable_silent_rules+y}
11240then :
11241  enableval=$enable_silent_rules;
11242fi
11243
11244case $enable_silent_rules in # (((
11245  yes) AM_DEFAULT_VERBOSITY=0;;
11246   no) AM_DEFAULT_VERBOSITY=1;;
11247    *) AM_DEFAULT_VERBOSITY=0;;
11248esac
11249am_make=${MAKE-make}
11250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11251printf %s "checking whether $am_make supports nested variables... " >&6; }
11252if test ${am_cv_make_support_nested_variables+y}
11253then :
11254  printf %s "(cached) " >&6
11255else $as_nop
11256  if printf "%s\n" 'TRUE=$(BAR$(V))
11257BAR0=false
11258BAR1=true
11259V=1
11260am__doit:
11261	@$(TRUE)
11262.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11263  am_cv_make_support_nested_variables=yes
11264else
11265  am_cv_make_support_nested_variables=no
11266fi
11267fi
11268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11269printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11270if test $am_cv_make_support_nested_variables = yes; then
11271    AM_V='$(V)'
11272  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11273else
11274  AM_V=$AM_DEFAULT_VERBOSITY
11275  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11276fi
11277AM_BACKSLASH='\'
11278
11279
11280
11281ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
11282if test "x$ac_cv_func_strlcpy" = xyes
11283then :
11284  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
11285
11286fi
11287ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid"
11288if test "x$ac_cv_func_getpid" = xyes
11289then :
11290  printf "%s\n" "#define HAVE_GETPID 1" >>confdefs.h
11291
11292fi
11293ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
11294if test "x$ac_cv_func_nl_langinfo" = xyes
11295then :
11296  printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h
11297
11298fi
11299
11300
11301
11302      if test "X$prefix" = "XNONE"; then
11303    acl_final_prefix="$ac_default_prefix"
11304  else
11305    acl_final_prefix="$prefix"
11306  fi
11307  if test "X$exec_prefix" = "XNONE"; then
11308    acl_final_exec_prefix='${prefix}'
11309  else
11310    acl_final_exec_prefix="$exec_prefix"
11311  fi
11312  acl_save_prefix="$prefix"
11313  prefix="$acl_final_prefix"
11314  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11315  prefix="$acl_save_prefix"
11316
11317
11318
11319# Check whether --with-gnu-ld was given.
11320if test ${with_gnu_ld+y}
11321then :
11322  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11323else $as_nop
11324  with_gnu_ld=no
11325fi
11326
11327# Prepare PATH_SEPARATOR.
11328# The user is always right.
11329if test "${PATH_SEPARATOR+set}" != set; then
11330  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
11331  # contains only /bin. Note that ksh looks also at the FPATH variable,
11332  # so we have to set that as well for the test.
11333  PATH_SEPARATOR=:
11334  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
11335    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
11336           || PATH_SEPARATOR=';'
11337       }
11338fi
11339
11340ac_prog=ld
11341if test "$GCC" = yes; then
11342  # Check if gcc -print-prog-name=ld gives a path.
11343  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11344printf %s "checking for ld used by $CC... " >&6; }
11345  case $host in
11346  *-*-mingw*)
11347    # gcc leaves a trailing carriage return which upsets mingw
11348    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11349  *)
11350    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11351  esac
11352  case $ac_prog in
11353    # Accept absolute paths.
11354    [\\/]* | ?:[\\/]*)
11355      re_direlt='/[^/][^/]*/\.\./'
11356      # Canonicalize the pathname of ld
11357      ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
11358      while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
11359        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11360      done
11361      test -z "$LD" && LD="$ac_prog"
11362      ;;
11363  "")
11364    # If it fails, then pretend we aren't using GCC.
11365    ac_prog=ld
11366    ;;
11367  *)
11368    # If it is relative, then search for the first ld in PATH.
11369    with_gnu_ld=unknown
11370    ;;
11371  esac
11372elif test "$with_gnu_ld" = yes; then
11373  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11374printf %s "checking for GNU ld... " >&6; }
11375else
11376  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11377printf %s "checking for non-GNU ld... " >&6; }
11378fi
11379if test ${acl_cv_path_LD+y}
11380then :
11381  printf %s "(cached) " >&6
11382else $as_nop
11383  if test -z "$LD"; then
11384  acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11385  for ac_dir in $PATH; do
11386    IFS="$acl_save_ifs"
11387    test -z "$ac_dir" && ac_dir=.
11388    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11389      acl_cv_path_LD="$ac_dir/$ac_prog"
11390      # Check to see if the program is GNU ld.  I'd rather use --version,
11391      # but apparently some variants of GNU ld only accept -v.
11392      # Break only if it was the GNU/non-GNU ld that we prefer.
11393      case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
11394      *GNU* | *'with BFD'*)
11395        test "$with_gnu_ld" != no && break
11396        ;;
11397      *)
11398        test "$with_gnu_ld" != yes && break
11399        ;;
11400      esac
11401    fi
11402  done
11403  IFS="$acl_save_ifs"
11404else
11405  acl_cv_path_LD="$LD" # Let the user override the test with a path.
11406fi
11407fi
11408
11409LD="$acl_cv_path_LD"
11410if test -n "$LD"; then
11411  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11412printf "%s\n" "$LD" >&6; }
11413else
11414  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11415printf "%s\n" "no" >&6; }
11416fi
11417test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11419printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
11420if test ${acl_cv_prog_gnu_ld+y}
11421then :
11422  printf %s "(cached) " >&6
11423else $as_nop
11424  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11425case `$LD -v 2>&1 </dev/null` in
11426*GNU* | *'with BFD'*)
11427  acl_cv_prog_gnu_ld=yes
11428  ;;
11429*)
11430  acl_cv_prog_gnu_ld=no
11431  ;;
11432esac
11433fi
11434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11435printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
11436with_gnu_ld=$acl_cv_prog_gnu_ld
11437
11438
11439
11440
11441
11442                                                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11443printf %s "checking for shared library run path origin... " >&6; }
11444if test ${acl_cv_rpath+y}
11445then :
11446  printf %s "(cached) " >&6
11447else $as_nop
11448
11449    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11450    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11451    . ./conftest.sh
11452    rm -f ./conftest.sh
11453    acl_cv_rpath=done
11454
11455fi
11456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11457printf "%s\n" "$acl_cv_rpath" >&6; }
11458  wl="$acl_cv_wl"
11459  acl_libext="$acl_cv_libext"
11460  acl_shlibext="$acl_cv_shlibext"
11461  acl_libname_spec="$acl_cv_libname_spec"
11462  acl_library_names_spec="$acl_cv_library_names_spec"
11463  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11464  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11465  acl_hardcode_direct="$acl_cv_hardcode_direct"
11466  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
11467    # Check whether --enable-rpath was given.
11468if test ${enable_rpath+y}
11469then :
11470  enableval=$enable_rpath; :
11471else $as_nop
11472  enable_rpath=yes
11473fi
11474
11475
11476ac_ext=c
11477ac_cpp='$CPP $CPPFLAGS'
11478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11480ac_compiler_gnu=$ac_cv_c_compiler_gnu
11481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
11482printf %s "checking how to run the C preprocessor... " >&6; }
11483# On Suns, sometimes $CPP names a directory.
11484if test -n "$CPP" && test -d "$CPP"; then
11485  CPP=
11486fi
11487if test -z "$CPP"; then
11488  if test ${ac_cv_prog_CPP+y}
11489then :
11490  printf %s "(cached) " >&6
11491else $as_nop
11492      # Double quotes because $CC needs to be expanded
11493    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
11494    do
11495      ac_preproc_ok=false
11496for ac_c_preproc_warn_flag in '' yes
11497do
11498  # Use a header file that comes with gcc, so configuring glibc
11499  # with a fresh cross-compiler works.
11500  # On the NeXT, cc -E runs the code through the compiler's parser,
11501  # not just through cpp. "Syntax error" is here to catch this case.
11502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11503/* end confdefs.h.  */
11504#include <limits.h>
11505		     Syntax error
11506_ACEOF
11507if ac_fn_c_try_cpp "$LINENO"
11508then :
11509
11510else $as_nop
11511  # Broken: fails on valid input.
11512continue
11513fi
11514rm -f conftest.err conftest.i conftest.$ac_ext
11515
11516  # OK, works on sane cases.  Now check whether nonexistent headers
11517  # can be detected and how.
11518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11519/* end confdefs.h.  */
11520#include <ac_nonexistent.h>
11521_ACEOF
11522if ac_fn_c_try_cpp "$LINENO"
11523then :
11524  # Broken: success on invalid input.
11525continue
11526else $as_nop
11527  # Passes both tests.
11528ac_preproc_ok=:
11529break
11530fi
11531rm -f conftest.err conftest.i conftest.$ac_ext
11532
11533done
11534# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11535rm -f conftest.i conftest.err conftest.$ac_ext
11536if $ac_preproc_ok
11537then :
11538  break
11539fi
11540
11541    done
11542    ac_cv_prog_CPP=$CPP
11543
11544fi
11545  CPP=$ac_cv_prog_CPP
11546else
11547  ac_cv_prog_CPP=$CPP
11548fi
11549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
11550printf "%s\n" "$CPP" >&6; }
11551ac_preproc_ok=false
11552for ac_c_preproc_warn_flag in '' yes
11553do
11554  # Use a header file that comes with gcc, so configuring glibc
11555  # with a fresh cross-compiler works.
11556  # On the NeXT, cc -E runs the code through the compiler's parser,
11557  # not just through cpp. "Syntax error" is here to catch this case.
11558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11559/* end confdefs.h.  */
11560#include <limits.h>
11561		     Syntax error
11562_ACEOF
11563if ac_fn_c_try_cpp "$LINENO"
11564then :
11565
11566else $as_nop
11567  # Broken: fails on valid input.
11568continue
11569fi
11570rm -f conftest.err conftest.i conftest.$ac_ext
11571
11572  # OK, works on sane cases.  Now check whether nonexistent headers
11573  # can be detected and how.
11574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11575/* end confdefs.h.  */
11576#include <ac_nonexistent.h>
11577_ACEOF
11578if ac_fn_c_try_cpp "$LINENO"
11579then :
11580  # Broken: success on invalid input.
11581continue
11582else $as_nop
11583  # Passes both tests.
11584ac_preproc_ok=:
11585break
11586fi
11587rm -f conftest.err conftest.i conftest.$ac_ext
11588
11589done
11590# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11591rm -f conftest.i conftest.err conftest.$ac_ext
11592if $ac_preproc_ok
11593then :
11594
11595else $as_nop
11596  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11597printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11598as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
11599See \`config.log' for more details" "$LINENO" 5; }
11600fi
11601
11602ac_ext=c
11603ac_cpp='$CPP $CPPFLAGS'
11604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11606ac_compiler_gnu=$ac_cv_c_compiler_gnu
11607
11608
11609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11610printf %s "checking for grep that handles long lines and -e... " >&6; }
11611if test ${ac_cv_path_GREP+y}
11612then :
11613  printf %s "(cached) " >&6
11614else $as_nop
11615  if test -z "$GREP"; then
11616  ac_path_GREP_found=false
11617  # Loop through the user's path and test for each of PROGNAME-LIST
11618  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11619for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11620do
11621  IFS=$as_save_IFS
11622  case $as_dir in #(((
11623    '') as_dir=./ ;;
11624    */) ;;
11625    *) as_dir=$as_dir/ ;;
11626  esac
11627    for ac_prog in grep ggrep
11628   do
11629    for ac_exec_ext in '' $ac_executable_extensions; do
11630      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
11631      as_fn_executable_p "$ac_path_GREP" || continue
11632# Check for GNU ac_path_GREP and select it if it is found.
11633  # Check for GNU $ac_path_GREP
11634case `"$ac_path_GREP" --version 2>&1` in
11635*GNU*)
11636  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11637*)
11638  ac_count=0
11639  printf %s 0123456789 >"conftest.in"
11640  while :
11641  do
11642    cat "conftest.in" "conftest.in" >"conftest.tmp"
11643    mv "conftest.tmp" "conftest.in"
11644    cp "conftest.in" "conftest.nl"
11645    printf "%s\n" 'GREP' >> "conftest.nl"
11646    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11647    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11648    as_fn_arith $ac_count + 1 && ac_count=$as_val
11649    if test $ac_count -gt ${ac_path_GREP_max-0}; then
11650      # Best one so far, save it but keep looking for a better one
11651      ac_cv_path_GREP="$ac_path_GREP"
11652      ac_path_GREP_max=$ac_count
11653    fi
11654    # 10*(2^10) chars as input seems more than enough
11655    test $ac_count -gt 10 && break
11656  done
11657  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11658esac
11659
11660      $ac_path_GREP_found && break 3
11661    done
11662  done
11663  done
11664IFS=$as_save_IFS
11665  if test -z "$ac_cv_path_GREP"; then
11666    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11667  fi
11668else
11669  ac_cv_path_GREP=$GREP
11670fi
11671
11672fi
11673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11674printf "%s\n" "$ac_cv_path_GREP" >&6; }
11675 GREP="$ac_cv_path_GREP"
11676
11677
11678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11679printf %s "checking for egrep... " >&6; }
11680if test ${ac_cv_path_EGREP+y}
11681then :
11682  printf %s "(cached) " >&6
11683else $as_nop
11684  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11685   then ac_cv_path_EGREP="$GREP -E"
11686   else
11687     if test -z "$EGREP"; then
11688  ac_path_EGREP_found=false
11689  # Loop through the user's path and test for each of PROGNAME-LIST
11690  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11691for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11692do
11693  IFS=$as_save_IFS
11694  case $as_dir in #(((
11695    '') as_dir=./ ;;
11696    */) ;;
11697    *) as_dir=$as_dir/ ;;
11698  esac
11699    for ac_prog in egrep
11700   do
11701    for ac_exec_ext in '' $ac_executable_extensions; do
11702      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11703      as_fn_executable_p "$ac_path_EGREP" || continue
11704# Check for GNU ac_path_EGREP and select it if it is found.
11705  # Check for GNU $ac_path_EGREP
11706case `"$ac_path_EGREP" --version 2>&1` in
11707*GNU*)
11708  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11709*)
11710  ac_count=0
11711  printf %s 0123456789 >"conftest.in"
11712  while :
11713  do
11714    cat "conftest.in" "conftest.in" >"conftest.tmp"
11715    mv "conftest.tmp" "conftest.in"
11716    cp "conftest.in" "conftest.nl"
11717    printf "%s\n" 'EGREP' >> "conftest.nl"
11718    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11719    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11720    as_fn_arith $ac_count + 1 && ac_count=$as_val
11721    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11722      # Best one so far, save it but keep looking for a better one
11723      ac_cv_path_EGREP="$ac_path_EGREP"
11724      ac_path_EGREP_max=$ac_count
11725    fi
11726    # 10*(2^10) chars as input seems more than enough
11727    test $ac_count -gt 10 && break
11728  done
11729  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11730esac
11731
11732      $ac_path_EGREP_found && break 3
11733    done
11734  done
11735  done
11736IFS=$as_save_IFS
11737  if test -z "$ac_cv_path_EGREP"; then
11738    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11739  fi
11740else
11741  ac_cv_path_EGREP=$EGREP
11742fi
11743
11744   fi
11745fi
11746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11747printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11748 EGREP="$ac_cv_path_EGREP"
11749
11750
11751
11752
11753  acl_libdirstem=lib
11754  acl_libdirstem2=
11755  case "$host_os" in
11756    solaris*)
11757                                    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
11758printf %s "checking for 64-bit host... " >&6; }
11759if test ${gl_cv_solaris_64bit+y}
11760then :
11761  printf %s "(cached) " >&6
11762else $as_nop
11763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11764/* end confdefs.h.  */
11765
11766#ifdef _LP64
11767sixtyfour bits
11768#endif
11769
11770_ACEOF
11771if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11772  $EGREP "sixtyfour bits" >/dev/null 2>&1
11773then :
11774  gl_cv_solaris_64bit=yes
11775else $as_nop
11776  gl_cv_solaris_64bit=no
11777fi
11778rm -rf conftest*
11779
11780
11781fi
11782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
11783printf "%s\n" "$gl_cv_solaris_64bit" >&6; }
11784      if test $gl_cv_solaris_64bit = yes; then
11785        acl_libdirstem=lib/64
11786        case "$host_cpu" in
11787          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
11788          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
11789        esac
11790      fi
11791      ;;
11792    *)
11793      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
11794      if test -n "$searchpath"; then
11795        acl_save_IFS="${IFS= 	}"; IFS=":"
11796        for searchdir in $searchpath; do
11797          if test -d "$searchdir"; then
11798            case "$searchdir" in
11799              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
11800              */../ | */.. )
11801                # Better ignore directories of this form. They are misleading.
11802                ;;
11803              *) searchdir=`cd "$searchdir" && pwd`
11804                 case "$searchdir" in
11805                   */lib64 ) acl_libdirstem=lib64 ;;
11806                 esac ;;
11807            esac
11808          fi
11809        done
11810        IFS="$acl_save_IFS"
11811      fi
11812      ;;
11813  esac
11814  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827    use_additional=yes
11828
11829  acl_save_prefix="$prefix"
11830  prefix="$acl_final_prefix"
11831  acl_save_exec_prefix="$exec_prefix"
11832  exec_prefix="$acl_final_exec_prefix"
11833
11834    eval additional_includedir=\"$includedir\"
11835    eval additional_libdir=\"$libdir\"
11836
11837  exec_prefix="$acl_save_exec_prefix"
11838  prefix="$acl_save_prefix"
11839
11840
11841# Check whether --with-libiconv-prefix was given.
11842if test ${with_libiconv_prefix+y}
11843then :
11844  withval=$with_libiconv_prefix;
11845    if test "X$withval" = "Xno"; then
11846      use_additional=no
11847    else
11848      if test "X$withval" = "X"; then
11849
11850  acl_save_prefix="$prefix"
11851  prefix="$acl_final_prefix"
11852  acl_save_exec_prefix="$exec_prefix"
11853  exec_prefix="$acl_final_exec_prefix"
11854
11855          eval additional_includedir=\"$includedir\"
11856          eval additional_libdir=\"$libdir\"
11857
11858  exec_prefix="$acl_save_exec_prefix"
11859  prefix="$acl_save_prefix"
11860
11861      else
11862        additional_includedir="$withval/include"
11863        additional_libdir="$withval/$acl_libdirstem"
11864        if test "$acl_libdirstem2" != "$acl_libdirstem" \
11865           && ! test -d "$withval/$acl_libdirstem"; then
11866          additional_libdir="$withval/$acl_libdirstem2"
11867        fi
11868      fi
11869    fi
11870
11871fi
11872
11873      LIBICONV=
11874  LTLIBICONV=
11875  INCICONV=
11876  LIBICONV_PREFIX=
11877      HAVE_LIBICONV=
11878  rpathdirs=
11879  ltrpathdirs=
11880  names_already_handled=
11881  names_next_round='iconv '
11882  while test -n "$names_next_round"; do
11883    names_this_round="$names_next_round"
11884    names_next_round=
11885    for name in $names_this_round; do
11886      already_handled=
11887      for n in $names_already_handled; do
11888        if test "$n" = "$name"; then
11889          already_handled=yes
11890          break
11891        fi
11892      done
11893      if test -z "$already_handled"; then
11894        names_already_handled="$names_already_handled $name"
11895                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
11896        eval value=\"\$HAVE_LIB$uppername\"
11897        if test -n "$value"; then
11898          if test "$value" = yes; then
11899            eval value=\"\$LIB$uppername\"
11900            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11901            eval value=\"\$LTLIB$uppername\"
11902            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11903          else
11904                                    :
11905          fi
11906        else
11907                              found_dir=
11908          found_la=
11909          found_so=
11910          found_a=
11911          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
11912          if test -n "$acl_shlibext"; then
11913            shrext=".$acl_shlibext"             # typically: shrext=.so
11914          else
11915            shrext=
11916          fi
11917          if test $use_additional = yes; then
11918            dir="$additional_libdir"
11919                                    if test -n "$acl_shlibext"; then
11920              if test -f "$dir/$libname$shrext"; then
11921                found_dir="$dir"
11922                found_so="$dir/$libname$shrext"
11923              else
11924                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11925                  ver=`(cd "$dir" && \
11926                        for f in "$libname$shrext".*; do echo "$f"; done \
11927                        | sed -e "s,^$libname$shrext\\\\.,," \
11928                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11929                        | sed 1q ) 2>/dev/null`
11930                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11931                    found_dir="$dir"
11932                    found_so="$dir/$libname$shrext.$ver"
11933                  fi
11934                else
11935                  eval library_names=\"$acl_library_names_spec\"
11936                  for f in $library_names; do
11937                    if test -f "$dir/$f"; then
11938                      found_dir="$dir"
11939                      found_so="$dir/$f"
11940                      break
11941                    fi
11942                  done
11943                fi
11944              fi
11945            fi
11946                        if test "X$found_dir" = "X"; then
11947              if test -f "$dir/$libname.$acl_libext"; then
11948                found_dir="$dir"
11949                found_a="$dir/$libname.$acl_libext"
11950              fi
11951            fi
11952            if test "X$found_dir" != "X"; then
11953              if test -f "$dir/$libname.la"; then
11954                found_la="$dir/$libname.la"
11955              fi
11956            fi
11957          fi
11958          if test "X$found_dir" = "X"; then
11959            for x in $LDFLAGS $LTLIBICONV; do
11960
11961  acl_save_prefix="$prefix"
11962  prefix="$acl_final_prefix"
11963  acl_save_exec_prefix="$exec_prefix"
11964  exec_prefix="$acl_final_exec_prefix"
11965  eval x=\"$x\"
11966  exec_prefix="$acl_save_exec_prefix"
11967  prefix="$acl_save_prefix"
11968
11969              case "$x" in
11970                -L*)
11971                  dir=`echo "X$x" | sed -e 's/^X-L//'`
11972                                    if test -n "$acl_shlibext"; then
11973                    if test -f "$dir/$libname$shrext"; then
11974                      found_dir="$dir"
11975                      found_so="$dir/$libname$shrext"
11976                    else
11977                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11978                        ver=`(cd "$dir" && \
11979                              for f in "$libname$shrext".*; do echo "$f"; done \
11980                              | sed -e "s,^$libname$shrext\\\\.,," \
11981                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11982                              | sed 1q ) 2>/dev/null`
11983                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11984                          found_dir="$dir"
11985                          found_so="$dir/$libname$shrext.$ver"
11986                        fi
11987                      else
11988                        eval library_names=\"$acl_library_names_spec\"
11989                        for f in $library_names; do
11990                          if test -f "$dir/$f"; then
11991                            found_dir="$dir"
11992                            found_so="$dir/$f"
11993                            break
11994                          fi
11995                        done
11996                      fi
11997                    fi
11998                  fi
11999                                    if test "X$found_dir" = "X"; then
12000                    if test -f "$dir/$libname.$acl_libext"; then
12001                      found_dir="$dir"
12002                      found_a="$dir/$libname.$acl_libext"
12003                    fi
12004                  fi
12005                  if test "X$found_dir" != "X"; then
12006                    if test -f "$dir/$libname.la"; then
12007                      found_la="$dir/$libname.la"
12008                    fi
12009                  fi
12010                  ;;
12011              esac
12012              if test "X$found_dir" != "X"; then
12013                break
12014              fi
12015            done
12016          fi
12017          if test "X$found_dir" != "X"; then
12018                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12019            if test "X$found_so" != "X"; then
12020                                                        if test "$enable_rpath" = no \
12021                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
12022                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
12023                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12024              else
12025                                                                                haveit=
12026                for x in $ltrpathdirs; do
12027                  if test "X$x" = "X$found_dir"; then
12028                    haveit=yes
12029                    break
12030                  fi
12031                done
12032                if test -z "$haveit"; then
12033                  ltrpathdirs="$ltrpathdirs $found_dir"
12034                fi
12035                                if test "$acl_hardcode_direct" = yes; then
12036                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12037                else
12038                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12039                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12040                                                            haveit=
12041                    for x in $rpathdirs; do
12042                      if test "X$x" = "X$found_dir"; then
12043                        haveit=yes
12044                        break
12045                      fi
12046                    done
12047                    if test -z "$haveit"; then
12048                      rpathdirs="$rpathdirs $found_dir"
12049                    fi
12050                  else
12051                                                                                haveit=
12052                    for x in $LDFLAGS $LIBICONV; do
12053
12054  acl_save_prefix="$prefix"
12055  prefix="$acl_final_prefix"
12056  acl_save_exec_prefix="$exec_prefix"
12057  exec_prefix="$acl_final_exec_prefix"
12058  eval x=\"$x\"
12059  exec_prefix="$acl_save_exec_prefix"
12060  prefix="$acl_save_prefix"
12061
12062                      if test "X$x" = "X-L$found_dir"; then
12063                        haveit=yes
12064                        break
12065                      fi
12066                    done
12067                    if test -z "$haveit"; then
12068                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12069                    fi
12070                    if test "$acl_hardcode_minus_L" != no; then
12071                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12072                    else
12073                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12074                    fi
12075                  fi
12076                fi
12077              fi
12078            else
12079              if test "X$found_a" != "X"; then
12080                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12081              else
12082                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12083              fi
12084            fi
12085                        additional_includedir=
12086            case "$found_dir" in
12087              */$acl_libdirstem | */$acl_libdirstem/)
12088                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12089                if test "$name" = 'iconv'; then
12090                  LIBICONV_PREFIX="$basedir"
12091                fi
12092                additional_includedir="$basedir/include"
12093                ;;
12094              */$acl_libdirstem2 | */$acl_libdirstem2/)
12095                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
12096                if test "$name" = 'iconv'; then
12097                  LIBICONV_PREFIX="$basedir"
12098                fi
12099                additional_includedir="$basedir/include"
12100                ;;
12101            esac
12102            if test "X$additional_includedir" != "X"; then
12103                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
12104                haveit=
12105                if test "X$additional_includedir" = "X/usr/local/include"; then
12106                  if test -n "$GCC"; then
12107                    case $host_os in
12108                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12109                    esac
12110                  fi
12111                fi
12112                if test -z "$haveit"; then
12113                  for x in $CPPFLAGS $INCICONV; do
12114
12115  acl_save_prefix="$prefix"
12116  prefix="$acl_final_prefix"
12117  acl_save_exec_prefix="$exec_prefix"
12118  exec_prefix="$acl_final_exec_prefix"
12119  eval x=\"$x\"
12120  exec_prefix="$acl_save_exec_prefix"
12121  prefix="$acl_save_prefix"
12122
12123                    if test "X$x" = "X-I$additional_includedir"; then
12124                      haveit=yes
12125                      break
12126                    fi
12127                  done
12128                  if test -z "$haveit"; then
12129                    if test -d "$additional_includedir"; then
12130                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12131                    fi
12132                  fi
12133                fi
12134              fi
12135            fi
12136                        if test -n "$found_la"; then
12137                                                        save_libdir="$libdir"
12138              case "$found_la" in
12139                */* | *\\*) . "$found_la" ;;
12140                *) . "./$found_la" ;;
12141              esac
12142              libdir="$save_libdir"
12143                            for dep in $dependency_libs; do
12144                case "$dep" in
12145                  -L*)
12146                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12147                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
12148                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
12149                      haveit=
12150                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
12151                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
12152                        if test -n "$GCC"; then
12153                          case $host_os in
12154                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12155                          esac
12156                        fi
12157                      fi
12158                      if test -z "$haveit"; then
12159                        haveit=
12160                        for x in $LDFLAGS $LIBICONV; do
12161
12162  acl_save_prefix="$prefix"
12163  prefix="$acl_final_prefix"
12164  acl_save_exec_prefix="$exec_prefix"
12165  exec_prefix="$acl_final_exec_prefix"
12166  eval x=\"$x\"
12167  exec_prefix="$acl_save_exec_prefix"
12168  prefix="$acl_save_prefix"
12169
12170                          if test "X$x" = "X-L$additional_libdir"; then
12171                            haveit=yes
12172                            break
12173                          fi
12174                        done
12175                        if test -z "$haveit"; then
12176                          if test -d "$additional_libdir"; then
12177                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12178                          fi
12179                        fi
12180                        haveit=
12181                        for x in $LDFLAGS $LTLIBICONV; do
12182
12183  acl_save_prefix="$prefix"
12184  prefix="$acl_final_prefix"
12185  acl_save_exec_prefix="$exec_prefix"
12186  exec_prefix="$acl_final_exec_prefix"
12187  eval x=\"$x\"
12188  exec_prefix="$acl_save_exec_prefix"
12189  prefix="$acl_save_prefix"
12190
12191                          if test "X$x" = "X-L$additional_libdir"; then
12192                            haveit=yes
12193                            break
12194                          fi
12195                        done
12196                        if test -z "$haveit"; then
12197                          if test -d "$additional_libdir"; then
12198                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12199                          fi
12200                        fi
12201                      fi
12202                    fi
12203                    ;;
12204                  -R*)
12205                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
12206                    if test "$enable_rpath" != no; then
12207                                                                  haveit=
12208                      for x in $rpathdirs; do
12209                        if test "X$x" = "X$dir"; then
12210                          haveit=yes
12211                          break
12212                        fi
12213                      done
12214                      if test -z "$haveit"; then
12215                        rpathdirs="$rpathdirs $dir"
12216                      fi
12217                                                                  haveit=
12218                      for x in $ltrpathdirs; do
12219                        if test "X$x" = "X$dir"; then
12220                          haveit=yes
12221                          break
12222                        fi
12223                      done
12224                      if test -z "$haveit"; then
12225                        ltrpathdirs="$ltrpathdirs $dir"
12226                      fi
12227                    fi
12228                    ;;
12229                  -l*)
12230                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12231                    ;;
12232                  *.la)
12233                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12234                    ;;
12235                  *)
12236                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12237                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12238                    ;;
12239                esac
12240              done
12241            fi
12242          else
12243                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12244            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12245          fi
12246        fi
12247      fi
12248    done
12249  done
12250  if test "X$rpathdirs" != "X"; then
12251    if test -n "$acl_hardcode_libdir_separator"; then
12252                        alldirs=
12253      for found_dir in $rpathdirs; do
12254        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12255      done
12256            acl_save_libdir="$libdir"
12257      libdir="$alldirs"
12258      eval flag=\"$acl_hardcode_libdir_flag_spec\"
12259      libdir="$acl_save_libdir"
12260      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12261    else
12262            for found_dir in $rpathdirs; do
12263        acl_save_libdir="$libdir"
12264        libdir="$found_dir"
12265        eval flag=\"$acl_hardcode_libdir_flag_spec\"
12266        libdir="$acl_save_libdir"
12267        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12268      done
12269    fi
12270  fi
12271  if test "X$ltrpathdirs" != "X"; then
12272            for found_dir in $ltrpathdirs; do
12273      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12274    done
12275  fi
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288          am_save_CPPFLAGS="$CPPFLAGS"
12289
12290  for element in $INCICONV; do
12291    haveit=
12292    for x in $CPPFLAGS; do
12293
12294  acl_save_prefix="$prefix"
12295  prefix="$acl_final_prefix"
12296  acl_save_exec_prefix="$exec_prefix"
12297  exec_prefix="$acl_final_exec_prefix"
12298  eval x=\"$x\"
12299  exec_prefix="$acl_save_exec_prefix"
12300  prefix="$acl_save_prefix"
12301
12302      if test "X$x" = "X$element"; then
12303        haveit=yes
12304        break
12305      fi
12306    done
12307    if test -z "$haveit"; then
12308      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12309    fi
12310  done
12311
12312
12313  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12314printf %s "checking for iconv... " >&6; }
12315if test ${am_cv_func_iconv+y}
12316then :
12317  printf %s "(cached) " >&6
12318else $as_nop
12319
12320    am_cv_func_iconv="no, consider installing GNU libiconv"
12321    am_cv_lib_iconv=no
12322    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12323/* end confdefs.h.  */
12324
12325#include <stdlib.h>
12326#include <iconv.h>
12327
12328int
12329main (void)
12330{
12331iconv_t cd = iconv_open("","");
12332           iconv(cd,NULL,NULL,NULL,NULL);
12333           iconv_close(cd);
12334  ;
12335  return 0;
12336}
12337_ACEOF
12338if ac_fn_c_try_link "$LINENO"
12339then :
12340  am_cv_func_iconv=yes
12341fi
12342rm -f core conftest.err conftest.$ac_objext conftest.beam \
12343    conftest$ac_exeext conftest.$ac_ext
12344    if test "$am_cv_func_iconv" != yes; then
12345      am_save_LIBS="$LIBS"
12346      LIBS="$LIBS $LIBICONV"
12347      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12348/* end confdefs.h.  */
12349
12350#include <stdlib.h>
12351#include <iconv.h>
12352
12353int
12354main (void)
12355{
12356iconv_t cd = iconv_open("","");
12357             iconv(cd,NULL,NULL,NULL,NULL);
12358             iconv_close(cd);
12359  ;
12360  return 0;
12361}
12362_ACEOF
12363if ac_fn_c_try_link "$LINENO"
12364then :
12365  am_cv_lib_iconv=yes
12366        am_cv_func_iconv=yes
12367fi
12368rm -f core conftest.err conftest.$ac_objext conftest.beam \
12369    conftest$ac_exeext conftest.$ac_ext
12370      LIBS="$am_save_LIBS"
12371    fi
12372
12373fi
12374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12375printf "%s\n" "$am_cv_func_iconv" >&6; }
12376  if test "$am_cv_func_iconv" = yes; then
12377    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
12378printf %s "checking for working iconv... " >&6; }
12379if test ${am_cv_func_iconv_works+y}
12380then :
12381  printf %s "(cached) " >&6
12382else $as_nop
12383
12384                  am_save_LIBS="$LIBS"
12385      if test $am_cv_lib_iconv = yes; then
12386        LIBS="$LIBS $LIBICONV"
12387      fi
12388      am_cv_func_iconv_works=no
12389      for ac_iconv_const in '' 'const'; do
12390        if test "$cross_compiling" = yes
12391then :
12392  case "$host_os" in
12393             aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
12394             *)            am_cv_func_iconv_works="guessing yes" ;;
12395           esac
12396else $as_nop
12397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12398/* end confdefs.h.  */
12399
12400#include <iconv.h>
12401#include <string.h>
12402
12403#ifndef ICONV_CONST
12404# define ICONV_CONST $ac_iconv_const
12405#endif
12406
12407int
12408main (void)
12409{
12410int result = 0;
12411  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
12412     returns.  */
12413  {
12414    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
12415    if (cd_utf8_to_88591 != (iconv_t)(-1))
12416      {
12417        static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
12418        char buf[10];
12419        ICONV_CONST char *inptr = input;
12420        size_t inbytesleft = strlen (input);
12421        char *outptr = buf;
12422        size_t outbytesleft = sizeof (buf);
12423        size_t res = iconv (cd_utf8_to_88591,
12424                            &inptr, &inbytesleft,
12425                            &outptr, &outbytesleft);
12426        if (res == 0)
12427          result |= 1;
12428        iconv_close (cd_utf8_to_88591);
12429      }
12430  }
12431  /* Test against Solaris 10 bug: Failures are not distinguishable from
12432     successful returns.  */
12433  {
12434    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
12435    if (cd_ascii_to_88591 != (iconv_t)(-1))
12436      {
12437        static ICONV_CONST char input[] = "\263";
12438        char buf[10];
12439        ICONV_CONST char *inptr = input;
12440        size_t inbytesleft = strlen (input);
12441        char *outptr = buf;
12442        size_t outbytesleft = sizeof (buf);
12443        size_t res = iconv (cd_ascii_to_88591,
12444                            &inptr, &inbytesleft,
12445                            &outptr, &outbytesleft);
12446        if (res == 0)
12447          result |= 2;
12448        iconv_close (cd_ascii_to_88591);
12449      }
12450  }
12451  /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
12452  {
12453    iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
12454    if (cd_88591_to_utf8 != (iconv_t)(-1))
12455      {
12456        static ICONV_CONST char input[] = "\304";
12457        static char buf[2] = { (char)0xDE, (char)0xAD };
12458        ICONV_CONST char *inptr = input;
12459        size_t inbytesleft = 1;
12460        char *outptr = buf;
12461        size_t outbytesleft = 1;
12462        size_t res = iconv (cd_88591_to_utf8,
12463                            &inptr, &inbytesleft,
12464                            &outptr, &outbytesleft);
12465        if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
12466          result |= 4;
12467        iconv_close (cd_88591_to_utf8);
12468      }
12469  }
12470#if 0 /* This bug could be worked around by the caller.  */
12471  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
12472  {
12473    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
12474    if (cd_88591_to_utf8 != (iconv_t)(-1))
12475      {
12476        static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
12477        char buf[50];
12478        ICONV_CONST char *inptr = input;
12479        size_t inbytesleft = strlen (input);
12480        char *outptr = buf;
12481        size_t outbytesleft = sizeof (buf);
12482        size_t res = iconv (cd_88591_to_utf8,
12483                            &inptr, &inbytesleft,
12484                            &outptr, &outbytesleft);
12485        if ((int)res > 0)
12486          result |= 8;
12487        iconv_close (cd_88591_to_utf8);
12488      }
12489  }
12490#endif
12491  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12492     provided.  */
12493  if (/* Try standardized names.  */
12494      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
12495      /* Try IRIX, OSF/1 names.  */
12496      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
12497      /* Try AIX names.  */
12498      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
12499      /* Try HP-UX names.  */
12500      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
12501    result |= 16;
12502  return result;
12503
12504  ;
12505  return 0;
12506}
12507_ACEOF
12508if ac_fn_c_try_run "$LINENO"
12509then :
12510  am_cv_func_iconv_works=yes
12511fi
12512rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12513  conftest.$ac_objext conftest.beam conftest.$ac_ext
12514fi
12515
12516        test "$am_cv_func_iconv_works" = no || break
12517      done
12518      LIBS="$am_save_LIBS"
12519
12520fi
12521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12522printf "%s\n" "$am_cv_func_iconv_works" >&6; }
12523    case "$am_cv_func_iconv_works" in
12524      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12525      *)   am_func_iconv=yes ;;
12526    esac
12527  else
12528    am_func_iconv=no am_cv_lib_iconv=no
12529  fi
12530  if test "$am_func_iconv" = yes; then
12531
12532printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
12533
12534  fi
12535  if test "$am_cv_lib_iconv" = yes; then
12536    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12537printf %s "checking how to link with libiconv... " >&6; }
12538    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12539printf "%s\n" "$LIBICONV" >&6; }
12540  else
12541            CPPFLAGS="$am_save_CPPFLAGS"
12542    LIBICONV=
12543    LTLIBICONV=
12544  fi
12545
12546
12547
12548  if test "$am_cv_func_iconv" = yes; then
12549    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
12550printf %s "checking for iconv declaration... " >&6; }
12551    if test ${am_cv_proto_iconv+y}
12552then :
12553  printf %s "(cached) " >&6
12554else $as_nop
12555
12556      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12557/* end confdefs.h.  */
12558
12559#include <stdlib.h>
12560#include <iconv.h>
12561extern
12562#ifdef __cplusplus
12563"C"
12564#endif
12565#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
12566size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12567#else
12568size_t iconv();
12569#endif
12570
12571int
12572main (void)
12573{
12574
12575  ;
12576  return 0;
12577}
12578_ACEOF
12579if ac_fn_c_try_compile "$LINENO"
12580then :
12581  am_cv_proto_iconv_arg1=""
12582else $as_nop
12583  am_cv_proto_iconv_arg1="const"
12584fi
12585rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12586      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
12587fi
12588
12589    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12590    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
12591         $am_cv_proto_iconv" >&5
12592printf "%s\n" "
12593         $am_cv_proto_iconv" >&6; }
12594
12595printf "%s\n" "#define ICONV_CONST $am_cv_proto_iconv_arg1" >>confdefs.h
12596
12597
12598  fi
12599
12600
12601
12602pkg_failed=no
12603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XCLOCK" >&5
12604printf %s "checking for XCLOCK... " >&6; }
12605
12606if test -n "$XCLOCK_CFLAGS"; then
12607    pkg_cv_XCLOCK_CFLAGS="$XCLOCK_CFLAGS"
12608 elif test -n "$PKG_CONFIG"; then
12609    if test -n "$PKG_CONFIG" && \
12610    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu x11 xproto >= 7.0.17\""; } >&5
12611  ($PKG_CONFIG --exists --print-errors "xaw7 xmu x11 xproto >= 7.0.17") 2>&5
12612  ac_status=$?
12613  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12614  test $ac_status = 0; }; then
12615  pkg_cv_XCLOCK_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu x11 xproto >= 7.0.17" 2>/dev/null`
12616		      test "x$?" != "x0" && pkg_failed=yes
12617else
12618  pkg_failed=yes
12619fi
12620 else
12621    pkg_failed=untried
12622fi
12623if test -n "$XCLOCK_LIBS"; then
12624    pkg_cv_XCLOCK_LIBS="$XCLOCK_LIBS"
12625 elif test -n "$PKG_CONFIG"; then
12626    if test -n "$PKG_CONFIG" && \
12627    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu x11 xproto >= 7.0.17\""; } >&5
12628  ($PKG_CONFIG --exists --print-errors "xaw7 xmu x11 xproto >= 7.0.17") 2>&5
12629  ac_status=$?
12630  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12631  test $ac_status = 0; }; then
12632  pkg_cv_XCLOCK_LIBS=`$PKG_CONFIG --libs "xaw7 xmu x11 xproto >= 7.0.17" 2>/dev/null`
12633		      test "x$?" != "x0" && pkg_failed=yes
12634else
12635  pkg_failed=yes
12636fi
12637 else
12638    pkg_failed=untried
12639fi
12640
12641
12642
12643if test $pkg_failed = yes; then
12644   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12645printf "%s\n" "no" >&6; }
12646
12647if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12648        _pkg_short_errors_supported=yes
12649else
12650        _pkg_short_errors_supported=no
12651fi
12652        if test $_pkg_short_errors_supported = yes; then
12653	        XCLOCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu x11 xproto >= 7.0.17" 2>&1`
12654        else
12655	        XCLOCK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu x11 xproto >= 7.0.17" 2>&1`
12656        fi
12657	# Put the nasty error message in config.log where it belongs
12658	echo "$XCLOCK_PKG_ERRORS" >&5
12659
12660	as_fn_error $? "Package requirements (xaw7 xmu x11 xproto >= 7.0.17) were not met:
12661
12662$XCLOCK_PKG_ERRORS
12663
12664Consider adjusting the PKG_CONFIG_PATH environment variable if you
12665installed software in a non-standard prefix.
12666
12667Alternatively, you may set the environment variables XCLOCK_CFLAGS
12668and XCLOCK_LIBS to avoid the need to call pkg-config.
12669See the pkg-config man page for more details." "$LINENO" 5
12670elif test $pkg_failed = untried; then
12671     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12672printf "%s\n" "no" >&6; }
12673	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12674printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12675as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12676is in your PATH or set the PKG_CONFIG environment variable to the full
12677path to pkg-config.
12678
12679Alternatively, you may set the environment variables XCLOCK_CFLAGS
12680and XCLOCK_LIBS to avoid the need to call pkg-config.
12681See the pkg-config man page for more details.
12682
12683To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12684See \`config.log' for more details" "$LINENO" 5; }
12685else
12686	XCLOCK_CFLAGS=$pkg_cv_XCLOCK_CFLAGS
12687	XCLOCK_LIBS=$pkg_cv_XCLOCK_LIBS
12688        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12689printf "%s\n" "yes" >&6; }
12690
12691fi
12692XCLOCK_LIBS="$XCLOCK_LIBS $LIBICONV"
12693
12694
12695# Check whether --with-xft was given.
12696if test ${with_xft+y}
12697then :
12698  withval=$with_xft; use_xft="$withval"
12699else $as_nop
12700  use_xft="try"
12701fi
12702
12703if test x$use_xft != xno ; then
12704
12705pkg_failed=no
12706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFT" >&5
12707printf %s "checking for XFT... " >&6; }
12708
12709if test -n "$XFT_CFLAGS"; then
12710    pkg_cv_XFT_CFLAGS="$XFT_CFLAGS"
12711 elif test -n "$PKG_CONFIG"; then
12712    if test -n "$PKG_CONFIG" && \
12713    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender xft\""; } >&5
12714  ($PKG_CONFIG --exists --print-errors "xrender xft") 2>&5
12715  ac_status=$?
12716  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12717  test $ac_status = 0; }; then
12718  pkg_cv_XFT_CFLAGS=`$PKG_CONFIG --cflags "xrender xft" 2>/dev/null`
12719		      test "x$?" != "x0" && pkg_failed=yes
12720else
12721  pkg_failed=yes
12722fi
12723 else
12724    pkg_failed=untried
12725fi
12726if test -n "$XFT_LIBS"; then
12727    pkg_cv_XFT_LIBS="$XFT_LIBS"
12728 elif test -n "$PKG_CONFIG"; then
12729    if test -n "$PKG_CONFIG" && \
12730    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender xft\""; } >&5
12731  ($PKG_CONFIG --exists --print-errors "xrender xft") 2>&5
12732  ac_status=$?
12733  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12734  test $ac_status = 0; }; then
12735  pkg_cv_XFT_LIBS=`$PKG_CONFIG --libs "xrender xft" 2>/dev/null`
12736		      test "x$?" != "x0" && pkg_failed=yes
12737else
12738  pkg_failed=yes
12739fi
12740 else
12741    pkg_failed=untried
12742fi
12743
12744
12745
12746if test $pkg_failed = yes; then
12747   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12748printf "%s\n" "no" >&6; }
12749
12750if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12751        _pkg_short_errors_supported=yes
12752else
12753        _pkg_short_errors_supported=no
12754fi
12755        if test $_pkg_short_errors_supported = yes; then
12756	        XFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrender xft" 2>&1`
12757        else
12758	        XFT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrender xft" 2>&1`
12759        fi
12760	# Put the nasty error message in config.log where it belongs
12761	echo "$XFT_PKG_ERRORS" >&5
12762
12763	as_fn_error $? "Package requirements (xrender xft) were not met:
12764
12765$XFT_PKG_ERRORS
12766
12767Consider adjusting the PKG_CONFIG_PATH environment variable if you
12768installed software in a non-standard prefix.
12769
12770Alternatively, you may set the environment variables XFT_CFLAGS
12771and XFT_LIBS to avoid the need to call pkg-config.
12772See the pkg-config man page for more details." "$LINENO" 5
12773elif test $pkg_failed = untried; then
12774     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12775printf "%s\n" "no" >&6; }
12776	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12777printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12778as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12779is in your PATH or set the PKG_CONFIG environment variable to the full
12780path to pkg-config.
12781
12782Alternatively, you may set the environment variables XFT_CFLAGS
12783and XFT_LIBS to avoid the need to call pkg-config.
12784See the pkg-config man page for more details.
12785
12786To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12787See \`config.log' for more details" "$LINENO" 5; }
12788else
12789	XFT_CFLAGS=$pkg_cv_XFT_CFLAGS
12790	XFT_LIBS=$pkg_cv_XFT_LIBS
12791        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12792printf "%s\n" "yes" >&6; }
12793
12794fi
12795	# Solaris 11 has sqrt in libc but needs libm for sincos
12796	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5
12797printf %s "checking for library containing sqrt... " >&6; }
12798if test ${ac_cv_search_sqrt+y}
12799then :
12800  printf %s "(cached) " >&6
12801else $as_nop
12802  ac_func_search_save_LIBS=$LIBS
12803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12804/* end confdefs.h.  */
12805
12806/* Override any GCC internal prototype to avoid an error.
12807   Use char because int might match the return type of a GCC
12808   builtin and then its argument prototype would still apply.  */
12809char sqrt ();
12810int
12811main (void)
12812{
12813return sqrt ();
12814  ;
12815  return 0;
12816}
12817_ACEOF
12818for ac_lib in '' m
12819do
12820  if test -z "$ac_lib"; then
12821    ac_res="none required"
12822  else
12823    ac_res=-l$ac_lib
12824    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12825  fi
12826  if ac_fn_c_try_link "$LINENO"
12827then :
12828  ac_cv_search_sqrt=$ac_res
12829fi
12830rm -f core conftest.err conftest.$ac_objext conftest.beam \
12831    conftest$ac_exeext
12832  if test ${ac_cv_search_sqrt+y}
12833then :
12834  break
12835fi
12836done
12837if test ${ac_cv_search_sqrt+y}
12838then :
12839
12840else $as_nop
12841  ac_cv_search_sqrt=no
12842fi
12843rm conftest.$ac_ext
12844LIBS=$ac_func_search_save_LIBS
12845fi
12846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5
12847printf "%s\n" "$ac_cv_search_sqrt" >&6; }
12848ac_res=$ac_cv_search_sqrt
12849if test "$ac_res" != no
12850then :
12851  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12852
12853fi
12854
12855	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sincos" >&5
12856printf %s "checking for library containing sincos... " >&6; }
12857if test ${ac_cv_search_sincos+y}
12858then :
12859  printf %s "(cached) " >&6
12860else $as_nop
12861  ac_func_search_save_LIBS=$LIBS
12862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12863/* end confdefs.h.  */
12864
12865/* Override any GCC internal prototype to avoid an error.
12866   Use char because int might match the return type of a GCC
12867   builtin and then its argument prototype would still apply.  */
12868char sincos ();
12869int
12870main (void)
12871{
12872return sincos ();
12873  ;
12874  return 0;
12875}
12876_ACEOF
12877for ac_lib in '' m
12878do
12879  if test -z "$ac_lib"; then
12880    ac_res="none required"
12881  else
12882    ac_res=-l$ac_lib
12883    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12884  fi
12885  if ac_fn_c_try_link "$LINENO"
12886then :
12887  ac_cv_search_sincos=$ac_res
12888fi
12889rm -f core conftest.err conftest.$ac_objext conftest.beam \
12890    conftest$ac_exeext
12891  if test ${ac_cv_search_sincos+y}
12892then :
12893  break
12894fi
12895done
12896if test ${ac_cv_search_sincos+y}
12897then :
12898
12899else $as_nop
12900  ac_cv_search_sincos=no
12901fi
12902rm conftest.$ac_ext
12903LIBS=$ac_func_search_save_LIBS
12904fi
12905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sincos" >&5
12906printf "%s\n" "$ac_cv_search_sincos" >&6; }
12907ac_res=$ac_cv_search_sincos
12908if test "$ac_res" != no
12909then :
12910  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12911
12912printf "%s\n" "#define HAVE_SINCOS 1" >>confdefs.h
12913
12914fi
12915
12916	XCLOCK_CFLAGS="$XCLOCK_CFLAGS $XFT_CFLAGS"
12917	XCLOCK_LIBS="$XCLOCK_LIBS $XFT_LIBS"
12918
12919printf "%s\n" "#define XRENDER 1" >>confdefs.h
12920
12921
12922printf "%s\n" "#define XFREE86_FT2 1" >>confdefs.h
12923
12924fi
12925
12926
12927# Check whether --with-xkb was given.
12928if test ${with_xkb+y}
12929then :
12930  withval=$with_xkb; use_xkb="$withval"
12931else $as_nop
12932  use_xkb="try"
12933fi
12934
12935if test x$use_xkb != xno ; then
12936
12937pkg_failed=no
12938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XKB" >&5
12939printf %s "checking for XKB... " >&6; }
12940
12941if test -n "$XKB_CFLAGS"; then
12942    pkg_cv_XKB_CFLAGS="$XKB_CFLAGS"
12943 elif test -n "$PKG_CONFIG"; then
12944    if test -n "$PKG_CONFIG" && \
12945    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile\""; } >&5
12946  ($PKG_CONFIG --exists --print-errors "xkbfile") 2>&5
12947  ac_status=$?
12948  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12949  test $ac_status = 0; }; then
12950  pkg_cv_XKB_CFLAGS=`$PKG_CONFIG --cflags "xkbfile" 2>/dev/null`
12951		      test "x$?" != "x0" && pkg_failed=yes
12952else
12953  pkg_failed=yes
12954fi
12955 else
12956    pkg_failed=untried
12957fi
12958if test -n "$XKB_LIBS"; then
12959    pkg_cv_XKB_LIBS="$XKB_LIBS"
12960 elif test -n "$PKG_CONFIG"; then
12961    if test -n "$PKG_CONFIG" && \
12962    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile\""; } >&5
12963  ($PKG_CONFIG --exists --print-errors "xkbfile") 2>&5
12964  ac_status=$?
12965  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12966  test $ac_status = 0; }; then
12967  pkg_cv_XKB_LIBS=`$PKG_CONFIG --libs "xkbfile" 2>/dev/null`
12968		      test "x$?" != "x0" && pkg_failed=yes
12969else
12970  pkg_failed=yes
12971fi
12972 else
12973    pkg_failed=untried
12974fi
12975
12976
12977
12978if test $pkg_failed = yes; then
12979   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12980printf "%s\n" "no" >&6; }
12981
12982if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12983        _pkg_short_errors_supported=yes
12984else
12985        _pkg_short_errors_supported=no
12986fi
12987        if test $_pkg_short_errors_supported = yes; then
12988	        XKB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xkbfile" 2>&1`
12989        else
12990	        XKB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xkbfile" 2>&1`
12991        fi
12992	# Put the nasty error message in config.log where it belongs
12993	echo "$XKB_PKG_ERRORS" >&5
12994
12995	as_fn_error $? "Package requirements (xkbfile) were not met:
12996
12997$XKB_PKG_ERRORS
12998
12999Consider adjusting the PKG_CONFIG_PATH environment variable if you
13000installed software in a non-standard prefix.
13001
13002Alternatively, you may set the environment variables XKB_CFLAGS
13003and XKB_LIBS to avoid the need to call pkg-config.
13004See the pkg-config man page for more details." "$LINENO" 5
13005elif test $pkg_failed = untried; then
13006     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13007printf "%s\n" "no" >&6; }
13008	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13009printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13010as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13011is in your PATH or set the PKG_CONFIG environment variable to the full
13012path to pkg-config.
13013
13014Alternatively, you may set the environment variables XKB_CFLAGS
13015and XKB_LIBS to avoid the need to call pkg-config.
13016See the pkg-config man page for more details.
13017
13018To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13019See \`config.log' for more details" "$LINENO" 5; }
13020else
13021	XKB_CFLAGS=$pkg_cv_XKB_CFLAGS
13022	XKB_LIBS=$pkg_cv_XKB_LIBS
13023        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13024printf "%s\n" "yes" >&6; }
13025
13026fi
13027	XCLOCK_CFLAGS="$XCLOCK_CFLAGS $XKB_CFLAGS"
13028	XCLOCK_LIBS="$XCLOCK_LIBS $XKB_LIBS"
13029
13030printf "%s\n" "#define XKB 1" >>confdefs.h
13031
13032fi
13033
13034
13035
13036pkg_failed=no
13037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
13038printf %s "checking for APPDEFS... " >&6; }
13039
13040if test -n "$APPDEFS_CFLAGS"; then
13041    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
13042 elif test -n "$PKG_CONFIG"; then
13043    if test -n "$PKG_CONFIG" && \
13044    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
13045  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
13046  ac_status=$?
13047  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13048  test $ac_status = 0; }; then
13049  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
13050		      test "x$?" != "x0" && pkg_failed=yes
13051else
13052  pkg_failed=yes
13053fi
13054 else
13055    pkg_failed=untried
13056fi
13057if test -n "$APPDEFS_LIBS"; then
13058    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
13059 elif test -n "$PKG_CONFIG"; then
13060    if test -n "$PKG_CONFIG" && \
13061    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
13062  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
13063  ac_status=$?
13064  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13065  test $ac_status = 0; }; then
13066  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
13067		      test "x$?" != "x0" && pkg_failed=yes
13068else
13069  pkg_failed=yes
13070fi
13071 else
13072    pkg_failed=untried
13073fi
13074
13075
13076
13077if test $pkg_failed = yes; then
13078   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13079printf "%s\n" "no" >&6; }
13080
13081if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13082        _pkg_short_errors_supported=yes
13083else
13084        _pkg_short_errors_supported=no
13085fi
13086        if test $_pkg_short_errors_supported = yes; then
13087	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
13088        else
13089	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
13090        fi
13091	# Put the nasty error message in config.log where it belongs
13092	echo "$APPDEFS_PKG_ERRORS" >&5
13093
13094	as_fn_error $? "Package requirements (xt) were not met:
13095
13096$APPDEFS_PKG_ERRORS
13097
13098Consider adjusting the PKG_CONFIG_PATH environment variable if you
13099installed software in a non-standard prefix.
13100
13101Alternatively, you may set the environment variables APPDEFS_CFLAGS
13102and APPDEFS_LIBS to avoid the need to call pkg-config.
13103See the pkg-config man page for more details." "$LINENO" 5
13104elif test $pkg_failed = untried; then
13105     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13106printf "%s\n" "no" >&6; }
13107	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13108printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13109as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13110is in your PATH or set the PKG_CONFIG environment variable to the full
13111path to pkg-config.
13112
13113Alternatively, you may set the environment variables APPDEFS_CFLAGS
13114and APPDEFS_LIBS to avoid the need to call pkg-config.
13115See the pkg-config man page for more details.
13116
13117To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13118See \`config.log' for more details" "$LINENO" 5; }
13119else
13120	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
13121	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
13122        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13123printf "%s\n" "yes" >&6; }
13124
13125fi
13126xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
13127
13128# Check whether --with-appdefaultdir was given.
13129if test ${with_appdefaultdir+y}
13130then :
13131  withval=$with_appdefaultdir; appdefaultdir="$withval"
13132else $as_nop
13133  appdefaultdir="${xt_appdefaultdir}"
13134fi
13135
13136
13137
13138ac_config_files="$ac_config_files Makefile man/Makefile"
13139
13140cat >confcache <<\_ACEOF
13141# This file is a shell script that caches the results of configure
13142# tests run on this system so they can be shared between configure
13143# scripts and configure runs, see configure's option --config-cache.
13144# It is not useful on other systems.  If it contains results you don't
13145# want to keep, you may remove or edit it.
13146#
13147# config.status only pays attention to the cache file if you give it
13148# the --recheck option to rerun configure.
13149#
13150# `ac_cv_env_foo' variables (set or unset) will be overridden when
13151# loading this file, other *unset* `ac_cv_foo' will be assigned the
13152# following values.
13153
13154_ACEOF
13155
13156# The following way of writing the cache mishandles newlines in values,
13157# but we know of no workaround that is simple, portable, and efficient.
13158# So, we kill variables containing newlines.
13159# Ultrix sh set writes to stderr and can't be redirected directly,
13160# and sets the high bit in the cache file unless we assign to the vars.
13161(
13162  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13163    eval ac_val=\$$ac_var
13164    case $ac_val in #(
13165    *${as_nl}*)
13166      case $ac_var in #(
13167      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13168printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13169      esac
13170      case $ac_var in #(
13171      _ | IFS | as_nl) ;; #(
13172      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13173      *) { eval $ac_var=; unset $ac_var;} ;;
13174      esac ;;
13175    esac
13176  done
13177
13178  (set) 2>&1 |
13179    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13180    *${as_nl}ac_space=\ *)
13181      # `set' does not quote correctly, so add quotes: double-quote
13182      # substitution turns \\\\ into \\, and sed turns \\ into \.
13183      sed -n \
13184	"s/'/'\\\\''/g;
13185	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13186      ;; #(
13187    *)
13188      # `set' quotes correctly as required by POSIX, so do not add quotes.
13189      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13190      ;;
13191    esac |
13192    sort
13193) |
13194  sed '
13195     /^ac_cv_env_/b end
13196     t clear
13197     :clear
13198     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
13199     t end
13200     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13201     :end' >>confcache
13202if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13203  if test -w "$cache_file"; then
13204    if test "x$cache_file" != "x/dev/null"; then
13205      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13206printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
13207      if test ! -f "$cache_file" || test -h "$cache_file"; then
13208	cat confcache >"$cache_file"
13209      else
13210        case $cache_file in #(
13211        */* | ?:*)
13212	  mv -f confcache "$cache_file"$$ &&
13213	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13214        *)
13215	  mv -f confcache "$cache_file" ;;
13216	esac
13217      fi
13218    fi
13219  else
13220    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13221printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
13222  fi
13223fi
13224rm -f confcache
13225
13226test "x$prefix" = xNONE && prefix=$ac_default_prefix
13227# Let make expand exec_prefix.
13228test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13229
13230DEFS=-DHAVE_CONFIG_H
13231
13232ac_libobjs=
13233ac_ltlibobjs=
13234U=
13235for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13236  # 1. Remove the extension, and $U if already installed.
13237  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13238  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
13239  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13240  #    will be set to the directory where LIBOBJS objects are built.
13241  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13242  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13243done
13244LIBOBJS=$ac_libobjs
13245
13246LTLIBOBJS=$ac_ltlibobjs
13247
13248
13249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13250printf %s "checking that generated files are newer than configure... " >&6; }
13251   if test -n "$am_sleep_pid"; then
13252     # Hide warnings about reused PIDs.
13253     wait $am_sleep_pid 2>/dev/null
13254   fi
13255   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
13256printf "%s\n" "done" >&6; }
13257 if test -n "$EXEEXT"; then
13258  am__EXEEXT_TRUE=
13259  am__EXEEXT_FALSE='#'
13260else
13261  am__EXEEXT_TRUE='#'
13262  am__EXEEXT_FALSE=
13263fi
13264
13265if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13266  as_fn_error $? "conditional \"AMDEP\" was never defined.
13267Usually this means the macro was only invoked conditionally." "$LINENO" 5
13268fi
13269if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13270  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13271Usually this means the macro was only invoked conditionally." "$LINENO" 5
13272fi
13273
13274: "${CONFIG_STATUS=./config.status}"
13275ac_write_fail=0
13276ac_clean_files_save=$ac_clean_files
13277ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13279printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
13280as_write_fail=0
13281cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13282#! $SHELL
13283# Generated by $as_me.
13284# Run this file to recreate the current configuration.
13285# Compiler output produced by configure, useful for debugging
13286# configure, is in config.log if it exists.
13287
13288debug=false
13289ac_cs_recheck=false
13290ac_cs_silent=false
13291
13292SHELL=\${CONFIG_SHELL-$SHELL}
13293export SHELL
13294_ASEOF
13295cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13296## -------------------- ##
13297## M4sh Initialization. ##
13298## -------------------- ##
13299
13300# Be more Bourne compatible
13301DUALCASE=1; export DUALCASE # for MKS sh
13302as_nop=:
13303if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
13304then :
13305  emulate sh
13306  NULLCMD=:
13307  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13308  # is contrary to our usage.  Disable this feature.
13309  alias -g '${1+"$@"}'='"$@"'
13310  setopt NO_GLOB_SUBST
13311else $as_nop
13312  case `(set -o) 2>/dev/null` in #(
13313  *posix*) :
13314    set -o posix ;; #(
13315  *) :
13316     ;;
13317esac
13318fi
13319
13320
13321
13322# Reset variables that may have inherited troublesome values from
13323# the environment.
13324
13325# IFS needs to be set, to space, tab, and newline, in precisely that order.
13326# (If _AS_PATH_WALK were called with IFS unset, it would have the
13327# side effect of setting IFS to empty, thus disabling word splitting.)
13328# Quoting is to prevent editors from complaining about space-tab.
13329as_nl='
13330'
13331export as_nl
13332IFS=" ""	$as_nl"
13333
13334PS1='$ '
13335PS2='> '
13336PS4='+ '
13337
13338# Ensure predictable behavior from utilities with locale-dependent output.
13339LC_ALL=C
13340export LC_ALL
13341LANGUAGE=C
13342export LANGUAGE
13343
13344# We cannot yet rely on "unset" to work, but we need these variables
13345# to be unset--not just set to an empty or harmless value--now, to
13346# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
13347# also avoids known problems related to "unset" and subshell syntax
13348# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
13349for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
13350do eval test \${$as_var+y} \
13351  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13352done
13353
13354# Ensure that fds 0, 1, and 2 are open.
13355if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
13356if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
13357if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
13358
13359# The user is always right.
13360if ${PATH_SEPARATOR+false} :; then
13361  PATH_SEPARATOR=:
13362  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13363    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13364      PATH_SEPARATOR=';'
13365  }
13366fi
13367
13368
13369# Find who we are.  Look in the path if we contain no directory separator.
13370as_myself=
13371case $0 in #((
13372  *[\\/]* ) as_myself=$0 ;;
13373  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13374for as_dir in $PATH
13375do
13376  IFS=$as_save_IFS
13377  case $as_dir in #(((
13378    '') as_dir=./ ;;
13379    */) ;;
13380    *) as_dir=$as_dir/ ;;
13381  esac
13382    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
13383  done
13384IFS=$as_save_IFS
13385
13386     ;;
13387esac
13388# We did not find ourselves, most probably we were run as `sh COMMAND'
13389# in which case we are not to be found in the path.
13390if test "x$as_myself" = x; then
13391  as_myself=$0
13392fi
13393if test ! -f "$as_myself"; then
13394  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13395  exit 1
13396fi
13397
13398
13399
13400# as_fn_error STATUS ERROR [LINENO LOG_FD]
13401# ----------------------------------------
13402# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13403# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13404# script with STATUS, using 1 if that was 0.
13405as_fn_error ()
13406{
13407  as_status=$1; test $as_status -eq 0 && as_status=1
13408  if test "$4"; then
13409    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13410    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13411  fi
13412  printf "%s\n" "$as_me: error: $2" >&2
13413  as_fn_exit $as_status
13414} # as_fn_error
13415
13416
13417
13418# as_fn_set_status STATUS
13419# -----------------------
13420# Set $? to STATUS, without forking.
13421as_fn_set_status ()
13422{
13423  return $1
13424} # as_fn_set_status
13425
13426# as_fn_exit STATUS
13427# -----------------
13428# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13429as_fn_exit ()
13430{
13431  set +e
13432  as_fn_set_status $1
13433  exit $1
13434} # as_fn_exit
13435
13436# as_fn_unset VAR
13437# ---------------
13438# Portably unset VAR.
13439as_fn_unset ()
13440{
13441  { eval $1=; unset $1;}
13442}
13443as_unset=as_fn_unset
13444
13445# as_fn_append VAR VALUE
13446# ----------------------
13447# Append the text in VALUE to the end of the definition contained in VAR. Take
13448# advantage of any shell optimizations that allow amortized linear growth over
13449# repeated appends, instead of the typical quadratic growth present in naive
13450# implementations.
13451if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
13452then :
13453  eval 'as_fn_append ()
13454  {
13455    eval $1+=\$2
13456  }'
13457else $as_nop
13458  as_fn_append ()
13459  {
13460    eval $1=\$$1\$2
13461  }
13462fi # as_fn_append
13463
13464# as_fn_arith ARG...
13465# ------------------
13466# Perform arithmetic evaluation on the ARGs, and store the result in the
13467# global $as_val. Take advantage of shells that can avoid forks. The arguments
13468# must be portable across $(()) and expr.
13469if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
13470then :
13471  eval 'as_fn_arith ()
13472  {
13473    as_val=$(( $* ))
13474  }'
13475else $as_nop
13476  as_fn_arith ()
13477  {
13478    as_val=`expr "$@" || test $? -eq 1`
13479  }
13480fi # as_fn_arith
13481
13482
13483if expr a : '\(a\)' >/dev/null 2>&1 &&
13484   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13485  as_expr=expr
13486else
13487  as_expr=false
13488fi
13489
13490if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13491  as_basename=basename
13492else
13493  as_basename=false
13494fi
13495
13496if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13497  as_dirname=dirname
13498else
13499  as_dirname=false
13500fi
13501
13502as_me=`$as_basename -- "$0" ||
13503$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13504	 X"$0" : 'X\(//\)$' \| \
13505	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13506printf "%s\n" X/"$0" |
13507    sed '/^.*\/\([^/][^/]*\)\/*$/{
13508	    s//\1/
13509	    q
13510	  }
13511	  /^X\/\(\/\/\)$/{
13512	    s//\1/
13513	    q
13514	  }
13515	  /^X\/\(\/\).*/{
13516	    s//\1/
13517	    q
13518	  }
13519	  s/.*/./; q'`
13520
13521# Avoid depending upon Character Ranges.
13522as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13523as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13524as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13525as_cr_digits='0123456789'
13526as_cr_alnum=$as_cr_Letters$as_cr_digits
13527
13528
13529# Determine whether it's possible to make 'echo' print without a newline.
13530# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
13531# for compatibility with existing Makefiles.
13532ECHO_C= ECHO_N= ECHO_T=
13533case `echo -n x` in #(((((
13534-n*)
13535  case `echo 'xy\c'` in
13536  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13537  xy)  ECHO_C='\c';;
13538  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13539       ECHO_T='	';;
13540  esac;;
13541*)
13542  ECHO_N='-n';;
13543esac
13544
13545# For backward compatibility with old third-party macros, we provide
13546# the shell variables $as_echo and $as_echo_n.  New code should use
13547# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
13548as_echo='printf %s\n'
13549as_echo_n='printf %s'
13550
13551rm -f conf$$ conf$$.exe conf$$.file
13552if test -d conf$$.dir; then
13553  rm -f conf$$.dir/conf$$.file
13554else
13555  rm -f conf$$.dir
13556  mkdir conf$$.dir 2>/dev/null
13557fi
13558if (echo >conf$$.file) 2>/dev/null; then
13559  if ln -s conf$$.file conf$$ 2>/dev/null; then
13560    as_ln_s='ln -s'
13561    # ... but there are two gotchas:
13562    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13563    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13564    # In both cases, we have to default to `cp -pR'.
13565    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13566      as_ln_s='cp -pR'
13567  elif ln conf$$.file conf$$ 2>/dev/null; then
13568    as_ln_s=ln
13569  else
13570    as_ln_s='cp -pR'
13571  fi
13572else
13573  as_ln_s='cp -pR'
13574fi
13575rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13576rmdir conf$$.dir 2>/dev/null
13577
13578
13579# as_fn_mkdir_p
13580# -------------
13581# Create "$as_dir" as a directory, including parents if necessary.
13582as_fn_mkdir_p ()
13583{
13584
13585  case $as_dir in #(
13586  -*) as_dir=./$as_dir;;
13587  esac
13588  test -d "$as_dir" || eval $as_mkdir_p || {
13589    as_dirs=
13590    while :; do
13591      case $as_dir in #(
13592      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13593      *) as_qdir=$as_dir;;
13594      esac
13595      as_dirs="'$as_qdir' $as_dirs"
13596      as_dir=`$as_dirname -- "$as_dir" ||
13597$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13598	 X"$as_dir" : 'X\(//\)[^/]' \| \
13599	 X"$as_dir" : 'X\(//\)$' \| \
13600	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13601printf "%s\n" X"$as_dir" |
13602    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13603	    s//\1/
13604	    q
13605	  }
13606	  /^X\(\/\/\)[^/].*/{
13607	    s//\1/
13608	    q
13609	  }
13610	  /^X\(\/\/\)$/{
13611	    s//\1/
13612	    q
13613	  }
13614	  /^X\(\/\).*/{
13615	    s//\1/
13616	    q
13617	  }
13618	  s/.*/./; q'`
13619      test -d "$as_dir" && break
13620    done
13621    test -z "$as_dirs" || eval "mkdir $as_dirs"
13622  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13623
13624
13625} # as_fn_mkdir_p
13626if mkdir -p . 2>/dev/null; then
13627  as_mkdir_p='mkdir -p "$as_dir"'
13628else
13629  test -d ./-p && rmdir ./-p
13630  as_mkdir_p=false
13631fi
13632
13633
13634# as_fn_executable_p FILE
13635# -----------------------
13636# Test if FILE is an executable regular file.
13637as_fn_executable_p ()
13638{
13639  test -f "$1" && test -x "$1"
13640} # as_fn_executable_p
13641as_test_x='test -x'
13642as_executable_p=as_fn_executable_p
13643
13644# Sed expression to map a string onto a valid CPP name.
13645as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13646
13647# Sed expression to map a string onto a valid variable name.
13648as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13649
13650
13651exec 6>&1
13652## ----------------------------------- ##
13653## Main body of $CONFIG_STATUS script. ##
13654## ----------------------------------- ##
13655_ASEOF
13656test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13657
13658cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13659# Save the log message, to keep $0 and so on meaningful, and to
13660# report actual input values of CONFIG_FILES etc. instead of their
13661# values after options handling.
13662ac_log="
13663This file was extended by xclock $as_me 1.1.1, which was
13664generated by GNU Autoconf 2.71.  Invocation command line was
13665
13666  CONFIG_FILES    = $CONFIG_FILES
13667  CONFIG_HEADERS  = $CONFIG_HEADERS
13668  CONFIG_LINKS    = $CONFIG_LINKS
13669  CONFIG_COMMANDS = $CONFIG_COMMANDS
13670  $ $0 $@
13671
13672on `(hostname || uname -n) 2>/dev/null | sed 1q`
13673"
13674
13675_ACEOF
13676
13677case $ac_config_files in *"
13678"*) set x $ac_config_files; shift; ac_config_files=$*;;
13679esac
13680
13681case $ac_config_headers in *"
13682"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13683esac
13684
13685
13686cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13687# Files that config.status was made for.
13688config_files="$ac_config_files"
13689config_headers="$ac_config_headers"
13690config_commands="$ac_config_commands"
13691
13692_ACEOF
13693
13694cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13695ac_cs_usage="\
13696\`$as_me' instantiates files and other configuration actions
13697from templates according to the current configuration.  Unless the files
13698and actions are specified as TAGs, all are instantiated by default.
13699
13700Usage: $0 [OPTION]... [TAG]...
13701
13702  -h, --help       print this help, then exit
13703  -V, --version    print version number and configuration settings, then exit
13704      --config     print configuration, then exit
13705  -q, --quiet, --silent
13706                   do not print progress messages
13707  -d, --debug      don't remove temporary files
13708      --recheck    update $as_me by reconfiguring in the same conditions
13709      --file=FILE[:TEMPLATE]
13710                   instantiate the configuration file FILE
13711      --header=FILE[:TEMPLATE]
13712                   instantiate the configuration header FILE
13713
13714Configuration files:
13715$config_files
13716
13717Configuration headers:
13718$config_headers
13719
13720Configuration commands:
13721$config_commands
13722
13723Report bugs to <https://gitlab.freedesktop.org/xorg/app/xclock/issues>."
13724
13725_ACEOF
13726ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
13727ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
13728cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13729ac_cs_config='$ac_cs_config_escaped'
13730ac_cs_version="\\
13731xclock config.status 1.1.1
13732configured by $0, generated by GNU Autoconf 2.71,
13733  with options \\"\$ac_cs_config\\"
13734
13735Copyright (C) 2021 Free Software Foundation, Inc.
13736This config.status script is free software; the Free Software Foundation
13737gives unlimited permission to copy, distribute and modify it."
13738
13739ac_pwd='$ac_pwd'
13740srcdir='$srcdir'
13741INSTALL='$INSTALL'
13742MKDIR_P='$MKDIR_P'
13743AWK='$AWK'
13744test -n "\$AWK" || AWK=awk
13745_ACEOF
13746
13747cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13748# The default lists apply if the user does not specify any file.
13749ac_need_defaults=:
13750while test $# != 0
13751do
13752  case $1 in
13753  --*=?*)
13754    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13755    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13756    ac_shift=:
13757    ;;
13758  --*=)
13759    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13760    ac_optarg=
13761    ac_shift=:
13762    ;;
13763  *)
13764    ac_option=$1
13765    ac_optarg=$2
13766    ac_shift=shift
13767    ;;
13768  esac
13769
13770  case $ac_option in
13771  # Handling of the options.
13772  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13773    ac_cs_recheck=: ;;
13774  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13775    printf "%s\n" "$ac_cs_version"; exit ;;
13776  --config | --confi | --conf | --con | --co | --c )
13777    printf "%s\n" "$ac_cs_config"; exit ;;
13778  --debug | --debu | --deb | --de | --d | -d )
13779    debug=: ;;
13780  --file | --fil | --fi | --f )
13781    $ac_shift
13782    case $ac_optarg in
13783    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13784    '') as_fn_error $? "missing file argument" ;;
13785    esac
13786    as_fn_append CONFIG_FILES " '$ac_optarg'"
13787    ac_need_defaults=false;;
13788  --header | --heade | --head | --hea )
13789    $ac_shift
13790    case $ac_optarg in
13791    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13792    esac
13793    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13794    ac_need_defaults=false;;
13795  --he | --h)
13796    # Conflict between --help and --header
13797    as_fn_error $? "ambiguous option: \`$1'
13798Try \`$0 --help' for more information.";;
13799  --help | --hel | -h )
13800    printf "%s\n" "$ac_cs_usage"; exit ;;
13801  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13802  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13803    ac_cs_silent=: ;;
13804
13805  # This is an error.
13806  -*) as_fn_error $? "unrecognized option: \`$1'
13807Try \`$0 --help' for more information." ;;
13808
13809  *) as_fn_append ac_config_targets " $1"
13810     ac_need_defaults=false ;;
13811
13812  esac
13813  shift
13814done
13815
13816ac_configure_extra_args=
13817
13818if $ac_cs_silent; then
13819  exec 6>/dev/null
13820  ac_configure_extra_args="$ac_configure_extra_args --silent"
13821fi
13822
13823_ACEOF
13824cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13825if \$ac_cs_recheck; then
13826  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13827  shift
13828  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
13829  CONFIG_SHELL='$SHELL'
13830  export CONFIG_SHELL
13831  exec "\$@"
13832fi
13833
13834_ACEOF
13835cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13836exec 5>>config.log
13837{
13838  echo
13839  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13840## Running $as_me. ##
13841_ASBOX
13842  printf "%s\n" "$ac_log"
13843} >&5
13844
13845_ACEOF
13846cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13847#
13848# INIT-COMMANDS
13849#
13850AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13851
13852_ACEOF
13853
13854cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13855
13856# Handling of arguments.
13857for ac_config_target in $ac_config_targets
13858do
13859  case $ac_config_target in
13860    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13861    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13862    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13863    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13864
13865  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13866  esac
13867done
13868
13869
13870# If the user did not use the arguments to specify the items to instantiate,
13871# then the envvar interface is used.  Set only those that are not.
13872# We use the long form for the default assignment because of an extremely
13873# bizarre bug on SunOS 4.1.3.
13874if $ac_need_defaults; then
13875  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
13876  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
13877  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
13878fi
13879
13880# Have a temporary directory for convenience.  Make it in the build tree
13881# simply because there is no reason against having it here, and in addition,
13882# creating and moving files from /tmp can sometimes cause problems.
13883# Hook for its removal unless debugging.
13884# Note that there is a small window in which the directory will not be cleaned:
13885# after its creation but before its name has been assigned to `$tmp'.
13886$debug ||
13887{
13888  tmp= ac_tmp=
13889  trap 'exit_status=$?
13890  : "${ac_tmp:=$tmp}"
13891  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13892' 0
13893  trap 'as_fn_exit 1' 1 2 13 15
13894}
13895# Create a (secure) tmp directory for tmp files.
13896
13897{
13898  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13899  test -d "$tmp"
13900}  ||
13901{
13902  tmp=./conf$$-$RANDOM
13903  (umask 077 && mkdir "$tmp")
13904} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13905ac_tmp=$tmp
13906
13907# Set up the scripts for CONFIG_FILES section.
13908# No need to generate them if there are no CONFIG_FILES.
13909# This happens for instance with `./config.status config.h'.
13910if test -n "$CONFIG_FILES"; then
13911
13912
13913ac_cr=`echo X | tr X '\015'`
13914# On cygwin, bash can eat \r inside `` if the user requested igncr.
13915# But we know of no other shell where ac_cr would be empty at this
13916# point, so we can use a bashism as a fallback.
13917if test "x$ac_cr" = x; then
13918  eval ac_cr=\$\'\\r\'
13919fi
13920ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13921if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13922  ac_cs_awk_cr='\\r'
13923else
13924  ac_cs_awk_cr=$ac_cr
13925fi
13926
13927echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13928_ACEOF
13929
13930
13931{
13932  echo "cat >conf$$subs.awk <<_ACEOF" &&
13933  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13934  echo "_ACEOF"
13935} >conf$$subs.sh ||
13936  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13937ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13938ac_delim='%!_!# '
13939for ac_last_try in false false false false false :; do
13940  . ./conf$$subs.sh ||
13941    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13942
13943  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13944  if test $ac_delim_n = $ac_delim_num; then
13945    break
13946  elif $ac_last_try; then
13947    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13948  else
13949    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13950  fi
13951done
13952rm -f conf$$subs.sh
13953
13954cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13955cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13956_ACEOF
13957sed -n '
13958h
13959s/^/S["/; s/!.*/"]=/
13960p
13961g
13962s/^[^!]*!//
13963:repl
13964t repl
13965s/'"$ac_delim"'$//
13966t delim
13967:nl
13968h
13969s/\(.\{148\}\)..*/\1/
13970t more1
13971s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13972p
13973n
13974b repl
13975:more1
13976s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13977p
13978g
13979s/.\{148\}//
13980t nl
13981:delim
13982h
13983s/\(.\{148\}\)..*/\1/
13984t more2
13985s/["\\]/\\&/g; s/^/"/; s/$/"/
13986p
13987b
13988:more2
13989s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13990p
13991g
13992s/.\{148\}//
13993t delim
13994' <conf$$subs.awk | sed '
13995/^[^""]/{
13996  N
13997  s/\n//
13998}
13999' >>$CONFIG_STATUS || ac_write_fail=1
14000rm -f conf$$subs.awk
14001cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14002_ACAWK
14003cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14004  for (key in S) S_is_set[key] = 1
14005  FS = ""
14006
14007}
14008{
14009  line = $ 0
14010  nfields = split(line, field, "@")
14011  substed = 0
14012  len = length(field[1])
14013  for (i = 2; i < nfields; i++) {
14014    key = field[i]
14015    keylen = length(key)
14016    if (S_is_set[key]) {
14017      value = S[key]
14018      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14019      len += length(value) + length(field[++i])
14020      substed = 1
14021    } else
14022      len += 1 + keylen
14023  }
14024
14025  print line
14026}
14027
14028_ACAWK
14029_ACEOF
14030cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14031if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14032  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14033else
14034  cat
14035fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14036  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14037_ACEOF
14038
14039# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14040# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14041# trailing colons and then remove the whole line if VPATH becomes empty
14042# (actually we leave an empty line to preserve line numbers).
14043if test "x$srcdir" = x.; then
14044  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14045h
14046s///
14047s/^/:/
14048s/[	 ]*$/:/
14049s/:\$(srcdir):/:/g
14050s/:\${srcdir}:/:/g
14051s/:@srcdir@:/:/g
14052s/^:*//
14053s/:*$//
14054x
14055s/\(=[	 ]*\).*/\1/
14056G
14057s/\n//
14058s/^[^=]*=[	 ]*$//
14059}'
14060fi
14061
14062cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14063fi # test -n "$CONFIG_FILES"
14064
14065# Set up the scripts for CONFIG_HEADERS section.
14066# No need to generate them if there are no CONFIG_HEADERS.
14067# This happens for instance with `./config.status Makefile'.
14068if test -n "$CONFIG_HEADERS"; then
14069cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14070BEGIN {
14071_ACEOF
14072
14073# Transform confdefs.h into an awk script `defines.awk', embedded as
14074# here-document in config.status, that substitutes the proper values into
14075# config.h.in to produce config.h.
14076
14077# Create a delimiter string that does not exist in confdefs.h, to ease
14078# handling of long lines.
14079ac_delim='%!_!# '
14080for ac_last_try in false false :; do
14081  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14082  if test -z "$ac_tt"; then
14083    break
14084  elif $ac_last_try; then
14085    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14086  else
14087    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14088  fi
14089done
14090
14091# For the awk script, D is an array of macro values keyed by name,
14092# likewise P contains macro parameters if any.  Preserve backslash
14093# newline sequences.
14094
14095ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14096sed -n '
14097s/.\{148\}/&'"$ac_delim"'/g
14098t rset
14099:rset
14100s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14101t def
14102d
14103:def
14104s/\\$//
14105t bsnl
14106s/["\\]/\\&/g
14107s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14108D["\1"]=" \3"/p
14109s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14110d
14111:bsnl
14112s/["\\]/\\&/g
14113s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14114D["\1"]=" \3\\\\\\n"\\/p
14115t cont
14116s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14117t cont
14118d
14119:cont
14120n
14121s/.\{148\}/&'"$ac_delim"'/g
14122t clear
14123:clear
14124s/\\$//
14125t bsnlc
14126s/["\\]/\\&/g; s/^/"/; s/$/"/p
14127d
14128:bsnlc
14129s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14130b cont
14131' <confdefs.h | sed '
14132s/'"$ac_delim"'/"\\\
14133"/g' >>$CONFIG_STATUS || ac_write_fail=1
14134
14135cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14136  for (key in D) D_is_set[key] = 1
14137  FS = ""
14138}
14139/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14140  line = \$ 0
14141  split(line, arg, " ")
14142  if (arg[1] == "#") {
14143    defundef = arg[2]
14144    mac1 = arg[3]
14145  } else {
14146    defundef = substr(arg[1], 2)
14147    mac1 = arg[2]
14148  }
14149  split(mac1, mac2, "(") #)
14150  macro = mac2[1]
14151  prefix = substr(line, 1, index(line, defundef) - 1)
14152  if (D_is_set[macro]) {
14153    # Preserve the white space surrounding the "#".
14154    print prefix "define", macro P[macro] D[macro]
14155    next
14156  } else {
14157    # Replace #undef with comments.  This is necessary, for example,
14158    # in the case of _POSIX_SOURCE, which is predefined and required
14159    # on some systems where configure will not decide to define it.
14160    if (defundef == "undef") {
14161      print "/*", prefix defundef, macro, "*/"
14162      next
14163    }
14164  }
14165}
14166{ print }
14167_ACAWK
14168_ACEOF
14169cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14170  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14171fi # test -n "$CONFIG_HEADERS"
14172
14173
14174eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14175shift
14176for ac_tag
14177do
14178  case $ac_tag in
14179  :[FHLC]) ac_mode=$ac_tag; continue;;
14180  esac
14181  case $ac_mode$ac_tag in
14182  :[FHL]*:*);;
14183  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14184  :[FH]-) ac_tag=-:-;;
14185  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14186  esac
14187  ac_save_IFS=$IFS
14188  IFS=:
14189  set x $ac_tag
14190  IFS=$ac_save_IFS
14191  shift
14192  ac_file=$1
14193  shift
14194
14195  case $ac_mode in
14196  :L) ac_source=$1;;
14197  :[FH])
14198    ac_file_inputs=
14199    for ac_f
14200    do
14201      case $ac_f in
14202      -) ac_f="$ac_tmp/stdin";;
14203      *) # Look for the file first in the build tree, then in the source tree
14204	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14205	 # because $ac_f cannot contain `:'.
14206	 test -f "$ac_f" ||
14207	   case $ac_f in
14208	   [\\/$]*) false;;
14209	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14210	   esac ||
14211	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14212      esac
14213      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14214      as_fn_append ac_file_inputs " '$ac_f'"
14215    done
14216
14217    # Let's still pretend it is `configure' which instantiates (i.e., don't
14218    # use $as_me), people would be surprised to read:
14219    #    /* config.h.  Generated by config.status.  */
14220    configure_input='Generated from '`
14221	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14222	`' by configure.'
14223    if test x"$ac_file" != x-; then
14224      configure_input="$ac_file.  $configure_input"
14225      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14226printf "%s\n" "$as_me: creating $ac_file" >&6;}
14227    fi
14228    # Neutralize special characters interpreted by sed in replacement strings.
14229    case $configure_input in #(
14230    *\&* | *\|* | *\\* )
14231       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
14232       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14233    *) ac_sed_conf_input=$configure_input;;
14234    esac
14235
14236    case $ac_tag in
14237    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14238      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14239    esac
14240    ;;
14241  esac
14242
14243  ac_dir=`$as_dirname -- "$ac_file" ||
14244$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14245	 X"$ac_file" : 'X\(//\)[^/]' \| \
14246	 X"$ac_file" : 'X\(//\)$' \| \
14247	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14248printf "%s\n" X"$ac_file" |
14249    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14250	    s//\1/
14251	    q
14252	  }
14253	  /^X\(\/\/\)[^/].*/{
14254	    s//\1/
14255	    q
14256	  }
14257	  /^X\(\/\/\)$/{
14258	    s//\1/
14259	    q
14260	  }
14261	  /^X\(\/\).*/{
14262	    s//\1/
14263	    q
14264	  }
14265	  s/.*/./; q'`
14266  as_dir="$ac_dir"; as_fn_mkdir_p
14267  ac_builddir=.
14268
14269case "$ac_dir" in
14270.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14271*)
14272  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
14273  # A ".." for each directory in $ac_dir_suffix.
14274  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14275  case $ac_top_builddir_sub in
14276  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14277  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14278  esac ;;
14279esac
14280ac_abs_top_builddir=$ac_pwd
14281ac_abs_builddir=$ac_pwd$ac_dir_suffix
14282# for backward compatibility:
14283ac_top_builddir=$ac_top_build_prefix
14284
14285case $srcdir in
14286  .)  # We are building in place.
14287    ac_srcdir=.
14288    ac_top_srcdir=$ac_top_builddir_sub
14289    ac_abs_top_srcdir=$ac_pwd ;;
14290  [\\/]* | ?:[\\/]* )  # Absolute name.
14291    ac_srcdir=$srcdir$ac_dir_suffix;
14292    ac_top_srcdir=$srcdir
14293    ac_abs_top_srcdir=$srcdir ;;
14294  *) # Relative name.
14295    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14296    ac_top_srcdir=$ac_top_build_prefix$srcdir
14297    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14298esac
14299ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14300
14301
14302  case $ac_mode in
14303  :F)
14304  #
14305  # CONFIG_FILE
14306  #
14307
14308  case $INSTALL in
14309  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14310  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14311  esac
14312  ac_MKDIR_P=$MKDIR_P
14313  case $MKDIR_P in
14314  [\\/$]* | ?:[\\/]* ) ;;
14315  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14316  esac
14317_ACEOF
14318
14319cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14320# If the template does not know about datarootdir, expand it.
14321# FIXME: This hack should be removed a few years after 2.60.
14322ac_datarootdir_hack=; ac_datarootdir_seen=
14323ac_sed_dataroot='
14324/datarootdir/ {
14325  p
14326  q
14327}
14328/@datadir@/p
14329/@docdir@/p
14330/@infodir@/p
14331/@localedir@/p
14332/@mandir@/p'
14333case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14334*datarootdir*) ac_datarootdir_seen=yes;;
14335*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14336  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14337printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14338_ACEOF
14339cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14340  ac_datarootdir_hack='
14341  s&@datadir@&$datadir&g
14342  s&@docdir@&$docdir&g
14343  s&@infodir@&$infodir&g
14344  s&@localedir@&$localedir&g
14345  s&@mandir@&$mandir&g
14346  s&\\\${datarootdir}&$datarootdir&g' ;;
14347esac
14348_ACEOF
14349
14350# Neutralize VPATH when `$srcdir' = `.'.
14351# Shell code in configure.ac might set extrasub.
14352# FIXME: do we really want to maintain this feature?
14353cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14354ac_sed_extra="$ac_vpsub
14355$extrasub
14356_ACEOF
14357cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14358:t
14359/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14360s|@configure_input@|$ac_sed_conf_input|;t t
14361s&@top_builddir@&$ac_top_builddir_sub&;t t
14362s&@top_build_prefix@&$ac_top_build_prefix&;t t
14363s&@srcdir@&$ac_srcdir&;t t
14364s&@abs_srcdir@&$ac_abs_srcdir&;t t
14365s&@top_srcdir@&$ac_top_srcdir&;t t
14366s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14367s&@builddir@&$ac_builddir&;t t
14368s&@abs_builddir@&$ac_abs_builddir&;t t
14369s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14370s&@INSTALL@&$ac_INSTALL&;t t
14371s&@MKDIR_P@&$ac_MKDIR_P&;t t
14372$ac_datarootdir_hack
14373"
14374eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14375  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14376
14377test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14378  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14379  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14380      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14381  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14382which seems to be undefined.  Please make sure it is defined" >&5
14383printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14384which seems to be undefined.  Please make sure it is defined" >&2;}
14385
14386  rm -f "$ac_tmp/stdin"
14387  case $ac_file in
14388  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14389  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14390  esac \
14391  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14392 ;;
14393  :H)
14394  #
14395  # CONFIG_HEADER
14396  #
14397  if test x"$ac_file" != x-; then
14398    {
14399      printf "%s\n" "/* $configure_input  */" >&1 \
14400      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14401    } >"$ac_tmp/config.h" \
14402      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14403    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14404      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14405printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
14406    else
14407      rm -f "$ac_file"
14408      mv "$ac_tmp/config.h" "$ac_file" \
14409	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14410    fi
14411  else
14412    printf "%s\n" "/* $configure_input  */" >&1 \
14413      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14414      || as_fn_error $? "could not create -" "$LINENO" 5
14415  fi
14416# Compute "$ac_file"'s index in $config_headers.
14417_am_arg="$ac_file"
14418_am_stamp_count=1
14419for _am_header in $config_headers :; do
14420  case $_am_header in
14421    $_am_arg | $_am_arg:* )
14422      break ;;
14423    * )
14424      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14425  esac
14426done
14427echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14428$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14429	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14430	 X"$_am_arg" : 'X\(//\)$' \| \
14431	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14432printf "%s\n" X"$_am_arg" |
14433    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14434	    s//\1/
14435	    q
14436	  }
14437	  /^X\(\/\/\)[^/].*/{
14438	    s//\1/
14439	    q
14440	  }
14441	  /^X\(\/\/\)$/{
14442	    s//\1/
14443	    q
14444	  }
14445	  /^X\(\/\).*/{
14446	    s//\1/
14447	    q
14448	  }
14449	  s/.*/./; q'`/stamp-h$_am_stamp_count
14450 ;;
14451
14452  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14453printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
14454 ;;
14455  esac
14456
14457
14458  case $ac_file$ac_mode in
14459    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14460  # Older Autoconf quotes --file arguments for eval, but not when files
14461  # are listed without --file.  Let's play safe and only enable the eval
14462  # if we detect the quoting.
14463  # TODO: see whether this extra hack can be removed once we start
14464  # requiring Autoconf 2.70 or later.
14465  case $CONFIG_FILES in #(
14466  *\'*) :
14467    eval set x "$CONFIG_FILES" ;; #(
14468  *) :
14469    set x $CONFIG_FILES ;; #(
14470  *) :
14471     ;;
14472esac
14473  shift
14474  # Used to flag and report bootstrapping failures.
14475  am_rc=0
14476  for am_mf
14477  do
14478    # Strip MF so we end up with the name of the file.
14479    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
14480    # Check whether this is an Automake generated Makefile which includes
14481    # dependency-tracking related rules and includes.
14482    # Grep'ing the whole file directly is not great: AIX grep has a line
14483    # limit of 2048, but all sed's we know have understand at least 4000.
14484    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
14485      || continue
14486    am_dirpart=`$as_dirname -- "$am_mf" ||
14487$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14488	 X"$am_mf" : 'X\(//\)[^/]' \| \
14489	 X"$am_mf" : 'X\(//\)$' \| \
14490	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14491printf "%s\n" X"$am_mf" |
14492    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14493	    s//\1/
14494	    q
14495	  }
14496	  /^X\(\/\/\)[^/].*/{
14497	    s//\1/
14498	    q
14499	  }
14500	  /^X\(\/\/\)$/{
14501	    s//\1/
14502	    q
14503	  }
14504	  /^X\(\/\).*/{
14505	    s//\1/
14506	    q
14507	  }
14508	  s/.*/./; q'`
14509    am_filepart=`$as_basename -- "$am_mf" ||
14510$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14511	 X"$am_mf" : 'X\(//\)$' \| \
14512	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14513printf "%s\n" X/"$am_mf" |
14514    sed '/^.*\/\([^/][^/]*\)\/*$/{
14515	    s//\1/
14516	    q
14517	  }
14518	  /^X\/\(\/\/\)$/{
14519	    s//\1/
14520	    q
14521	  }
14522	  /^X\/\(\/\).*/{
14523	    s//\1/
14524	    q
14525	  }
14526	  s/.*/./; q'`
14527    { echo "$as_me:$LINENO: cd "$am_dirpart" \
14528      && sed -e '/# am--include-marker/d' "$am_filepart" \
14529        | $MAKE -f - am--depfiles" >&5
14530   (cd "$am_dirpart" \
14531      && sed -e '/# am--include-marker/d' "$am_filepart" \
14532        | $MAKE -f - am--depfiles) >&5 2>&5
14533   ac_status=$?
14534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535   (exit $ac_status); } || am_rc=$?
14536  done
14537  if test $am_rc -ne 0; then
14538    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14539printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14540as_fn_error $? "Something went wrong bootstrapping makefile fragments
14541    for automatic dependency tracking.  If GNU make was not used, consider
14542    re-running the configure script with MAKE=\"gmake\" (or whatever is
14543    necessary).  You can also try re-running configure with the
14544    '--disable-dependency-tracking' option to at least be able to build
14545    the package (albeit without support for automatic dependency tracking).
14546See \`config.log' for more details" "$LINENO" 5; }
14547  fi
14548  { am_dirpart=; unset am_dirpart;}
14549  { am_filepart=; unset am_filepart;}
14550  { am_mf=; unset am_mf;}
14551  { am_rc=; unset am_rc;}
14552  rm -f conftest-deps.mk
14553}
14554 ;;
14555
14556  esac
14557done # for ac_tag
14558
14559
14560as_fn_exit 0
14561_ACEOF
14562ac_clean_files=$ac_clean_files_save
14563
14564test $ac_write_fail = 0 ||
14565  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14566
14567
14568# configure is writing to config.log, and then calls config.status.
14569# config.status does its own redirection, appending to config.log.
14570# Unfortunately, on DOS this fails, as config.log is still kept open
14571# by configure, so config.status won't be able to write to it; its
14572# output is simply discarded.  So we exec the FD to /dev/null,
14573# effectively closing config.log, so it can be properly (re)opened and
14574# appended to by config.status.  When coming back to configure, we
14575# need to make the FD available again.
14576if test "$no_create" != yes; then
14577  ac_cs_success=:
14578  ac_config_status_args=
14579  test "$silent" = yes &&
14580    ac_config_status_args="$ac_config_status_args --quiet"
14581  exec 5>/dev/null
14582  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14583  exec 5>>config.log
14584  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14585  # would make configure fail if this is the last instruction.
14586  $ac_cs_success || as_fn_exit 1
14587fi
14588if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14589  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14590printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14591fi
14592
14593
14594