1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for xman 1.2.0.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xman/-/issues/>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else case e in #(
29  e) case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as 'sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed 'exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144then :
145  emulate sh
146  NULLCMD=:
147  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148  # is contrary to our usage.  Disable this feature.
149  alias -g '\${1+\"\$@\"}'='\"\$@\"'
150  setopt NO_GLOB_SUBST
151else case e in #(
152  e) case \`(set -o) 2>/dev/null\` in #(
153  *posix*) :
154    set -o posix ;; #(
155  *) :
156     ;;
157esac ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else case e in #(
176  e) exitcode=1; echo positional parameters were not saved. ;;
177esac
178fi
179test x\$exitcode = x0 || exit 1
180blah=\$(echo \$(echo blah))
181test x\"\$blah\" = xblah || exit 1
182test -x / || exit 1"
183  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187test \$(( 1 + 1 )) = 2 || exit 1"
188  if (eval "$as_required") 2>/dev/null
189then :
190  as_have_required=yes
191else case e in #(
192  e) as_have_required=no ;;
193esac
194fi
195  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196then :
197
198else case e in #(
199  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200as_found=false
201for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202do
203  IFS=$as_save_IFS
204  case $as_dir in #(((
205    '') as_dir=./ ;;
206    */) ;;
207    *) as_dir=$as_dir/ ;;
208  esac
209  as_found=:
210  case $as_dir in #(
211	 /*)
212	   for as_base in sh bash ksh sh5; do
213	     # Try only shells that exist, to save several forks.
214	     as_shell=$as_dir$as_base
215	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217then :
218  CONFIG_SHELL=$as_shell as_have_required=yes
219		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220then :
221  break 2
222fi
223fi
224	   done;;
225       esac
226  as_found=false
227done
228IFS=$as_save_IFS
229if $as_found
230then :
231
232else case e in #(
233  e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235then :
236  CONFIG_SHELL=$SHELL as_have_required=yes
237fi ;;
238esac
239fi
240
241
242      if test "x$CONFIG_SHELL" != x
243then :
244  export CONFIG_SHELL
245             # We cannot yet assume a decent shell, so we have to provide a
246# neutralization value for shells without unset; and this also
247# works around shells that cannot unset nonexistent variables.
248# Preserve -v and -x to the replacement shell.
249BASH_ENV=/dev/null
250ENV=/dev/null
251(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252case $- in # ((((
253  *v*x* | *x*v* ) as_opts=-vx ;;
254  *v* ) as_opts=-v ;;
255  *x* ) as_opts=-x ;;
256  * ) as_opts= ;;
257esac
258exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259# Admittedly, this is quite paranoid, since all the known shells bail
260# out after a failed 'exec'.
261printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262exit 255
263fi
264
265    if test x$as_have_required = xno
266then :
267  printf "%s\n" "$0: This script requires a shell more modern than all"
268  printf "%s\n" "$0: the shells that I found on your system."
269  if test ${ZSH_VERSION+y} ; then
270    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272  else
273    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
274$0: https://gitlab.freedesktop.org/xorg/app/xman/-/issues/
275$0: about your system, including any error possibly output
276$0: before this message. Then install a modern shell, or
277$0: manually run the script under such a shell if you do
278$0: have one."
279  fi
280  exit 1
281fi ;;
282esac
283fi
284fi
285SHELL=${CONFIG_SHELL-/bin/sh}
286export SHELL
287# Unset more variables known to interfere with behavior of common tools.
288CLICOLOR_FORCE= GREP_OPTIONS=
289unset CLICOLOR_FORCE GREP_OPTIONS
290
291## --------------------- ##
292## M4sh Shell Functions. ##
293## --------------------- ##
294# as_fn_unset VAR
295# ---------------
296# Portably unset VAR.
297as_fn_unset ()
298{
299  { eval $1=; unset $1;}
300}
301as_unset=as_fn_unset
302
303
304# as_fn_set_status STATUS
305# -----------------------
306# Set $? to STATUS, without forking.
307as_fn_set_status ()
308{
309  return $1
310} # as_fn_set_status
311
312# as_fn_exit STATUS
313# -----------------
314# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315as_fn_exit ()
316{
317  set +e
318  as_fn_set_status $1
319  exit $1
320} # as_fn_exit
321
322# as_fn_mkdir_p
323# -------------
324# Create "$as_dir" as a directory, including parents if necessary.
325as_fn_mkdir_p ()
326{
327
328  case $as_dir in #(
329  -*) as_dir=./$as_dir;;
330  esac
331  test -d "$as_dir" || eval $as_mkdir_p || {
332    as_dirs=
333    while :; do
334      case $as_dir in #(
335      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336      *) as_qdir=$as_dir;;
337      esac
338      as_dirs="'$as_qdir' $as_dirs"
339      as_dir=`$as_dirname -- "$as_dir" ||
340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341	 X"$as_dir" : 'X\(//\)[^/]' \| \
342	 X"$as_dir" : 'X\(//\)$' \| \
343	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344printf "%s\n" X"$as_dir" |
345    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346	    s//\1/
347	    q
348	  }
349	  /^X\(\/\/\)[^/].*/{
350	    s//\1/
351	    q
352	  }
353	  /^X\(\/\/\)$/{
354	    s//\1/
355	    q
356	  }
357	  /^X\(\/\).*/{
358	    s//\1/
359	    q
360	  }
361	  s/.*/./; q'`
362      test -d "$as_dir" && break
363    done
364    test -z "$as_dirs" || eval "mkdir $as_dirs"
365  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368} # as_fn_mkdir_p
369
370# as_fn_executable_p FILE
371# -----------------------
372# Test if FILE is an executable regular file.
373as_fn_executable_p ()
374{
375  test -f "$1" && test -x "$1"
376} # as_fn_executable_p
377# as_fn_append VAR VALUE
378# ----------------------
379# Append the text in VALUE to the end of the definition contained in VAR. Take
380# advantage of any shell optimizations that allow amortized linear growth over
381# repeated appends, instead of the typical quadratic growth present in naive
382# implementations.
383if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else case e in #(
390  e) as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  } ;;
394esac
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
403then :
404  eval 'as_fn_arith ()
405  {
406    as_val=$(( $* ))
407  }'
408else case e in #(
409  e) as_fn_arith ()
410  {
411    as_val=`expr "$@" || test $? -eq 1`
412  } ;;
413esac
414fi # as_fn_arith
415
416
417# as_fn_error STATUS ERROR [LINENO LOG_FD]
418# ----------------------------------------
419# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
420# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
421# script with STATUS, using 1 if that was 0.
422as_fn_error ()
423{
424  as_status=$1; test $as_status -eq 0 && as_status=1
425  if test "$4"; then
426    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
427    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
428  fi
429  printf "%s\n" "$as_me: error: $2" >&2
430  as_fn_exit $as_status
431} # as_fn_error
432
433if expr a : '\(a\)' >/dev/null 2>&1 &&
434   test "X`expr 00001 : '.*\(...\)'`" = X001; then
435  as_expr=expr
436else
437  as_expr=false
438fi
439
440if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
441  as_basename=basename
442else
443  as_basename=false
444fi
445
446if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
447  as_dirname=dirname
448else
449  as_dirname=false
450fi
451
452as_me=`$as_basename -- "$0" ||
453$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
454	 X"$0" : 'X\(//\)$' \| \
455	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
456printf "%s\n" X/"$0" |
457    sed '/^.*\/\([^/][^/]*\)\/*$/{
458	    s//\1/
459	    q
460	  }
461	  /^X\/\(\/\/\)$/{
462	    s//\1/
463	    q
464	  }
465	  /^X\/\(\/\).*/{
466	    s//\1/
467	    q
468	  }
469	  s/.*/./; q'`
470
471# Avoid depending upon Character Ranges.
472as_cr_letters='abcdefghijklmnopqrstuvwxyz'
473as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
474as_cr_Letters=$as_cr_letters$as_cr_LETTERS
475as_cr_digits='0123456789'
476as_cr_alnum=$as_cr_Letters$as_cr_digits
477
478
479  as_lineno_1=$LINENO as_lineno_1a=$LINENO
480  as_lineno_2=$LINENO as_lineno_2a=$LINENO
481  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
482  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
483  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
484  sed -n '
485    p
486    /[$]LINENO/=
487  ' <$as_myself |
488    sed '
489      t clear
490      :clear
491      s/[$]LINENO.*/&-/
492      t lineno
493      b
494      :lineno
495      N
496      :loop
497      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
498      t loop
499      s/-\n.*//
500    ' >$as_me.lineno &&
501  chmod +x "$as_me.lineno" ||
502    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
503
504  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
505  # already done that, so ensure we don't try to do so again and fall
506  # in an infinite loop.  This has already happened in practice.
507  _as_can_reexec=no; export _as_can_reexec
508  # Don't try to exec as it changes $[0], causing all sort of problems
509  # (the dirname of $[0] is not the place where we might find the
510  # original and so on.  Autoconf is especially sensitive to this).
511  . "./$as_me.lineno"
512  # Exit status is that of the last command.
513  exit
514}
515
516
517# Determine whether it's possible to make 'echo' print without a newline.
518# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
519# for compatibility with existing Makefiles.
520ECHO_C= ECHO_N= ECHO_T=
521case `echo -n x` in #(((((
522-n*)
523  case `echo 'xy\c'` in
524  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
525  xy)  ECHO_C='\c';;
526  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
527       ECHO_T='	';;
528  esac;;
529*)
530  ECHO_N='-n';;
531esac
532
533# For backward compatibility with old third-party macros, we provide
534# the shell variables $as_echo and $as_echo_n.  New code should use
535# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
536as_echo='printf %s\n'
537as_echo_n='printf %s'
538
539rm -f conf$$ conf$$.exe conf$$.file
540if test -d conf$$.dir; then
541  rm -f conf$$.dir/conf$$.file
542else
543  rm -f conf$$.dir
544  mkdir conf$$.dir 2>/dev/null
545fi
546if (echo >conf$$.file) 2>/dev/null; then
547  if ln -s conf$$.file conf$$ 2>/dev/null; then
548    as_ln_s='ln -s'
549    # ... but there are two gotchas:
550    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
551    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
552    # In both cases, we have to default to 'cp -pR'.
553    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
554      as_ln_s='cp -pR'
555  elif ln conf$$.file conf$$ 2>/dev/null; then
556    as_ln_s=ln
557  else
558    as_ln_s='cp -pR'
559  fi
560else
561  as_ln_s='cp -pR'
562fi
563rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
564rmdir conf$$.dir 2>/dev/null
565
566if mkdir -p . 2>/dev/null; then
567  as_mkdir_p='mkdir -p "$as_dir"'
568else
569  test -d ./-p && rmdir ./-p
570  as_mkdir_p=false
571fi
572
573as_test_x='test -x'
574as_executable_p=as_fn_executable_p
575
576# Sed expression to map a string onto a valid CPP name.
577as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
578as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
579
580# Sed expression to map a string onto a valid variable name.
581as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
582as_tr_sh="eval sed '$as_sed_sh'" # deprecated
583
584
585test -n "$DJDIR" || exec 7<&0 </dev/null
586exec 6>&1
587
588# Name of the host.
589# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
590# so uname gets run too.
591ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
592
593#
594# Initializations.
595#
596ac_default_prefix=/usr/local
597ac_clean_files=
598ac_config_libobj_dir=.
599LIBOBJS=
600cross_compiling=no
601subdirs=
602MFLAGS=
603MAKEFLAGS=
604
605# Identity of this package.
606PACKAGE_NAME='xman'
607PACKAGE_TARNAME='xman'
608PACKAGE_VERSION='1.2.0'
609PACKAGE_STRING='xman 1.2.0'
610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xman/-/issues/'
611PACKAGE_URL=''
612
613ac_unique_file="Makefile.am"
614# Factoring default headers for most tests.
615ac_includes_default="\
616#include <stddef.h>
617#ifdef HAVE_STDIO_H
618# include <stdio.h>
619#endif
620#ifdef HAVE_STDLIB_H
621# include <stdlib.h>
622#endif
623#ifdef HAVE_STRING_H
624# include <string.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_STRINGS_H
633# include <strings.h>
634#endif
635#ifdef HAVE_SYS_TYPES_H
636# include <sys/types.h>
637#endif
638#ifdef HAVE_SYS_STAT_H
639# include <sys/stat.h>
640#endif
641#ifdef HAVE_UNISTD_H
642# include <unistd.h>
643#endif"
644
645ac_header_c_list=
646enable_year2038=no
647ac_subst_vars='am__EXEEXT_FALSE
648am__EXEEXT_TRUE
649LTLIBOBJS
650LIBOBJS
651appdefaultdir
652APPDEFS_LIBS
653APPDEFS_CFLAGS
654XMAN_LIBS
655XMAN_CFLAGS
656HELPDIR
657MANDB
658GROFF
659MAN_SUBSTS
660XORG_MAN_PAGE
661ADMIN_MAN_DIR
662DRIVER_MAN_DIR
663MISC_MAN_DIR
664FILE_MAN_DIR
665LIB_MAN_DIR
666APP_MAN_DIR
667ADMIN_MAN_SUFFIX
668DRIVER_MAN_SUFFIX
669MISC_MAN_SUFFIX
670FILE_MAN_SUFFIX
671LIB_MAN_SUFFIX
672APP_MAN_SUFFIX
673SED
674host_os
675host_vendor
676host_cpu
677host
678build_os
679build_vendor
680build_cpu
681build
682INSTALL_CMD
683PKG_CONFIG_LIBDIR
684PKG_CONFIG_PATH
685PKG_CONFIG
686CHANGELOG_CMD
687STRICT_CFLAGS
688CWARNFLAGS
689BASE_CFLAGS
690am__fastdepCC_FALSE
691am__fastdepCC_TRUE
692CCDEPMODE
693am__nodep
694AMDEPBACKSLASH
695AMDEP_FALSE
696AMDEP_TRUE
697am__include
698DEPDIR
699OBJEXT
700EXEEXT
701ac_ct_CC
702CPPFLAGS
703LDFLAGS
704CFLAGS
705CC
706AM_BACKSLASH
707AM_DEFAULT_VERBOSITY
708AM_DEFAULT_V
709AM_V
710CSCOPE
711ETAGS
712CTAGS
713am__untar
714am__tar
715AMTAR
716am__leading_dot
717SET_MAKE
718AWK
719mkdir_p
720MKDIR_P
721INSTALL_STRIP_PROGRAM
722STRIP
723install_sh
724MAKEINFO
725AUTOHEADER
726AUTOMAKE
727AUTOCONF
728ACLOCAL
729VERSION
730PACKAGE
731CYGPATH_W
732am__isrc
733INSTALL_DATA
734INSTALL_SCRIPT
735INSTALL_PROGRAM
736target_alias
737host_alias
738build_alias
739LIBS
740ECHO_T
741ECHO_N
742ECHO_C
743DEFS
744mandir
745localedir
746libdir
747psdir
748pdfdir
749dvidir
750htmldir
751infodir
752docdir
753oldincludedir
754includedir
755runstatedir
756localstatedir
757sharedstatedir
758sysconfdir
759datadir
760datarootdir
761libexecdir
762sbindir
763bindir
764program_transform_name
765prefix
766exec_prefix
767PACKAGE_URL
768PACKAGE_BUGREPORT
769PACKAGE_STRING
770PACKAGE_VERSION
771PACKAGE_TARNAME
772PACKAGE_NAME
773PATH_SEPARATOR
774SHELL
775am__quote'
776ac_subst_files=''
777ac_user_opts='
778enable_option_checking
779enable_silent_rules
780enable_dependency_tracking
781enable_selective_werror
782enable_strict_compilation
783enable_largefile
784with_helpdir
785with_sysmanpath
786with_localmanpath
787with_manconfig
788with_appdefaultdir
789enable_year2038
790'
791      ac_precious_vars='build_alias
792host_alias
793target_alias
794CC
795CFLAGS
796LDFLAGS
797LIBS
798CPPFLAGS
799PKG_CONFIG
800PKG_CONFIG_PATH
801PKG_CONFIG_LIBDIR
802XMAN_CFLAGS
803XMAN_LIBS
804APPDEFS_CFLAGS
805APPDEFS_LIBS'
806
807
808# Initialize some variables set by options.
809ac_init_help=
810ac_init_version=false
811ac_unrecognized_opts=
812ac_unrecognized_sep=
813# The variables have the same names as the options, with
814# dashes changed to underlines.
815cache_file=/dev/null
816exec_prefix=NONE
817no_create=
818no_recursion=
819prefix=NONE
820program_prefix=NONE
821program_suffix=NONE
822program_transform_name=s,x,x,
823silent=
824site=
825srcdir=
826verbose=
827x_includes=NONE
828x_libraries=NONE
829
830# Installation directory options.
831# These are left unexpanded so users can "make install exec_prefix=/foo"
832# and all the variables that are supposed to be based on exec_prefix
833# by default will actually change.
834# Use braces instead of parens because sh, perl, etc. also accept them.
835# (The list follows the same order as the GNU Coding Standards.)
836bindir='${exec_prefix}/bin'
837sbindir='${exec_prefix}/sbin'
838libexecdir='${exec_prefix}/libexec'
839datarootdir='${prefix}/share'
840datadir='${datarootdir}'
841sysconfdir='${prefix}/etc'
842sharedstatedir='${prefix}/com'
843localstatedir='${prefix}/var'
844runstatedir='${localstatedir}/run'
845includedir='${prefix}/include'
846oldincludedir='/usr/include'
847docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
848infodir='${datarootdir}/info'
849htmldir='${docdir}'
850dvidir='${docdir}'
851pdfdir='${docdir}'
852psdir='${docdir}'
853libdir='${exec_prefix}/lib'
854localedir='${datarootdir}/locale'
855mandir='${datarootdir}/man'
856
857ac_prev=
858ac_dashdash=
859for ac_option
860do
861  # If the previous option needs an argument, assign it.
862  if test -n "$ac_prev"; then
863    eval $ac_prev=\$ac_option
864    ac_prev=
865    continue
866  fi
867
868  case $ac_option in
869  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
870  *=)   ac_optarg= ;;
871  *)    ac_optarg=yes ;;
872  esac
873
874  case $ac_dashdash$ac_option in
875  --)
876    ac_dashdash=yes ;;
877
878  -bindir | --bindir | --bindi | --bind | --bin | --bi)
879    ac_prev=bindir ;;
880  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
881    bindir=$ac_optarg ;;
882
883  -build | --build | --buil | --bui | --bu)
884    ac_prev=build_alias ;;
885  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
886    build_alias=$ac_optarg ;;
887
888  -cache-file | --cache-file | --cache-fil | --cache-fi \
889  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
890    ac_prev=cache_file ;;
891  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
892  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
893    cache_file=$ac_optarg ;;
894
895  --config-cache | -C)
896    cache_file=config.cache ;;
897
898  -datadir | --datadir | --datadi | --datad)
899    ac_prev=datadir ;;
900  -datadir=* | --datadir=* | --datadi=* | --datad=*)
901    datadir=$ac_optarg ;;
902
903  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
904  | --dataroo | --dataro | --datar)
905    ac_prev=datarootdir ;;
906  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
907  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
908    datarootdir=$ac_optarg ;;
909
910  -disable-* | --disable-*)
911    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
912    # Reject names that are not valid shell variable names.
913    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914      as_fn_error $? "invalid feature name: '$ac_useropt'"
915    ac_useropt_orig=$ac_useropt
916    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
917    case $ac_user_opts in
918      *"
919"enable_$ac_useropt"
920"*) ;;
921      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
922	 ac_unrecognized_sep=', ';;
923    esac
924    eval enable_$ac_useropt=no ;;
925
926  -docdir | --docdir | --docdi | --doc | --do)
927    ac_prev=docdir ;;
928  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929    docdir=$ac_optarg ;;
930
931  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932    ac_prev=dvidir ;;
933  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934    dvidir=$ac_optarg ;;
935
936  -enable-* | --enable-*)
937    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938    # Reject names that are not valid shell variable names.
939    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940      as_fn_error $? "invalid feature name: '$ac_useropt'"
941    ac_useropt_orig=$ac_useropt
942    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
943    case $ac_user_opts in
944      *"
945"enable_$ac_useropt"
946"*) ;;
947      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
948	 ac_unrecognized_sep=', ';;
949    esac
950    eval enable_$ac_useropt=\$ac_optarg ;;
951
952  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954  | --exec | --exe | --ex)
955    ac_prev=exec_prefix ;;
956  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958  | --exec=* | --exe=* | --ex=*)
959    exec_prefix=$ac_optarg ;;
960
961  -gas | --gas | --ga | --g)
962    # Obsolete; use --with-gas.
963    with_gas=yes ;;
964
965  -help | --help | --hel | --he | -h)
966    ac_init_help=long ;;
967  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968    ac_init_help=recursive ;;
969  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970    ac_init_help=short ;;
971
972  -host | --host | --hos | --ho)
973    ac_prev=host_alias ;;
974  -host=* | --host=* | --hos=* | --ho=*)
975    host_alias=$ac_optarg ;;
976
977  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978    ac_prev=htmldir ;;
979  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980  | --ht=*)
981    htmldir=$ac_optarg ;;
982
983  -includedir | --includedir | --includedi | --included | --include \
984  | --includ | --inclu | --incl | --inc)
985    ac_prev=includedir ;;
986  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987  | --includ=* | --inclu=* | --incl=* | --inc=*)
988    includedir=$ac_optarg ;;
989
990  -infodir | --infodir | --infodi | --infod | --info | --inf)
991    ac_prev=infodir ;;
992  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
993    infodir=$ac_optarg ;;
994
995  -libdir | --libdir | --libdi | --libd)
996    ac_prev=libdir ;;
997  -libdir=* | --libdir=* | --libdi=* | --libd=*)
998    libdir=$ac_optarg ;;
999
1000  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001  | --libexe | --libex | --libe)
1002    ac_prev=libexecdir ;;
1003  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004  | --libexe=* | --libex=* | --libe=*)
1005    libexecdir=$ac_optarg ;;
1006
1007  -localedir | --localedir | --localedi | --localed | --locale)
1008    ac_prev=localedir ;;
1009  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010    localedir=$ac_optarg ;;
1011
1012  -localstatedir | --localstatedir | --localstatedi | --localstated \
1013  | --localstate | --localstat | --localsta | --localst | --locals)
1014    ac_prev=localstatedir ;;
1015  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1016  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1017    localstatedir=$ac_optarg ;;
1018
1019  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020    ac_prev=mandir ;;
1021  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1022    mandir=$ac_optarg ;;
1023
1024  -nfp | --nfp | --nf)
1025    # Obsolete; use --without-fp.
1026    with_fp=no ;;
1027
1028  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029  | --no-cr | --no-c | -n)
1030    no_create=yes ;;
1031
1032  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034    no_recursion=yes ;;
1035
1036  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038  | --oldin | --oldi | --old | --ol | --o)
1039    ac_prev=oldincludedir ;;
1040  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1043    oldincludedir=$ac_optarg ;;
1044
1045  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046    ac_prev=prefix ;;
1047  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1048    prefix=$ac_optarg ;;
1049
1050  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051  | --program-pre | --program-pr | --program-p)
1052    ac_prev=program_prefix ;;
1053  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1055    program_prefix=$ac_optarg ;;
1056
1057  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058  | --program-suf | --program-su | --program-s)
1059    ac_prev=program_suffix ;;
1060  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1062    program_suffix=$ac_optarg ;;
1063
1064  -program-transform-name | --program-transform-name \
1065  | --program-transform-nam | --program-transform-na \
1066  | --program-transform-n | --program-transform- \
1067  | --program-transform | --program-transfor \
1068  | --program-transfo | --program-transf \
1069  | --program-trans | --program-tran \
1070  | --progr-tra | --program-tr | --program-t)
1071    ac_prev=program_transform_name ;;
1072  -program-transform-name=* | --program-transform-name=* \
1073  | --program-transform-nam=* | --program-transform-na=* \
1074  | --program-transform-n=* | --program-transform-=* \
1075  | --program-transform=* | --program-transfor=* \
1076  | --program-transfo=* | --program-transf=* \
1077  | --program-trans=* | --program-tran=* \
1078  | --progr-tra=* | --program-tr=* | --program-t=*)
1079    program_transform_name=$ac_optarg ;;
1080
1081  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082    ac_prev=pdfdir ;;
1083  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084    pdfdir=$ac_optarg ;;
1085
1086  -psdir | --psdir | --psdi | --psd | --ps)
1087    ac_prev=psdir ;;
1088  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089    psdir=$ac_optarg ;;
1090
1091  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092  | -silent | --silent | --silen | --sile | --sil)
1093    silent=yes ;;
1094
1095  -runstatedir | --runstatedir | --runstatedi | --runstated \
1096  | --runstate | --runstat | --runsta | --runst | --runs \
1097  | --run | --ru | --r)
1098    ac_prev=runstatedir ;;
1099  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1100  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1101  | --run=* | --ru=* | --r=*)
1102    runstatedir=$ac_optarg ;;
1103
1104  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105    ac_prev=sbindir ;;
1106  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107  | --sbi=* | --sb=*)
1108    sbindir=$ac_optarg ;;
1109
1110  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112  | --sharedst | --shareds | --shared | --share | --shar \
1113  | --sha | --sh)
1114    ac_prev=sharedstatedir ;;
1115  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118  | --sha=* | --sh=*)
1119    sharedstatedir=$ac_optarg ;;
1120
1121  -site | --site | --sit)
1122    ac_prev=site ;;
1123  -site=* | --site=* | --sit=*)
1124    site=$ac_optarg ;;
1125
1126  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127    ac_prev=srcdir ;;
1128  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129    srcdir=$ac_optarg ;;
1130
1131  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132  | --syscon | --sysco | --sysc | --sys | --sy)
1133    ac_prev=sysconfdir ;;
1134  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136    sysconfdir=$ac_optarg ;;
1137
1138  -target | --target | --targe | --targ | --tar | --ta | --t)
1139    ac_prev=target_alias ;;
1140  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141    target_alias=$ac_optarg ;;
1142
1143  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144    verbose=yes ;;
1145
1146  -version | --version | --versio | --versi | --vers | -V)
1147    ac_init_version=: ;;
1148
1149  -with-* | --with-*)
1150    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151    # Reject names that are not valid shell variable names.
1152    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153      as_fn_error $? "invalid package name: '$ac_useropt'"
1154    ac_useropt_orig=$ac_useropt
1155    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1156    case $ac_user_opts in
1157      *"
1158"with_$ac_useropt"
1159"*) ;;
1160      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161	 ac_unrecognized_sep=', ';;
1162    esac
1163    eval with_$ac_useropt=\$ac_optarg ;;
1164
1165  -without-* | --without-*)
1166    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167    # Reject names that are not valid shell variable names.
1168    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169      as_fn_error $? "invalid package name: '$ac_useropt'"
1170    ac_useropt_orig=$ac_useropt
1171    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1172    case $ac_user_opts in
1173      *"
1174"with_$ac_useropt"
1175"*) ;;
1176      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177	 ac_unrecognized_sep=', ';;
1178    esac
1179    eval with_$ac_useropt=no ;;
1180
1181  --x)
1182    # Obsolete; use --with-x.
1183    with_x=yes ;;
1184
1185  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1186  | --x-incl | --x-inc | --x-in | --x-i)
1187    ac_prev=x_includes ;;
1188  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1189  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1190    x_includes=$ac_optarg ;;
1191
1192  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1193  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1194    ac_prev=x_libraries ;;
1195  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1196  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1197    x_libraries=$ac_optarg ;;
1198
1199  -*) as_fn_error $? "unrecognized option: '$ac_option'
1200Try '$0 --help' for more information"
1201    ;;
1202
1203  *=*)
1204    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205    # Reject names that are not valid shell variable names.
1206    case $ac_envvar in #(
1207      '' | [0-9]* | *[!_$as_cr_alnum]* )
1208      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1209    esac
1210    eval $ac_envvar=\$ac_optarg
1211    export $ac_envvar ;;
1212
1213  *)
1214    # FIXME: should be removed in autoconf 3.0.
1215    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1216    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1218    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1219    ;;
1220
1221  esac
1222done
1223
1224if test -n "$ac_prev"; then
1225  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1226  as_fn_error $? "missing argument to $ac_option"
1227fi
1228
1229if test -n "$ac_unrecognized_opts"; then
1230  case $enable_option_checking in
1231    no) ;;
1232    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1233    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1234  esac
1235fi
1236
1237# Check all directory arguments for consistency.
1238for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239		datadir sysconfdir sharedstatedir localstatedir includedir \
1240		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241		libdir localedir mandir runstatedir
1242do
1243  eval ac_val=\$$ac_var
1244  # Remove trailing slashes.
1245  case $ac_val in
1246    */ )
1247      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248      eval $ac_var=\$ac_val;;
1249  esac
1250  # Be sure to have absolute directory names.
1251  case $ac_val in
1252    [\\/$]* | ?:[\\/]* )  continue;;
1253    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1254  esac
1255  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1256done
1257
1258# There might be people who depend on the old broken behavior: '$host'
1259# used to hold the argument of --host etc.
1260# FIXME: To remove some day.
1261build=$build_alias
1262host=$host_alias
1263target=$target_alias
1264
1265# FIXME: To remove some day.
1266if test "x$host_alias" != x; then
1267  if test "x$build_alias" = x; then
1268    cross_compiling=maybe
1269  elif test "x$build_alias" != "x$host_alias"; then
1270    cross_compiling=yes
1271  fi
1272fi
1273
1274ac_tool_prefix=
1275test -n "$host_alias" && ac_tool_prefix=$host_alias-
1276
1277test "$silent" = yes && exec 6>/dev/null
1278
1279
1280ac_pwd=`pwd` && test -n "$ac_pwd" &&
1281ac_ls_di=`ls -di .` &&
1282ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1283  as_fn_error $? "working directory cannot be determined"
1284test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1285  as_fn_error $? "pwd does not report name of working directory"
1286
1287
1288# Find the source files, if location was not specified.
1289if test -z "$srcdir"; then
1290  ac_srcdir_defaulted=yes
1291  # Try the directory containing this script, then the parent directory.
1292  ac_confdir=`$as_dirname -- "$as_myself" ||
1293$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1294	 X"$as_myself" : 'X\(//\)[^/]' \| \
1295	 X"$as_myself" : 'X\(//\)$' \| \
1296	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1297printf "%s\n" X"$as_myself" |
1298    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1299	    s//\1/
1300	    q
1301	  }
1302	  /^X\(\/\/\)[^/].*/{
1303	    s//\1/
1304	    q
1305	  }
1306	  /^X\(\/\/\)$/{
1307	    s//\1/
1308	    q
1309	  }
1310	  /^X\(\/\).*/{
1311	    s//\1/
1312	    q
1313	  }
1314	  s/.*/./; q'`
1315  srcdir=$ac_confdir
1316  if test ! -r "$srcdir/$ac_unique_file"; then
1317    srcdir=..
1318  fi
1319else
1320  ac_srcdir_defaulted=no
1321fi
1322if test ! -r "$srcdir/$ac_unique_file"; then
1323  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1324  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1325fi
1326ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1327ac_abs_confdir=`(
1328	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1329	pwd)`
1330# When building in place, set srcdir=.
1331if test "$ac_abs_confdir" = "$ac_pwd"; then
1332  srcdir=.
1333fi
1334# Remove unnecessary trailing slashes from srcdir.
1335# Double slashes in file names in object file debugging info
1336# mess up M-x gdb in Emacs.
1337case $srcdir in
1338*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339esac
1340for ac_var in $ac_precious_vars; do
1341  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1342  eval ac_env_${ac_var}_value=\$${ac_var}
1343  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1344  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1345done
1346
1347#
1348# Report the --help message.
1349#
1350if test "$ac_init_help" = "long"; then
1351  # Omit some internal or obsolete options to make the list less imposing.
1352  # This message is too long to be a string in the A/UX 3.1 sh.
1353  cat <<_ACEOF
1354'configure' configures xman 1.2.0 to adapt to many kinds of systems.
1355
1356Usage: $0 [OPTION]... [VAR=VALUE]...
1357
1358To assign environment variables (e.g., CC, CFLAGS...), specify them as
1359VAR=VALUE.  See below for descriptions of some of the useful variables.
1360
1361Defaults for the options are specified in brackets.
1362
1363Configuration:
1364  -h, --help              display this help and exit
1365      --help=short        display options specific to this package
1366      --help=recursive    display the short help of all the included packages
1367  -V, --version           display version information and exit
1368  -q, --quiet, --silent   do not print 'checking ...' messages
1369      --cache-file=FILE   cache test results in FILE [disabled]
1370  -C, --config-cache      alias for '--cache-file=config.cache'
1371  -n, --no-create         do not create output files
1372      --srcdir=DIR        find the sources in DIR [configure dir or '..']
1373
1374Installation directories:
1375  --prefix=PREFIX         install architecture-independent files in PREFIX
1376                          [$ac_default_prefix]
1377  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1378                          [PREFIX]
1379
1380By default, 'make install' will install all the files in
1381'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1382an installation prefix other than '$ac_default_prefix' using '--prefix',
1383for instance '--prefix=\$HOME'.
1384
1385For better control, use the options below.
1386
1387Fine tuning of the installation directories:
1388  --bindir=DIR            user executables [EPREFIX/bin]
1389  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1390  --libexecdir=DIR        program executables [EPREFIX/libexec]
1391  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1392  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1393  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1394  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1395  --libdir=DIR            object code libraries [EPREFIX/lib]
1396  --includedir=DIR        C header files [PREFIX/include]
1397  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1398  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1399  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1400  --infodir=DIR           info documentation [DATAROOTDIR/info]
1401  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1402  --mandir=DIR            man documentation [DATAROOTDIR/man]
1403  --docdir=DIR            documentation root [DATAROOTDIR/doc/xman]
1404  --htmldir=DIR           html documentation [DOCDIR]
1405  --dvidir=DIR            dvi documentation [DOCDIR]
1406  --pdfdir=DIR            pdf documentation [DOCDIR]
1407  --psdir=DIR             ps documentation [DOCDIR]
1408_ACEOF
1409
1410  cat <<\_ACEOF
1411
1412Program names:
1413  --program-prefix=PREFIX            prepend PREFIX to installed program names
1414  --program-suffix=SUFFIX            append SUFFIX to installed program names
1415  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1416
1417System types:
1418  --build=BUILD     configure for building on BUILD [guessed]
1419  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1420_ACEOF
1421fi
1422
1423if test -n "$ac_init_help"; then
1424  case $ac_init_help in
1425     short | recursive ) echo "Configuration of xman 1.2.0:";;
1426   esac
1427  cat <<\_ACEOF
1428
1429Optional Features:
1430  --disable-option-checking  ignore unrecognized --enable/--with options
1431  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1432  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1433  --enable-silent-rules   less verbose build output (undo: "make V=1")
1434  --disable-silent-rules  verbose build output (undo: "make V=0")
1435  --enable-dependency-tracking
1436                          do not reject slow dependency extractors
1437  --disable-dependency-tracking
1438                          speeds up one-time build
1439  --disable-selective-werror
1440                          Turn off selective compiler errors. (default:
1441                          enabled)
1442  --enable-strict-compilation
1443                          Enable all warnings from compiler and make them
1444                          errors (default: disabled)
1445  --disable-largefile     omit support for large files
1446  --enable-year2038       support timestamps after 2038
1447
1448Optional Packages:
1449  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1450  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1451  --with-helpdir=<path>   Set default directory for xman.help (default:
1452                          ${datadir}/X11)
1453  --with-sysmanpath=<path>
1454                          Set default system man page search path
1455  --with-localmanpath=<path>
1456                          Set default local man page search path
1457  --with-manconfig=<filename>
1458                          Set default system man configuration file
1459  --with-appdefaultdir=<pathname>
1460                          specify directory for app-defaults files (default is
1461                          autodetected)
1462
1463Some influential environment variables:
1464  CC          C compiler command
1465  CFLAGS      C compiler flags
1466  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1467              nonstandard directory <lib dir>
1468  LIBS        libraries to pass to the linker, e.g. -l<library>
1469  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1470              you have headers in a nonstandard directory <include dir>
1471  PKG_CONFIG  path to pkg-config utility
1472  PKG_CONFIG_PATH
1473              directories to add to pkg-config's search path
1474  PKG_CONFIG_LIBDIR
1475              path overriding pkg-config's built-in search path
1476  XMAN_CFLAGS C compiler flags for XMAN, overriding pkg-config
1477  XMAN_LIBS   linker flags for XMAN, overriding pkg-config
1478  APPDEFS_CFLAGS
1479              C compiler flags for APPDEFS, overriding pkg-config
1480  APPDEFS_LIBS
1481              linker flags for APPDEFS, overriding pkg-config
1482
1483Use these variables to override the choices made by 'configure' or to help
1484it to find libraries and programs with nonstandard names/locations.
1485
1486Report bugs to <https://gitlab.freedesktop.org/xorg/app/xman/-/issues/>.
1487_ACEOF
1488ac_status=$?
1489fi
1490
1491if test "$ac_init_help" = "recursive"; then
1492  # If there are subdirs, report their specific --help.
1493  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1494    test -d "$ac_dir" ||
1495      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1496      continue
1497    ac_builddir=.
1498
1499case "$ac_dir" in
1500.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501*)
1502  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1503  # A ".." for each directory in $ac_dir_suffix.
1504  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1505  case $ac_top_builddir_sub in
1506  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1508  esac ;;
1509esac
1510ac_abs_top_builddir=$ac_pwd
1511ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512# for backward compatibility:
1513ac_top_builddir=$ac_top_build_prefix
1514
1515case $srcdir in
1516  .)  # We are building in place.
1517    ac_srcdir=.
1518    ac_top_srcdir=$ac_top_builddir_sub
1519    ac_abs_top_srcdir=$ac_pwd ;;
1520  [\\/]* | ?:[\\/]* )  # Absolute name.
1521    ac_srcdir=$srcdir$ac_dir_suffix;
1522    ac_top_srcdir=$srcdir
1523    ac_abs_top_srcdir=$srcdir ;;
1524  *) # Relative name.
1525    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526    ac_top_srcdir=$ac_top_build_prefix$srcdir
1527    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1528esac
1529ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530
1531    cd "$ac_dir" || { ac_status=$?; continue; }
1532    # Check for configure.gnu first; this name is used for a wrapper for
1533    # Metaconfig's "Configure" on case-insensitive file systems.
1534    if test -f "$ac_srcdir/configure.gnu"; then
1535      echo &&
1536      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1537    elif test -f "$ac_srcdir/configure"; then
1538      echo &&
1539      $SHELL "$ac_srcdir/configure" --help=recursive
1540    else
1541      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1542    fi || ac_status=$?
1543    cd "$ac_pwd" || { ac_status=$?; break; }
1544  done
1545fi
1546
1547test -n "$ac_init_help" && exit $ac_status
1548if $ac_init_version; then
1549  cat <<\_ACEOF
1550xman configure 1.2.0
1551generated by GNU Autoconf 2.72
1552
1553Copyright (C) 2023 Free Software Foundation, Inc.
1554This configure script is free software; the Free Software Foundation
1555gives unlimited permission to copy, distribute and modify it.
1556_ACEOF
1557  exit
1558fi
1559
1560## ------------------------ ##
1561## Autoconf initialization. ##
1562## ------------------------ ##
1563
1564# ac_fn_c_try_compile LINENO
1565# --------------------------
1566# Try to compile conftest.$ac_ext, and return whether this succeeded.
1567ac_fn_c_try_compile ()
1568{
1569  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570  rm -f conftest.$ac_objext conftest.beam
1571  if { { ac_try="$ac_compile"
1572case "(($ac_try" in
1573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574  *) ac_try_echo=$ac_try;;
1575esac
1576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577printf "%s\n" "$ac_try_echo"; } >&5
1578  (eval "$ac_compile") 2>conftest.err
1579  ac_status=$?
1580  if test -s conftest.err; then
1581    grep -v '^ *+' conftest.err >conftest.er1
1582    cat conftest.er1 >&5
1583    mv -f conftest.er1 conftest.err
1584  fi
1585  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586  test $ac_status = 0; } && {
1587	 test -z "$ac_c_werror_flag" ||
1588	 test ! -s conftest.err
1589       } && test -s conftest.$ac_objext
1590then :
1591  ac_retval=0
1592else case e in #(
1593  e) printf "%s\n" "$as_me: failed program was:" >&5
1594sed 's/^/| /' conftest.$ac_ext >&5
1595
1596	ac_retval=1 ;;
1597esac
1598fi
1599  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1600  as_fn_set_status $ac_retval
1601
1602} # ac_fn_c_try_compile
1603
1604# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1605# ------------------------------------------------------------------
1606# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1607# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1608ac_fn_check_decl ()
1609{
1610  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611  as_decl_name=`echo $2|sed 's/ *(.*//'`
1612  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1613printf %s "checking whether $as_decl_name is declared... " >&6; }
1614if eval test \${$3+y}
1615then :
1616  printf %s "(cached) " >&6
1617else case e in #(
1618  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1619  eval ac_save_FLAGS=\$$6
1620  as_fn_append $6 " $5"
1621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622/* end confdefs.h.  */
1623$4
1624int
1625main (void)
1626{
1627#ifndef $as_decl_name
1628#ifdef __cplusplus
1629  (void) $as_decl_use;
1630#else
1631  (void) $as_decl_name;
1632#endif
1633#endif
1634
1635  ;
1636  return 0;
1637}
1638_ACEOF
1639if ac_fn_c_try_compile "$LINENO"
1640then :
1641  eval "$3=yes"
1642else case e in #(
1643  e) eval "$3=no" ;;
1644esac
1645fi
1646rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1647  eval $6=\$ac_save_FLAGS
1648 ;;
1649esac
1650fi
1651eval ac_res=\$$3
1652	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653printf "%s\n" "$ac_res" >&6; }
1654  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655
1656} # ac_fn_check_decl
1657
1658# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1659# -------------------------------------------------------
1660# Tests whether HEADER exists and can be compiled using the include files in
1661# INCLUDES, setting the cache variable VAR accordingly.
1662ac_fn_c_check_header_compile ()
1663{
1664  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666printf %s "checking for $2... " >&6; }
1667if eval test \${$3+y}
1668then :
1669  printf %s "(cached) " >&6
1670else case e in #(
1671  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672/* end confdefs.h.  */
1673$4
1674#include <$2>
1675_ACEOF
1676if ac_fn_c_try_compile "$LINENO"
1677then :
1678  eval "$3=yes"
1679else case e in #(
1680  e) eval "$3=no" ;;
1681esac
1682fi
1683rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1684esac
1685fi
1686eval ac_res=\$$3
1687	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1688printf "%s\n" "$ac_res" >&6; }
1689  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690
1691} # ac_fn_c_check_header_compile
1692
1693# ac_fn_c_try_link LINENO
1694# -----------------------
1695# Try to link conftest.$ac_ext, and return whether this succeeded.
1696ac_fn_c_try_link ()
1697{
1698  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1700  if { { ac_try="$ac_link"
1701case "(($ac_try" in
1702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703  *) ac_try_echo=$ac_try;;
1704esac
1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706printf "%s\n" "$ac_try_echo"; } >&5
1707  (eval "$ac_link") 2>conftest.err
1708  ac_status=$?
1709  if test -s conftest.err; then
1710    grep -v '^ *+' conftest.err >conftest.er1
1711    cat conftest.er1 >&5
1712    mv -f conftest.er1 conftest.err
1713  fi
1714  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715  test $ac_status = 0; } && {
1716	 test -z "$ac_c_werror_flag" ||
1717	 test ! -s conftest.err
1718       } && test -s conftest$ac_exeext && {
1719	 test "$cross_compiling" = yes ||
1720	 test -x conftest$ac_exeext
1721       }
1722then :
1723  ac_retval=0
1724else case e in #(
1725  e) printf "%s\n" "$as_me: failed program was:" >&5
1726sed 's/^/| /' conftest.$ac_ext >&5
1727
1728	ac_retval=1 ;;
1729esac
1730fi
1731  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1732  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1733  # interfere with the next link command; also delete a directory that is
1734  # left behind by Apple's compiler.  We do this before executing the actions.
1735  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737  as_fn_set_status $ac_retval
1738
1739} # ac_fn_c_try_link
1740
1741# ac_fn_c_check_func LINENO FUNC VAR
1742# ----------------------------------
1743# Tests whether FUNC exists, setting the cache variable VAR accordingly
1744ac_fn_c_check_func ()
1745{
1746  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748printf %s "checking for $2... " >&6; }
1749if eval test \${$3+y}
1750then :
1751  printf %s "(cached) " >&6
1752else case e in #(
1753  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754/* end confdefs.h.  */
1755/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1756   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1757#define $2 innocuous_$2
1758
1759/* System header to define __stub macros and hopefully few prototypes,
1760   which can conflict with char $2 (void); below.  */
1761
1762#include <limits.h>
1763#undef $2
1764
1765/* Override any GCC internal prototype to avoid an error.
1766   Use char because int might match the return type of a GCC
1767   builtin and then its argument prototype would still apply.  */
1768#ifdef __cplusplus
1769extern "C"
1770#endif
1771char $2 (void);
1772/* The GNU C library defines this for functions which it implements
1773    to always fail with ENOSYS.  Some functions are actually named
1774    something starting with __ and the normal name is an alias.  */
1775#if defined __stub_$2 || defined __stub___$2
1776choke me
1777#endif
1778
1779int
1780main (void)
1781{
1782return $2 ();
1783  ;
1784  return 0;
1785}
1786_ACEOF
1787if ac_fn_c_try_link "$LINENO"
1788then :
1789  eval "$3=yes"
1790else case e in #(
1791  e) eval "$3=no" ;;
1792esac
1793fi
1794rm -f core conftest.err conftest.$ac_objext conftest.beam \
1795    conftest$ac_exeext conftest.$ac_ext ;;
1796esac
1797fi
1798eval ac_res=\$$3
1799	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800printf "%s\n" "$ac_res" >&6; }
1801  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802
1803} # ac_fn_c_check_func
1804ac_configure_args_raw=
1805for ac_arg
1806do
1807  case $ac_arg in
1808  *\'*)
1809    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1810  esac
1811  as_fn_append ac_configure_args_raw " '$ac_arg'"
1812done
1813
1814case $ac_configure_args_raw in
1815  *$as_nl*)
1816    ac_safe_unquote= ;;
1817  *)
1818    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1819    ac_unsafe_a="$ac_unsafe_z#~"
1820    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1821    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1822esac
1823
1824cat >config.log <<_ACEOF
1825This file contains any messages produced by compilers while
1826running configure, to aid debugging if configure makes a mistake.
1827
1828It was created by xman $as_me 1.2.0, which was
1829generated by GNU Autoconf 2.72.  Invocation command line was
1830
1831  $ $0$ac_configure_args_raw
1832
1833_ACEOF
1834exec 5>>config.log
1835{
1836cat <<_ASUNAME
1837## --------- ##
1838## Platform. ##
1839## --------- ##
1840
1841hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1842uname -m = `(uname -m) 2>/dev/null || echo unknown`
1843uname -r = `(uname -r) 2>/dev/null || echo unknown`
1844uname -s = `(uname -s) 2>/dev/null || echo unknown`
1845uname -v = `(uname -v) 2>/dev/null || echo unknown`
1846
1847/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1848/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1849
1850/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1851/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1852/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1853/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1854/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1855/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1856/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1857
1858_ASUNAME
1859
1860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861for as_dir in $PATH
1862do
1863  IFS=$as_save_IFS
1864  case $as_dir in #(((
1865    '') as_dir=./ ;;
1866    */) ;;
1867    *) as_dir=$as_dir/ ;;
1868  esac
1869    printf "%s\n" "PATH: $as_dir"
1870  done
1871IFS=$as_save_IFS
1872
1873} >&5
1874
1875cat >&5 <<_ACEOF
1876
1877
1878## ----------- ##
1879## Core tests. ##
1880## ----------- ##
1881
1882_ACEOF
1883
1884
1885# Keep a trace of the command line.
1886# Strip out --no-create and --no-recursion so they do not pile up.
1887# Strip out --silent because we don't want to record it for future runs.
1888# Also quote any args containing shell meta-characters.
1889# Make two passes to allow for proper duplicate-argument suppression.
1890ac_configure_args=
1891ac_configure_args0=
1892ac_configure_args1=
1893ac_must_keep_next=false
1894for ac_pass in 1 2
1895do
1896  for ac_arg
1897  do
1898    case $ac_arg in
1899    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1900    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1901    | -silent | --silent | --silen | --sile | --sil)
1902      continue ;;
1903    *\'*)
1904      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1905    esac
1906    case $ac_pass in
1907    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1908    2)
1909      as_fn_append ac_configure_args1 " '$ac_arg'"
1910      if test $ac_must_keep_next = true; then
1911	ac_must_keep_next=false # Got value, back to normal.
1912      else
1913	case $ac_arg in
1914	  *=* | --config-cache | -C | -disable-* | --disable-* \
1915	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1916	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1917	  | -with-* | --with-* | -without-* | --without-* | --x)
1918	    case "$ac_configure_args0 " in
1919	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1920	    esac
1921	    ;;
1922	  -* ) ac_must_keep_next=true ;;
1923	esac
1924      fi
1925      as_fn_append ac_configure_args " '$ac_arg'"
1926      ;;
1927    esac
1928  done
1929done
1930{ ac_configure_args0=; unset ac_configure_args0;}
1931{ ac_configure_args1=; unset ac_configure_args1;}
1932
1933# When interrupted or exit'd, cleanup temporary files, and complete
1934# config.log.  We remove comments because anyway the quotes in there
1935# would cause problems or look ugly.
1936# WARNING: Use '\'' to represent an apostrophe within the trap.
1937# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1938trap 'exit_status=$?
1939  # Sanitize IFS.
1940  IFS=" ""	$as_nl"
1941  # Save into config.log some information that might help in debugging.
1942  {
1943    echo
1944
1945    printf "%s\n" "## ---------------- ##
1946## Cache variables. ##
1947## ---------------- ##"
1948    echo
1949    # The following way of writing the cache mishandles newlines in values,
1950(
1951  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1952    eval ac_val=\$$ac_var
1953    case $ac_val in #(
1954    *${as_nl}*)
1955      case $ac_var in #(
1956      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1957printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1958      esac
1959      case $ac_var in #(
1960      _ | IFS | as_nl) ;; #(
1961      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1962      *) { eval $ac_var=; unset $ac_var;} ;;
1963      esac ;;
1964    esac
1965  done
1966  (set) 2>&1 |
1967    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1968    *${as_nl}ac_space=\ *)
1969      sed -n \
1970	"s/'\''/'\''\\\\'\'''\''/g;
1971	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1972      ;; #(
1973    *)
1974      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1975      ;;
1976    esac |
1977    sort
1978)
1979    echo
1980
1981    printf "%s\n" "## ----------------- ##
1982## Output variables. ##
1983## ----------------- ##"
1984    echo
1985    for ac_var in $ac_subst_vars
1986    do
1987      eval ac_val=\$$ac_var
1988      case $ac_val in
1989      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1990      esac
1991      printf "%s\n" "$ac_var='\''$ac_val'\''"
1992    done | sort
1993    echo
1994
1995    if test -n "$ac_subst_files"; then
1996      printf "%s\n" "## ------------------- ##
1997## File substitutions. ##
1998## ------------------- ##"
1999      echo
2000      for ac_var in $ac_subst_files
2001      do
2002	eval ac_val=\$$ac_var
2003	case $ac_val in
2004	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2005	esac
2006	printf "%s\n" "$ac_var='\''$ac_val'\''"
2007      done | sort
2008      echo
2009    fi
2010
2011    if test -s confdefs.h; then
2012      printf "%s\n" "## ----------- ##
2013## confdefs.h. ##
2014## ----------- ##"
2015      echo
2016      cat confdefs.h
2017      echo
2018    fi
2019    test "$ac_signal" != 0 &&
2020      printf "%s\n" "$as_me: caught signal $ac_signal"
2021    printf "%s\n" "$as_me: exit $exit_status"
2022  } >&5
2023  rm -f core *.core core.conftest.* &&
2024    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2025    exit $exit_status
2026' 0
2027for ac_signal in 1 2 13 15; do
2028  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2029done
2030ac_signal=0
2031
2032# confdefs.h avoids OS command line length limits that DEFS can exceed.
2033rm -f -r conftest* confdefs.h
2034
2035printf "%s\n" "/* confdefs.h */" > confdefs.h
2036
2037# Predefined preprocessor variables.
2038
2039printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2040
2041printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2042
2043printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2044
2045printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2046
2047printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2048
2049printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2050
2051
2052# Let the site file select an alternate cache file if it wants to.
2053# Prefer an explicitly selected file to automatically selected ones.
2054if test -n "$CONFIG_SITE"; then
2055  ac_site_files="$CONFIG_SITE"
2056elif test "x$prefix" != xNONE; then
2057  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2058else
2059  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2060fi
2061
2062for ac_site_file in $ac_site_files
2063do
2064  case $ac_site_file in #(
2065  */*) :
2066     ;; #(
2067  *) :
2068    ac_site_file=./$ac_site_file ;;
2069esac
2070  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2071    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2072printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2073    sed 's/^/| /' "$ac_site_file" >&5
2074    . "$ac_site_file" \
2075      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2076printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2077as_fn_error $? "failed to load site script $ac_site_file
2078See 'config.log' for more details" "$LINENO" 5; }
2079  fi
2080done
2081
2082if test -r "$cache_file"; then
2083  # Some versions of bash will fail to source /dev/null (special files
2084  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2085  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2086    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2087printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2088    case $cache_file in
2089      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2090      *)                      . "./$cache_file";;
2091    esac
2092  fi
2093else
2094  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2095printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2096  >$cache_file
2097fi
2098
2099# Test code for whether the C compiler supports C89 (global declarations)
2100ac_c_conftest_c89_globals='
2101/* Does the compiler advertise C89 conformance?
2102   Do not test the value of __STDC__, because some compilers set it to 0
2103   while being otherwise adequately conformant. */
2104#if !defined __STDC__
2105# error "Compiler does not advertise C89 conformance"
2106#endif
2107
2108#include <stddef.h>
2109#include <stdarg.h>
2110struct stat;
2111/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2112struct buf { int x; };
2113struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2114static char *e (char **p, int i)
2115{
2116  return p[i];
2117}
2118static char *f (char * (*g) (char **, int), char **p, ...)
2119{
2120  char *s;
2121  va_list v;
2122  va_start (v,p);
2123  s = g (p, va_arg (v,int));
2124  va_end (v);
2125  return s;
2126}
2127
2128/* C89 style stringification. */
2129#define noexpand_stringify(a) #a
2130const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2131
2132/* C89 style token pasting.  Exercises some of the corner cases that
2133   e.g. old MSVC gets wrong, but not very hard. */
2134#define noexpand_concat(a,b) a##b
2135#define expand_concat(a,b) noexpand_concat(a,b)
2136extern int vA;
2137extern int vbee;
2138#define aye A
2139#define bee B
2140int *pvA = &expand_concat(v,aye);
2141int *pvbee = &noexpand_concat(v,bee);
2142
2143/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2144   function prototypes and stuff, but not \xHH hex character constants.
2145   These do not provoke an error unfortunately, instead are silently treated
2146   as an "x".  The following induces an error, until -std is added to get
2147   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2148   array size at least.  It is necessary to write \x00 == 0 to get something
2149   that is true only with -std.  */
2150int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2151
2152/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2153   inside strings and character constants.  */
2154#define FOO(x) '\''x'\''
2155int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2156
2157int test (int i, double x);
2158struct s1 {int (*f) (int a);};
2159struct s2 {int (*f) (double a);};
2160int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2161               int, int);'
2162
2163# Test code for whether the C compiler supports C89 (body of main).
2164ac_c_conftest_c89_main='
2165ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2166'
2167
2168# Test code for whether the C compiler supports C99 (global declarations)
2169ac_c_conftest_c99_globals='
2170/* Does the compiler advertise C99 conformance? */
2171#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2172# error "Compiler does not advertise C99 conformance"
2173#endif
2174
2175// See if C++-style comments work.
2176
2177#include <stdbool.h>
2178extern int puts (const char *);
2179extern int printf (const char *, ...);
2180extern int dprintf (int, const char *, ...);
2181extern void *malloc (size_t);
2182extern void free (void *);
2183
2184// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2185// dprintf is used instead of fprintf to avoid needing to declare
2186// FILE and stderr.
2187#define debug(...) dprintf (2, __VA_ARGS__)
2188#define showlist(...) puts (#__VA_ARGS__)
2189#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2190static void
2191test_varargs_macros (void)
2192{
2193  int x = 1234;
2194  int y = 5678;
2195  debug ("Flag");
2196  debug ("X = %d\n", x);
2197  showlist (The first, second, and third items.);
2198  report (x>y, "x is %d but y is %d", x, y);
2199}
2200
2201// Check long long types.
2202#define BIG64 18446744073709551615ull
2203#define BIG32 4294967295ul
2204#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2205#if !BIG_OK
2206  #error "your preprocessor is broken"
2207#endif
2208#if BIG_OK
2209#else
2210  #error "your preprocessor is broken"
2211#endif
2212static long long int bignum = -9223372036854775807LL;
2213static unsigned long long int ubignum = BIG64;
2214
2215struct incomplete_array
2216{
2217  int datasize;
2218  double data[];
2219};
2220
2221struct named_init {
2222  int number;
2223  const wchar_t *name;
2224  double average;
2225};
2226
2227typedef const char *ccp;
2228
2229static inline int
2230test_restrict (ccp restrict text)
2231{
2232  // Iterate through items via the restricted pointer.
2233  // Also check for declarations in for loops.
2234  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2235    continue;
2236  return 0;
2237}
2238
2239// Check varargs and va_copy.
2240static bool
2241test_varargs (const char *format, ...)
2242{
2243  va_list args;
2244  va_start (args, format);
2245  va_list args_copy;
2246  va_copy (args_copy, args);
2247
2248  const char *str = "";
2249  int number = 0;
2250  float fnumber = 0;
2251
2252  while (*format)
2253    {
2254      switch (*format++)
2255	{
2256	case '\''s'\'': // string
2257	  str = va_arg (args_copy, const char *);
2258	  break;
2259	case '\''d'\'': // int
2260	  number = va_arg (args_copy, int);
2261	  break;
2262	case '\''f'\'': // float
2263	  fnumber = va_arg (args_copy, double);
2264	  break;
2265	default:
2266	  break;
2267	}
2268    }
2269  va_end (args_copy);
2270  va_end (args);
2271
2272  return *str && number && fnumber;
2273}
2274'
2275
2276# Test code for whether the C compiler supports C99 (body of main).
2277ac_c_conftest_c99_main='
2278  // Check bool.
2279  _Bool success = false;
2280  success |= (argc != 0);
2281
2282  // Check restrict.
2283  if (test_restrict ("String literal") == 0)
2284    success = true;
2285  char *restrict newvar = "Another string";
2286
2287  // Check varargs.
2288  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2289  test_varargs_macros ();
2290
2291  // Check flexible array members.
2292  struct incomplete_array *ia =
2293    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2294  ia->datasize = 10;
2295  for (int i = 0; i < ia->datasize; ++i)
2296    ia->data[i] = i * 1.234;
2297  // Work around memory leak warnings.
2298  free (ia);
2299
2300  // Check named initializers.
2301  struct named_init ni = {
2302    .number = 34,
2303    .name = L"Test wide string",
2304    .average = 543.34343,
2305  };
2306
2307  ni.number = 58;
2308
2309  int dynamic_array[ni.number];
2310  dynamic_array[0] = argv[0][0];
2311  dynamic_array[ni.number - 1] = 543;
2312
2313  // work around unused variable warnings
2314  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2315	 || dynamic_array[ni.number - 1] != 543);
2316'
2317
2318# Test code for whether the C compiler supports C11 (global declarations)
2319ac_c_conftest_c11_globals='
2320/* Does the compiler advertise C11 conformance? */
2321#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2322# error "Compiler does not advertise C11 conformance"
2323#endif
2324
2325// Check _Alignas.
2326char _Alignas (double) aligned_as_double;
2327char _Alignas (0) no_special_alignment;
2328extern char aligned_as_int;
2329char _Alignas (0) _Alignas (int) aligned_as_int;
2330
2331// Check _Alignof.
2332enum
2333{
2334  int_alignment = _Alignof (int),
2335  int_array_alignment = _Alignof (int[100]),
2336  char_alignment = _Alignof (char)
2337};
2338_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2339
2340// Check _Noreturn.
2341int _Noreturn does_not_return (void) { for (;;) continue; }
2342
2343// Check _Static_assert.
2344struct test_static_assert
2345{
2346  int x;
2347  _Static_assert (sizeof (int) <= sizeof (long int),
2348                  "_Static_assert does not work in struct");
2349  long int y;
2350};
2351
2352// Check UTF-8 literals.
2353#define u8 syntax error!
2354char const utf8_literal[] = u8"happens to be ASCII" "another string";
2355
2356// Check duplicate typedefs.
2357typedef long *long_ptr;
2358typedef long int *long_ptr;
2359typedef long_ptr long_ptr;
2360
2361// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2362struct anonymous
2363{
2364  union {
2365    struct { int i; int j; };
2366    struct { int k; long int l; } w;
2367  };
2368  int m;
2369} v1;
2370'
2371
2372# Test code for whether the C compiler supports C11 (body of main).
2373ac_c_conftest_c11_main='
2374  _Static_assert ((offsetof (struct anonymous, i)
2375		   == offsetof (struct anonymous, w.k)),
2376		  "Anonymous union alignment botch");
2377  v1.i = 2;
2378  v1.w.k = 5;
2379  ok |= v1.i != 5;
2380'
2381
2382# Test code for whether the C compiler supports C11 (complete).
2383ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2384${ac_c_conftest_c99_globals}
2385${ac_c_conftest_c11_globals}
2386
2387int
2388main (int argc, char **argv)
2389{
2390  int ok = 0;
2391  ${ac_c_conftest_c89_main}
2392  ${ac_c_conftest_c99_main}
2393  ${ac_c_conftest_c11_main}
2394  return ok;
2395}
2396"
2397
2398# Test code for whether the C compiler supports C99 (complete).
2399ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2400${ac_c_conftest_c99_globals}
2401
2402int
2403main (int argc, char **argv)
2404{
2405  int ok = 0;
2406  ${ac_c_conftest_c89_main}
2407  ${ac_c_conftest_c99_main}
2408  return ok;
2409}
2410"
2411
2412# Test code for whether the C compiler supports C89 (complete).
2413ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2414
2415int
2416main (int argc, char **argv)
2417{
2418  int ok = 0;
2419  ${ac_c_conftest_c89_main}
2420  return ok;
2421}
2422"
2423
2424as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2425as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2426as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2427as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2428as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2429as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2430as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2431as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2432as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2433
2434# Auxiliary files required by this configure script.
2435ac_aux_files="config.guess config.sub compile missing install-sh"
2436
2437# Locations in which to look for auxiliary files.
2438ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2439
2440# Search for a directory containing all of the required auxiliary files,
2441# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2442# If we don't find one directory that contains all the files we need,
2443# we report the set of missing files from the *first* directory in
2444# $ac_aux_dir_candidates and give up.
2445ac_missing_aux_files=""
2446ac_first_candidate=:
2447printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449as_found=false
2450for as_dir in $ac_aux_dir_candidates
2451do
2452  IFS=$as_save_IFS
2453  case $as_dir in #(((
2454    '') as_dir=./ ;;
2455    */) ;;
2456    *) as_dir=$as_dir/ ;;
2457  esac
2458  as_found=:
2459
2460  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2461  ac_aux_dir_found=yes
2462  ac_install_sh=
2463  for ac_aux in $ac_aux_files
2464  do
2465    # As a special case, if "install-sh" is required, that requirement
2466    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2467    # and $ac_install_sh is set appropriately for whichever one is found.
2468    if test x"$ac_aux" = x"install-sh"
2469    then
2470      if test -f "${as_dir}install-sh"; then
2471        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2472        ac_install_sh="${as_dir}install-sh -c"
2473      elif test -f "${as_dir}install.sh"; then
2474        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2475        ac_install_sh="${as_dir}install.sh -c"
2476      elif test -f "${as_dir}shtool"; then
2477        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2478        ac_install_sh="${as_dir}shtool install -c"
2479      else
2480        ac_aux_dir_found=no
2481        if $ac_first_candidate; then
2482          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2483        else
2484          break
2485        fi
2486      fi
2487    else
2488      if test -f "${as_dir}${ac_aux}"; then
2489        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2490      else
2491        ac_aux_dir_found=no
2492        if $ac_first_candidate; then
2493          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2494        else
2495          break
2496        fi
2497      fi
2498    fi
2499  done
2500  if test "$ac_aux_dir_found" = yes; then
2501    ac_aux_dir="$as_dir"
2502    break
2503  fi
2504  ac_first_candidate=false
2505
2506  as_found=false
2507done
2508IFS=$as_save_IFS
2509if $as_found
2510then :
2511
2512else case e in #(
2513  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2514esac
2515fi
2516
2517
2518# These three variables are undocumented and unsupported,
2519# and are intended to be withdrawn in a future Autoconf release.
2520# They can cause serious problems if a builder's source tree is in a directory
2521# whose full name contains unusual characters.
2522if test -f "${ac_aux_dir}config.guess"; then
2523  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2524fi
2525if test -f "${ac_aux_dir}config.sub"; then
2526  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2527fi
2528if test -f "$ac_aux_dir/configure"; then
2529  ac_configure="$SHELL ${ac_aux_dir}configure"
2530fi
2531
2532# Check that the precious variables saved in the cache have kept the same
2533# value.
2534ac_cache_corrupted=false
2535for ac_var in $ac_precious_vars; do
2536  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2537  eval ac_new_set=\$ac_env_${ac_var}_set
2538  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2539  eval ac_new_val=\$ac_env_${ac_var}_value
2540  case $ac_old_set,$ac_new_set in
2541    set,)
2542      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2543printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2544      ac_cache_corrupted=: ;;
2545    ,set)
2546      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2547printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2548      ac_cache_corrupted=: ;;
2549    ,);;
2550    *)
2551      if test "x$ac_old_val" != "x$ac_new_val"; then
2552	# differences in whitespace do not lead to failure.
2553	ac_old_val_w=`echo x $ac_old_val`
2554	ac_new_val_w=`echo x $ac_new_val`
2555	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2556	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2557printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2558	  ac_cache_corrupted=:
2559	else
2560	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2561printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2562	  eval $ac_var=\$ac_old_val
2563	fi
2564	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
2565printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
2566	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
2567printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2568      fi;;
2569  esac
2570  # Pass precious variables to config.status.
2571  if test "$ac_new_set" = set; then
2572    case $ac_new_val in
2573    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2574    *) ac_arg=$ac_var=$ac_new_val ;;
2575    esac
2576    case " $ac_configure_args " in
2577      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2578      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2579    esac
2580  fi
2581done
2582if $ac_cache_corrupted; then
2583  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2584printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2585  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2586printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2587  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2588	    and start over" "$LINENO" 5
2589fi
2590## -------------------- ##
2591## Main body of script. ##
2592## -------------------- ##
2593
2594ac_ext=c
2595ac_cpp='$CPP $CPPFLAGS'
2596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2598ac_compiler_gnu=$ac_cv_c_compiler_gnu
2599
2600
2601
2602ac_config_headers="$ac_config_headers config.h"
2603
2604
2605# Initialize Automake
2606am__api_version='1.16'
2607
2608
2609
2610  # Find a good install program.  We prefer a C program (faster),
2611# so one script is as good as another.  But avoid the broken or
2612# incompatible versions:
2613# SysV /etc/install, /usr/sbin/install
2614# SunOS /usr/etc/install
2615# IRIX /sbin/install
2616# AIX /bin/install
2617# AmigaOS /C/install, which installs bootblocks on floppy discs
2618# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2619# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2620# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2621# OS/2's system install, which has a completely different semantic
2622# ./install, which can be erroneously created by make from ./install.sh.
2623# Reject install programs that cannot install multiple files.
2624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2625printf %s "checking for a BSD-compatible install... " >&6; }
2626if test -z "$INSTALL"; then
2627if test ${ac_cv_path_install+y}
2628then :
2629  printf %s "(cached) " >&6
2630else case e in #(
2631  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632for as_dir in $PATH
2633do
2634  IFS=$as_save_IFS
2635  case $as_dir in #(((
2636    '') as_dir=./ ;;
2637    */) ;;
2638    *) as_dir=$as_dir/ ;;
2639  esac
2640    # Account for fact that we put trailing slashes in our PATH walk.
2641case $as_dir in #((
2642  ./ | /[cC]/* | \
2643  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2644  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2645  /usr/ucb/* ) ;;
2646  *)
2647    # OSF1 and SCO ODT 3.0 have their own names for install.
2648    # Don't use installbsd from OSF since it installs stuff as root
2649    # by default.
2650    for ac_prog in ginstall scoinst install; do
2651      for ac_exec_ext in '' $ac_executable_extensions; do
2652	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2653	  if test $ac_prog = install &&
2654	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2655	    # AIX install.  It has an incompatible calling convention.
2656	    :
2657	  elif test $ac_prog = install &&
2658	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2659	    # program-specific install script used by HP pwplus--don't use.
2660	    :
2661	  else
2662	    rm -rf conftest.one conftest.two conftest.dir
2663	    echo one > conftest.one
2664	    echo two > conftest.two
2665	    mkdir conftest.dir
2666	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2667	      test -s conftest.one && test -s conftest.two &&
2668	      test -s conftest.dir/conftest.one &&
2669	      test -s conftest.dir/conftest.two
2670	    then
2671	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2672	      break 3
2673	    fi
2674	  fi
2675	fi
2676      done
2677    done
2678    ;;
2679esac
2680
2681  done
2682IFS=$as_save_IFS
2683
2684rm -rf conftest.one conftest.two conftest.dir
2685 ;;
2686esac
2687fi
2688  if test ${ac_cv_path_install+y}; then
2689    INSTALL=$ac_cv_path_install
2690  else
2691    # As a last resort, use the slow shell script.  Don't cache a
2692    # value for INSTALL within a source directory, because that will
2693    # break other packages using the cache if that directory is
2694    # removed, or if the value is a relative name.
2695    INSTALL=$ac_install_sh
2696  fi
2697fi
2698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2699printf "%s\n" "$INSTALL" >&6; }
2700
2701# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2702# It thinks the first close brace ends the variable substitution.
2703test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2704
2705test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2706
2707test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2708
2709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2710printf %s "checking whether build environment is sane... " >&6; }
2711# Reject unsafe characters in $srcdir or the absolute working directory
2712# name.  Accept space and tab only in the latter.
2713am_lf='
2714'
2715case `pwd` in
2716  *[\\\"\#\$\&\'\`$am_lf]*)
2717    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2718esac
2719case $srcdir in
2720  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2721    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2722esac
2723
2724# Do 'set' in a subshell so we don't clobber the current shell's
2725# arguments.  Must try -L first in case configure is actually a
2726# symlink; some systems play weird games with the mod time of symlinks
2727# (eg FreeBSD returns the mod time of the symlink's containing
2728# directory).
2729if (
2730   am_has_slept=no
2731   for am_try in 1 2; do
2732     echo "timestamp, slept: $am_has_slept" > conftest.file
2733     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2734     if test "$*" = "X"; then
2735	# -L didn't work.
2736	set X `ls -t "$srcdir/configure" conftest.file`
2737     fi
2738     if test "$*" != "X $srcdir/configure conftest.file" \
2739	&& test "$*" != "X conftest.file $srcdir/configure"; then
2740
2741	# If neither matched, then we have a broken ls.  This can happen
2742	# if, for instance, CONFIG_SHELL is bash and it inherits a
2743	# broken ls alias from the environment.  This has actually
2744	# happened.  Such a system could not be considered "sane".
2745	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2746  alias in your environment" "$LINENO" 5
2747     fi
2748     if test "$2" = conftest.file || test $am_try -eq 2; then
2749       break
2750     fi
2751     # Just in case.
2752     sleep 1
2753     am_has_slept=yes
2754   done
2755   test "$2" = conftest.file
2756   )
2757then
2758   # Ok.
2759   :
2760else
2761   as_fn_error $? "newly created file is older than distributed files!
2762Check your system clock" "$LINENO" 5
2763fi
2764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2765printf "%s\n" "yes" >&6; }
2766# If we didn't sleep, we still need to ensure time stamps of config.status and
2767# generated files are strictly newer.
2768am_sleep_pid=
2769if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2770  ( sleep 1 ) &
2771  am_sleep_pid=$!
2772fi
2773
2774rm -f conftest.file
2775
2776test "$program_prefix" != NONE &&
2777  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2778# Use a double $ so make ignores it.
2779test "$program_suffix" != NONE &&
2780  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2781# Double any \ or $.
2782# By default was 's,x,x', remove it if useless.
2783ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2784program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2785
2786
2787# Expand $ac_aux_dir to an absolute path.
2788am_aux_dir=`cd "$ac_aux_dir" && pwd`
2789
2790
2791  if test x"${MISSING+set}" != xset; then
2792  MISSING="\${SHELL} '$am_aux_dir/missing'"
2793fi
2794# Use eval to expand $SHELL
2795if eval "$MISSING --is-lightweight"; then
2796  am_missing_run="$MISSING "
2797else
2798  am_missing_run=
2799  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2800printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2801fi
2802
2803if test x"${install_sh+set}" != xset; then
2804  case $am_aux_dir in
2805  *\ * | *\	*)
2806    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2807  *)
2808    install_sh="\${SHELL} $am_aux_dir/install-sh"
2809  esac
2810fi
2811
2812# Installed binaries are usually stripped using 'strip' when the user
2813# run "make install-strip".  However 'strip' might not be the right
2814# tool to use in cross-compilation environments, therefore Automake
2815# will honor the 'STRIP' environment variable to overrule this program.
2816if test "$cross_compiling" != no; then
2817  if test -n "$ac_tool_prefix"; then
2818  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2819set dummy ${ac_tool_prefix}strip; ac_word=$2
2820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821printf %s "checking for $ac_word... " >&6; }
2822if test ${ac_cv_prog_STRIP+y}
2823then :
2824  printf %s "(cached) " >&6
2825else case e in #(
2826  e) if test -n "$STRIP"; then
2827  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2828else
2829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830for as_dir in $PATH
2831do
2832  IFS=$as_save_IFS
2833  case $as_dir in #(((
2834    '') as_dir=./ ;;
2835    */) ;;
2836    *) as_dir=$as_dir/ ;;
2837  esac
2838    for ac_exec_ext in '' $ac_executable_extensions; do
2839  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2840    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2841    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2842    break 2
2843  fi
2844done
2845  done
2846IFS=$as_save_IFS
2847
2848fi ;;
2849esac
2850fi
2851STRIP=$ac_cv_prog_STRIP
2852if test -n "$STRIP"; then
2853  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2854printf "%s\n" "$STRIP" >&6; }
2855else
2856  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857printf "%s\n" "no" >&6; }
2858fi
2859
2860
2861fi
2862if test -z "$ac_cv_prog_STRIP"; then
2863  ac_ct_STRIP=$STRIP
2864  # Extract the first word of "strip", so it can be a program name with args.
2865set dummy strip; ac_word=$2
2866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867printf %s "checking for $ac_word... " >&6; }
2868if test ${ac_cv_prog_ac_ct_STRIP+y}
2869then :
2870  printf %s "(cached) " >&6
2871else case e in #(
2872  e) if test -n "$ac_ct_STRIP"; then
2873  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2874else
2875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876for as_dir in $PATH
2877do
2878  IFS=$as_save_IFS
2879  case $as_dir in #(((
2880    '') as_dir=./ ;;
2881    */) ;;
2882    *) as_dir=$as_dir/ ;;
2883  esac
2884    for ac_exec_ext in '' $ac_executable_extensions; do
2885  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2886    ac_cv_prog_ac_ct_STRIP="strip"
2887    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2888    break 2
2889  fi
2890done
2891  done
2892IFS=$as_save_IFS
2893
2894fi ;;
2895esac
2896fi
2897ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2898if test -n "$ac_ct_STRIP"; then
2899  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2900printf "%s\n" "$ac_ct_STRIP" >&6; }
2901else
2902  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903printf "%s\n" "no" >&6; }
2904fi
2905
2906  if test "x$ac_ct_STRIP" = x; then
2907    STRIP=":"
2908  else
2909    case $cross_compiling:$ac_tool_warned in
2910yes:)
2911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2912printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2913ac_tool_warned=yes ;;
2914esac
2915    STRIP=$ac_ct_STRIP
2916  fi
2917else
2918  STRIP="$ac_cv_prog_STRIP"
2919fi
2920
2921fi
2922INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2923
2924
2925  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2926printf %s "checking for a race-free mkdir -p... " >&6; }
2927if test -z "$MKDIR_P"; then
2928  if test ${ac_cv_path_mkdir+y}
2929then :
2930  printf %s "(cached) " >&6
2931else case e in #(
2932  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2934do
2935  IFS=$as_save_IFS
2936  case $as_dir in #(((
2937    '') as_dir=./ ;;
2938    */) ;;
2939    *) as_dir=$as_dir/ ;;
2940  esac
2941    for ac_prog in mkdir gmkdir; do
2942	 for ac_exec_ext in '' $ac_executable_extensions; do
2943	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2944	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2945	     'mkdir ('*'coreutils) '* | \
2946	     *'BusyBox '* | \
2947	     'mkdir (fileutils) '4.1*)
2948	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2949	       break 3;;
2950	   esac
2951	 done
2952       done
2953  done
2954IFS=$as_save_IFS
2955 ;;
2956esac
2957fi
2958
2959  test -d ./--version && rmdir ./--version
2960  if test ${ac_cv_path_mkdir+y}; then
2961    MKDIR_P="$ac_cv_path_mkdir -p"
2962  else
2963    # As a last resort, use plain mkdir -p,
2964    # in the hope it doesn't have the bugs of ancient mkdir.
2965    MKDIR_P='mkdir -p'
2966  fi
2967fi
2968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2969printf "%s\n" "$MKDIR_P" >&6; }
2970
2971for ac_prog in gawk mawk nawk awk
2972do
2973  # Extract the first word of "$ac_prog", so it can be a program name with args.
2974set dummy $ac_prog; ac_word=$2
2975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976printf %s "checking for $ac_word... " >&6; }
2977if test ${ac_cv_prog_AWK+y}
2978then :
2979  printf %s "(cached) " >&6
2980else case e in #(
2981  e) if test -n "$AWK"; then
2982  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2983else
2984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985for as_dir in $PATH
2986do
2987  IFS=$as_save_IFS
2988  case $as_dir in #(((
2989    '') as_dir=./ ;;
2990    */) ;;
2991    *) as_dir=$as_dir/ ;;
2992  esac
2993    for ac_exec_ext in '' $ac_executable_extensions; do
2994  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2995    ac_cv_prog_AWK="$ac_prog"
2996    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2997    break 2
2998  fi
2999done
3000  done
3001IFS=$as_save_IFS
3002
3003fi ;;
3004esac
3005fi
3006AWK=$ac_cv_prog_AWK
3007if test -n "$AWK"; then
3008  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3009printf "%s\n" "$AWK" >&6; }
3010else
3011  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012printf "%s\n" "no" >&6; }
3013fi
3014
3015
3016  test -n "$AWK" && break
3017done
3018
3019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3020printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3021set x ${MAKE-make}
3022ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3023if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3024then :
3025  printf %s "(cached) " >&6
3026else case e in #(
3027  e) cat >conftest.make <<\_ACEOF
3028SHELL = /bin/sh
3029all:
3030	@echo '@@@%%%=$(MAKE)=@@@%%%'
3031_ACEOF
3032# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3033case `${MAKE-make} -f conftest.make 2>/dev/null` in
3034  *@@@%%%=?*=@@@%%%*)
3035    eval ac_cv_prog_make_${ac_make}_set=yes;;
3036  *)
3037    eval ac_cv_prog_make_${ac_make}_set=no;;
3038esac
3039rm -f conftest.make ;;
3040esac
3041fi
3042if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3043  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3044printf "%s\n" "yes" >&6; }
3045  SET_MAKE=
3046else
3047  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048printf "%s\n" "no" >&6; }
3049  SET_MAKE="MAKE=${MAKE-make}"
3050fi
3051
3052rm -rf .tst 2>/dev/null
3053mkdir .tst 2>/dev/null
3054if test -d .tst; then
3055  am__leading_dot=.
3056else
3057  am__leading_dot=_
3058fi
3059rmdir .tst 2>/dev/null
3060
3061# Check whether --enable-silent-rules was given.
3062if test ${enable_silent_rules+y}
3063then :
3064  enableval=$enable_silent_rules;
3065fi
3066
3067case $enable_silent_rules in # (((
3068  yes) AM_DEFAULT_VERBOSITY=0;;
3069   no) AM_DEFAULT_VERBOSITY=1;;
3070    *) AM_DEFAULT_VERBOSITY=1;;
3071esac
3072am_make=${MAKE-make}
3073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3074printf %s "checking whether $am_make supports nested variables... " >&6; }
3075if test ${am_cv_make_support_nested_variables+y}
3076then :
3077  printf %s "(cached) " >&6
3078else case e in #(
3079  e) if printf "%s\n" 'TRUE=$(BAR$(V))
3080BAR0=false
3081BAR1=true
3082V=1
3083am__doit:
3084	@$(TRUE)
3085.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3086  am_cv_make_support_nested_variables=yes
3087else
3088  am_cv_make_support_nested_variables=no
3089fi ;;
3090esac
3091fi
3092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3093printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3094if test $am_cv_make_support_nested_variables = yes; then
3095    AM_V='$(V)'
3096  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3097else
3098  AM_V=$AM_DEFAULT_VERBOSITY
3099  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3100fi
3101AM_BACKSLASH='\'
3102
3103if test "`cd $srcdir && pwd`" != "`pwd`"; then
3104  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3105  # is not polluted with repeated "-I."
3106  am__isrc=' -I$(srcdir)'
3107  # test to see if srcdir already configured
3108  if test -f $srcdir/config.status; then
3109    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3110  fi
3111fi
3112
3113# test whether we have cygpath
3114if test -z "$CYGPATH_W"; then
3115  if (cygpath --version) >/dev/null 2>/dev/null; then
3116    CYGPATH_W='cygpath -w'
3117  else
3118    CYGPATH_W=echo
3119  fi
3120fi
3121
3122
3123# Define the identity of the package.
3124 PACKAGE='xman'
3125 VERSION='1.2.0'
3126
3127
3128printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3129
3130
3131printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3132
3133# Some tools Automake needs.
3134
3135ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3136
3137
3138AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3139
3140
3141AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3142
3143
3144AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3145
3146
3147MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3148
3149# For better backward compatibility.  To be removed once Automake 1.9.x
3150# dies out for good.  For more background, see:
3151# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3152# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3153mkdir_p='$(MKDIR_P)'
3154
3155# We need awk for the "check" target (and possibly the TAP driver).  The
3156# system "awk" is bad on some platforms.
3157# Always define AMTAR for backward compatibility.  Yes, it's still used
3158# in the wild :-(  We should find a proper way to deprecate it ...
3159AMTAR='$${TAR-tar}'
3160
3161
3162# We'll loop over all known methods to create a tar archive until one works.
3163_am_tools='gnutar  pax cpio none'
3164
3165am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3166
3167
3168
3169
3170
3171# Variables for tags utilities; see am/tags.am
3172if test -z "$CTAGS"; then
3173  CTAGS=ctags
3174fi
3175
3176if test -z "$ETAGS"; then
3177  ETAGS=etags
3178fi
3179
3180if test -z "$CSCOPE"; then
3181  CSCOPE=cscope
3182fi
3183
3184
3185
3186# POSIX will say in a future version that running "rm -f" with no argument
3187# is OK; and we want to be able to make that assumption in our Makefile
3188# recipes.  So use an aggressive probe to check that the usage we want is
3189# actually supported "in the wild" to an acceptable degree.
3190# See automake bug#10828.
3191# To make any issue more visible, cause the running configure to be aborted
3192# by default if the 'rm' program in use doesn't match our expectations; the
3193# user can still override this though.
3194if rm -f && rm -fr && rm -rf; then : OK; else
3195  cat >&2 <<'END'
3196Oops!
3197
3198Your 'rm' program seems unable to run without file operands specified
3199on the command line, even when the '-f' option is present.  This is contrary
3200to the behaviour of most rm programs out there, and not conforming with
3201the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3202
3203Please tell bug-automake@gnu.org about your system, including the value
3204of your $PATH and any error possibly output before this message.  This
3205can help us improve future automake versions.
3206
3207END
3208  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3209    echo 'Configuration will proceed anyway, since you have set the' >&2
3210    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3211    echo >&2
3212  else
3213    cat >&2 <<'END'
3214Aborting the configuration process, to ensure you take notice of the issue.
3215
3216You can download and install GNU coreutils to get an 'rm' implementation
3217that behaves properly: <https://www.gnu.org/software/coreutils/>.
3218
3219If you want to complete the configuration process using your problematic
3220'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3221to "yes", and re-run configure.
3222
3223END
3224    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3225  fi
3226fi
3227
3228
3229# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250DEPDIR="${am__leading_dot}deps"
3251
3252ac_config_commands="$ac_config_commands depfiles"
3253
3254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3255printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3256cat > confinc.mk << 'END'
3257am__doit:
3258	@echo this is the am__doit target >confinc.out
3259.PHONY: am__doit
3260END
3261am__include="#"
3262am__quote=
3263# BSD make does it like this.
3264echo '.include "confinc.mk" # ignored' > confmf.BSD
3265# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3266echo 'include confinc.mk # ignored' > confmf.GNU
3267_am_result=no
3268for s in GNU BSD; do
3269  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3270   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3271   ac_status=$?
3272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273   (exit $ac_status); }
3274  case $?:`cat confinc.out 2>/dev/null` in #(
3275  '0:this is the am__doit target') :
3276    case $s in #(
3277  BSD) :
3278    am__include='.include' am__quote='"' ;; #(
3279  *) :
3280    am__include='include' am__quote='' ;;
3281esac ;; #(
3282  *) :
3283     ;;
3284esac
3285  if test "$am__include" != "#"; then
3286    _am_result="yes ($s style)"
3287    break
3288  fi
3289done
3290rm -f confinc.* confmf.*
3291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3292printf "%s\n" "${_am_result}" >&6; }
3293
3294# Check whether --enable-dependency-tracking was given.
3295if test ${enable_dependency_tracking+y}
3296then :
3297  enableval=$enable_dependency_tracking;
3298fi
3299
3300if test "x$enable_dependency_tracking" != xno; then
3301  am_depcomp="$ac_aux_dir/depcomp"
3302  AMDEPBACKSLASH='\'
3303  am__nodep='_no'
3304fi
3305 if test "x$enable_dependency_tracking" != xno; then
3306  AMDEP_TRUE=
3307  AMDEP_FALSE='#'
3308else
3309  AMDEP_TRUE='#'
3310  AMDEP_FALSE=
3311fi
3312
3313
3314ac_ext=c
3315ac_cpp='$CPP $CPPFLAGS'
3316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3318ac_compiler_gnu=$ac_cv_c_compiler_gnu
3319if test -n "$ac_tool_prefix"; then
3320  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3321set dummy ${ac_tool_prefix}gcc; ac_word=$2
3322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323printf %s "checking for $ac_word... " >&6; }
3324if test ${ac_cv_prog_CC+y}
3325then :
3326  printf %s "(cached) " >&6
3327else case e in #(
3328  e) if test -n "$CC"; then
3329  ac_cv_prog_CC="$CC" # Let the user override the test.
3330else
3331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332for as_dir in $PATH
3333do
3334  IFS=$as_save_IFS
3335  case $as_dir in #(((
3336    '') as_dir=./ ;;
3337    */) ;;
3338    *) as_dir=$as_dir/ ;;
3339  esac
3340    for ac_exec_ext in '' $ac_executable_extensions; do
3341  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3342    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3343    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3344    break 2
3345  fi
3346done
3347  done
3348IFS=$as_save_IFS
3349
3350fi ;;
3351esac
3352fi
3353CC=$ac_cv_prog_CC
3354if test -n "$CC"; then
3355  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3356printf "%s\n" "$CC" >&6; }
3357else
3358  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359printf "%s\n" "no" >&6; }
3360fi
3361
3362
3363fi
3364if test -z "$ac_cv_prog_CC"; then
3365  ac_ct_CC=$CC
3366  # Extract the first word of "gcc", so it can be a program name with args.
3367set dummy gcc; ac_word=$2
3368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3369printf %s "checking for $ac_word... " >&6; }
3370if test ${ac_cv_prog_ac_ct_CC+y}
3371then :
3372  printf %s "(cached) " >&6
3373else case e in #(
3374  e) if test -n "$ac_ct_CC"; then
3375  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3376else
3377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378for as_dir in $PATH
3379do
3380  IFS=$as_save_IFS
3381  case $as_dir in #(((
3382    '') as_dir=./ ;;
3383    */) ;;
3384    *) as_dir=$as_dir/ ;;
3385  esac
3386    for ac_exec_ext in '' $ac_executable_extensions; do
3387  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3388    ac_cv_prog_ac_ct_CC="gcc"
3389    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3390    break 2
3391  fi
3392done
3393  done
3394IFS=$as_save_IFS
3395
3396fi ;;
3397esac
3398fi
3399ac_ct_CC=$ac_cv_prog_ac_ct_CC
3400if test -n "$ac_ct_CC"; then
3401  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3402printf "%s\n" "$ac_ct_CC" >&6; }
3403else
3404  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405printf "%s\n" "no" >&6; }
3406fi
3407
3408  if test "x$ac_ct_CC" = x; then
3409    CC=""
3410  else
3411    case $cross_compiling:$ac_tool_warned in
3412yes:)
3413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3414printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3415ac_tool_warned=yes ;;
3416esac
3417    CC=$ac_ct_CC
3418  fi
3419else
3420  CC="$ac_cv_prog_CC"
3421fi
3422
3423if test -z "$CC"; then
3424          if test -n "$ac_tool_prefix"; then
3425    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3426set dummy ${ac_tool_prefix}cc; ac_word=$2
3427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3428printf %s "checking for $ac_word... " >&6; }
3429if test ${ac_cv_prog_CC+y}
3430then :
3431  printf %s "(cached) " >&6
3432else case e in #(
3433  e) if test -n "$CC"; then
3434  ac_cv_prog_CC="$CC" # Let the user override the test.
3435else
3436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437for as_dir in $PATH
3438do
3439  IFS=$as_save_IFS
3440  case $as_dir in #(((
3441    '') as_dir=./ ;;
3442    */) ;;
3443    *) as_dir=$as_dir/ ;;
3444  esac
3445    for ac_exec_ext in '' $ac_executable_extensions; do
3446  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3447    ac_cv_prog_CC="${ac_tool_prefix}cc"
3448    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3449    break 2
3450  fi
3451done
3452  done
3453IFS=$as_save_IFS
3454
3455fi ;;
3456esac
3457fi
3458CC=$ac_cv_prog_CC
3459if test -n "$CC"; then
3460  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3461printf "%s\n" "$CC" >&6; }
3462else
3463  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464printf "%s\n" "no" >&6; }
3465fi
3466
3467
3468  fi
3469fi
3470if test -z "$CC"; then
3471  # Extract the first word of "cc", so it can be a program name with args.
3472set dummy cc; ac_word=$2
3473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3474printf %s "checking for $ac_word... " >&6; }
3475if test ${ac_cv_prog_CC+y}
3476then :
3477  printf %s "(cached) " >&6
3478else case e in #(
3479  e) if test -n "$CC"; then
3480  ac_cv_prog_CC="$CC" # Let the user override the test.
3481else
3482  ac_prog_rejected=no
3483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484for as_dir in $PATH
3485do
3486  IFS=$as_save_IFS
3487  case $as_dir in #(((
3488    '') as_dir=./ ;;
3489    */) ;;
3490    *) as_dir=$as_dir/ ;;
3491  esac
3492    for ac_exec_ext in '' $ac_executable_extensions; do
3493  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3494    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3495       ac_prog_rejected=yes
3496       continue
3497     fi
3498    ac_cv_prog_CC="cc"
3499    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3500    break 2
3501  fi
3502done
3503  done
3504IFS=$as_save_IFS
3505
3506if test $ac_prog_rejected = yes; then
3507  # We found a bogon in the path, so make sure we never use it.
3508  set dummy $ac_cv_prog_CC
3509  shift
3510  if test $# != 0; then
3511    # We chose a different compiler from the bogus one.
3512    # However, it has the same basename, so the bogon will be chosen
3513    # first if we set CC to just the basename; use the full file name.
3514    shift
3515    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3516  fi
3517fi
3518fi ;;
3519esac
3520fi
3521CC=$ac_cv_prog_CC
3522if test -n "$CC"; then
3523  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3524printf "%s\n" "$CC" >&6; }
3525else
3526  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527printf "%s\n" "no" >&6; }
3528fi
3529
3530
3531fi
3532if test -z "$CC"; then
3533  if test -n "$ac_tool_prefix"; then
3534  for ac_prog in cl.exe
3535  do
3536    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3537set dummy $ac_tool_prefix$ac_prog; 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 case e in #(
3544  e) if test -n "$CC"; then
3545  ac_cv_prog_CC="$CC" # Let the user override the test.
3546else
3547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548for as_dir in $PATH
3549do
3550  IFS=$as_save_IFS
3551  case $as_dir in #(((
3552    '') as_dir=./ ;;
3553    */) ;;
3554    *) as_dir=$as_dir/ ;;
3555  esac
3556    for ac_exec_ext in '' $ac_executable_extensions; do
3557  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3558    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3559    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3560    break 2
3561  fi
3562done
3563  done
3564IFS=$as_save_IFS
3565
3566fi ;;
3567esac
3568fi
3569CC=$ac_cv_prog_CC
3570if test -n "$CC"; then
3571  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3572printf "%s\n" "$CC" >&6; }
3573else
3574  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575printf "%s\n" "no" >&6; }
3576fi
3577
3578
3579    test -n "$CC" && break
3580  done
3581fi
3582if test -z "$CC"; then
3583  ac_ct_CC=$CC
3584  for ac_prog in cl.exe
3585do
3586  # Extract the first word of "$ac_prog", so it can be a program name with args.
3587set dummy $ac_prog; ac_word=$2
3588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589printf %s "checking for $ac_word... " >&6; }
3590if test ${ac_cv_prog_ac_ct_CC+y}
3591then :
3592  printf %s "(cached) " >&6
3593else case e in #(
3594  e) if test -n "$ac_ct_CC"; then
3595  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3596else
3597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598for as_dir in $PATH
3599do
3600  IFS=$as_save_IFS
3601  case $as_dir in #(((
3602    '') as_dir=./ ;;
3603    */) ;;
3604    *) as_dir=$as_dir/ ;;
3605  esac
3606    for ac_exec_ext in '' $ac_executable_extensions; do
3607  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3608    ac_cv_prog_ac_ct_CC="$ac_prog"
3609    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3610    break 2
3611  fi
3612done
3613  done
3614IFS=$as_save_IFS
3615
3616fi ;;
3617esac
3618fi
3619ac_ct_CC=$ac_cv_prog_ac_ct_CC
3620if test -n "$ac_ct_CC"; then
3621  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3622printf "%s\n" "$ac_ct_CC" >&6; }
3623else
3624  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625printf "%s\n" "no" >&6; }
3626fi
3627
3628
3629  test -n "$ac_ct_CC" && break
3630done
3631
3632  if test "x$ac_ct_CC" = x; then
3633    CC=""
3634  else
3635    case $cross_compiling:$ac_tool_warned in
3636yes:)
3637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3638printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3639ac_tool_warned=yes ;;
3640esac
3641    CC=$ac_ct_CC
3642  fi
3643fi
3644
3645fi
3646if test -z "$CC"; then
3647  if test -n "$ac_tool_prefix"; then
3648  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3649set dummy ${ac_tool_prefix}clang; ac_word=$2
3650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3651printf %s "checking for $ac_word... " >&6; }
3652if test ${ac_cv_prog_CC+y}
3653then :
3654  printf %s "(cached) " >&6
3655else case e in #(
3656  e) if test -n "$CC"; then
3657  ac_cv_prog_CC="$CC" # Let the user override the test.
3658else
3659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660for as_dir in $PATH
3661do
3662  IFS=$as_save_IFS
3663  case $as_dir in #(((
3664    '') as_dir=./ ;;
3665    */) ;;
3666    *) as_dir=$as_dir/ ;;
3667  esac
3668    for ac_exec_ext in '' $ac_executable_extensions; do
3669  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3670    ac_cv_prog_CC="${ac_tool_prefix}clang"
3671    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3672    break 2
3673  fi
3674done
3675  done
3676IFS=$as_save_IFS
3677
3678fi ;;
3679esac
3680fi
3681CC=$ac_cv_prog_CC
3682if test -n "$CC"; then
3683  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3684printf "%s\n" "$CC" >&6; }
3685else
3686  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3687printf "%s\n" "no" >&6; }
3688fi
3689
3690
3691fi
3692if test -z "$ac_cv_prog_CC"; then
3693  ac_ct_CC=$CC
3694  # Extract the first word of "clang", so it can be a program name with args.
3695set dummy clang; ac_word=$2
3696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697printf %s "checking for $ac_word... " >&6; }
3698if test ${ac_cv_prog_ac_ct_CC+y}
3699then :
3700  printf %s "(cached) " >&6
3701else case e in #(
3702  e) if test -n "$ac_ct_CC"; then
3703  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3704else
3705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706for as_dir in $PATH
3707do
3708  IFS=$as_save_IFS
3709  case $as_dir in #(((
3710    '') as_dir=./ ;;
3711    */) ;;
3712    *) as_dir=$as_dir/ ;;
3713  esac
3714    for ac_exec_ext in '' $ac_executable_extensions; do
3715  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3716    ac_cv_prog_ac_ct_CC="clang"
3717    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3718    break 2
3719  fi
3720done
3721  done
3722IFS=$as_save_IFS
3723
3724fi ;;
3725esac
3726fi
3727ac_ct_CC=$ac_cv_prog_ac_ct_CC
3728if test -n "$ac_ct_CC"; then
3729  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3730printf "%s\n" "$ac_ct_CC" >&6; }
3731else
3732  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733printf "%s\n" "no" >&6; }
3734fi
3735
3736  if test "x$ac_ct_CC" = x; then
3737    CC=""
3738  else
3739    case $cross_compiling:$ac_tool_warned in
3740yes:)
3741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3742printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3743ac_tool_warned=yes ;;
3744esac
3745    CC=$ac_ct_CC
3746  fi
3747else
3748  CC="$ac_cv_prog_CC"
3749fi
3750
3751fi
3752
3753
3754test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3755printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3756as_fn_error $? "no acceptable C compiler found in \$PATH
3757See 'config.log' for more details" "$LINENO" 5; }
3758
3759# Provide some information about the compiler.
3760printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3761set X $ac_compile
3762ac_compiler=$2
3763for ac_option in --version -v -V -qversion -version; do
3764  { { ac_try="$ac_compiler $ac_option >&5"
3765case "(($ac_try" in
3766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3767  *) ac_try_echo=$ac_try;;
3768esac
3769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3770printf "%s\n" "$ac_try_echo"; } >&5
3771  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3772  ac_status=$?
3773  if test -s conftest.err; then
3774    sed '10a\
3775... rest of stderr output deleted ...
3776         10q' conftest.err >conftest.er1
3777    cat conftest.er1 >&5
3778  fi
3779  rm -f conftest.er1 conftest.err
3780  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3781  test $ac_status = 0; }
3782done
3783
3784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785/* end confdefs.h.  */
3786
3787int
3788main (void)
3789{
3790
3791  ;
3792  return 0;
3793}
3794_ACEOF
3795ac_clean_files_save=$ac_clean_files
3796ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3797# Try to create an executable without -o first, disregard a.out.
3798# It will help us diagnose broken compilers, and finding out an intuition
3799# of exeext.
3800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3801printf %s "checking whether the C compiler works... " >&6; }
3802ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3803
3804# The possible output files:
3805ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3806
3807ac_rmfiles=
3808for ac_file in $ac_files
3809do
3810  case $ac_file in
3811    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3812    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3813  esac
3814done
3815rm -f $ac_rmfiles
3816
3817if { { ac_try="$ac_link_default"
3818case "(($ac_try" in
3819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820  *) ac_try_echo=$ac_try;;
3821esac
3822eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3823printf "%s\n" "$ac_try_echo"; } >&5
3824  (eval "$ac_link_default") 2>&5
3825  ac_status=$?
3826  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827  test $ac_status = 0; }
3828then :
3829  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3830# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3831# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3832# so that the user can short-circuit this test for compilers unknown to
3833# Autoconf.
3834for ac_file in $ac_files ''
3835do
3836  test -f "$ac_file" || continue
3837  case $ac_file in
3838    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3839	;;
3840    [ab].out )
3841	# We found the default executable, but exeext='' is most
3842	# certainly right.
3843	break;;
3844    *.* )
3845	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3846	then :; else
3847	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3848	fi
3849	# We set ac_cv_exeext here because the later test for it is not
3850	# safe: cross compilers may not add the suffix if given an '-o'
3851	# argument, so we may need to know it at that point already.
3852	# Even if this section looks crufty: it has the advantage of
3853	# actually working.
3854	break;;
3855    * )
3856	break;;
3857  esac
3858done
3859test "$ac_cv_exeext" = no && ac_cv_exeext=
3860
3861else case e in #(
3862  e) ac_file='' ;;
3863esac
3864fi
3865if test -z "$ac_file"
3866then :
3867  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868printf "%s\n" "no" >&6; }
3869printf "%s\n" "$as_me: failed program was:" >&5
3870sed 's/^/| /' conftest.$ac_ext >&5
3871
3872{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3873printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3874as_fn_error 77 "C compiler cannot create executables
3875See 'config.log' for more details" "$LINENO" 5; }
3876else case e in #(
3877  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3878printf "%s\n" "yes" >&6; } ;;
3879esac
3880fi
3881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3882printf %s "checking for C compiler default output file name... " >&6; }
3883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3884printf "%s\n" "$ac_file" >&6; }
3885ac_exeext=$ac_cv_exeext
3886
3887rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3888ac_clean_files=$ac_clean_files_save
3889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3890printf %s "checking for suffix of executables... " >&6; }
3891if { { ac_try="$ac_link"
3892case "(($ac_try" in
3893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894  *) ac_try_echo=$ac_try;;
3895esac
3896eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3897printf "%s\n" "$ac_try_echo"; } >&5
3898  (eval "$ac_link") 2>&5
3899  ac_status=$?
3900  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3901  test $ac_status = 0; }
3902then :
3903  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3904# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
3905# work properly (i.e., refer to 'conftest.exe'), while it won't with
3906# 'rm'.
3907for ac_file in conftest.exe conftest conftest.*; do
3908  test -f "$ac_file" || continue
3909  case $ac_file in
3910    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3911    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3912	  break;;
3913    * ) break;;
3914  esac
3915done
3916else case e in #(
3917  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3918printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3919as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3920See 'config.log' for more details" "$LINENO" 5; } ;;
3921esac
3922fi
3923rm -f conftest conftest$ac_cv_exeext
3924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3925printf "%s\n" "$ac_cv_exeext" >&6; }
3926
3927rm -f conftest.$ac_ext
3928EXEEXT=$ac_cv_exeext
3929ac_exeext=$EXEEXT
3930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931/* end confdefs.h.  */
3932#include <stdio.h>
3933int
3934main (void)
3935{
3936FILE *f = fopen ("conftest.out", "w");
3937 if (!f)
3938  return 1;
3939 return ferror (f) || fclose (f) != 0;
3940
3941  ;
3942  return 0;
3943}
3944_ACEOF
3945ac_clean_files="$ac_clean_files conftest.out"
3946# Check that the compiler produces executables we can run.  If not, either
3947# the compiler is broken, or we cross compile.
3948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3949printf %s "checking whether we are cross compiling... " >&6; }
3950if test "$cross_compiling" != yes; then
3951  { { ac_try="$ac_link"
3952case "(($ac_try" in
3953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954  *) ac_try_echo=$ac_try;;
3955esac
3956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3957printf "%s\n" "$ac_try_echo"; } >&5
3958  (eval "$ac_link") 2>&5
3959  ac_status=$?
3960  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961  test $ac_status = 0; }
3962  if { ac_try='./conftest$ac_cv_exeext'
3963  { { case "(($ac_try" in
3964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965  *) ac_try_echo=$ac_try;;
3966esac
3967eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3968printf "%s\n" "$ac_try_echo"; } >&5
3969  (eval "$ac_try") 2>&5
3970  ac_status=$?
3971  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3972  test $ac_status = 0; }; }; then
3973    cross_compiling=no
3974  else
3975    if test "$cross_compiling" = maybe; then
3976	cross_compiling=yes
3977    else
3978	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3979printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3980as_fn_error 77 "cannot run C compiled programs.
3981If you meant to cross compile, use '--host'.
3982See 'config.log' for more details" "$LINENO" 5; }
3983    fi
3984  fi
3985fi
3986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3987printf "%s\n" "$cross_compiling" >&6; }
3988
3989rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3990  conftest.o conftest.obj conftest.out
3991ac_clean_files=$ac_clean_files_save
3992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3993printf %s "checking for suffix of object files... " >&6; }
3994if test ${ac_cv_objext+y}
3995then :
3996  printf %s "(cached) " >&6
3997else case e in #(
3998  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999/* end confdefs.h.  */
4000
4001int
4002main (void)
4003{
4004
4005  ;
4006  return 0;
4007}
4008_ACEOF
4009rm -f conftest.o conftest.obj
4010if { { ac_try="$ac_compile"
4011case "(($ac_try" in
4012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013  *) ac_try_echo=$ac_try;;
4014esac
4015eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4016printf "%s\n" "$ac_try_echo"; } >&5
4017  (eval "$ac_compile") 2>&5
4018  ac_status=$?
4019  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4020  test $ac_status = 0; }
4021then :
4022  for ac_file in conftest.o conftest.obj conftest.*; do
4023  test -f "$ac_file" || continue;
4024  case $ac_file in
4025    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4026    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4027       break;;
4028  esac
4029done
4030else case e in #(
4031  e) printf "%s\n" "$as_me: failed program was:" >&5
4032sed 's/^/| /' conftest.$ac_ext >&5
4033
4034{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4035printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4036as_fn_error $? "cannot compute suffix of object files: cannot compile
4037See 'config.log' for more details" "$LINENO" 5; } ;;
4038esac
4039fi
4040rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4041esac
4042fi
4043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4044printf "%s\n" "$ac_cv_objext" >&6; }
4045OBJEXT=$ac_cv_objext
4046ac_objext=$OBJEXT
4047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4048printf %s "checking whether the compiler supports GNU C... " >&6; }
4049if test ${ac_cv_c_compiler_gnu+y}
4050then :
4051  printf %s "(cached) " >&6
4052else case e in #(
4053  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054/* end confdefs.h.  */
4055
4056int
4057main (void)
4058{
4059#ifndef __GNUC__
4060       choke me
4061#endif
4062
4063  ;
4064  return 0;
4065}
4066_ACEOF
4067if ac_fn_c_try_compile "$LINENO"
4068then :
4069  ac_compiler_gnu=yes
4070else case e in #(
4071  e) ac_compiler_gnu=no ;;
4072esac
4073fi
4074rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4075ac_cv_c_compiler_gnu=$ac_compiler_gnu
4076 ;;
4077esac
4078fi
4079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4080printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4081ac_compiler_gnu=$ac_cv_c_compiler_gnu
4082
4083if test $ac_compiler_gnu = yes; then
4084  GCC=yes
4085else
4086  GCC=
4087fi
4088ac_test_CFLAGS=${CFLAGS+y}
4089ac_save_CFLAGS=$CFLAGS
4090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4091printf %s "checking whether $CC accepts -g... " >&6; }
4092if test ${ac_cv_prog_cc_g+y}
4093then :
4094  printf %s "(cached) " >&6
4095else case e in #(
4096  e) ac_save_c_werror_flag=$ac_c_werror_flag
4097   ac_c_werror_flag=yes
4098   ac_cv_prog_cc_g=no
4099   CFLAGS="-g"
4100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101/* end confdefs.h.  */
4102
4103int
4104main (void)
4105{
4106
4107  ;
4108  return 0;
4109}
4110_ACEOF
4111if ac_fn_c_try_compile "$LINENO"
4112then :
4113  ac_cv_prog_cc_g=yes
4114else case e in #(
4115  e) CFLAGS=""
4116      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117/* end confdefs.h.  */
4118
4119int
4120main (void)
4121{
4122
4123  ;
4124  return 0;
4125}
4126_ACEOF
4127if ac_fn_c_try_compile "$LINENO"
4128then :
4129
4130else case e in #(
4131  e) ac_c_werror_flag=$ac_save_c_werror_flag
4132	 CFLAGS="-g"
4133	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134/* end confdefs.h.  */
4135
4136int
4137main (void)
4138{
4139
4140  ;
4141  return 0;
4142}
4143_ACEOF
4144if ac_fn_c_try_compile "$LINENO"
4145then :
4146  ac_cv_prog_cc_g=yes
4147fi
4148rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4149esac
4150fi
4151rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4152esac
4153fi
4154rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4155   ac_c_werror_flag=$ac_save_c_werror_flag ;;
4156esac
4157fi
4158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4159printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4160if test $ac_test_CFLAGS; then
4161  CFLAGS=$ac_save_CFLAGS
4162elif test $ac_cv_prog_cc_g = yes; then
4163  if test "$GCC" = yes; then
4164    CFLAGS="-g -O2"
4165  else
4166    CFLAGS="-g"
4167  fi
4168else
4169  if test "$GCC" = yes; then
4170    CFLAGS="-O2"
4171  else
4172    CFLAGS=
4173  fi
4174fi
4175ac_prog_cc_stdc=no
4176if test x$ac_prog_cc_stdc = xno
4177then :
4178  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4179printf %s "checking for $CC option to enable C11 features... " >&6; }
4180if test ${ac_cv_prog_cc_c11+y}
4181then :
4182  printf %s "(cached) " >&6
4183else case e in #(
4184  e) ac_cv_prog_cc_c11=no
4185ac_save_CC=$CC
4186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187/* end confdefs.h.  */
4188$ac_c_conftest_c11_program
4189_ACEOF
4190for ac_arg in '' -std=gnu11
4191do
4192  CC="$ac_save_CC $ac_arg"
4193  if ac_fn_c_try_compile "$LINENO"
4194then :
4195  ac_cv_prog_cc_c11=$ac_arg
4196fi
4197rm -f core conftest.err conftest.$ac_objext conftest.beam
4198  test "x$ac_cv_prog_cc_c11" != "xno" && break
4199done
4200rm -f conftest.$ac_ext
4201CC=$ac_save_CC ;;
4202esac
4203fi
4204
4205if test "x$ac_cv_prog_cc_c11" = xno
4206then :
4207  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4208printf "%s\n" "unsupported" >&6; }
4209else case e in #(
4210  e) if test "x$ac_cv_prog_cc_c11" = x
4211then :
4212  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4213printf "%s\n" "none needed" >&6; }
4214else case e in #(
4215  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4216printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4217     CC="$CC $ac_cv_prog_cc_c11" ;;
4218esac
4219fi
4220  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4221  ac_prog_cc_stdc=c11 ;;
4222esac
4223fi
4224fi
4225if test x$ac_prog_cc_stdc = xno
4226then :
4227  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4228printf %s "checking for $CC option to enable C99 features... " >&6; }
4229if test ${ac_cv_prog_cc_c99+y}
4230then :
4231  printf %s "(cached) " >&6
4232else case e in #(
4233  e) ac_cv_prog_cc_c99=no
4234ac_save_CC=$CC
4235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236/* end confdefs.h.  */
4237$ac_c_conftest_c99_program
4238_ACEOF
4239for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4240do
4241  CC="$ac_save_CC $ac_arg"
4242  if ac_fn_c_try_compile "$LINENO"
4243then :
4244  ac_cv_prog_cc_c99=$ac_arg
4245fi
4246rm -f core conftest.err conftest.$ac_objext conftest.beam
4247  test "x$ac_cv_prog_cc_c99" != "xno" && break
4248done
4249rm -f conftest.$ac_ext
4250CC=$ac_save_CC ;;
4251esac
4252fi
4253
4254if test "x$ac_cv_prog_cc_c99" = xno
4255then :
4256  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4257printf "%s\n" "unsupported" >&6; }
4258else case e in #(
4259  e) if test "x$ac_cv_prog_cc_c99" = x
4260then :
4261  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4262printf "%s\n" "none needed" >&6; }
4263else case e in #(
4264  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4265printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4266     CC="$CC $ac_cv_prog_cc_c99" ;;
4267esac
4268fi
4269  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4270  ac_prog_cc_stdc=c99 ;;
4271esac
4272fi
4273fi
4274if test x$ac_prog_cc_stdc = xno
4275then :
4276  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4277printf %s "checking for $CC option to enable C89 features... " >&6; }
4278if test ${ac_cv_prog_cc_c89+y}
4279then :
4280  printf %s "(cached) " >&6
4281else case e in #(
4282  e) ac_cv_prog_cc_c89=no
4283ac_save_CC=$CC
4284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285/* end confdefs.h.  */
4286$ac_c_conftest_c89_program
4287_ACEOF
4288for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4289do
4290  CC="$ac_save_CC $ac_arg"
4291  if ac_fn_c_try_compile "$LINENO"
4292then :
4293  ac_cv_prog_cc_c89=$ac_arg
4294fi
4295rm -f core conftest.err conftest.$ac_objext conftest.beam
4296  test "x$ac_cv_prog_cc_c89" != "xno" && break
4297done
4298rm -f conftest.$ac_ext
4299CC=$ac_save_CC ;;
4300esac
4301fi
4302
4303if test "x$ac_cv_prog_cc_c89" = xno
4304then :
4305  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4306printf "%s\n" "unsupported" >&6; }
4307else case e in #(
4308  e) if test "x$ac_cv_prog_cc_c89" = x
4309then :
4310  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4311printf "%s\n" "none needed" >&6; }
4312else case e in #(
4313  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4314printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4315     CC="$CC $ac_cv_prog_cc_c89" ;;
4316esac
4317fi
4318  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4319  ac_prog_cc_stdc=c89 ;;
4320esac
4321fi
4322fi
4323
4324ac_ext=c
4325ac_cpp='$CPP $CPPFLAGS'
4326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328ac_compiler_gnu=$ac_cv_c_compiler_gnu
4329
4330
4331  ac_ext=c
4332ac_cpp='$CPP $CPPFLAGS'
4333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4335ac_compiler_gnu=$ac_cv_c_compiler_gnu
4336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4337printf %s "checking whether $CC understands -c and -o together... " >&6; }
4338if test ${am_cv_prog_cc_c_o+y}
4339then :
4340  printf %s "(cached) " >&6
4341else case e in #(
4342  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343/* end confdefs.h.  */
4344
4345int
4346main (void)
4347{
4348
4349  ;
4350  return 0;
4351}
4352_ACEOF
4353  # Make sure it works both with $CC and with simple cc.
4354  # Following AC_PROG_CC_C_O, we do the test twice because some
4355  # compilers refuse to overwrite an existing .o file with -o,
4356  # though they will create one.
4357  am_cv_prog_cc_c_o=yes
4358  for am_i in 1 2; do
4359    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4360   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4361   ac_status=$?
4362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363   (exit $ac_status); } \
4364         && test -f conftest2.$ac_objext; then
4365      : OK
4366    else
4367      am_cv_prog_cc_c_o=no
4368      break
4369    fi
4370  done
4371  rm -f core conftest*
4372  unset am_i ;;
4373esac
4374fi
4375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4376printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4377if test "$am_cv_prog_cc_c_o" != yes; then
4378   # Losing compiler, so override with the script.
4379   # FIXME: It is wrong to rewrite CC.
4380   # But if we don't then we get into trouble of one sort or another.
4381   # A longer-term fix would be to have automake use am__CC in this case,
4382   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4383   CC="$am_aux_dir/compile $CC"
4384fi
4385ac_ext=c
4386ac_cpp='$CPP $CPPFLAGS'
4387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4389ac_compiler_gnu=$ac_cv_c_compiler_gnu
4390
4391
4392depcc="$CC"   am_compiler_list=
4393
4394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4395printf %s "checking dependency style of $depcc... " >&6; }
4396if test ${am_cv_CC_dependencies_compiler_type+y}
4397then :
4398  printf %s "(cached) " >&6
4399else case e in #(
4400  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4401  # We make a subdir and do the tests there.  Otherwise we can end up
4402  # making bogus files that we don't know about and never remove.  For
4403  # instance it was reported that on HP-UX the gcc test will end up
4404  # making a dummy file named 'D' -- because '-MD' means "put the output
4405  # in D".
4406  rm -rf conftest.dir
4407  mkdir conftest.dir
4408  # Copy depcomp to subdir because otherwise we won't find it if we're
4409  # using a relative directory.
4410  cp "$am_depcomp" conftest.dir
4411  cd conftest.dir
4412  # We will build objects and dependencies in a subdirectory because
4413  # it helps to detect inapplicable dependency modes.  For instance
4414  # both Tru64's cc and ICC support -MD to output dependencies as a
4415  # side effect of compilation, but ICC will put the dependencies in
4416  # the current directory while Tru64 will put them in the object
4417  # directory.
4418  mkdir sub
4419
4420  am_cv_CC_dependencies_compiler_type=none
4421  if test "$am_compiler_list" = ""; then
4422     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4423  fi
4424  am__universal=false
4425  case " $depcc " in #(
4426     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4427     esac
4428
4429  for depmode in $am_compiler_list; do
4430    # Setup a source with many dependencies, because some compilers
4431    # like to wrap large dependency lists on column 80 (with \), and
4432    # we should not choose a depcomp mode which is confused by this.
4433    #
4434    # We need to recreate these files for each test, as the compiler may
4435    # overwrite some of them when testing with obscure command lines.
4436    # This happens at least with the AIX C compiler.
4437    : > sub/conftest.c
4438    for i in 1 2 3 4 5 6; do
4439      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4440      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4441      # Solaris 10 /bin/sh.
4442      echo '/* dummy */' > sub/conftst$i.h
4443    done
4444    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4445
4446    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4447    # mode.  It turns out that the SunPro C++ compiler does not properly
4448    # handle '-M -o', and we need to detect this.  Also, some Intel
4449    # versions had trouble with output in subdirs.
4450    am__obj=sub/conftest.${OBJEXT-o}
4451    am__minus_obj="-o $am__obj"
4452    case $depmode in
4453    gcc)
4454      # This depmode causes a compiler race in universal mode.
4455      test "$am__universal" = false || continue
4456      ;;
4457    nosideeffect)
4458      # After this tag, mechanisms are not by side-effect, so they'll
4459      # only be used when explicitly requested.
4460      if test "x$enable_dependency_tracking" = xyes; then
4461	continue
4462      else
4463	break
4464      fi
4465      ;;
4466    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4467      # This compiler won't grok '-c -o', but also, the minuso test has
4468      # not run yet.  These depmodes are late enough in the game, and
4469      # so weak that their functioning should not be impacted.
4470      am__obj=conftest.${OBJEXT-o}
4471      am__minus_obj=
4472      ;;
4473    none) break ;;
4474    esac
4475    if depmode=$depmode \
4476       source=sub/conftest.c object=$am__obj \
4477       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4478       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4479         >/dev/null 2>conftest.err &&
4480       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4481       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4482       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4483       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4484      # icc doesn't choke on unknown options, it will just issue warnings
4485      # or remarks (even with -Werror).  So we grep stderr for any message
4486      # that says an option was ignored or not supported.
4487      # When given -MP, icc 7.0 and 7.1 complain thusly:
4488      #   icc: Command line warning: ignoring option '-M'; no argument required
4489      # The diagnosis changed in icc 8.0:
4490      #   icc: Command line remark: option '-MP' not supported
4491      if (grep 'ignoring option' conftest.err ||
4492          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4493        am_cv_CC_dependencies_compiler_type=$depmode
4494        break
4495      fi
4496    fi
4497  done
4498
4499  cd ..
4500  rm -rf conftest.dir
4501else
4502  am_cv_CC_dependencies_compiler_type=none
4503fi
4504 ;;
4505esac
4506fi
4507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4508printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4509CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4510
4511 if
4512  test "x$enable_dependency_tracking" != xno \
4513  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4514  am__fastdepCC_TRUE=
4515  am__fastdepCC_FALSE='#'
4516else
4517  am__fastdepCC_TRUE='#'
4518  am__fastdepCC_FALSE=
4519fi
4520
4521
4522
4523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4524printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4525if test ${ac_cv_c_undeclared_builtin_options+y}
4526then :
4527  printf %s "(cached) " >&6
4528else case e in #(
4529  e) ac_save_CFLAGS=$CFLAGS
4530   ac_cv_c_undeclared_builtin_options='cannot detect'
4531   for ac_arg in '' -fno-builtin; do
4532     CFLAGS="$ac_save_CFLAGS $ac_arg"
4533     # This test program should *not* compile successfully.
4534     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535/* end confdefs.h.  */
4536
4537int
4538main (void)
4539{
4540(void) strchr;
4541  ;
4542  return 0;
4543}
4544_ACEOF
4545if ac_fn_c_try_compile "$LINENO"
4546then :
4547
4548else case e in #(
4549  e) # This test program should compile successfully.
4550        # No library function is consistently available on
4551        # freestanding implementations, so test against a dummy
4552        # declaration.  Include always-available headers on the
4553        # off chance that they somehow elicit warnings.
4554        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555/* end confdefs.h.  */
4556#include <float.h>
4557#include <limits.h>
4558#include <stdarg.h>
4559#include <stddef.h>
4560extern void ac_decl (int, char *);
4561
4562int
4563main (void)
4564{
4565(void) ac_decl (0, (char *) 0);
4566  (void) ac_decl;
4567
4568  ;
4569  return 0;
4570}
4571_ACEOF
4572if ac_fn_c_try_compile "$LINENO"
4573then :
4574  if test x"$ac_arg" = x
4575then :
4576  ac_cv_c_undeclared_builtin_options='none needed'
4577else case e in #(
4578  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4579esac
4580fi
4581          break
4582fi
4583rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4584esac
4585fi
4586rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4587    done
4588    CFLAGS=$ac_save_CFLAGS
4589   ;;
4590esac
4591fi
4592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4593printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4594  case $ac_cv_c_undeclared_builtin_options in #(
4595  'cannot detect') :
4596    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4597printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4598as_fn_error $? "cannot make $CC report undeclared builtins
4599See 'config.log' for more details" "$LINENO" 5; } ;; #(
4600  'none needed') :
4601    ac_c_undeclared_builtin_options='' ;; #(
4602  *) :
4603    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4604esac
4605
4606ac_header= ac_cache=
4607for ac_item in $ac_header_c_list
4608do
4609  if test $ac_cache; then
4610    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4611    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4612      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4613    fi
4614    ac_header= ac_cache=
4615  elif test $ac_header; then
4616    ac_cache=$ac_item
4617  else
4618    ac_header=$ac_item
4619  fi
4620done
4621
4622
4623
4624
4625
4626
4627
4628
4629if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4630then :
4631
4632printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4633
4634fi
4635
4636
4637
4638
4639ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4640if test "x$ac_cv_have_decl___clang__" = xyes
4641then :
4642  CLANGCC="yes"
4643else case e in #(
4644  e) CLANGCC="no" ;;
4645esac
4646fi
4647ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4648if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4649then :
4650  INTELCC="yes"
4651else case e in #(
4652  e) INTELCC="no" ;;
4653esac
4654fi
4655ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4656if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4657then :
4658  SUNCC="yes"
4659else case e in #(
4660  e) SUNCC="no" ;;
4661esac
4662fi
4663
4664
4665
4666
4667
4668
4669
4670
4671if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4672	if test -n "$ac_tool_prefix"; then
4673  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4674set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4676printf %s "checking for $ac_word... " >&6; }
4677if test ${ac_cv_path_PKG_CONFIG+y}
4678then :
4679  printf %s "(cached) " >&6
4680else case e in #(
4681  e) case $PKG_CONFIG in
4682  [\\/]* | ?:[\\/]*)
4683  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4684  ;;
4685  *)
4686  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687for as_dir in $PATH
4688do
4689  IFS=$as_save_IFS
4690  case $as_dir in #(((
4691    '') as_dir=./ ;;
4692    */) ;;
4693    *) as_dir=$as_dir/ ;;
4694  esac
4695    for ac_exec_ext in '' $ac_executable_extensions; do
4696  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4697    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4698    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4699    break 2
4700  fi
4701done
4702  done
4703IFS=$as_save_IFS
4704
4705  ;;
4706esac ;;
4707esac
4708fi
4709PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4710if test -n "$PKG_CONFIG"; then
4711  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4712printf "%s\n" "$PKG_CONFIG" >&6; }
4713else
4714  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715printf "%s\n" "no" >&6; }
4716fi
4717
4718
4719fi
4720if test -z "$ac_cv_path_PKG_CONFIG"; then
4721  ac_pt_PKG_CONFIG=$PKG_CONFIG
4722  # Extract the first word of "pkg-config", so it can be a program name with args.
4723set dummy pkg-config; ac_word=$2
4724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4725printf %s "checking for $ac_word... " >&6; }
4726if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4727then :
4728  printf %s "(cached) " >&6
4729else case e in #(
4730  e) case $ac_pt_PKG_CONFIG in
4731  [\\/]* | ?:[\\/]*)
4732  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4733  ;;
4734  *)
4735  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736for as_dir in $PATH
4737do
4738  IFS=$as_save_IFS
4739  case $as_dir in #(((
4740    '') as_dir=./ ;;
4741    */) ;;
4742    *) as_dir=$as_dir/ ;;
4743  esac
4744    for ac_exec_ext in '' $ac_executable_extensions; do
4745  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4746    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4747    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4748    break 2
4749  fi
4750done
4751  done
4752IFS=$as_save_IFS
4753
4754  ;;
4755esac ;;
4756esac
4757fi
4758ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4759if test -n "$ac_pt_PKG_CONFIG"; then
4760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4761printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4762else
4763  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4764printf "%s\n" "no" >&6; }
4765fi
4766
4767  if test "x$ac_pt_PKG_CONFIG" = x; then
4768    PKG_CONFIG=""
4769  else
4770    case $cross_compiling:$ac_tool_warned in
4771yes:)
4772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4773printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4774ac_tool_warned=yes ;;
4775esac
4776    PKG_CONFIG=$ac_pt_PKG_CONFIG
4777  fi
4778else
4779  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4780fi
4781
4782fi
4783if test -n "$PKG_CONFIG"; then
4784	_pkg_min_version=0.9.0
4785	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4786printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4787	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4788		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4789printf "%s\n" "yes" >&6; }
4790	else
4791		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4792printf "%s\n" "no" >&6; }
4793		PKG_CONFIG=""
4794	fi
4795fi
4796
4797
4798  # Make sure we can run config.sub.
4799$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4800  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4801
4802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4803printf %s "checking build system type... " >&6; }
4804if test ${ac_cv_build+y}
4805then :
4806  printf %s "(cached) " >&6
4807else case e in #(
4808  e) ac_build_alias=$build_alias
4809test "x$ac_build_alias" = x &&
4810  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4811test "x$ac_build_alias" = x &&
4812  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4813ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4814  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4815 ;;
4816esac
4817fi
4818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4819printf "%s\n" "$ac_cv_build" >&6; }
4820case $ac_cv_build in
4821*-*-*) ;;
4822*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4823esac
4824build=$ac_cv_build
4825ac_save_IFS=$IFS; IFS='-'
4826set x $ac_cv_build
4827shift
4828build_cpu=$1
4829build_vendor=$2
4830shift; shift
4831# Remember, the first character of IFS is used to create $*,
4832# except with old shells:
4833build_os=$*
4834IFS=$ac_save_IFS
4835case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4836
4837
4838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4839printf %s "checking host system type... " >&6; }
4840if test ${ac_cv_host+y}
4841then :
4842  printf %s "(cached) " >&6
4843else case e in #(
4844  e) if test "x$host_alias" = x; then
4845  ac_cv_host=$ac_cv_build
4846else
4847  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4848    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4849fi
4850 ;;
4851esac
4852fi
4853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4854printf "%s\n" "$ac_cv_host" >&6; }
4855case $ac_cv_host in
4856*-*-*) ;;
4857*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4858esac
4859host=$ac_cv_host
4860ac_save_IFS=$IFS; IFS='-'
4861set x $ac_cv_host
4862shift
4863host_cpu=$1
4864host_vendor=$2
4865shift; shift
4866# Remember, the first character of IFS is used to create $*,
4867# except with old shells:
4868host_os=$*
4869IFS=$ac_save_IFS
4870case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4871
4872
4873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4874printf %s "checking for a sed that does not truncate output... " >&6; }
4875if test ${ac_cv_path_SED+y}
4876then :
4877  printf %s "(cached) " >&6
4878else case e in #(
4879  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4880     for ac_i in 1 2 3 4 5 6 7; do
4881       ac_script="$ac_script$as_nl$ac_script"
4882     done
4883     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4884     { ac_script=; unset ac_script;}
4885     if test -z "$SED"; then
4886  ac_path_SED_found=false
4887  # Loop through the user's path and test for each of PROGNAME-LIST
4888  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889for as_dir in $PATH
4890do
4891  IFS=$as_save_IFS
4892  case $as_dir in #(((
4893    '') as_dir=./ ;;
4894    */) ;;
4895    *) as_dir=$as_dir/ ;;
4896  esac
4897    for ac_prog in sed gsed
4898   do
4899    for ac_exec_ext in '' $ac_executable_extensions; do
4900      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4901      as_fn_executable_p "$ac_path_SED" || continue
4902# Check for GNU ac_path_SED and select it if it is found.
4903  # Check for GNU $ac_path_SED
4904case `"$ac_path_SED" --version 2>&1` in #(
4905*GNU*)
4906  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4907#(
4908*)
4909  ac_count=0
4910  printf %s 0123456789 >"conftest.in"
4911  while :
4912  do
4913    cat "conftest.in" "conftest.in" >"conftest.tmp"
4914    mv "conftest.tmp" "conftest.in"
4915    cp "conftest.in" "conftest.nl"
4916    printf "%s\n" '' >> "conftest.nl"
4917    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4918    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4919    as_fn_arith $ac_count + 1 && ac_count=$as_val
4920    if test $ac_count -gt ${ac_path_SED_max-0}; then
4921      # Best one so far, save it but keep looking for a better one
4922      ac_cv_path_SED="$ac_path_SED"
4923      ac_path_SED_max=$ac_count
4924    fi
4925    # 10*(2^10) chars as input seems more than enough
4926    test $ac_count -gt 10 && break
4927  done
4928  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4929esac
4930
4931      $ac_path_SED_found && break 3
4932    done
4933  done
4934  done
4935IFS=$as_save_IFS
4936  if test -z "$ac_cv_path_SED"; then
4937    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4938  fi
4939else
4940  ac_cv_path_SED=$SED
4941fi
4942 ;;
4943esac
4944fi
4945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4946printf "%s\n" "$ac_cv_path_SED" >&6; }
4947 SED="$ac_cv_path_SED"
4948  rm -f conftest.sed
4949
4950
4951
4952
4953
4954
4955# Check whether --enable-selective-werror was given.
4956if test ${enable_selective_werror+y}
4957then :
4958  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4959else case e in #(
4960  e) SELECTIVE_WERROR=yes ;;
4961esac
4962fi
4963
4964
4965
4966
4967
4968# -v is too short to test reliably with XORG_TESTSET_CFLAG
4969if test "x$SUNCC" = "xyes"; then
4970    BASE_CFLAGS="-v"
4971else
4972    BASE_CFLAGS=""
4973fi
4974
4975# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989xorg_testset_save_CFLAGS="$CFLAGS"
4990
4991if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4992	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4993	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4994printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4995if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4996then :
4997  printf %s "(cached) " >&6
4998else case e in #(
4999  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000/* end confdefs.h.  */
5001int i;
5002_ACEOF
5003if ac_fn_c_try_compile "$LINENO"
5004then :
5005  xorg_cv_cc_flag_unknown_warning_option=yes
5006else case e in #(
5007  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5008esac
5009fi
5010rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5011esac
5012fi
5013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5014printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5015	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5016	CFLAGS="$xorg_testset_save_CFLAGS"
5017fi
5018
5019if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5020	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5021		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5022	fi
5023	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5024	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5025printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5026if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5027then :
5028  printf %s "(cached) " >&6
5029else case e in #(
5030  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031/* end confdefs.h.  */
5032int i;
5033_ACEOF
5034if ac_fn_c_try_compile "$LINENO"
5035then :
5036  xorg_cv_cc_flag_unused_command_line_argument=yes
5037else case e in #(
5038  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5039esac
5040fi
5041rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5042esac
5043fi
5044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5045printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5046	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5047	CFLAGS="$xorg_testset_save_CFLAGS"
5048fi
5049
5050found="no"
5051
5052	if test $found = "no" ; then
5053		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5054			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5055		fi
5056
5057		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5058			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5059		fi
5060
5061		CFLAGS="$CFLAGS -Wall"
5062
5063		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5064printf %s "checking if $CC supports -Wall... " >&6; }
5065		cacheid=xorg_cv_cc_flag__Wall
5066		if eval test \${$cacheid+y}
5067then :
5068  printf %s "(cached) " >&6
5069else case e in #(
5070  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071/* end confdefs.h.  */
5072int i;
5073int
5074main (void)
5075{
5076
5077  ;
5078  return 0;
5079}
5080_ACEOF
5081if ac_fn_c_try_link "$LINENO"
5082then :
5083  eval $cacheid=yes
5084else case e in #(
5085  e) eval $cacheid=no ;;
5086esac
5087fi
5088rm -f core conftest.err conftest.$ac_objext conftest.beam \
5089    conftest$ac_exeext conftest.$ac_ext ;;
5090esac
5091fi
5092
5093
5094		CFLAGS="$xorg_testset_save_CFLAGS"
5095
5096		eval supported=\$$cacheid
5097		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5098printf "%s\n" "$supported" >&6; }
5099		if test "$supported" = "yes" ; then
5100			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5101			found="yes"
5102		fi
5103	fi
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119xorg_testset_save_CFLAGS="$CFLAGS"
5120
5121if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5122	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5123	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5124printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5125if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5126then :
5127  printf %s "(cached) " >&6
5128else case e in #(
5129  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5130/* end confdefs.h.  */
5131int i;
5132_ACEOF
5133if ac_fn_c_try_compile "$LINENO"
5134then :
5135  xorg_cv_cc_flag_unknown_warning_option=yes
5136else case e in #(
5137  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5138esac
5139fi
5140rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5141esac
5142fi
5143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5144printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5145	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5146	CFLAGS="$xorg_testset_save_CFLAGS"
5147fi
5148
5149if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5150	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5151		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5152	fi
5153	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5154	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5155printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5156if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5157then :
5158  printf %s "(cached) " >&6
5159else case e in #(
5160  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161/* end confdefs.h.  */
5162int i;
5163_ACEOF
5164if ac_fn_c_try_compile "$LINENO"
5165then :
5166  xorg_cv_cc_flag_unused_command_line_argument=yes
5167else case e in #(
5168  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5169esac
5170fi
5171rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5172esac
5173fi
5174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5175printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5176	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5177	CFLAGS="$xorg_testset_save_CFLAGS"
5178fi
5179
5180found="no"
5181
5182	if test $found = "no" ; then
5183		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5184			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5185		fi
5186
5187		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5188			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5189		fi
5190
5191		CFLAGS="$CFLAGS -Wpointer-arith"
5192
5193		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5194printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5195		cacheid=xorg_cv_cc_flag__Wpointer_arith
5196		if eval test \${$cacheid+y}
5197then :
5198  printf %s "(cached) " >&6
5199else case e in #(
5200  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201/* end confdefs.h.  */
5202int i;
5203int
5204main (void)
5205{
5206
5207  ;
5208  return 0;
5209}
5210_ACEOF
5211if ac_fn_c_try_link "$LINENO"
5212then :
5213  eval $cacheid=yes
5214else case e in #(
5215  e) eval $cacheid=no ;;
5216esac
5217fi
5218rm -f core conftest.err conftest.$ac_objext conftest.beam \
5219    conftest$ac_exeext conftest.$ac_ext ;;
5220esac
5221fi
5222
5223
5224		CFLAGS="$xorg_testset_save_CFLAGS"
5225
5226		eval supported=\$$cacheid
5227		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5228printf "%s\n" "$supported" >&6; }
5229		if test "$supported" = "yes" ; then
5230			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5231			found="yes"
5232		fi
5233	fi
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249xorg_testset_save_CFLAGS="$CFLAGS"
5250
5251if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5252	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5253	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5254printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5255if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5256then :
5257  printf %s "(cached) " >&6
5258else case e in #(
5259  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260/* end confdefs.h.  */
5261int i;
5262_ACEOF
5263if ac_fn_c_try_compile "$LINENO"
5264then :
5265  xorg_cv_cc_flag_unknown_warning_option=yes
5266else case e in #(
5267  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5268esac
5269fi
5270rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5271esac
5272fi
5273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5274printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5275	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5276	CFLAGS="$xorg_testset_save_CFLAGS"
5277fi
5278
5279if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5280	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5281		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5282	fi
5283	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5284	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5285printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5286if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5287then :
5288  printf %s "(cached) " >&6
5289else case e in #(
5290  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291/* end confdefs.h.  */
5292int i;
5293_ACEOF
5294if ac_fn_c_try_compile "$LINENO"
5295then :
5296  xorg_cv_cc_flag_unused_command_line_argument=yes
5297else case e in #(
5298  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5299esac
5300fi
5301rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5302esac
5303fi
5304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5305printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5306	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5307	CFLAGS="$xorg_testset_save_CFLAGS"
5308fi
5309
5310found="no"
5311
5312	if test $found = "no" ; then
5313		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5314			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5315		fi
5316
5317		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5318			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5319		fi
5320
5321		CFLAGS="$CFLAGS -Wmissing-declarations"
5322
5323		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5324printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5325		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5326		if eval test \${$cacheid+y}
5327then :
5328  printf %s "(cached) " >&6
5329else case e in #(
5330  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331/* end confdefs.h.  */
5332int i;
5333int
5334main (void)
5335{
5336
5337  ;
5338  return 0;
5339}
5340_ACEOF
5341if ac_fn_c_try_link "$LINENO"
5342then :
5343  eval $cacheid=yes
5344else case e in #(
5345  e) eval $cacheid=no ;;
5346esac
5347fi
5348rm -f core conftest.err conftest.$ac_objext conftest.beam \
5349    conftest$ac_exeext conftest.$ac_ext ;;
5350esac
5351fi
5352
5353
5354		CFLAGS="$xorg_testset_save_CFLAGS"
5355
5356		eval supported=\$$cacheid
5357		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5358printf "%s\n" "$supported" >&6; }
5359		if test "$supported" = "yes" ; then
5360			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5361			found="yes"
5362		fi
5363	fi
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379xorg_testset_save_CFLAGS="$CFLAGS"
5380
5381if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5382	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5383	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5384printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5385if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5386then :
5387  printf %s "(cached) " >&6
5388else case e in #(
5389  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390/* end confdefs.h.  */
5391int i;
5392_ACEOF
5393if ac_fn_c_try_compile "$LINENO"
5394then :
5395  xorg_cv_cc_flag_unknown_warning_option=yes
5396else case e in #(
5397  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5398esac
5399fi
5400rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5401esac
5402fi
5403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5404printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5405	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5406	CFLAGS="$xorg_testset_save_CFLAGS"
5407fi
5408
5409if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5410	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5411		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5412	fi
5413	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5414	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5415printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5416if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5417then :
5418  printf %s "(cached) " >&6
5419else case e in #(
5420  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421/* end confdefs.h.  */
5422int i;
5423_ACEOF
5424if ac_fn_c_try_compile "$LINENO"
5425then :
5426  xorg_cv_cc_flag_unused_command_line_argument=yes
5427else case e in #(
5428  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5429esac
5430fi
5431rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5432esac
5433fi
5434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5435printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5436	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5437	CFLAGS="$xorg_testset_save_CFLAGS"
5438fi
5439
5440found="no"
5441
5442	if test $found = "no" ; then
5443		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5444			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5445		fi
5446
5447		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5448			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5449		fi
5450
5451		CFLAGS="$CFLAGS -Wformat=2"
5452
5453		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5454printf %s "checking if $CC supports -Wformat=2... " >&6; }
5455		cacheid=xorg_cv_cc_flag__Wformat_2
5456		if eval test \${$cacheid+y}
5457then :
5458  printf %s "(cached) " >&6
5459else case e in #(
5460  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461/* end confdefs.h.  */
5462int i;
5463int
5464main (void)
5465{
5466
5467  ;
5468  return 0;
5469}
5470_ACEOF
5471if ac_fn_c_try_link "$LINENO"
5472then :
5473  eval $cacheid=yes
5474else case e in #(
5475  e) eval $cacheid=no ;;
5476esac
5477fi
5478rm -f core conftest.err conftest.$ac_objext conftest.beam \
5479    conftest$ac_exeext conftest.$ac_ext ;;
5480esac
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 case e in #(
5513  e) 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 case e in #(
5528  e) eval $cacheid=no ;;
5529esac
5530fi
5531rm -f core conftest.err conftest.$ac_objext conftest.beam \
5532    conftest$ac_exeext conftest.$ac_ext ;;
5533esac
5534fi
5535
5536
5537		CFLAGS="$xorg_testset_save_CFLAGS"
5538
5539		eval supported=\$$cacheid
5540		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5541printf "%s\n" "$supported" >&6; }
5542		if test "$supported" = "yes" ; then
5543			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5544			found="yes"
5545		fi
5546	fi
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564xorg_testset_save_CFLAGS="$CFLAGS"
5565
5566if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5567	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5568	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5569printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5570if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5571then :
5572  printf %s "(cached) " >&6
5573else case e in #(
5574  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575/* end confdefs.h.  */
5576int i;
5577_ACEOF
5578if ac_fn_c_try_compile "$LINENO"
5579then :
5580  xorg_cv_cc_flag_unknown_warning_option=yes
5581else case e in #(
5582  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5583esac
5584fi
5585rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5586esac
5587fi
5588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5589printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5590	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5591	CFLAGS="$xorg_testset_save_CFLAGS"
5592fi
5593
5594if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5595	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5596		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5597	fi
5598	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5599	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5600printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5601if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5602then :
5603  printf %s "(cached) " >&6
5604else case e in #(
5605  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606/* end confdefs.h.  */
5607int i;
5608_ACEOF
5609if ac_fn_c_try_compile "$LINENO"
5610then :
5611  xorg_cv_cc_flag_unused_command_line_argument=yes
5612else case e in #(
5613  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5614esac
5615fi
5616rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5617esac
5618fi
5619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5620printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5621	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5622	CFLAGS="$xorg_testset_save_CFLAGS"
5623fi
5624
5625found="no"
5626
5627	if test $found = "no" ; then
5628		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5629			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5630		fi
5631
5632		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5633			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5634		fi
5635
5636		CFLAGS="$CFLAGS -Wstrict-prototypes"
5637
5638		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5639printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5640		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5641		if eval test \${$cacheid+y}
5642then :
5643  printf %s "(cached) " >&6
5644else case e in #(
5645  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646/* end confdefs.h.  */
5647int i;
5648int
5649main (void)
5650{
5651
5652  ;
5653  return 0;
5654}
5655_ACEOF
5656if ac_fn_c_try_link "$LINENO"
5657then :
5658  eval $cacheid=yes
5659else case e in #(
5660  e) eval $cacheid=no ;;
5661esac
5662fi
5663rm -f core conftest.err conftest.$ac_objext conftest.beam \
5664    conftest$ac_exeext conftest.$ac_ext ;;
5665esac
5666fi
5667
5668
5669		CFLAGS="$xorg_testset_save_CFLAGS"
5670
5671		eval supported=\$$cacheid
5672		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5673printf "%s\n" "$supported" >&6; }
5674		if test "$supported" = "yes" ; then
5675			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5676			found="yes"
5677		fi
5678	fi
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694xorg_testset_save_CFLAGS="$CFLAGS"
5695
5696if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5697	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5698	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5699printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5700if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5701then :
5702  printf %s "(cached) " >&6
5703else case e in #(
5704  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5705/* end confdefs.h.  */
5706int i;
5707_ACEOF
5708if ac_fn_c_try_compile "$LINENO"
5709then :
5710  xorg_cv_cc_flag_unknown_warning_option=yes
5711else case e in #(
5712  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5713esac
5714fi
5715rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5716esac
5717fi
5718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5719printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5720	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5721	CFLAGS="$xorg_testset_save_CFLAGS"
5722fi
5723
5724if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5725	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5726		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5727	fi
5728	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5729	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5730printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5731if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5732then :
5733  printf %s "(cached) " >&6
5734else case e in #(
5735  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5736/* end confdefs.h.  */
5737int i;
5738_ACEOF
5739if ac_fn_c_try_compile "$LINENO"
5740then :
5741  xorg_cv_cc_flag_unused_command_line_argument=yes
5742else case e in #(
5743  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5744esac
5745fi
5746rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5747esac
5748fi
5749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5750printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5751	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5752	CFLAGS="$xorg_testset_save_CFLAGS"
5753fi
5754
5755found="no"
5756
5757	if test $found = "no" ; then
5758		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5759			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5760		fi
5761
5762		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5763			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5764		fi
5765
5766		CFLAGS="$CFLAGS -Wmissing-prototypes"
5767
5768		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5769printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5770		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5771		if eval test \${$cacheid+y}
5772then :
5773  printf %s "(cached) " >&6
5774else case e in #(
5775  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5776/* end confdefs.h.  */
5777int i;
5778int
5779main (void)
5780{
5781
5782  ;
5783  return 0;
5784}
5785_ACEOF
5786if ac_fn_c_try_link "$LINENO"
5787then :
5788  eval $cacheid=yes
5789else case e in #(
5790  e) eval $cacheid=no ;;
5791esac
5792fi
5793rm -f core conftest.err conftest.$ac_objext conftest.beam \
5794    conftest$ac_exeext conftest.$ac_ext ;;
5795esac
5796fi
5797
5798
5799		CFLAGS="$xorg_testset_save_CFLAGS"
5800
5801		eval supported=\$$cacheid
5802		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5803printf "%s\n" "$supported" >&6; }
5804		if test "$supported" = "yes" ; then
5805			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5806			found="yes"
5807		fi
5808	fi
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824xorg_testset_save_CFLAGS="$CFLAGS"
5825
5826if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5827	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5828	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5829printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5830if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5831then :
5832  printf %s "(cached) " >&6
5833else case e in #(
5834  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835/* end confdefs.h.  */
5836int i;
5837_ACEOF
5838if ac_fn_c_try_compile "$LINENO"
5839then :
5840  xorg_cv_cc_flag_unknown_warning_option=yes
5841else case e in #(
5842  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5843esac
5844fi
5845rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5846esac
5847fi
5848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5849printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5850	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5851	CFLAGS="$xorg_testset_save_CFLAGS"
5852fi
5853
5854if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5855	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5856		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5857	fi
5858	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5859	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5860printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5861if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5862then :
5863  printf %s "(cached) " >&6
5864else case e in #(
5865  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866/* end confdefs.h.  */
5867int i;
5868_ACEOF
5869if ac_fn_c_try_compile "$LINENO"
5870then :
5871  xorg_cv_cc_flag_unused_command_line_argument=yes
5872else case e in #(
5873  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5874esac
5875fi
5876rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5877esac
5878fi
5879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5880printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5881	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5882	CFLAGS="$xorg_testset_save_CFLAGS"
5883fi
5884
5885found="no"
5886
5887	if test $found = "no" ; then
5888		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5889			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5890		fi
5891
5892		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5893			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5894		fi
5895
5896		CFLAGS="$CFLAGS -Wnested-externs"
5897
5898		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5899printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5900		cacheid=xorg_cv_cc_flag__Wnested_externs
5901		if eval test \${$cacheid+y}
5902then :
5903  printf %s "(cached) " >&6
5904else case e in #(
5905  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906/* end confdefs.h.  */
5907int i;
5908int
5909main (void)
5910{
5911
5912  ;
5913  return 0;
5914}
5915_ACEOF
5916if ac_fn_c_try_link "$LINENO"
5917then :
5918  eval $cacheid=yes
5919else case e in #(
5920  e) eval $cacheid=no ;;
5921esac
5922fi
5923rm -f core conftest.err conftest.$ac_objext conftest.beam \
5924    conftest$ac_exeext conftest.$ac_ext ;;
5925esac
5926fi
5927
5928
5929		CFLAGS="$xorg_testset_save_CFLAGS"
5930
5931		eval supported=\$$cacheid
5932		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5933printf "%s\n" "$supported" >&6; }
5934		if test "$supported" = "yes" ; then
5935			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5936			found="yes"
5937		fi
5938	fi
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954xorg_testset_save_CFLAGS="$CFLAGS"
5955
5956if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5957	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5958	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5959printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5960if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5961then :
5962  printf %s "(cached) " >&6
5963else case e in #(
5964  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5965/* end confdefs.h.  */
5966int i;
5967_ACEOF
5968if ac_fn_c_try_compile "$LINENO"
5969then :
5970  xorg_cv_cc_flag_unknown_warning_option=yes
5971else case e in #(
5972  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5973esac
5974fi
5975rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5976esac
5977fi
5978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5979printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5980	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5981	CFLAGS="$xorg_testset_save_CFLAGS"
5982fi
5983
5984if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5985	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5986		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5987	fi
5988	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5989	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5990printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5991if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5992then :
5993  printf %s "(cached) " >&6
5994else case e in #(
5995  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996/* end confdefs.h.  */
5997int i;
5998_ACEOF
5999if ac_fn_c_try_compile "$LINENO"
6000then :
6001  xorg_cv_cc_flag_unused_command_line_argument=yes
6002else case e in #(
6003  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6004esac
6005fi
6006rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6007esac
6008fi
6009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6010printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6011	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6012	CFLAGS="$xorg_testset_save_CFLAGS"
6013fi
6014
6015found="no"
6016
6017	if test $found = "no" ; then
6018		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6019			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6020		fi
6021
6022		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6023			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6024		fi
6025
6026		CFLAGS="$CFLAGS -Wbad-function-cast"
6027
6028		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6029printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6030		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6031		if eval test \${$cacheid+y}
6032then :
6033  printf %s "(cached) " >&6
6034else case e in #(
6035  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036/* end confdefs.h.  */
6037int i;
6038int
6039main (void)
6040{
6041
6042  ;
6043  return 0;
6044}
6045_ACEOF
6046if ac_fn_c_try_link "$LINENO"
6047then :
6048  eval $cacheid=yes
6049else case e in #(
6050  e) eval $cacheid=no ;;
6051esac
6052fi
6053rm -f core conftest.err conftest.$ac_objext conftest.beam \
6054    conftest$ac_exeext conftest.$ac_ext ;;
6055esac
6056fi
6057
6058
6059		CFLAGS="$xorg_testset_save_CFLAGS"
6060
6061		eval supported=\$$cacheid
6062		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6063printf "%s\n" "$supported" >&6; }
6064		if test "$supported" = "yes" ; then
6065			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6066			found="yes"
6067		fi
6068	fi
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084xorg_testset_save_CFLAGS="$CFLAGS"
6085
6086if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6087	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6088	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6089printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6090if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6091then :
6092  printf %s "(cached) " >&6
6093else case e in #(
6094  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6095/* end confdefs.h.  */
6096int i;
6097_ACEOF
6098if ac_fn_c_try_compile "$LINENO"
6099then :
6100  xorg_cv_cc_flag_unknown_warning_option=yes
6101else case e in #(
6102  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6103esac
6104fi
6105rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6106esac
6107fi
6108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6109printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6110	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6111	CFLAGS="$xorg_testset_save_CFLAGS"
6112fi
6113
6114if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6115	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6116		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6117	fi
6118	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6119	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6120printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6121if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6122then :
6123  printf %s "(cached) " >&6
6124else case e in #(
6125  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6126/* end confdefs.h.  */
6127int i;
6128_ACEOF
6129if ac_fn_c_try_compile "$LINENO"
6130then :
6131  xorg_cv_cc_flag_unused_command_line_argument=yes
6132else case e in #(
6133  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6134esac
6135fi
6136rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6137esac
6138fi
6139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6140printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6141	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6142	CFLAGS="$xorg_testset_save_CFLAGS"
6143fi
6144
6145found="no"
6146
6147	if test $found = "no" ; then
6148		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6149			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6150		fi
6151
6152		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6153			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6154		fi
6155
6156		CFLAGS="$CFLAGS -Wold-style-definition"
6157
6158		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6159printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6160		cacheid=xorg_cv_cc_flag__Wold_style_definition
6161		if eval test \${$cacheid+y}
6162then :
6163  printf %s "(cached) " >&6
6164else case e in #(
6165  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6166/* end confdefs.h.  */
6167int i;
6168int
6169main (void)
6170{
6171
6172  ;
6173  return 0;
6174}
6175_ACEOF
6176if ac_fn_c_try_link "$LINENO"
6177then :
6178  eval $cacheid=yes
6179else case e in #(
6180  e) eval $cacheid=no ;;
6181esac
6182fi
6183rm -f core conftest.err conftest.$ac_objext conftest.beam \
6184    conftest$ac_exeext conftest.$ac_ext ;;
6185esac
6186fi
6187
6188
6189		CFLAGS="$xorg_testset_save_CFLAGS"
6190
6191		eval supported=\$$cacheid
6192		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6193printf "%s\n" "$supported" >&6; }
6194		if test "$supported" = "yes" ; then
6195			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6196			found="yes"
6197		fi
6198	fi
6199
6200	if test $found = "no" ; then
6201		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6202			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6203		fi
6204
6205		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6206			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6207		fi
6208
6209		CFLAGS="$CFLAGS -fd"
6210
6211		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6212printf %s "checking if $CC supports -fd... " >&6; }
6213		cacheid=xorg_cv_cc_flag__fd
6214		if eval test \${$cacheid+y}
6215then :
6216  printf %s "(cached) " >&6
6217else case e in #(
6218  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6219/* end confdefs.h.  */
6220int i;
6221int
6222main (void)
6223{
6224
6225  ;
6226  return 0;
6227}
6228_ACEOF
6229if ac_fn_c_try_link "$LINENO"
6230then :
6231  eval $cacheid=yes
6232else case e in #(
6233  e) eval $cacheid=no ;;
6234esac
6235fi
6236rm -f core conftest.err conftest.$ac_objext conftest.beam \
6237    conftest$ac_exeext conftest.$ac_ext ;;
6238esac
6239fi
6240
6241
6242		CFLAGS="$xorg_testset_save_CFLAGS"
6243
6244		eval supported=\$$cacheid
6245		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6246printf "%s\n" "$supported" >&6; }
6247		if test "$supported" = "yes" ; then
6248			BASE_CFLAGS="$BASE_CFLAGS -fd"
6249			found="yes"
6250		fi
6251	fi
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267xorg_testset_save_CFLAGS="$CFLAGS"
6268
6269if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6270	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6271	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6272printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6273if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6274then :
6275  printf %s "(cached) " >&6
6276else case e in #(
6277  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278/* end confdefs.h.  */
6279int i;
6280_ACEOF
6281if ac_fn_c_try_compile "$LINENO"
6282then :
6283  xorg_cv_cc_flag_unknown_warning_option=yes
6284else case e in #(
6285  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6286esac
6287fi
6288rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6289esac
6290fi
6291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6292printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6293	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6294	CFLAGS="$xorg_testset_save_CFLAGS"
6295fi
6296
6297if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6298	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6299		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6300	fi
6301	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6302	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6303printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6304if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6305then :
6306  printf %s "(cached) " >&6
6307else case e in #(
6308  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6309/* end confdefs.h.  */
6310int i;
6311_ACEOF
6312if ac_fn_c_try_compile "$LINENO"
6313then :
6314  xorg_cv_cc_flag_unused_command_line_argument=yes
6315else case e in #(
6316  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6317esac
6318fi
6319rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6320esac
6321fi
6322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6323printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6324	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6325	CFLAGS="$xorg_testset_save_CFLAGS"
6326fi
6327
6328found="no"
6329
6330	if test $found = "no" ; then
6331		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6332			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6333		fi
6334
6335		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6336			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6337		fi
6338
6339		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6340
6341		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6342printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6343		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6344		if eval test \${$cacheid+y}
6345then :
6346  printf %s "(cached) " >&6
6347else case e in #(
6348  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349/* end confdefs.h.  */
6350int i;
6351int
6352main (void)
6353{
6354
6355  ;
6356  return 0;
6357}
6358_ACEOF
6359if ac_fn_c_try_link "$LINENO"
6360then :
6361  eval $cacheid=yes
6362else case e in #(
6363  e) eval $cacheid=no ;;
6364esac
6365fi
6366rm -f core conftest.err conftest.$ac_objext conftest.beam \
6367    conftest$ac_exeext conftest.$ac_ext ;;
6368esac
6369fi
6370
6371
6372		CFLAGS="$xorg_testset_save_CFLAGS"
6373
6374		eval supported=\$$cacheid
6375		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6376printf "%s\n" "$supported" >&6; }
6377		if test "$supported" = "yes" ; then
6378			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6379			found="yes"
6380		fi
6381	fi
6382
6383
6384
6385
6386
6387# This chunk adds additional warnings that could catch undesired effects.
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401xorg_testset_save_CFLAGS="$CFLAGS"
6402
6403if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6404	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6405	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6406printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6407if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6408then :
6409  printf %s "(cached) " >&6
6410else case e in #(
6411  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6412/* end confdefs.h.  */
6413int i;
6414_ACEOF
6415if ac_fn_c_try_compile "$LINENO"
6416then :
6417  xorg_cv_cc_flag_unknown_warning_option=yes
6418else case e in #(
6419  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6420esac
6421fi
6422rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6423esac
6424fi
6425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6426printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6427	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6428	CFLAGS="$xorg_testset_save_CFLAGS"
6429fi
6430
6431if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6432	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6433		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6434	fi
6435	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6436	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6437printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6438if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6439then :
6440  printf %s "(cached) " >&6
6441else case e in #(
6442  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443/* end confdefs.h.  */
6444int i;
6445_ACEOF
6446if ac_fn_c_try_compile "$LINENO"
6447then :
6448  xorg_cv_cc_flag_unused_command_line_argument=yes
6449else case e in #(
6450  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6451esac
6452fi
6453rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6454esac
6455fi
6456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6457printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6458	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6459	CFLAGS="$xorg_testset_save_CFLAGS"
6460fi
6461
6462found="no"
6463
6464	if test $found = "no" ; then
6465		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6466			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6467		fi
6468
6469		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6470			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6471		fi
6472
6473		CFLAGS="$CFLAGS -Wunused"
6474
6475		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6476printf %s "checking if $CC supports -Wunused... " >&6; }
6477		cacheid=xorg_cv_cc_flag__Wunused
6478		if eval test \${$cacheid+y}
6479then :
6480  printf %s "(cached) " >&6
6481else case e in #(
6482  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6483/* end confdefs.h.  */
6484int i;
6485int
6486main (void)
6487{
6488
6489  ;
6490  return 0;
6491}
6492_ACEOF
6493if ac_fn_c_try_link "$LINENO"
6494then :
6495  eval $cacheid=yes
6496else case e in #(
6497  e) eval $cacheid=no ;;
6498esac
6499fi
6500rm -f core conftest.err conftest.$ac_objext conftest.beam \
6501    conftest$ac_exeext conftest.$ac_ext ;;
6502esac
6503fi
6504
6505
6506		CFLAGS="$xorg_testset_save_CFLAGS"
6507
6508		eval supported=\$$cacheid
6509		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6510printf "%s\n" "$supported" >&6; }
6511		if test "$supported" = "yes" ; then
6512			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6513			found="yes"
6514		fi
6515	fi
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531xorg_testset_save_CFLAGS="$CFLAGS"
6532
6533if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6534	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6535	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6536printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6537if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6538then :
6539  printf %s "(cached) " >&6
6540else case e in #(
6541  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6542/* end confdefs.h.  */
6543int i;
6544_ACEOF
6545if ac_fn_c_try_compile "$LINENO"
6546then :
6547  xorg_cv_cc_flag_unknown_warning_option=yes
6548else case e in #(
6549  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6550esac
6551fi
6552rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6553esac
6554fi
6555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6556printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6557	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6558	CFLAGS="$xorg_testset_save_CFLAGS"
6559fi
6560
6561if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6562	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6563		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6564	fi
6565	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6566	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6567printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6568if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6569then :
6570  printf %s "(cached) " >&6
6571else case e in #(
6572  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573/* end confdefs.h.  */
6574int i;
6575_ACEOF
6576if ac_fn_c_try_compile "$LINENO"
6577then :
6578  xorg_cv_cc_flag_unused_command_line_argument=yes
6579else case e in #(
6580  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6581esac
6582fi
6583rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6584esac
6585fi
6586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6587printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6588	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6589	CFLAGS="$xorg_testset_save_CFLAGS"
6590fi
6591
6592found="no"
6593
6594	if test $found = "no" ; then
6595		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6596			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6597		fi
6598
6599		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6600			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6601		fi
6602
6603		CFLAGS="$CFLAGS -Wuninitialized"
6604
6605		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6606printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6607		cacheid=xorg_cv_cc_flag__Wuninitialized
6608		if eval test \${$cacheid+y}
6609then :
6610  printf %s "(cached) " >&6
6611else case e in #(
6612  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6613/* end confdefs.h.  */
6614int i;
6615int
6616main (void)
6617{
6618
6619  ;
6620  return 0;
6621}
6622_ACEOF
6623if ac_fn_c_try_link "$LINENO"
6624then :
6625  eval $cacheid=yes
6626else case e in #(
6627  e) eval $cacheid=no ;;
6628esac
6629fi
6630rm -f core conftest.err conftest.$ac_objext conftest.beam \
6631    conftest$ac_exeext conftest.$ac_ext ;;
6632esac
6633fi
6634
6635
6636		CFLAGS="$xorg_testset_save_CFLAGS"
6637
6638		eval supported=\$$cacheid
6639		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6640printf "%s\n" "$supported" >&6; }
6641		if test "$supported" = "yes" ; then
6642			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6643			found="yes"
6644		fi
6645	fi
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661xorg_testset_save_CFLAGS="$CFLAGS"
6662
6663if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6664	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6665	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6666printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6667if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6668then :
6669  printf %s "(cached) " >&6
6670else case e in #(
6671  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6672/* end confdefs.h.  */
6673int i;
6674_ACEOF
6675if ac_fn_c_try_compile "$LINENO"
6676then :
6677  xorg_cv_cc_flag_unknown_warning_option=yes
6678else case e in #(
6679  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6680esac
6681fi
6682rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6683esac
6684fi
6685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6686printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6687	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6688	CFLAGS="$xorg_testset_save_CFLAGS"
6689fi
6690
6691if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6692	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6693		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6694	fi
6695	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6696	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6697printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6698if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6699then :
6700  printf %s "(cached) " >&6
6701else case e in #(
6702  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703/* end confdefs.h.  */
6704int i;
6705_ACEOF
6706if ac_fn_c_try_compile "$LINENO"
6707then :
6708  xorg_cv_cc_flag_unused_command_line_argument=yes
6709else case e in #(
6710  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6711esac
6712fi
6713rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6714esac
6715fi
6716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6717printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6718	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6719	CFLAGS="$xorg_testset_save_CFLAGS"
6720fi
6721
6722found="no"
6723
6724	if test $found = "no" ; then
6725		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6726			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6727		fi
6728
6729		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6730			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6731		fi
6732
6733		CFLAGS="$CFLAGS -Wshadow"
6734
6735		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6736printf %s "checking if $CC supports -Wshadow... " >&6; }
6737		cacheid=xorg_cv_cc_flag__Wshadow
6738		if eval test \${$cacheid+y}
6739then :
6740  printf %s "(cached) " >&6
6741else case e in #(
6742  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6743/* end confdefs.h.  */
6744int i;
6745int
6746main (void)
6747{
6748
6749  ;
6750  return 0;
6751}
6752_ACEOF
6753if ac_fn_c_try_link "$LINENO"
6754then :
6755  eval $cacheid=yes
6756else case e in #(
6757  e) eval $cacheid=no ;;
6758esac
6759fi
6760rm -f core conftest.err conftest.$ac_objext conftest.beam \
6761    conftest$ac_exeext conftest.$ac_ext ;;
6762esac
6763fi
6764
6765
6766		CFLAGS="$xorg_testset_save_CFLAGS"
6767
6768		eval supported=\$$cacheid
6769		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6770printf "%s\n" "$supported" >&6; }
6771		if test "$supported" = "yes" ; then
6772			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6773			found="yes"
6774		fi
6775	fi
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791xorg_testset_save_CFLAGS="$CFLAGS"
6792
6793if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6794	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6795	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6796printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6797if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6798then :
6799  printf %s "(cached) " >&6
6800else case e in #(
6801  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802/* end confdefs.h.  */
6803int i;
6804_ACEOF
6805if ac_fn_c_try_compile "$LINENO"
6806then :
6807  xorg_cv_cc_flag_unknown_warning_option=yes
6808else case e in #(
6809  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6810esac
6811fi
6812rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6813esac
6814fi
6815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6816printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6817	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6818	CFLAGS="$xorg_testset_save_CFLAGS"
6819fi
6820
6821if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6822	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6823		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6824	fi
6825	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6826	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6827printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6828if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6829then :
6830  printf %s "(cached) " >&6
6831else case e in #(
6832  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833/* end confdefs.h.  */
6834int i;
6835_ACEOF
6836if ac_fn_c_try_compile "$LINENO"
6837then :
6838  xorg_cv_cc_flag_unused_command_line_argument=yes
6839else case e in #(
6840  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6841esac
6842fi
6843rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6844esac
6845fi
6846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6847printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6848	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6849	CFLAGS="$xorg_testset_save_CFLAGS"
6850fi
6851
6852found="no"
6853
6854	if test $found = "no" ; then
6855		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6856			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6857		fi
6858
6859		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6860			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6861		fi
6862
6863		CFLAGS="$CFLAGS -Wmissing-noreturn"
6864
6865		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6866printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6867		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6868		if eval test \${$cacheid+y}
6869then :
6870  printf %s "(cached) " >&6
6871else case e in #(
6872  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873/* end confdefs.h.  */
6874int i;
6875int
6876main (void)
6877{
6878
6879  ;
6880  return 0;
6881}
6882_ACEOF
6883if ac_fn_c_try_link "$LINENO"
6884then :
6885  eval $cacheid=yes
6886else case e in #(
6887  e) eval $cacheid=no ;;
6888esac
6889fi
6890rm -f core conftest.err conftest.$ac_objext conftest.beam \
6891    conftest$ac_exeext conftest.$ac_ext ;;
6892esac
6893fi
6894
6895
6896		CFLAGS="$xorg_testset_save_CFLAGS"
6897
6898		eval supported=\$$cacheid
6899		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6900printf "%s\n" "$supported" >&6; }
6901		if test "$supported" = "yes" ; then
6902			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6903			found="yes"
6904		fi
6905	fi
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921xorg_testset_save_CFLAGS="$CFLAGS"
6922
6923if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6924	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6925	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6926printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6927if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6928then :
6929  printf %s "(cached) " >&6
6930else case e in #(
6931  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6932/* end confdefs.h.  */
6933int i;
6934_ACEOF
6935if ac_fn_c_try_compile "$LINENO"
6936then :
6937  xorg_cv_cc_flag_unknown_warning_option=yes
6938else case e in #(
6939  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6940esac
6941fi
6942rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6943esac
6944fi
6945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6946printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6947	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6948	CFLAGS="$xorg_testset_save_CFLAGS"
6949fi
6950
6951if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6952	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6953		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6954	fi
6955	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6956	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6957printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6958if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6959then :
6960  printf %s "(cached) " >&6
6961else case e in #(
6962  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963/* end confdefs.h.  */
6964int i;
6965_ACEOF
6966if ac_fn_c_try_compile "$LINENO"
6967then :
6968  xorg_cv_cc_flag_unused_command_line_argument=yes
6969else case e in #(
6970  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6971esac
6972fi
6973rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6974esac
6975fi
6976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6977printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6978	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6979	CFLAGS="$xorg_testset_save_CFLAGS"
6980fi
6981
6982found="no"
6983
6984	if test $found = "no" ; then
6985		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6986			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6987		fi
6988
6989		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6990			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6991		fi
6992
6993		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6994
6995		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6996printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6997		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6998		if eval test \${$cacheid+y}
6999then :
7000  printf %s "(cached) " >&6
7001else case e in #(
7002  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7003/* end confdefs.h.  */
7004int i;
7005int
7006main (void)
7007{
7008
7009  ;
7010  return 0;
7011}
7012_ACEOF
7013if ac_fn_c_try_link "$LINENO"
7014then :
7015  eval $cacheid=yes
7016else case e in #(
7017  e) eval $cacheid=no ;;
7018esac
7019fi
7020rm -f core conftest.err conftest.$ac_objext conftest.beam \
7021    conftest$ac_exeext conftest.$ac_ext ;;
7022esac
7023fi
7024
7025
7026		CFLAGS="$xorg_testset_save_CFLAGS"
7027
7028		eval supported=\$$cacheid
7029		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7030printf "%s\n" "$supported" >&6; }
7031		if test "$supported" = "yes" ; then
7032			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7033			found="yes"
7034		fi
7035	fi
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051xorg_testset_save_CFLAGS="$CFLAGS"
7052
7053if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7054	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7055	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7056printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7057if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7058then :
7059  printf %s "(cached) " >&6
7060else case e in #(
7061  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7062/* end confdefs.h.  */
7063int i;
7064_ACEOF
7065if ac_fn_c_try_compile "$LINENO"
7066then :
7067  xorg_cv_cc_flag_unknown_warning_option=yes
7068else case e in #(
7069  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7070esac
7071fi
7072rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7073esac
7074fi
7075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7076printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7077	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7078	CFLAGS="$xorg_testset_save_CFLAGS"
7079fi
7080
7081if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7082	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7083		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7084	fi
7085	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7086	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7087printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7088if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7089then :
7090  printf %s "(cached) " >&6
7091else case e in #(
7092  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093/* end confdefs.h.  */
7094int i;
7095_ACEOF
7096if ac_fn_c_try_compile "$LINENO"
7097then :
7098  xorg_cv_cc_flag_unused_command_line_argument=yes
7099else case e in #(
7100  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7101esac
7102fi
7103rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7104esac
7105fi
7106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7107printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7108	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7109	CFLAGS="$xorg_testset_save_CFLAGS"
7110fi
7111
7112found="no"
7113
7114	if test $found = "no" ; then
7115		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7116			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7117		fi
7118
7119		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7120			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7121		fi
7122
7123		CFLAGS="$CFLAGS -Wredundant-decls"
7124
7125		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7126printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7127		cacheid=xorg_cv_cc_flag__Wredundant_decls
7128		if eval test \${$cacheid+y}
7129then :
7130  printf %s "(cached) " >&6
7131else case e in #(
7132  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133/* end confdefs.h.  */
7134int i;
7135int
7136main (void)
7137{
7138
7139  ;
7140  return 0;
7141}
7142_ACEOF
7143if ac_fn_c_try_link "$LINENO"
7144then :
7145  eval $cacheid=yes
7146else case e in #(
7147  e) eval $cacheid=no ;;
7148esac
7149fi
7150rm -f core conftest.err conftest.$ac_objext conftest.beam \
7151    conftest$ac_exeext conftest.$ac_ext ;;
7152esac
7153fi
7154
7155
7156		CFLAGS="$xorg_testset_save_CFLAGS"
7157
7158		eval supported=\$$cacheid
7159		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7160printf "%s\n" "$supported" >&6; }
7161		if test "$supported" = "yes" ; then
7162			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7163			found="yes"
7164		fi
7165	fi
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181xorg_testset_save_CFLAGS="$CFLAGS"
7182
7183if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7184	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7185	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7186printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7187if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7188then :
7189  printf %s "(cached) " >&6
7190else case e in #(
7191  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7192/* end confdefs.h.  */
7193int i;
7194_ACEOF
7195if ac_fn_c_try_compile "$LINENO"
7196then :
7197  xorg_cv_cc_flag_unknown_warning_option=yes
7198else case e in #(
7199  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7200esac
7201fi
7202rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7203esac
7204fi
7205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7206printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7207	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7208	CFLAGS="$xorg_testset_save_CFLAGS"
7209fi
7210
7211if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7212	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7213		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7214	fi
7215	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7216	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7217printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7218if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7219then :
7220  printf %s "(cached) " >&6
7221else case e in #(
7222  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7223/* end confdefs.h.  */
7224int i;
7225_ACEOF
7226if ac_fn_c_try_compile "$LINENO"
7227then :
7228  xorg_cv_cc_flag_unused_command_line_argument=yes
7229else case e in #(
7230  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7231esac
7232fi
7233rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7234esac
7235fi
7236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7237printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7238	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7239	CFLAGS="$xorg_testset_save_CFLAGS"
7240fi
7241
7242found="no"
7243
7244	if test $found = "no" ; then
7245		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7246			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7247		fi
7248
7249		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7250			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7251		fi
7252
7253		CFLAGS="$CFLAGS -Wlogical-op"
7254
7255		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7256printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7257		cacheid=xorg_cv_cc_flag__Wlogical_op
7258		if eval test \${$cacheid+y}
7259then :
7260  printf %s "(cached) " >&6
7261else case e in #(
7262  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263/* end confdefs.h.  */
7264int i;
7265int
7266main (void)
7267{
7268
7269  ;
7270  return 0;
7271}
7272_ACEOF
7273if ac_fn_c_try_link "$LINENO"
7274then :
7275  eval $cacheid=yes
7276else case e in #(
7277  e) eval $cacheid=no ;;
7278esac
7279fi
7280rm -f core conftest.err conftest.$ac_objext conftest.beam \
7281    conftest$ac_exeext conftest.$ac_ext ;;
7282esac
7283fi
7284
7285
7286		CFLAGS="$xorg_testset_save_CFLAGS"
7287
7288		eval supported=\$$cacheid
7289		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7290printf "%s\n" "$supported" >&6; }
7291		if test "$supported" = "yes" ; then
7292			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7293			found="yes"
7294		fi
7295	fi
7296
7297
7298
7299# These are currently disabled because they are noisy.  They will be enabled
7300# in the future once the codebase is sufficiently modernized to silence
7301# them.  For now, I don't want them to drown out the other warnings.
7302# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7303# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7304# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7305
7306# Turn some warnings into errors, so we don't accidentally get successful builds
7307# when there are problems that should be fixed.
7308
7309if test "x$SELECTIVE_WERROR" = "xyes" ; then
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323xorg_testset_save_CFLAGS="$CFLAGS"
7324
7325if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7326	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7327	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7328printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7329if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7330then :
7331  printf %s "(cached) " >&6
7332else case e in #(
7333  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7334/* end confdefs.h.  */
7335int i;
7336_ACEOF
7337if ac_fn_c_try_compile "$LINENO"
7338then :
7339  xorg_cv_cc_flag_unknown_warning_option=yes
7340else case e in #(
7341  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7342esac
7343fi
7344rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7345esac
7346fi
7347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7348printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7349	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7350	CFLAGS="$xorg_testset_save_CFLAGS"
7351fi
7352
7353if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7354	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7355		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7356	fi
7357	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7358	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7359printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7360if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7361then :
7362  printf %s "(cached) " >&6
7363else case e in #(
7364  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365/* end confdefs.h.  */
7366int i;
7367_ACEOF
7368if ac_fn_c_try_compile "$LINENO"
7369then :
7370  xorg_cv_cc_flag_unused_command_line_argument=yes
7371else case e in #(
7372  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7373esac
7374fi
7375rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7376esac
7377fi
7378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7379printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7380	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7381	CFLAGS="$xorg_testset_save_CFLAGS"
7382fi
7383
7384found="no"
7385
7386	if test $found = "no" ; then
7387		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7388			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7389		fi
7390
7391		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7392			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7393		fi
7394
7395		CFLAGS="$CFLAGS -Werror=implicit"
7396
7397		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7398printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7399		cacheid=xorg_cv_cc_flag__Werror_implicit
7400		if eval test \${$cacheid+y}
7401then :
7402  printf %s "(cached) " >&6
7403else case e in #(
7404  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7405/* end confdefs.h.  */
7406int i;
7407int
7408main (void)
7409{
7410
7411  ;
7412  return 0;
7413}
7414_ACEOF
7415if ac_fn_c_try_link "$LINENO"
7416then :
7417  eval $cacheid=yes
7418else case e in #(
7419  e) eval $cacheid=no ;;
7420esac
7421fi
7422rm -f core conftest.err conftest.$ac_objext conftest.beam \
7423    conftest$ac_exeext conftest.$ac_ext ;;
7424esac
7425fi
7426
7427
7428		CFLAGS="$xorg_testset_save_CFLAGS"
7429
7430		eval supported=\$$cacheid
7431		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7432printf "%s\n" "$supported" >&6; }
7433		if test "$supported" = "yes" ; then
7434			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7435			found="yes"
7436		fi
7437	fi
7438
7439	if test $found = "no" ; then
7440		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7441			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7442		fi
7443
7444		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7445			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7446		fi
7447
7448		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7449
7450		{ 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
7451printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7452		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7453		if eval test \${$cacheid+y}
7454then :
7455  printf %s "(cached) " >&6
7456else case e in #(
7457  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458/* end confdefs.h.  */
7459int i;
7460int
7461main (void)
7462{
7463
7464  ;
7465  return 0;
7466}
7467_ACEOF
7468if ac_fn_c_try_link "$LINENO"
7469then :
7470  eval $cacheid=yes
7471else case e in #(
7472  e) eval $cacheid=no ;;
7473esac
7474fi
7475rm -f core conftest.err conftest.$ac_objext conftest.beam \
7476    conftest$ac_exeext conftest.$ac_ext ;;
7477esac
7478fi
7479
7480
7481		CFLAGS="$xorg_testset_save_CFLAGS"
7482
7483		eval supported=\$$cacheid
7484		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7485printf "%s\n" "$supported" >&6; }
7486		if test "$supported" = "yes" ; then
7487			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7488			found="yes"
7489		fi
7490	fi
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506xorg_testset_save_CFLAGS="$CFLAGS"
7507
7508if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7509	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7510	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7511printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7512if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7513then :
7514  printf %s "(cached) " >&6
7515else case e in #(
7516  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517/* end confdefs.h.  */
7518int i;
7519_ACEOF
7520if ac_fn_c_try_compile "$LINENO"
7521then :
7522  xorg_cv_cc_flag_unknown_warning_option=yes
7523else case e in #(
7524  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7525esac
7526fi
7527rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7528esac
7529fi
7530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7531printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7532	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7533	CFLAGS="$xorg_testset_save_CFLAGS"
7534fi
7535
7536if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7537	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7538		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7539	fi
7540	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7541	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7542printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7543if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7544then :
7545  printf %s "(cached) " >&6
7546else case e in #(
7547  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7548/* end confdefs.h.  */
7549int i;
7550_ACEOF
7551if ac_fn_c_try_compile "$LINENO"
7552then :
7553  xorg_cv_cc_flag_unused_command_line_argument=yes
7554else case e in #(
7555  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7556esac
7557fi
7558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7559esac
7560fi
7561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7562printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7563	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7564	CFLAGS="$xorg_testset_save_CFLAGS"
7565fi
7566
7567found="no"
7568
7569	if test $found = "no" ; then
7570		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7571			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7572		fi
7573
7574		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7575			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7576		fi
7577
7578		CFLAGS="$CFLAGS -Werror=nonnull"
7579
7580		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7581printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7582		cacheid=xorg_cv_cc_flag__Werror_nonnull
7583		if eval test \${$cacheid+y}
7584then :
7585  printf %s "(cached) " >&6
7586else case e in #(
7587  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7588/* end confdefs.h.  */
7589int i;
7590int
7591main (void)
7592{
7593
7594  ;
7595  return 0;
7596}
7597_ACEOF
7598if ac_fn_c_try_link "$LINENO"
7599then :
7600  eval $cacheid=yes
7601else case e in #(
7602  e) eval $cacheid=no ;;
7603esac
7604fi
7605rm -f core conftest.err conftest.$ac_objext conftest.beam \
7606    conftest$ac_exeext conftest.$ac_ext ;;
7607esac
7608fi
7609
7610
7611		CFLAGS="$xorg_testset_save_CFLAGS"
7612
7613		eval supported=\$$cacheid
7614		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7615printf "%s\n" "$supported" >&6; }
7616		if test "$supported" = "yes" ; then
7617			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7618			found="yes"
7619		fi
7620	fi
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636xorg_testset_save_CFLAGS="$CFLAGS"
7637
7638if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7639	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7640	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7641printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7642if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7643then :
7644  printf %s "(cached) " >&6
7645else case e in #(
7646  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7647/* end confdefs.h.  */
7648int i;
7649_ACEOF
7650if ac_fn_c_try_compile "$LINENO"
7651then :
7652  xorg_cv_cc_flag_unknown_warning_option=yes
7653else case e in #(
7654  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7655esac
7656fi
7657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7658esac
7659fi
7660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7661printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7662	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7663	CFLAGS="$xorg_testset_save_CFLAGS"
7664fi
7665
7666if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7667	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7668		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7669	fi
7670	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7671	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7672printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7673if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7674then :
7675  printf %s "(cached) " >&6
7676else case e in #(
7677  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7678/* end confdefs.h.  */
7679int i;
7680_ACEOF
7681if ac_fn_c_try_compile "$LINENO"
7682then :
7683  xorg_cv_cc_flag_unused_command_line_argument=yes
7684else case e in #(
7685  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7686esac
7687fi
7688rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7689esac
7690fi
7691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7692printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7693	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7694	CFLAGS="$xorg_testset_save_CFLAGS"
7695fi
7696
7697found="no"
7698
7699	if test $found = "no" ; then
7700		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7701			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7702		fi
7703
7704		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7705			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7706		fi
7707
7708		CFLAGS="$CFLAGS -Werror=init-self"
7709
7710		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7711printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7712		cacheid=xorg_cv_cc_flag__Werror_init_self
7713		if eval test \${$cacheid+y}
7714then :
7715  printf %s "(cached) " >&6
7716else case e in #(
7717  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718/* end confdefs.h.  */
7719int i;
7720int
7721main (void)
7722{
7723
7724  ;
7725  return 0;
7726}
7727_ACEOF
7728if ac_fn_c_try_link "$LINENO"
7729then :
7730  eval $cacheid=yes
7731else case e in #(
7732  e) eval $cacheid=no ;;
7733esac
7734fi
7735rm -f core conftest.err conftest.$ac_objext conftest.beam \
7736    conftest$ac_exeext conftest.$ac_ext ;;
7737esac
7738fi
7739
7740
7741		CFLAGS="$xorg_testset_save_CFLAGS"
7742
7743		eval supported=\$$cacheid
7744		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7745printf "%s\n" "$supported" >&6; }
7746		if test "$supported" = "yes" ; then
7747			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7748			found="yes"
7749		fi
7750	fi
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766xorg_testset_save_CFLAGS="$CFLAGS"
7767
7768if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7769	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7770	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7771printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7772if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7773then :
7774  printf %s "(cached) " >&6
7775else case e in #(
7776  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777/* end confdefs.h.  */
7778int i;
7779_ACEOF
7780if ac_fn_c_try_compile "$LINENO"
7781then :
7782  xorg_cv_cc_flag_unknown_warning_option=yes
7783else case e in #(
7784  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7785esac
7786fi
7787rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7788esac
7789fi
7790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7791printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7792	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7793	CFLAGS="$xorg_testset_save_CFLAGS"
7794fi
7795
7796if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7797	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7798		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7799	fi
7800	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7801	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7802printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7803if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7804then :
7805  printf %s "(cached) " >&6
7806else case e in #(
7807  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808/* end confdefs.h.  */
7809int i;
7810_ACEOF
7811if ac_fn_c_try_compile "$LINENO"
7812then :
7813  xorg_cv_cc_flag_unused_command_line_argument=yes
7814else case e in #(
7815  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7816esac
7817fi
7818rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7819esac
7820fi
7821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7822printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7823	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7824	CFLAGS="$xorg_testset_save_CFLAGS"
7825fi
7826
7827found="no"
7828
7829	if test $found = "no" ; then
7830		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7831			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7832		fi
7833
7834		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7835			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7836		fi
7837
7838		CFLAGS="$CFLAGS -Werror=main"
7839
7840		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7841printf %s "checking if $CC supports -Werror=main... " >&6; }
7842		cacheid=xorg_cv_cc_flag__Werror_main
7843		if eval test \${$cacheid+y}
7844then :
7845  printf %s "(cached) " >&6
7846else case e in #(
7847  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848/* end confdefs.h.  */
7849int i;
7850int
7851main (void)
7852{
7853
7854  ;
7855  return 0;
7856}
7857_ACEOF
7858if ac_fn_c_try_link "$LINENO"
7859then :
7860  eval $cacheid=yes
7861else case e in #(
7862  e) eval $cacheid=no ;;
7863esac
7864fi
7865rm -f core conftest.err conftest.$ac_objext conftest.beam \
7866    conftest$ac_exeext conftest.$ac_ext ;;
7867esac
7868fi
7869
7870
7871		CFLAGS="$xorg_testset_save_CFLAGS"
7872
7873		eval supported=\$$cacheid
7874		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7875printf "%s\n" "$supported" >&6; }
7876		if test "$supported" = "yes" ; then
7877			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7878			found="yes"
7879		fi
7880	fi
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896xorg_testset_save_CFLAGS="$CFLAGS"
7897
7898if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7899	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7900	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7901printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7902if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7903then :
7904  printf %s "(cached) " >&6
7905else case e in #(
7906  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7907/* end confdefs.h.  */
7908int i;
7909_ACEOF
7910if ac_fn_c_try_compile "$LINENO"
7911then :
7912  xorg_cv_cc_flag_unknown_warning_option=yes
7913else case e in #(
7914  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7915esac
7916fi
7917rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7918esac
7919fi
7920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7921printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7922	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7923	CFLAGS="$xorg_testset_save_CFLAGS"
7924fi
7925
7926if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7927	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7928		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7929	fi
7930	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7931	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7932printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7933if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7934then :
7935  printf %s "(cached) " >&6
7936else case e in #(
7937  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938/* end confdefs.h.  */
7939int i;
7940_ACEOF
7941if ac_fn_c_try_compile "$LINENO"
7942then :
7943  xorg_cv_cc_flag_unused_command_line_argument=yes
7944else case e in #(
7945  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7946esac
7947fi
7948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7949esac
7950fi
7951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7952printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7953	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7954	CFLAGS="$xorg_testset_save_CFLAGS"
7955fi
7956
7957found="no"
7958
7959	if test $found = "no" ; then
7960		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7961			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7962		fi
7963
7964		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7965			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7966		fi
7967
7968		CFLAGS="$CFLAGS -Werror=missing-braces"
7969
7970		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7971printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7972		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7973		if eval test \${$cacheid+y}
7974then :
7975  printf %s "(cached) " >&6
7976else case e in #(
7977  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7978/* end confdefs.h.  */
7979int i;
7980int
7981main (void)
7982{
7983
7984  ;
7985  return 0;
7986}
7987_ACEOF
7988if ac_fn_c_try_link "$LINENO"
7989then :
7990  eval $cacheid=yes
7991else case e in #(
7992  e) eval $cacheid=no ;;
7993esac
7994fi
7995rm -f core conftest.err conftest.$ac_objext conftest.beam \
7996    conftest$ac_exeext conftest.$ac_ext ;;
7997esac
7998fi
7999
8000
8001		CFLAGS="$xorg_testset_save_CFLAGS"
8002
8003		eval supported=\$$cacheid
8004		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8005printf "%s\n" "$supported" >&6; }
8006		if test "$supported" = "yes" ; then
8007			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8008			found="yes"
8009		fi
8010	fi
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026xorg_testset_save_CFLAGS="$CFLAGS"
8027
8028if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8029	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8030	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8031printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8032if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8033then :
8034  printf %s "(cached) " >&6
8035else case e in #(
8036  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8037/* end confdefs.h.  */
8038int i;
8039_ACEOF
8040if ac_fn_c_try_compile "$LINENO"
8041then :
8042  xorg_cv_cc_flag_unknown_warning_option=yes
8043else case e in #(
8044  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8045esac
8046fi
8047rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8048esac
8049fi
8050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8051printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8052	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8053	CFLAGS="$xorg_testset_save_CFLAGS"
8054fi
8055
8056if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8057	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8058		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8059	fi
8060	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8061	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8062printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8063if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8064then :
8065  printf %s "(cached) " >&6
8066else case e in #(
8067  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068/* end confdefs.h.  */
8069int i;
8070_ACEOF
8071if ac_fn_c_try_compile "$LINENO"
8072then :
8073  xorg_cv_cc_flag_unused_command_line_argument=yes
8074else case e in #(
8075  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8076esac
8077fi
8078rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8079esac
8080fi
8081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8082printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8083	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8084	CFLAGS="$xorg_testset_save_CFLAGS"
8085fi
8086
8087found="no"
8088
8089	if test $found = "no" ; then
8090		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8091			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8092		fi
8093
8094		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8095			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8096		fi
8097
8098		CFLAGS="$CFLAGS -Werror=sequence-point"
8099
8100		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8101printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8102		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8103		if eval test \${$cacheid+y}
8104then :
8105  printf %s "(cached) " >&6
8106else case e in #(
8107  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8108/* end confdefs.h.  */
8109int i;
8110int
8111main (void)
8112{
8113
8114  ;
8115  return 0;
8116}
8117_ACEOF
8118if ac_fn_c_try_link "$LINENO"
8119then :
8120  eval $cacheid=yes
8121else case e in #(
8122  e) eval $cacheid=no ;;
8123esac
8124fi
8125rm -f core conftest.err conftest.$ac_objext conftest.beam \
8126    conftest$ac_exeext conftest.$ac_ext ;;
8127esac
8128fi
8129
8130
8131		CFLAGS="$xorg_testset_save_CFLAGS"
8132
8133		eval supported=\$$cacheid
8134		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8135printf "%s\n" "$supported" >&6; }
8136		if test "$supported" = "yes" ; then
8137			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8138			found="yes"
8139		fi
8140	fi
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156xorg_testset_save_CFLAGS="$CFLAGS"
8157
8158if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8159	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8160	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8161printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8162if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8163then :
8164  printf %s "(cached) " >&6
8165else case e in #(
8166  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8167/* end confdefs.h.  */
8168int i;
8169_ACEOF
8170if ac_fn_c_try_compile "$LINENO"
8171then :
8172  xorg_cv_cc_flag_unknown_warning_option=yes
8173else case e in #(
8174  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8175esac
8176fi
8177rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8178esac
8179fi
8180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8181printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8182	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8183	CFLAGS="$xorg_testset_save_CFLAGS"
8184fi
8185
8186if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8187	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8188		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8189	fi
8190	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8191	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8192printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8193if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8194then :
8195  printf %s "(cached) " >&6
8196else case e in #(
8197  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8198/* end confdefs.h.  */
8199int i;
8200_ACEOF
8201if ac_fn_c_try_compile "$LINENO"
8202then :
8203  xorg_cv_cc_flag_unused_command_line_argument=yes
8204else case e in #(
8205  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8206esac
8207fi
8208rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8209esac
8210fi
8211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8212printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8213	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8214	CFLAGS="$xorg_testset_save_CFLAGS"
8215fi
8216
8217found="no"
8218
8219	if test $found = "no" ; then
8220		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8221			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8222		fi
8223
8224		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8225			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8226		fi
8227
8228		CFLAGS="$CFLAGS -Werror=return-type"
8229
8230		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8231printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8232		cacheid=xorg_cv_cc_flag__Werror_return_type
8233		if eval test \${$cacheid+y}
8234then :
8235  printf %s "(cached) " >&6
8236else case e in #(
8237  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238/* end confdefs.h.  */
8239int i;
8240int
8241main (void)
8242{
8243
8244  ;
8245  return 0;
8246}
8247_ACEOF
8248if ac_fn_c_try_link "$LINENO"
8249then :
8250  eval $cacheid=yes
8251else case e in #(
8252  e) eval $cacheid=no ;;
8253esac
8254fi
8255rm -f core conftest.err conftest.$ac_objext conftest.beam \
8256    conftest$ac_exeext conftest.$ac_ext ;;
8257esac
8258fi
8259
8260
8261		CFLAGS="$xorg_testset_save_CFLAGS"
8262
8263		eval supported=\$$cacheid
8264		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8265printf "%s\n" "$supported" >&6; }
8266		if test "$supported" = "yes" ; then
8267			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8268			found="yes"
8269		fi
8270	fi
8271
8272	if test $found = "no" ; then
8273		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8274			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8275		fi
8276
8277		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8278			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8279		fi
8280
8281		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8282
8283		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8284printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8285		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8286		if eval test \${$cacheid+y}
8287then :
8288  printf %s "(cached) " >&6
8289else case e in #(
8290  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8291/* end confdefs.h.  */
8292int i;
8293int
8294main (void)
8295{
8296
8297  ;
8298  return 0;
8299}
8300_ACEOF
8301if ac_fn_c_try_link "$LINENO"
8302then :
8303  eval $cacheid=yes
8304else case e in #(
8305  e) eval $cacheid=no ;;
8306esac
8307fi
8308rm -f core conftest.err conftest.$ac_objext conftest.beam \
8309    conftest$ac_exeext conftest.$ac_ext ;;
8310esac
8311fi
8312
8313
8314		CFLAGS="$xorg_testset_save_CFLAGS"
8315
8316		eval supported=\$$cacheid
8317		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8318printf "%s\n" "$supported" >&6; }
8319		if test "$supported" = "yes" ; then
8320			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8321			found="yes"
8322		fi
8323	fi
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339xorg_testset_save_CFLAGS="$CFLAGS"
8340
8341if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8342	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8343	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8344printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8345if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8346then :
8347  printf %s "(cached) " >&6
8348else case e in #(
8349  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8350/* end confdefs.h.  */
8351int i;
8352_ACEOF
8353if ac_fn_c_try_compile "$LINENO"
8354then :
8355  xorg_cv_cc_flag_unknown_warning_option=yes
8356else case e in #(
8357  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8358esac
8359fi
8360rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8361esac
8362fi
8363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8364printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8365	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8366	CFLAGS="$xorg_testset_save_CFLAGS"
8367fi
8368
8369if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8370	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8371		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8372	fi
8373	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8374	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8375printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8376if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8377then :
8378  printf %s "(cached) " >&6
8379else case e in #(
8380  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8381/* end confdefs.h.  */
8382int i;
8383_ACEOF
8384if ac_fn_c_try_compile "$LINENO"
8385then :
8386  xorg_cv_cc_flag_unused_command_line_argument=yes
8387else case e in #(
8388  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8389esac
8390fi
8391rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8392esac
8393fi
8394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8395printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8396	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8397	CFLAGS="$xorg_testset_save_CFLAGS"
8398fi
8399
8400found="no"
8401
8402	if test $found = "no" ; then
8403		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8404			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8405		fi
8406
8407		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8408			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8409		fi
8410
8411		CFLAGS="$CFLAGS -Werror=trigraphs"
8412
8413		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8414printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8415		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8416		if eval test \${$cacheid+y}
8417then :
8418  printf %s "(cached) " >&6
8419else case e in #(
8420  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8421/* end confdefs.h.  */
8422int i;
8423int
8424main (void)
8425{
8426
8427  ;
8428  return 0;
8429}
8430_ACEOF
8431if ac_fn_c_try_link "$LINENO"
8432then :
8433  eval $cacheid=yes
8434else case e in #(
8435  e) eval $cacheid=no ;;
8436esac
8437fi
8438rm -f core conftest.err conftest.$ac_objext conftest.beam \
8439    conftest$ac_exeext conftest.$ac_ext ;;
8440esac
8441fi
8442
8443
8444		CFLAGS="$xorg_testset_save_CFLAGS"
8445
8446		eval supported=\$$cacheid
8447		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8448printf "%s\n" "$supported" >&6; }
8449		if test "$supported" = "yes" ; then
8450			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8451			found="yes"
8452		fi
8453	fi
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469xorg_testset_save_CFLAGS="$CFLAGS"
8470
8471if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8472	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8473	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8474printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8475if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8476then :
8477  printf %s "(cached) " >&6
8478else case e in #(
8479  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480/* end confdefs.h.  */
8481int i;
8482_ACEOF
8483if ac_fn_c_try_compile "$LINENO"
8484then :
8485  xorg_cv_cc_flag_unknown_warning_option=yes
8486else case e in #(
8487  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8488esac
8489fi
8490rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8491esac
8492fi
8493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8494printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8495	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8496	CFLAGS="$xorg_testset_save_CFLAGS"
8497fi
8498
8499if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8500	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8501		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8502	fi
8503	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8504	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8505printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8506if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8507then :
8508  printf %s "(cached) " >&6
8509else case e in #(
8510  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511/* end confdefs.h.  */
8512int i;
8513_ACEOF
8514if ac_fn_c_try_compile "$LINENO"
8515then :
8516  xorg_cv_cc_flag_unused_command_line_argument=yes
8517else case e in #(
8518  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8519esac
8520fi
8521rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8522esac
8523fi
8524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8525printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8526	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8527	CFLAGS="$xorg_testset_save_CFLAGS"
8528fi
8529
8530found="no"
8531
8532	if test $found = "no" ; then
8533		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8534			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8535		fi
8536
8537		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8538			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8539		fi
8540
8541		CFLAGS="$CFLAGS -Werror=array-bounds"
8542
8543		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8544printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8545		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8546		if eval test \${$cacheid+y}
8547then :
8548  printf %s "(cached) " >&6
8549else case e in #(
8550  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8551/* end confdefs.h.  */
8552int i;
8553int
8554main (void)
8555{
8556
8557  ;
8558  return 0;
8559}
8560_ACEOF
8561if ac_fn_c_try_link "$LINENO"
8562then :
8563  eval $cacheid=yes
8564else case e in #(
8565  e) eval $cacheid=no ;;
8566esac
8567fi
8568rm -f core conftest.err conftest.$ac_objext conftest.beam \
8569    conftest$ac_exeext conftest.$ac_ext ;;
8570esac
8571fi
8572
8573
8574		CFLAGS="$xorg_testset_save_CFLAGS"
8575
8576		eval supported=\$$cacheid
8577		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8578printf "%s\n" "$supported" >&6; }
8579		if test "$supported" = "yes" ; then
8580			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8581			found="yes"
8582		fi
8583	fi
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599xorg_testset_save_CFLAGS="$CFLAGS"
8600
8601if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8602	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8603	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8604printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8605if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8606then :
8607  printf %s "(cached) " >&6
8608else case e in #(
8609  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8610/* end confdefs.h.  */
8611int i;
8612_ACEOF
8613if ac_fn_c_try_compile "$LINENO"
8614then :
8615  xorg_cv_cc_flag_unknown_warning_option=yes
8616else case e in #(
8617  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8618esac
8619fi
8620rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8621esac
8622fi
8623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8624printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8625	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8626	CFLAGS="$xorg_testset_save_CFLAGS"
8627fi
8628
8629if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8630	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8631		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8632	fi
8633	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8634	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8635printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8636if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8637then :
8638  printf %s "(cached) " >&6
8639else case e in #(
8640  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8641/* end confdefs.h.  */
8642int i;
8643_ACEOF
8644if ac_fn_c_try_compile "$LINENO"
8645then :
8646  xorg_cv_cc_flag_unused_command_line_argument=yes
8647else case e in #(
8648  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8649esac
8650fi
8651rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8652esac
8653fi
8654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8655printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8656	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8657	CFLAGS="$xorg_testset_save_CFLAGS"
8658fi
8659
8660found="no"
8661
8662	if test $found = "no" ; then
8663		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8664			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8665		fi
8666
8667		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8668			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8669		fi
8670
8671		CFLAGS="$CFLAGS -Werror=write-strings"
8672
8673		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8674printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8675		cacheid=xorg_cv_cc_flag__Werror_write_strings
8676		if eval test \${$cacheid+y}
8677then :
8678  printf %s "(cached) " >&6
8679else case e in #(
8680  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8681/* end confdefs.h.  */
8682int i;
8683int
8684main (void)
8685{
8686
8687  ;
8688  return 0;
8689}
8690_ACEOF
8691if ac_fn_c_try_link "$LINENO"
8692then :
8693  eval $cacheid=yes
8694else case e in #(
8695  e) eval $cacheid=no ;;
8696esac
8697fi
8698rm -f core conftest.err conftest.$ac_objext conftest.beam \
8699    conftest$ac_exeext conftest.$ac_ext ;;
8700esac
8701fi
8702
8703
8704		CFLAGS="$xorg_testset_save_CFLAGS"
8705
8706		eval supported=\$$cacheid
8707		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8708printf "%s\n" "$supported" >&6; }
8709		if test "$supported" = "yes" ; then
8710			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8711			found="yes"
8712		fi
8713	fi
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729xorg_testset_save_CFLAGS="$CFLAGS"
8730
8731if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8732	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8733	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8734printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8735if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8736then :
8737  printf %s "(cached) " >&6
8738else case e in #(
8739  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8740/* end confdefs.h.  */
8741int i;
8742_ACEOF
8743if ac_fn_c_try_compile "$LINENO"
8744then :
8745  xorg_cv_cc_flag_unknown_warning_option=yes
8746else case e in #(
8747  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8748esac
8749fi
8750rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8751esac
8752fi
8753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8754printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8755	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8756	CFLAGS="$xorg_testset_save_CFLAGS"
8757fi
8758
8759if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8760	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8761		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8762	fi
8763	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8764	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8765printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8766if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8767then :
8768  printf %s "(cached) " >&6
8769else case e in #(
8770  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8771/* end confdefs.h.  */
8772int i;
8773_ACEOF
8774if ac_fn_c_try_compile "$LINENO"
8775then :
8776  xorg_cv_cc_flag_unused_command_line_argument=yes
8777else case e in #(
8778  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8779esac
8780fi
8781rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8782esac
8783fi
8784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8785printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8786	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8787	CFLAGS="$xorg_testset_save_CFLAGS"
8788fi
8789
8790found="no"
8791
8792	if test $found = "no" ; then
8793		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8794			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8795		fi
8796
8797		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8798			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8799		fi
8800
8801		CFLAGS="$CFLAGS -Werror=address"
8802
8803		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8804printf %s "checking if $CC supports -Werror=address... " >&6; }
8805		cacheid=xorg_cv_cc_flag__Werror_address
8806		if eval test \${$cacheid+y}
8807then :
8808  printf %s "(cached) " >&6
8809else case e in #(
8810  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8811/* end confdefs.h.  */
8812int i;
8813int
8814main (void)
8815{
8816
8817  ;
8818  return 0;
8819}
8820_ACEOF
8821if ac_fn_c_try_link "$LINENO"
8822then :
8823  eval $cacheid=yes
8824else case e in #(
8825  e) eval $cacheid=no ;;
8826esac
8827fi
8828rm -f core conftest.err conftest.$ac_objext conftest.beam \
8829    conftest$ac_exeext conftest.$ac_ext ;;
8830esac
8831fi
8832
8833
8834		CFLAGS="$xorg_testset_save_CFLAGS"
8835
8836		eval supported=\$$cacheid
8837		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8838printf "%s\n" "$supported" >&6; }
8839		if test "$supported" = "yes" ; then
8840			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8841			found="yes"
8842		fi
8843	fi
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859xorg_testset_save_CFLAGS="$CFLAGS"
8860
8861if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8862	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8863	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8864printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8865if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8866then :
8867  printf %s "(cached) " >&6
8868else case e in #(
8869  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8870/* end confdefs.h.  */
8871int i;
8872_ACEOF
8873if ac_fn_c_try_compile "$LINENO"
8874then :
8875  xorg_cv_cc_flag_unknown_warning_option=yes
8876else case e in #(
8877  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8878esac
8879fi
8880rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8881esac
8882fi
8883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8884printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8885	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8886	CFLAGS="$xorg_testset_save_CFLAGS"
8887fi
8888
8889if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8890	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8891		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8892	fi
8893	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8894	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8895printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8896if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8897then :
8898  printf %s "(cached) " >&6
8899else case e in #(
8900  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8901/* end confdefs.h.  */
8902int i;
8903_ACEOF
8904if ac_fn_c_try_compile "$LINENO"
8905then :
8906  xorg_cv_cc_flag_unused_command_line_argument=yes
8907else case e in #(
8908  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8909esac
8910fi
8911rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8912esac
8913fi
8914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8915printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8916	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8917	CFLAGS="$xorg_testset_save_CFLAGS"
8918fi
8919
8920found="no"
8921
8922	if test $found = "no" ; then
8923		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8924			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8925		fi
8926
8927		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8928			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8929		fi
8930
8931		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8932
8933		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8934printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8935		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8936		if eval test \${$cacheid+y}
8937then :
8938  printf %s "(cached) " >&6
8939else case e in #(
8940  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941/* end confdefs.h.  */
8942int i;
8943int
8944main (void)
8945{
8946
8947  ;
8948  return 0;
8949}
8950_ACEOF
8951if ac_fn_c_try_link "$LINENO"
8952then :
8953  eval $cacheid=yes
8954else case e in #(
8955  e) eval $cacheid=no ;;
8956esac
8957fi
8958rm -f core conftest.err conftest.$ac_objext conftest.beam \
8959    conftest$ac_exeext conftest.$ac_ext ;;
8960esac
8961fi
8962
8963
8964		CFLAGS="$xorg_testset_save_CFLAGS"
8965
8966		eval supported=\$$cacheid
8967		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8968printf "%s\n" "$supported" >&6; }
8969		if test "$supported" = "yes" ; then
8970			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8971			found="yes"
8972		fi
8973	fi
8974
8975	if test $found = "no" ; then
8976		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8977			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8978		fi
8979
8980		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8981			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8982		fi
8983
8984		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8985
8986		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8987printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8988		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8989		if eval test \${$cacheid+y}
8990then :
8991  printf %s "(cached) " >&6
8992else case e in #(
8993  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8994/* end confdefs.h.  */
8995int i;
8996int
8997main (void)
8998{
8999
9000  ;
9001  return 0;
9002}
9003_ACEOF
9004if ac_fn_c_try_link "$LINENO"
9005then :
9006  eval $cacheid=yes
9007else case e in #(
9008  e) eval $cacheid=no ;;
9009esac
9010fi
9011rm -f core conftest.err conftest.$ac_objext conftest.beam \
9012    conftest$ac_exeext conftest.$ac_ext ;;
9013esac
9014fi
9015
9016
9017		CFLAGS="$xorg_testset_save_CFLAGS"
9018
9019		eval supported=\$$cacheid
9020		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9021printf "%s\n" "$supported" >&6; }
9022		if test "$supported" = "yes" ; then
9023			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9024			found="yes"
9025		fi
9026	fi
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042xorg_testset_save_CFLAGS="$CFLAGS"
9043
9044if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9045	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9046	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9047printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9048if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9049then :
9050  printf %s "(cached) " >&6
9051else case e in #(
9052  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9053/* end confdefs.h.  */
9054int i;
9055_ACEOF
9056if ac_fn_c_try_compile "$LINENO"
9057then :
9058  xorg_cv_cc_flag_unknown_warning_option=yes
9059else case e in #(
9060  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9061esac
9062fi
9063rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9064esac
9065fi
9066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9067printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9068	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9069	CFLAGS="$xorg_testset_save_CFLAGS"
9070fi
9071
9072if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9073	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9074		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9075	fi
9076	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9077	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9078printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9079if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9080then :
9081  printf %s "(cached) " >&6
9082else case e in #(
9083  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9084/* end confdefs.h.  */
9085int i;
9086_ACEOF
9087if ac_fn_c_try_compile "$LINENO"
9088then :
9089  xorg_cv_cc_flag_unused_command_line_argument=yes
9090else case e in #(
9091  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9092esac
9093fi
9094rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9095esac
9096fi
9097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9098printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9099	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9100	CFLAGS="$xorg_testset_save_CFLAGS"
9101fi
9102
9103found="no"
9104
9105	if test $found = "no" ; then
9106		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9107			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9108		fi
9109
9110		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9111			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9112		fi
9113
9114		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9115
9116		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9117printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9118		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9119		if eval test \${$cacheid+y}
9120then :
9121  printf %s "(cached) " >&6
9122else case e in #(
9123  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9124/* end confdefs.h.  */
9125int i;
9126int
9127main (void)
9128{
9129
9130  ;
9131  return 0;
9132}
9133_ACEOF
9134if ac_fn_c_try_link "$LINENO"
9135then :
9136  eval $cacheid=yes
9137else case e in #(
9138  e) eval $cacheid=no ;;
9139esac
9140fi
9141rm -f core conftest.err conftest.$ac_objext conftest.beam \
9142    conftest$ac_exeext conftest.$ac_ext ;;
9143esac
9144fi
9145
9146
9147		CFLAGS="$xorg_testset_save_CFLAGS"
9148
9149		eval supported=\$$cacheid
9150		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9151printf "%s\n" "$supported" >&6; }
9152		if test "$supported" = "yes" ; then
9153			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9154			found="yes"
9155		fi
9156	fi
9157
9158 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9159else
9160{ 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
9161printf "%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;}
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175xorg_testset_save_CFLAGS="$CFLAGS"
9176
9177if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9178	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9179	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9180printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9181if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9182then :
9183  printf %s "(cached) " >&6
9184else case e in #(
9185  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9186/* end confdefs.h.  */
9187int i;
9188_ACEOF
9189if ac_fn_c_try_compile "$LINENO"
9190then :
9191  xorg_cv_cc_flag_unknown_warning_option=yes
9192else case e in #(
9193  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9194esac
9195fi
9196rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9197esac
9198fi
9199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9200printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9201	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9202	CFLAGS="$xorg_testset_save_CFLAGS"
9203fi
9204
9205if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9206	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9207		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9208	fi
9209	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9210	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9211printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9212if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9213then :
9214  printf %s "(cached) " >&6
9215else case e in #(
9216  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9217/* end confdefs.h.  */
9218int i;
9219_ACEOF
9220if ac_fn_c_try_compile "$LINENO"
9221then :
9222  xorg_cv_cc_flag_unused_command_line_argument=yes
9223else case e in #(
9224  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9225esac
9226fi
9227rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9228esac
9229fi
9230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9231printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9232	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9233	CFLAGS="$xorg_testset_save_CFLAGS"
9234fi
9235
9236found="no"
9237
9238	if test $found = "no" ; then
9239		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9240			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9241		fi
9242
9243		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9244			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9245		fi
9246
9247		CFLAGS="$CFLAGS -Wimplicit"
9248
9249		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9250printf %s "checking if $CC supports -Wimplicit... " >&6; }
9251		cacheid=xorg_cv_cc_flag__Wimplicit
9252		if eval test \${$cacheid+y}
9253then :
9254  printf %s "(cached) " >&6
9255else case e in #(
9256  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9257/* end confdefs.h.  */
9258int i;
9259int
9260main (void)
9261{
9262
9263  ;
9264  return 0;
9265}
9266_ACEOF
9267if ac_fn_c_try_link "$LINENO"
9268then :
9269  eval $cacheid=yes
9270else case e in #(
9271  e) eval $cacheid=no ;;
9272esac
9273fi
9274rm -f core conftest.err conftest.$ac_objext conftest.beam \
9275    conftest$ac_exeext conftest.$ac_ext ;;
9276esac
9277fi
9278
9279
9280		CFLAGS="$xorg_testset_save_CFLAGS"
9281
9282		eval supported=\$$cacheid
9283		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9284printf "%s\n" "$supported" >&6; }
9285		if test "$supported" = "yes" ; then
9286			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9287			found="yes"
9288		fi
9289	fi
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305xorg_testset_save_CFLAGS="$CFLAGS"
9306
9307if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9308	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9309	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9310printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9311if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9312then :
9313  printf %s "(cached) " >&6
9314else case e in #(
9315  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9316/* end confdefs.h.  */
9317int i;
9318_ACEOF
9319if ac_fn_c_try_compile "$LINENO"
9320then :
9321  xorg_cv_cc_flag_unknown_warning_option=yes
9322else case e in #(
9323  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9324esac
9325fi
9326rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9327esac
9328fi
9329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9330printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9331	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9332	CFLAGS="$xorg_testset_save_CFLAGS"
9333fi
9334
9335if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9336	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9337		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9338	fi
9339	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9340	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9341printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9342if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9343then :
9344  printf %s "(cached) " >&6
9345else case e in #(
9346  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9347/* end confdefs.h.  */
9348int i;
9349_ACEOF
9350if ac_fn_c_try_compile "$LINENO"
9351then :
9352  xorg_cv_cc_flag_unused_command_line_argument=yes
9353else case e in #(
9354  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9355esac
9356fi
9357rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9358esac
9359fi
9360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9361printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9362	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9363	CFLAGS="$xorg_testset_save_CFLAGS"
9364fi
9365
9366found="no"
9367
9368	if test $found = "no" ; then
9369		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9370			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9371		fi
9372
9373		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9374			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9375		fi
9376
9377		CFLAGS="$CFLAGS -Wnonnull"
9378
9379		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9380printf %s "checking if $CC supports -Wnonnull... " >&6; }
9381		cacheid=xorg_cv_cc_flag__Wnonnull
9382		if eval test \${$cacheid+y}
9383then :
9384  printf %s "(cached) " >&6
9385else case e in #(
9386  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9387/* end confdefs.h.  */
9388int i;
9389int
9390main (void)
9391{
9392
9393  ;
9394  return 0;
9395}
9396_ACEOF
9397if ac_fn_c_try_link "$LINENO"
9398then :
9399  eval $cacheid=yes
9400else case e in #(
9401  e) eval $cacheid=no ;;
9402esac
9403fi
9404rm -f core conftest.err conftest.$ac_objext conftest.beam \
9405    conftest$ac_exeext conftest.$ac_ext ;;
9406esac
9407fi
9408
9409
9410		CFLAGS="$xorg_testset_save_CFLAGS"
9411
9412		eval supported=\$$cacheid
9413		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9414printf "%s\n" "$supported" >&6; }
9415		if test "$supported" = "yes" ; then
9416			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9417			found="yes"
9418		fi
9419	fi
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435xorg_testset_save_CFLAGS="$CFLAGS"
9436
9437if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9438	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9439	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9440printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9441if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9442then :
9443  printf %s "(cached) " >&6
9444else case e in #(
9445  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9446/* end confdefs.h.  */
9447int i;
9448_ACEOF
9449if ac_fn_c_try_compile "$LINENO"
9450then :
9451  xorg_cv_cc_flag_unknown_warning_option=yes
9452else case e in #(
9453  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9454esac
9455fi
9456rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9457esac
9458fi
9459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9460printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9461	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9462	CFLAGS="$xorg_testset_save_CFLAGS"
9463fi
9464
9465if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9466	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9467		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9468	fi
9469	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9470	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9471printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9472if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9473then :
9474  printf %s "(cached) " >&6
9475else case e in #(
9476  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477/* end confdefs.h.  */
9478int i;
9479_ACEOF
9480if ac_fn_c_try_compile "$LINENO"
9481then :
9482  xorg_cv_cc_flag_unused_command_line_argument=yes
9483else case e in #(
9484  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9485esac
9486fi
9487rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9488esac
9489fi
9490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9491printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9492	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9493	CFLAGS="$xorg_testset_save_CFLAGS"
9494fi
9495
9496found="no"
9497
9498	if test $found = "no" ; then
9499		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9500			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9501		fi
9502
9503		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9504			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9505		fi
9506
9507		CFLAGS="$CFLAGS -Winit-self"
9508
9509		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9510printf %s "checking if $CC supports -Winit-self... " >&6; }
9511		cacheid=xorg_cv_cc_flag__Winit_self
9512		if eval test \${$cacheid+y}
9513then :
9514  printf %s "(cached) " >&6
9515else case e in #(
9516  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9517/* end confdefs.h.  */
9518int i;
9519int
9520main (void)
9521{
9522
9523  ;
9524  return 0;
9525}
9526_ACEOF
9527if ac_fn_c_try_link "$LINENO"
9528then :
9529  eval $cacheid=yes
9530else case e in #(
9531  e) eval $cacheid=no ;;
9532esac
9533fi
9534rm -f core conftest.err conftest.$ac_objext conftest.beam \
9535    conftest$ac_exeext conftest.$ac_ext ;;
9536esac
9537fi
9538
9539
9540		CFLAGS="$xorg_testset_save_CFLAGS"
9541
9542		eval supported=\$$cacheid
9543		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9544printf "%s\n" "$supported" >&6; }
9545		if test "$supported" = "yes" ; then
9546			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9547			found="yes"
9548		fi
9549	fi
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565xorg_testset_save_CFLAGS="$CFLAGS"
9566
9567if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9568	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9569	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9570printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9571if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9572then :
9573  printf %s "(cached) " >&6
9574else case e in #(
9575  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9576/* end confdefs.h.  */
9577int i;
9578_ACEOF
9579if ac_fn_c_try_compile "$LINENO"
9580then :
9581  xorg_cv_cc_flag_unknown_warning_option=yes
9582else case e in #(
9583  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9584esac
9585fi
9586rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9587esac
9588fi
9589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9590printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9591	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9592	CFLAGS="$xorg_testset_save_CFLAGS"
9593fi
9594
9595if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9596	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9597		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9598	fi
9599	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9600	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9601printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9602if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9603then :
9604  printf %s "(cached) " >&6
9605else case e in #(
9606  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9607/* end confdefs.h.  */
9608int i;
9609_ACEOF
9610if ac_fn_c_try_compile "$LINENO"
9611then :
9612  xorg_cv_cc_flag_unused_command_line_argument=yes
9613else case e in #(
9614  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9615esac
9616fi
9617rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9618esac
9619fi
9620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9621printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9622	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9623	CFLAGS="$xorg_testset_save_CFLAGS"
9624fi
9625
9626found="no"
9627
9628	if test $found = "no" ; then
9629		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9630			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9631		fi
9632
9633		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9634			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9635		fi
9636
9637		CFLAGS="$CFLAGS -Wmain"
9638
9639		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9640printf %s "checking if $CC supports -Wmain... " >&6; }
9641		cacheid=xorg_cv_cc_flag__Wmain
9642		if eval test \${$cacheid+y}
9643then :
9644  printf %s "(cached) " >&6
9645else case e in #(
9646  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9647/* end confdefs.h.  */
9648int i;
9649int
9650main (void)
9651{
9652
9653  ;
9654  return 0;
9655}
9656_ACEOF
9657if ac_fn_c_try_link "$LINENO"
9658then :
9659  eval $cacheid=yes
9660else case e in #(
9661  e) eval $cacheid=no ;;
9662esac
9663fi
9664rm -f core conftest.err conftest.$ac_objext conftest.beam \
9665    conftest$ac_exeext conftest.$ac_ext ;;
9666esac
9667fi
9668
9669
9670		CFLAGS="$xorg_testset_save_CFLAGS"
9671
9672		eval supported=\$$cacheid
9673		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9674printf "%s\n" "$supported" >&6; }
9675		if test "$supported" = "yes" ; then
9676			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9677			found="yes"
9678		fi
9679	fi
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695xorg_testset_save_CFLAGS="$CFLAGS"
9696
9697if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9698	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9699	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9700printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9701if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9702then :
9703  printf %s "(cached) " >&6
9704else case e in #(
9705  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9706/* end confdefs.h.  */
9707int i;
9708_ACEOF
9709if ac_fn_c_try_compile "$LINENO"
9710then :
9711  xorg_cv_cc_flag_unknown_warning_option=yes
9712else case e in #(
9713  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9714esac
9715fi
9716rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9717esac
9718fi
9719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9720printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9721	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9722	CFLAGS="$xorg_testset_save_CFLAGS"
9723fi
9724
9725if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9726	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9727		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9728	fi
9729	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9730	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9731printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9732if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9733then :
9734  printf %s "(cached) " >&6
9735else case e in #(
9736  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9737/* end confdefs.h.  */
9738int i;
9739_ACEOF
9740if ac_fn_c_try_compile "$LINENO"
9741then :
9742  xorg_cv_cc_flag_unused_command_line_argument=yes
9743else case e in #(
9744  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9745esac
9746fi
9747rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9748esac
9749fi
9750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9751printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9752	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9753	CFLAGS="$xorg_testset_save_CFLAGS"
9754fi
9755
9756found="no"
9757
9758	if test $found = "no" ; then
9759		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9760			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9761		fi
9762
9763		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9764			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9765		fi
9766
9767		CFLAGS="$CFLAGS -Wmissing-braces"
9768
9769		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9770printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9771		cacheid=xorg_cv_cc_flag__Wmissing_braces
9772		if eval test \${$cacheid+y}
9773then :
9774  printf %s "(cached) " >&6
9775else case e in #(
9776  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777/* end confdefs.h.  */
9778int i;
9779int
9780main (void)
9781{
9782
9783  ;
9784  return 0;
9785}
9786_ACEOF
9787if ac_fn_c_try_link "$LINENO"
9788then :
9789  eval $cacheid=yes
9790else case e in #(
9791  e) eval $cacheid=no ;;
9792esac
9793fi
9794rm -f core conftest.err conftest.$ac_objext conftest.beam \
9795    conftest$ac_exeext conftest.$ac_ext ;;
9796esac
9797fi
9798
9799
9800		CFLAGS="$xorg_testset_save_CFLAGS"
9801
9802		eval supported=\$$cacheid
9803		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9804printf "%s\n" "$supported" >&6; }
9805		if test "$supported" = "yes" ; then
9806			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9807			found="yes"
9808		fi
9809	fi
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825xorg_testset_save_CFLAGS="$CFLAGS"
9826
9827if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9828	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9829	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9830printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9831if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9832then :
9833  printf %s "(cached) " >&6
9834else case e in #(
9835  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9836/* end confdefs.h.  */
9837int i;
9838_ACEOF
9839if ac_fn_c_try_compile "$LINENO"
9840then :
9841  xorg_cv_cc_flag_unknown_warning_option=yes
9842else case e in #(
9843  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9844esac
9845fi
9846rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9847esac
9848fi
9849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9850printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9851	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9852	CFLAGS="$xorg_testset_save_CFLAGS"
9853fi
9854
9855if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9856	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9857		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9858	fi
9859	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9860	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9861printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9862if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9863then :
9864  printf %s "(cached) " >&6
9865else case e in #(
9866  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9867/* end confdefs.h.  */
9868int i;
9869_ACEOF
9870if ac_fn_c_try_compile "$LINENO"
9871then :
9872  xorg_cv_cc_flag_unused_command_line_argument=yes
9873else case e in #(
9874  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9875esac
9876fi
9877rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9878esac
9879fi
9880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9881printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9882	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9883	CFLAGS="$xorg_testset_save_CFLAGS"
9884fi
9885
9886found="no"
9887
9888	if test $found = "no" ; then
9889		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9890			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9891		fi
9892
9893		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9894			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9895		fi
9896
9897		CFLAGS="$CFLAGS -Wsequence-point"
9898
9899		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9900printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9901		cacheid=xorg_cv_cc_flag__Wsequence_point
9902		if eval test \${$cacheid+y}
9903then :
9904  printf %s "(cached) " >&6
9905else case e in #(
9906  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9907/* end confdefs.h.  */
9908int i;
9909int
9910main (void)
9911{
9912
9913  ;
9914  return 0;
9915}
9916_ACEOF
9917if ac_fn_c_try_link "$LINENO"
9918then :
9919  eval $cacheid=yes
9920else case e in #(
9921  e) eval $cacheid=no ;;
9922esac
9923fi
9924rm -f core conftest.err conftest.$ac_objext conftest.beam \
9925    conftest$ac_exeext conftest.$ac_ext ;;
9926esac
9927fi
9928
9929
9930		CFLAGS="$xorg_testset_save_CFLAGS"
9931
9932		eval supported=\$$cacheid
9933		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9934printf "%s\n" "$supported" >&6; }
9935		if test "$supported" = "yes" ; then
9936			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9937			found="yes"
9938		fi
9939	fi
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955xorg_testset_save_CFLAGS="$CFLAGS"
9956
9957if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9958	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9959	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9960printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9961if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9962then :
9963  printf %s "(cached) " >&6
9964else case e in #(
9965  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9966/* end confdefs.h.  */
9967int i;
9968_ACEOF
9969if ac_fn_c_try_compile "$LINENO"
9970then :
9971  xorg_cv_cc_flag_unknown_warning_option=yes
9972else case e in #(
9973  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9974esac
9975fi
9976rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9977esac
9978fi
9979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9980printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9981	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9982	CFLAGS="$xorg_testset_save_CFLAGS"
9983fi
9984
9985if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9986	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9987		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9988	fi
9989	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9990	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9991printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9992if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9993then :
9994  printf %s "(cached) " >&6
9995else case e in #(
9996  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9997/* end confdefs.h.  */
9998int i;
9999_ACEOF
10000if ac_fn_c_try_compile "$LINENO"
10001then :
10002  xorg_cv_cc_flag_unused_command_line_argument=yes
10003else case e in #(
10004  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10005esac
10006fi
10007rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10008esac
10009fi
10010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10011printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10012	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10013	CFLAGS="$xorg_testset_save_CFLAGS"
10014fi
10015
10016found="no"
10017
10018	if test $found = "no" ; then
10019		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10020			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10021		fi
10022
10023		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10024			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10025		fi
10026
10027		CFLAGS="$CFLAGS -Wreturn-type"
10028
10029		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10030printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10031		cacheid=xorg_cv_cc_flag__Wreturn_type
10032		if eval test \${$cacheid+y}
10033then :
10034  printf %s "(cached) " >&6
10035else case e in #(
10036  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10037/* end confdefs.h.  */
10038int i;
10039int
10040main (void)
10041{
10042
10043  ;
10044  return 0;
10045}
10046_ACEOF
10047if ac_fn_c_try_link "$LINENO"
10048then :
10049  eval $cacheid=yes
10050else case e in #(
10051  e) eval $cacheid=no ;;
10052esac
10053fi
10054rm -f core conftest.err conftest.$ac_objext conftest.beam \
10055    conftest$ac_exeext conftest.$ac_ext ;;
10056esac
10057fi
10058
10059
10060		CFLAGS="$xorg_testset_save_CFLAGS"
10061
10062		eval supported=\$$cacheid
10063		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10064printf "%s\n" "$supported" >&6; }
10065		if test "$supported" = "yes" ; then
10066			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10067			found="yes"
10068		fi
10069	fi
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085xorg_testset_save_CFLAGS="$CFLAGS"
10086
10087if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10088	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10089	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10090printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10091if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10092then :
10093  printf %s "(cached) " >&6
10094else case e in #(
10095  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10096/* end confdefs.h.  */
10097int i;
10098_ACEOF
10099if ac_fn_c_try_compile "$LINENO"
10100then :
10101  xorg_cv_cc_flag_unknown_warning_option=yes
10102else case e in #(
10103  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10104esac
10105fi
10106rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10107esac
10108fi
10109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10110printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10111	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10112	CFLAGS="$xorg_testset_save_CFLAGS"
10113fi
10114
10115if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10116	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10117		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10118	fi
10119	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10120	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10121printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10122if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10123then :
10124  printf %s "(cached) " >&6
10125else case e in #(
10126  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127/* end confdefs.h.  */
10128int i;
10129_ACEOF
10130if ac_fn_c_try_compile "$LINENO"
10131then :
10132  xorg_cv_cc_flag_unused_command_line_argument=yes
10133else case e in #(
10134  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10135esac
10136fi
10137rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10138esac
10139fi
10140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10141printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10142	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10143	CFLAGS="$xorg_testset_save_CFLAGS"
10144fi
10145
10146found="no"
10147
10148	if test $found = "no" ; then
10149		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10150			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10151		fi
10152
10153		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10154			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10155		fi
10156
10157		CFLAGS="$CFLAGS -Wtrigraphs"
10158
10159		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10160printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10161		cacheid=xorg_cv_cc_flag__Wtrigraphs
10162		if eval test \${$cacheid+y}
10163then :
10164  printf %s "(cached) " >&6
10165else case e in #(
10166  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10167/* end confdefs.h.  */
10168int i;
10169int
10170main (void)
10171{
10172
10173  ;
10174  return 0;
10175}
10176_ACEOF
10177if ac_fn_c_try_link "$LINENO"
10178then :
10179  eval $cacheid=yes
10180else case e in #(
10181  e) eval $cacheid=no ;;
10182esac
10183fi
10184rm -f core conftest.err conftest.$ac_objext conftest.beam \
10185    conftest$ac_exeext conftest.$ac_ext ;;
10186esac
10187fi
10188
10189
10190		CFLAGS="$xorg_testset_save_CFLAGS"
10191
10192		eval supported=\$$cacheid
10193		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10194printf "%s\n" "$supported" >&6; }
10195		if test "$supported" = "yes" ; then
10196			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10197			found="yes"
10198		fi
10199	fi
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215xorg_testset_save_CFLAGS="$CFLAGS"
10216
10217if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10218	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10219	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10220printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10221if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10222then :
10223  printf %s "(cached) " >&6
10224else case e in #(
10225  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10226/* end confdefs.h.  */
10227int i;
10228_ACEOF
10229if ac_fn_c_try_compile "$LINENO"
10230then :
10231  xorg_cv_cc_flag_unknown_warning_option=yes
10232else case e in #(
10233  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10234esac
10235fi
10236rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10237esac
10238fi
10239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10240printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10241	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10242	CFLAGS="$xorg_testset_save_CFLAGS"
10243fi
10244
10245if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10246	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10247		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10248	fi
10249	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10250	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10251printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10252if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10253then :
10254  printf %s "(cached) " >&6
10255else case e in #(
10256  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10257/* end confdefs.h.  */
10258int i;
10259_ACEOF
10260if ac_fn_c_try_compile "$LINENO"
10261then :
10262  xorg_cv_cc_flag_unused_command_line_argument=yes
10263else case e in #(
10264  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10265esac
10266fi
10267rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10268esac
10269fi
10270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10271printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10272	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10273	CFLAGS="$xorg_testset_save_CFLAGS"
10274fi
10275
10276found="no"
10277
10278	if test $found = "no" ; then
10279		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10280			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10281		fi
10282
10283		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10284			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10285		fi
10286
10287		CFLAGS="$CFLAGS -Warray-bounds"
10288
10289		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10290printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10291		cacheid=xorg_cv_cc_flag__Warray_bounds
10292		if eval test \${$cacheid+y}
10293then :
10294  printf %s "(cached) " >&6
10295else case e in #(
10296  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10297/* end confdefs.h.  */
10298int i;
10299int
10300main (void)
10301{
10302
10303  ;
10304  return 0;
10305}
10306_ACEOF
10307if ac_fn_c_try_link "$LINENO"
10308then :
10309  eval $cacheid=yes
10310else case e in #(
10311  e) eval $cacheid=no ;;
10312esac
10313fi
10314rm -f core conftest.err conftest.$ac_objext conftest.beam \
10315    conftest$ac_exeext conftest.$ac_ext ;;
10316esac
10317fi
10318
10319
10320		CFLAGS="$xorg_testset_save_CFLAGS"
10321
10322		eval supported=\$$cacheid
10323		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10324printf "%s\n" "$supported" >&6; }
10325		if test "$supported" = "yes" ; then
10326			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10327			found="yes"
10328		fi
10329	fi
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345xorg_testset_save_CFLAGS="$CFLAGS"
10346
10347if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10348	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10349	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10350printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10351if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10352then :
10353  printf %s "(cached) " >&6
10354else case e in #(
10355  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10356/* end confdefs.h.  */
10357int i;
10358_ACEOF
10359if ac_fn_c_try_compile "$LINENO"
10360then :
10361  xorg_cv_cc_flag_unknown_warning_option=yes
10362else case e in #(
10363  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10364esac
10365fi
10366rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10367esac
10368fi
10369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10370printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10371	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10372	CFLAGS="$xorg_testset_save_CFLAGS"
10373fi
10374
10375if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10376	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10377		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10378	fi
10379	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10380	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10381printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10382if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10383then :
10384  printf %s "(cached) " >&6
10385else case e in #(
10386  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387/* end confdefs.h.  */
10388int i;
10389_ACEOF
10390if ac_fn_c_try_compile "$LINENO"
10391then :
10392  xorg_cv_cc_flag_unused_command_line_argument=yes
10393else case e in #(
10394  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10395esac
10396fi
10397rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10398esac
10399fi
10400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10401printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10402	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10403	CFLAGS="$xorg_testset_save_CFLAGS"
10404fi
10405
10406found="no"
10407
10408	if test $found = "no" ; then
10409		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10410			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10411		fi
10412
10413		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10414			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10415		fi
10416
10417		CFLAGS="$CFLAGS -Wwrite-strings"
10418
10419		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10420printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10421		cacheid=xorg_cv_cc_flag__Wwrite_strings
10422		if eval test \${$cacheid+y}
10423then :
10424  printf %s "(cached) " >&6
10425else case e in #(
10426  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10427/* end confdefs.h.  */
10428int i;
10429int
10430main (void)
10431{
10432
10433  ;
10434  return 0;
10435}
10436_ACEOF
10437if ac_fn_c_try_link "$LINENO"
10438then :
10439  eval $cacheid=yes
10440else case e in #(
10441  e) eval $cacheid=no ;;
10442esac
10443fi
10444rm -f core conftest.err conftest.$ac_objext conftest.beam \
10445    conftest$ac_exeext conftest.$ac_ext ;;
10446esac
10447fi
10448
10449
10450		CFLAGS="$xorg_testset_save_CFLAGS"
10451
10452		eval supported=\$$cacheid
10453		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10454printf "%s\n" "$supported" >&6; }
10455		if test "$supported" = "yes" ; then
10456			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10457			found="yes"
10458		fi
10459	fi
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475xorg_testset_save_CFLAGS="$CFLAGS"
10476
10477if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10478	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10479	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10480printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10481if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10482then :
10483  printf %s "(cached) " >&6
10484else case e in #(
10485  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10486/* end confdefs.h.  */
10487int i;
10488_ACEOF
10489if ac_fn_c_try_compile "$LINENO"
10490then :
10491  xorg_cv_cc_flag_unknown_warning_option=yes
10492else case e in #(
10493  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10494esac
10495fi
10496rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10497esac
10498fi
10499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10500printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10501	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10502	CFLAGS="$xorg_testset_save_CFLAGS"
10503fi
10504
10505if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10506	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10507		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10508	fi
10509	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10510	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10511printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10512if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10513then :
10514  printf %s "(cached) " >&6
10515else case e in #(
10516  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10517/* end confdefs.h.  */
10518int i;
10519_ACEOF
10520if ac_fn_c_try_compile "$LINENO"
10521then :
10522  xorg_cv_cc_flag_unused_command_line_argument=yes
10523else case e in #(
10524  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10525esac
10526fi
10527rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10528esac
10529fi
10530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10531printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10532	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10533	CFLAGS="$xorg_testset_save_CFLAGS"
10534fi
10535
10536found="no"
10537
10538	if test $found = "no" ; then
10539		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10540			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10541		fi
10542
10543		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10544			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10545		fi
10546
10547		CFLAGS="$CFLAGS -Waddress"
10548
10549		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10550printf %s "checking if $CC supports -Waddress... " >&6; }
10551		cacheid=xorg_cv_cc_flag__Waddress
10552		if eval test \${$cacheid+y}
10553then :
10554  printf %s "(cached) " >&6
10555else case e in #(
10556  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10557/* end confdefs.h.  */
10558int i;
10559int
10560main (void)
10561{
10562
10563  ;
10564  return 0;
10565}
10566_ACEOF
10567if ac_fn_c_try_link "$LINENO"
10568then :
10569  eval $cacheid=yes
10570else case e in #(
10571  e) eval $cacheid=no ;;
10572esac
10573fi
10574rm -f core conftest.err conftest.$ac_objext conftest.beam \
10575    conftest$ac_exeext conftest.$ac_ext ;;
10576esac
10577fi
10578
10579
10580		CFLAGS="$xorg_testset_save_CFLAGS"
10581
10582		eval supported=\$$cacheid
10583		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10584printf "%s\n" "$supported" >&6; }
10585		if test "$supported" = "yes" ; then
10586			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10587			found="yes"
10588		fi
10589	fi
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605xorg_testset_save_CFLAGS="$CFLAGS"
10606
10607if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10608	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10609	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10610printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10611if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10612then :
10613  printf %s "(cached) " >&6
10614else case e in #(
10615  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10616/* end confdefs.h.  */
10617int i;
10618_ACEOF
10619if ac_fn_c_try_compile "$LINENO"
10620then :
10621  xorg_cv_cc_flag_unknown_warning_option=yes
10622else case e in #(
10623  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10624esac
10625fi
10626rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10627esac
10628fi
10629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10630printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10631	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10632	CFLAGS="$xorg_testset_save_CFLAGS"
10633fi
10634
10635if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10636	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10637		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10638	fi
10639	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10640	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10641printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10642if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10643then :
10644  printf %s "(cached) " >&6
10645else case e in #(
10646  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10647/* end confdefs.h.  */
10648int i;
10649_ACEOF
10650if ac_fn_c_try_compile "$LINENO"
10651then :
10652  xorg_cv_cc_flag_unused_command_line_argument=yes
10653else case e in #(
10654  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10655esac
10656fi
10657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10658esac
10659fi
10660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10661printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10662	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10663	CFLAGS="$xorg_testset_save_CFLAGS"
10664fi
10665
10666found="no"
10667
10668	if test $found = "no" ; then
10669		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10670			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10671		fi
10672
10673		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10674			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10675		fi
10676
10677		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10678
10679		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10680printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10681		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10682		if eval test \${$cacheid+y}
10683then :
10684  printf %s "(cached) " >&6
10685else case e in #(
10686  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10687/* end confdefs.h.  */
10688int i;
10689int
10690main (void)
10691{
10692
10693  ;
10694  return 0;
10695}
10696_ACEOF
10697if ac_fn_c_try_link "$LINENO"
10698then :
10699  eval $cacheid=yes
10700else case e in #(
10701  e) eval $cacheid=no ;;
10702esac
10703fi
10704rm -f core conftest.err conftest.$ac_objext conftest.beam \
10705    conftest$ac_exeext conftest.$ac_ext ;;
10706esac
10707fi
10708
10709
10710		CFLAGS="$xorg_testset_save_CFLAGS"
10711
10712		eval supported=\$$cacheid
10713		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10714printf "%s\n" "$supported" >&6; }
10715		if test "$supported" = "yes" ; then
10716			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10717			found="yes"
10718		fi
10719	fi
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735xorg_testset_save_CFLAGS="$CFLAGS"
10736
10737if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10738	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10739	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10740printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10741if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10742then :
10743  printf %s "(cached) " >&6
10744else case e in #(
10745  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10746/* end confdefs.h.  */
10747int i;
10748_ACEOF
10749if ac_fn_c_try_compile "$LINENO"
10750then :
10751  xorg_cv_cc_flag_unknown_warning_option=yes
10752else case e in #(
10753  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10754esac
10755fi
10756rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10757esac
10758fi
10759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10760printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10761	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10762	CFLAGS="$xorg_testset_save_CFLAGS"
10763fi
10764
10765if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10766	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10767		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10768	fi
10769	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10770	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10771printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10772if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10773then :
10774  printf %s "(cached) " >&6
10775else case e in #(
10776  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777/* end confdefs.h.  */
10778int i;
10779_ACEOF
10780if ac_fn_c_try_compile "$LINENO"
10781then :
10782  xorg_cv_cc_flag_unused_command_line_argument=yes
10783else case e in #(
10784  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10785esac
10786fi
10787rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10788esac
10789fi
10790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10791printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10792	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10793	CFLAGS="$xorg_testset_save_CFLAGS"
10794fi
10795
10796found="no"
10797
10798	if test $found = "no" ; then
10799		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10800			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10801		fi
10802
10803		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10804			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10805		fi
10806
10807		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10808
10809		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10810printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10811		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10812		if eval test \${$cacheid+y}
10813then :
10814  printf %s "(cached) " >&6
10815else case e in #(
10816  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10817/* end confdefs.h.  */
10818int i;
10819int
10820main (void)
10821{
10822
10823  ;
10824  return 0;
10825}
10826_ACEOF
10827if ac_fn_c_try_link "$LINENO"
10828then :
10829  eval $cacheid=yes
10830else case e in #(
10831  e) eval $cacheid=no ;;
10832esac
10833fi
10834rm -f core conftest.err conftest.$ac_objext conftest.beam \
10835    conftest$ac_exeext conftest.$ac_ext ;;
10836esac
10837fi
10838
10839
10840		CFLAGS="$xorg_testset_save_CFLAGS"
10841
10842		eval supported=\$$cacheid
10843		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10844printf "%s\n" "$supported" >&6; }
10845		if test "$supported" = "yes" ; then
10846			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10847			found="yes"
10848		fi
10849	fi
10850
10851
10852fi
10853
10854
10855
10856
10857
10858
10859
10860		CWARNFLAGS="$BASE_CFLAGS"
10861		if  test "x$GCC" = xyes ; then
10862		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10863		fi
10864
10865
10866
10867
10868
10869
10870
10871
10872# Check whether --enable-strict-compilation was given.
10873if test ${enable_strict_compilation+y}
10874then :
10875  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10876else case e in #(
10877  e) STRICT_COMPILE=no ;;
10878esac
10879fi
10880
10881
10882
10883
10884
10885
10886STRICT_CFLAGS=""
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900xorg_testset_save_CFLAGS="$CFLAGS"
10901
10902if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10903	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10904	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10905printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10906if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10907then :
10908  printf %s "(cached) " >&6
10909else case e in #(
10910  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10911/* end confdefs.h.  */
10912int i;
10913_ACEOF
10914if ac_fn_c_try_compile "$LINENO"
10915then :
10916  xorg_cv_cc_flag_unknown_warning_option=yes
10917else case e in #(
10918  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10919esac
10920fi
10921rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10922esac
10923fi
10924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10925printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10926	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10927	CFLAGS="$xorg_testset_save_CFLAGS"
10928fi
10929
10930if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10931	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10932		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10933	fi
10934	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10935	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10936printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10937if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10938then :
10939  printf %s "(cached) " >&6
10940else case e in #(
10941  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10942/* end confdefs.h.  */
10943int i;
10944_ACEOF
10945if ac_fn_c_try_compile "$LINENO"
10946then :
10947  xorg_cv_cc_flag_unused_command_line_argument=yes
10948else case e in #(
10949  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10950esac
10951fi
10952rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10953esac
10954fi
10955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10956printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10957	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10958	CFLAGS="$xorg_testset_save_CFLAGS"
10959fi
10960
10961found="no"
10962
10963	if test $found = "no" ; then
10964		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10965			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10966		fi
10967
10968		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10969			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10970		fi
10971
10972		CFLAGS="$CFLAGS -pedantic"
10973
10974		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10975printf %s "checking if $CC supports -pedantic... " >&6; }
10976		cacheid=xorg_cv_cc_flag__pedantic
10977		if eval test \${$cacheid+y}
10978then :
10979  printf %s "(cached) " >&6
10980else case e in #(
10981  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10982/* end confdefs.h.  */
10983int i;
10984int
10985main (void)
10986{
10987
10988  ;
10989  return 0;
10990}
10991_ACEOF
10992if ac_fn_c_try_link "$LINENO"
10993then :
10994  eval $cacheid=yes
10995else case e in #(
10996  e) eval $cacheid=no ;;
10997esac
10998fi
10999rm -f core conftest.err conftest.$ac_objext conftest.beam \
11000    conftest$ac_exeext conftest.$ac_ext ;;
11001esac
11002fi
11003
11004
11005		CFLAGS="$xorg_testset_save_CFLAGS"
11006
11007		eval supported=\$$cacheid
11008		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11009printf "%s\n" "$supported" >&6; }
11010		if test "$supported" = "yes" ; then
11011			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11012			found="yes"
11013		fi
11014	fi
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030xorg_testset_save_CFLAGS="$CFLAGS"
11031
11032if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11033	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11034	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11035printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11036if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11037then :
11038  printf %s "(cached) " >&6
11039else case e in #(
11040  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11041/* end confdefs.h.  */
11042int i;
11043_ACEOF
11044if ac_fn_c_try_compile "$LINENO"
11045then :
11046  xorg_cv_cc_flag_unknown_warning_option=yes
11047else case e in #(
11048  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11049esac
11050fi
11051rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11052esac
11053fi
11054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11055printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11056	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11057	CFLAGS="$xorg_testset_save_CFLAGS"
11058fi
11059
11060if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11061	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11062		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11063	fi
11064	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11065	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11066printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11067if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11068then :
11069  printf %s "(cached) " >&6
11070else case e in #(
11071  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11072/* end confdefs.h.  */
11073int i;
11074_ACEOF
11075if ac_fn_c_try_compile "$LINENO"
11076then :
11077  xorg_cv_cc_flag_unused_command_line_argument=yes
11078else case e in #(
11079  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11080esac
11081fi
11082rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11083esac
11084fi
11085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11086printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11087	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11088	CFLAGS="$xorg_testset_save_CFLAGS"
11089fi
11090
11091found="no"
11092
11093	if test $found = "no" ; then
11094		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11095			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11096		fi
11097
11098		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11099			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11100		fi
11101
11102		CFLAGS="$CFLAGS -Werror"
11103
11104		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11105printf %s "checking if $CC supports -Werror... " >&6; }
11106		cacheid=xorg_cv_cc_flag__Werror
11107		if eval test \${$cacheid+y}
11108then :
11109  printf %s "(cached) " >&6
11110else case e in #(
11111  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11112/* end confdefs.h.  */
11113int i;
11114int
11115main (void)
11116{
11117
11118  ;
11119  return 0;
11120}
11121_ACEOF
11122if ac_fn_c_try_link "$LINENO"
11123then :
11124  eval $cacheid=yes
11125else case e in #(
11126  e) eval $cacheid=no ;;
11127esac
11128fi
11129rm -f core conftest.err conftest.$ac_objext conftest.beam \
11130    conftest$ac_exeext conftest.$ac_ext ;;
11131esac
11132fi
11133
11134
11135		CFLAGS="$xorg_testset_save_CFLAGS"
11136
11137		eval supported=\$$cacheid
11138		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11139printf "%s\n" "$supported" >&6; }
11140		if test "$supported" = "yes" ; then
11141			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11142			found="yes"
11143		fi
11144	fi
11145
11146	if test $found = "no" ; then
11147		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11148			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11149		fi
11150
11151		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11152			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11153		fi
11154
11155		CFLAGS="$CFLAGS -errwarn"
11156
11157		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11158printf %s "checking if $CC supports -errwarn... " >&6; }
11159		cacheid=xorg_cv_cc_flag__errwarn
11160		if eval test \${$cacheid+y}
11161then :
11162  printf %s "(cached) " >&6
11163else case e in #(
11164  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11165/* end confdefs.h.  */
11166int i;
11167int
11168main (void)
11169{
11170
11171  ;
11172  return 0;
11173}
11174_ACEOF
11175if ac_fn_c_try_link "$LINENO"
11176then :
11177  eval $cacheid=yes
11178else case e in #(
11179  e) eval $cacheid=no ;;
11180esac
11181fi
11182rm -f core conftest.err conftest.$ac_objext conftest.beam \
11183    conftest$ac_exeext conftest.$ac_ext ;;
11184esac
11185fi
11186
11187
11188		CFLAGS="$xorg_testset_save_CFLAGS"
11189
11190		eval supported=\$$cacheid
11191		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11192printf "%s\n" "$supported" >&6; }
11193		if test "$supported" = "yes" ; then
11194			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11195			found="yes"
11196		fi
11197	fi
11198
11199
11200
11201# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11202# activate it with -Werror, so we add it here explicitly.
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216xorg_testset_save_CFLAGS="$CFLAGS"
11217
11218if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11219	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11220	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11221printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11222if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11223then :
11224  printf %s "(cached) " >&6
11225else case e in #(
11226  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11227/* end confdefs.h.  */
11228int i;
11229_ACEOF
11230if ac_fn_c_try_compile "$LINENO"
11231then :
11232  xorg_cv_cc_flag_unknown_warning_option=yes
11233else case e in #(
11234  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11235esac
11236fi
11237rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11238esac
11239fi
11240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11241printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11242	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11243	CFLAGS="$xorg_testset_save_CFLAGS"
11244fi
11245
11246if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11247	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11248		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11249	fi
11250	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11251	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11252printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11253if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11254then :
11255  printf %s "(cached) " >&6
11256else case e in #(
11257  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11258/* end confdefs.h.  */
11259int i;
11260_ACEOF
11261if ac_fn_c_try_compile "$LINENO"
11262then :
11263  xorg_cv_cc_flag_unused_command_line_argument=yes
11264else case e in #(
11265  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11266esac
11267fi
11268rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11269esac
11270fi
11271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11272printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11273	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11274	CFLAGS="$xorg_testset_save_CFLAGS"
11275fi
11276
11277found="no"
11278
11279	if test $found = "no" ; then
11280		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11281			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11282		fi
11283
11284		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11285			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11286		fi
11287
11288		CFLAGS="$CFLAGS -Werror=attributes"
11289
11290		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11291printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11292		cacheid=xorg_cv_cc_flag__Werror_attributes
11293		if eval test \${$cacheid+y}
11294then :
11295  printf %s "(cached) " >&6
11296else case e in #(
11297  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11298/* end confdefs.h.  */
11299int i;
11300int
11301main (void)
11302{
11303
11304  ;
11305  return 0;
11306}
11307_ACEOF
11308if ac_fn_c_try_link "$LINENO"
11309then :
11310  eval $cacheid=yes
11311else case e in #(
11312  e) eval $cacheid=no ;;
11313esac
11314fi
11315rm -f core conftest.err conftest.$ac_objext conftest.beam \
11316    conftest$ac_exeext conftest.$ac_ext ;;
11317esac
11318fi
11319
11320
11321		CFLAGS="$xorg_testset_save_CFLAGS"
11322
11323		eval supported=\$$cacheid
11324		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11325printf "%s\n" "$supported" >&6; }
11326		if test "$supported" = "yes" ; then
11327			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11328			found="yes"
11329		fi
11330	fi
11331
11332
11333
11334if test "x$STRICT_COMPILE" = "xyes"; then
11335    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11336    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11337fi
11338
11339
11340
11341
11342
11343
11344
11345
11346cat >>confdefs.h <<_ACEOF
11347#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11348_ACEOF
11349
11350	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11351	if test "x$PVM" = "x"; then
11352		PVM="0"
11353	fi
11354
11355printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11356
11357	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11358	if test "x$PVP" = "x"; then
11359		PVP="0"
11360	fi
11361
11362printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11363
11364
11365
11366CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11367mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11368|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11369touch \$(top_srcdir)/ChangeLog; \
11370echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11371
11372
11373
11374
11375macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11376INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11377mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11378|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11379touch \$(top_srcdir)/INSTALL; \
11380echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11381
11382
11383
11384
11385
11386
11387case $host_os in
11388    solaris*)
11389        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11390        # check for a man page file found in later versions that use
11391        # traditional section numbers instead
11392        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11393printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11394if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11395then :
11396  printf %s "(cached) " >&6
11397else case e in #(
11398  e) test "$cross_compiling" = yes &&
11399  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11400if test -r "/usr/share/man/man7/attributes.7"; then
11401  ac_cv_file__usr_share_man_man7_attributes_7=yes
11402else
11403  ac_cv_file__usr_share_man_man7_attributes_7=no
11404fi ;;
11405esac
11406fi
11407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11408printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11409if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11410then :
11411  SYSV_MAN_SECTIONS=false
11412else case e in #(
11413  e) SYSV_MAN_SECTIONS=true ;;
11414esac
11415fi
11416
11417        ;;
11418    *) SYSV_MAN_SECTIONS=false ;;
11419esac
11420
11421if test x$APP_MAN_SUFFIX = x    ; then
11422    APP_MAN_SUFFIX=1
11423fi
11424if test x$APP_MAN_DIR = x    ; then
11425    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11426fi
11427
11428if test x$LIB_MAN_SUFFIX = x    ; then
11429    LIB_MAN_SUFFIX=3
11430fi
11431if test x$LIB_MAN_DIR = x    ; then
11432    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11433fi
11434
11435if test x$FILE_MAN_SUFFIX = x    ; then
11436    case $SYSV_MAN_SECTIONS in
11437	true)				FILE_MAN_SUFFIX=4  ;;
11438	*)				FILE_MAN_SUFFIX=5  ;;
11439    esac
11440fi
11441if test x$FILE_MAN_DIR = x    ; then
11442    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11443fi
11444
11445if test x$MISC_MAN_SUFFIX = x    ; then
11446    case $SYSV_MAN_SECTIONS in
11447	true)				MISC_MAN_SUFFIX=5  ;;
11448	*)				MISC_MAN_SUFFIX=7  ;;
11449    esac
11450fi
11451if test x$MISC_MAN_DIR = x    ; then
11452    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11453fi
11454
11455if test x$DRIVER_MAN_SUFFIX = x    ; then
11456    case $SYSV_MAN_SECTIONS in
11457	true)				DRIVER_MAN_SUFFIX=7  ;;
11458	*)				DRIVER_MAN_SUFFIX=4  ;;
11459    esac
11460fi
11461if test x$DRIVER_MAN_DIR = x    ; then
11462    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11463fi
11464
11465if test x$ADMIN_MAN_SUFFIX = x    ; then
11466    case $SYSV_MAN_SECTIONS in
11467	true)				ADMIN_MAN_SUFFIX=1m ;;
11468	*)				ADMIN_MAN_SUFFIX=8  ;;
11469    esac
11470fi
11471if test x$ADMIN_MAN_DIR = x    ; then
11472    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11473fi
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489XORG_MAN_PAGE="X Version 11"
11490
11491MAN_SUBSTS="\
11492	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11493	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11494	-e 's|__xservername__|Xorg|g' \
11495	-e 's|__xconfigfile__|xorg.conf|g' \
11496	-e 's|__projectroot__|\$(prefix)|g' \
11497	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11498	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11499	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11500	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11501	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11502	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11503	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11504
11505
11506
11507# Check whether --enable-silent-rules was given.
11508if test ${enable_silent_rules+y}
11509then :
11510  enableval=$enable_silent_rules;
11511fi
11512
11513case $enable_silent_rules in # (((
11514  yes) AM_DEFAULT_VERBOSITY=0;;
11515   no) AM_DEFAULT_VERBOSITY=1;;
11516    *) AM_DEFAULT_VERBOSITY=0;;
11517esac
11518am_make=${MAKE-make}
11519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11520printf %s "checking whether $am_make supports nested variables... " >&6; }
11521if test ${am_cv_make_support_nested_variables+y}
11522then :
11523  printf %s "(cached) " >&6
11524else case e in #(
11525  e) if printf "%s\n" 'TRUE=$(BAR$(V))
11526BAR0=false
11527BAR1=true
11528V=1
11529am__doit:
11530	@$(TRUE)
11531.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11532  am_cv_make_support_nested_variables=yes
11533else
11534  am_cv_make_support_nested_variables=no
11535fi ;;
11536esac
11537fi
11538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11539printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11540if test $am_cv_make_support_nested_variables = yes; then
11541    AM_V='$(V)'
11542  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11543else
11544  AM_V=$AM_DEFAULT_VERBOSITY
11545  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11546fi
11547AM_BACKSLASH='\'
11548
11549
11550
11551
11552
11553
11554# Extract the first word of "groff", so it can be a program name with args.
11555set dummy groff; ac_word=$2
11556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11557printf %s "checking for $ac_word... " >&6; }
11558if test ${ac_cv_prog_GROFF+y}
11559then :
11560  printf %s "(cached) " >&6
11561else case e in #(
11562  e) if test -n "$GROFF"; then
11563  ac_cv_prog_GROFF="$GROFF" # Let the user override the test.
11564else
11565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11566for as_dir in $PATH
11567do
11568  IFS=$as_save_IFS
11569  case $as_dir in #(((
11570    '') as_dir=./ ;;
11571    */) ;;
11572    *) as_dir=$as_dir/ ;;
11573  esac
11574    for ac_exec_ext in '' $ac_executable_extensions; do
11575  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11576    ac_cv_prog_GROFF="found"
11577    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11578    break 2
11579  fi
11580done
11581  done
11582IFS=$as_save_IFS
11583
11584  test -z "$ac_cv_prog_GROFF" && ac_cv_prog_GROFF="missing"
11585fi ;;
11586esac
11587fi
11588GROFF=$ac_cv_prog_GROFF
11589if test -n "$GROFF"; then
11590  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
11591printf "%s\n" "$GROFF" >&6; }
11592else
11593  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11594printf "%s\n" "no" >&6; }
11595fi
11596
11597
11598if test "x$GROFF" = "xfound" ; then
11599
11600printf "%s\n" "#define HAS_GROFF 1" >>confdefs.h
11601
11602fi
11603
11604# Extract the first word of "mandb", so it can be a program name with args.
11605set dummy mandb; ac_word=$2
11606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11607printf %s "checking for $ac_word... " >&6; }
11608if test ${ac_cv_prog_MANDB+y}
11609then :
11610  printf %s "(cached) " >&6
11611else case e in #(
11612  e) if test -n "$MANDB"; then
11613  ac_cv_prog_MANDB="$MANDB" # Let the user override the test.
11614else
11615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11616for as_dir in $PATH
11617do
11618  IFS=$as_save_IFS
11619  case $as_dir in #(((
11620    '') as_dir=./ ;;
11621    */) ;;
11622    *) as_dir=$as_dir/ ;;
11623  esac
11624    for ac_exec_ext in '' $ac_executable_extensions; do
11625  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11626    ac_cv_prog_MANDB="yes"
11627    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11628    break 2
11629  fi
11630done
11631  done
11632IFS=$as_save_IFS
11633
11634  test -z "$ac_cv_prog_MANDB" && ac_cv_prog_MANDB="no"
11635fi ;;
11636esac
11637fi
11638MANDB=$ac_cv_prog_MANDB
11639if test -n "$MANDB"; then
11640  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANDB" >&5
11641printf "%s\n" "$MANDB" >&6; }
11642else
11643  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11644printf "%s\n" "no" >&6; }
11645fi
11646
11647
11648if test x"$MANDB" = xyes; then
11649
11650printf "%s\n" "#define HAVE_MANDB 1" >>confdefs.h
11651
11652fi
11653
11654# Checks for typedefs, structures, and compiler characteristics.
11655# Check whether --enable-largefile was given.
11656if test ${enable_largefile+y}
11657then :
11658  enableval=$enable_largefile;
11659fi
11660if test "$enable_largefile,$enable_year2038" != no,no
11661then :
11662  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
11663printf %s "checking for $CC option to enable large file support... " >&6; }
11664if test ${ac_cv_sys_largefile_opts+y}
11665then :
11666  printf %s "(cached) " >&6
11667else case e in #(
11668  e) ac_save_CC="$CC"
11669  ac_opt_found=no
11670  for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
11671    if test x"$ac_opt" != x"none needed"
11672then :
11673  CC="$ac_save_CC $ac_opt"
11674fi
11675    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11676/* end confdefs.h.  */
11677#include <sys/types.h>
11678#ifndef FTYPE
11679# define FTYPE off_t
11680#endif
11681 /* Check that FTYPE can represent 2**63 - 1 correctly.
11682    We can't simply define LARGE_FTYPE to be 9223372036854775807,
11683    since some C++ compilers masquerading as C compilers
11684    incorrectly reject 9223372036854775807.  */
11685#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
11686  int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
11687		       && LARGE_FTYPE % 2147483647 == 1)
11688		      ? 1 : -1];
11689int
11690main (void)
11691{
11692
11693  ;
11694  return 0;
11695}
11696_ACEOF
11697if ac_fn_c_try_compile "$LINENO"
11698then :
11699  if test x"$ac_opt" = x"none needed"
11700then :
11701  # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
11702	 CC="$CC -DFTYPE=ino_t"
11703	 if ac_fn_c_try_compile "$LINENO"
11704then :
11705
11706else case e in #(
11707  e) CC="$CC -D_FILE_OFFSET_BITS=64"
11708	    if ac_fn_c_try_compile "$LINENO"
11709then :
11710  ac_opt='-D_FILE_OFFSET_BITS=64'
11711fi
11712rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
11713esac
11714fi
11715rm -f core conftest.err conftest.$ac_objext conftest.beam
11716fi
11717      ac_cv_sys_largefile_opts=$ac_opt
11718      ac_opt_found=yes
11719fi
11720rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11721    test $ac_opt_found = no || break
11722  done
11723  CC="$ac_save_CC"
11724
11725  test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
11726esac
11727fi
11728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
11729printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
11730
11731ac_have_largefile=yes
11732case $ac_cv_sys_largefile_opts in #(
11733  "none needed") :
11734     ;; #(
11735  "supported through gnulib") :
11736     ;; #(
11737  "support not detected") :
11738    ac_have_largefile=no ;; #(
11739  "-D_FILE_OFFSET_BITS=64") :
11740
11741printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
11742 ;; #(
11743  "-D_LARGE_FILES=1") :
11744
11745printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
11746 ;; #(
11747  "-n32") :
11748    CC="$CC -n32" ;; #(
11749  *) :
11750    as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
11751esac
11752
11753if test "$enable_year2038" != no
11754then :
11755  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
11756printf %s "checking for $CC option for timestamps after 2038... " >&6; }
11757if test ${ac_cv_sys_year2038_opts+y}
11758then :
11759  printf %s "(cached) " >&6
11760else case e in #(
11761  e) ac_save_CPPFLAGS="$CPPFLAGS"
11762  ac_opt_found=no
11763  for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
11764    if test x"$ac_opt" != x"none needed"
11765then :
11766  CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
11767fi
11768    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11769/* end confdefs.h.  */
11770
11771  #include <time.h>
11772  /* Check that time_t can represent 2**32 - 1 correctly.  */
11773  #define LARGE_TIME_T \\
11774    ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
11775  int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
11776                           && LARGE_TIME_T % 65537 == 0)
11777                          ? 1 : -1];
11778
11779int
11780main (void)
11781{
11782
11783  ;
11784  return 0;
11785}
11786_ACEOF
11787if ac_fn_c_try_compile "$LINENO"
11788then :
11789  ac_cv_sys_year2038_opts="$ac_opt"
11790      ac_opt_found=yes
11791fi
11792rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11793    test $ac_opt_found = no || break
11794  done
11795  CPPFLAGS="$ac_save_CPPFLAGS"
11796  test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
11797esac
11798fi
11799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
11800printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
11801
11802ac_have_year2038=yes
11803case $ac_cv_sys_year2038_opts in #(
11804  "none needed") :
11805     ;; #(
11806  "support not detected") :
11807    ac_have_year2038=no ;; #(
11808  "-D_TIME_BITS=64") :
11809
11810printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
11811 ;; #(
11812  "-D__MINGW_USE_VC2005_COMPAT") :
11813
11814printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
11815 ;; #(
11816  "-U_USE_32_BIT_TIME_T"*) :
11817    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11818printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11819as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
11820will stop working after mid-January 2038. Remove
11821_USE_32BIT_TIME_T from the compiler flags.
11822See 'config.log' for more details" "$LINENO" 5; } ;; #(
11823  *) :
11824    as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
11825esac
11826
11827fi
11828
11829fi
11830
11831# Checks for library functions.
11832ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
11833if test "x$ac_cv_func_mkstemp" = xyes
11834then :
11835  printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
11836
11837fi
11838
11839
11840
11841# Check whether --with-helpdir was given.
11842if test ${with_helpdir+y}
11843then :
11844  withval=$with_helpdir; HELPDIR="$withval"
11845else case e in #(
11846  e) HELPDIR=${datadir}/X11 ;;
11847esac
11848fi
11849
11850
11851
11852
11853# Check whether --with-sysmanpath was given.
11854if test ${with_sysmanpath+y}
11855then :
11856  withval=$with_sysmanpath; SYSMANPATH="$withval"
11857fi
11858
11859if test x$SYSMANPATH != x; then
11860
11861printf "%s\n" "#define SYSMANPATH \"$SYSMANPATH\"" >>confdefs.h
11862
11863fi
11864
11865
11866# Check whether --with-localmanpath was given.
11867if test ${with_localmanpath+y}
11868then :
11869  withval=$with_localmanpath; LOCALMANPATH="$withval"
11870fi
11871
11872if test x$LOCALMANPATH != x; then
11873
11874printf "%s\n" "#define LOCALMANPATH \"$LOCALMANPATH\"" >>confdefs.h
11875
11876fi
11877
11878# Obtain compiler/linker options from dependencies
11879
11880pkg_failed=no
11881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XMAN" >&5
11882printf %s "checking for XMAN... " >&6; }
11883
11884if test -n "$XMAN_CFLAGS"; then
11885    pkg_cv_XMAN_CFLAGS="$XMAN_CFLAGS"
11886 elif test -n "$PKG_CONFIG"; then
11887    if test -n "$PKG_CONFIG" && \
11888    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xaw7 xt\""; } >&5
11889  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xaw7 xt") 2>&5
11890  ac_status=$?
11891  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11892  test $ac_status = 0; }; then
11893  pkg_cv_XMAN_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 xaw7 xt" 2>/dev/null`
11894		      test "x$?" != "x0" && pkg_failed=yes
11895else
11896  pkg_failed=yes
11897fi
11898 else
11899    pkg_failed=untried
11900fi
11901if test -n "$XMAN_LIBS"; then
11902    pkg_cv_XMAN_LIBS="$XMAN_LIBS"
11903 elif test -n "$PKG_CONFIG"; then
11904    if test -n "$PKG_CONFIG" && \
11905    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xaw7 xt\""; } >&5
11906  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xaw7 xt") 2>&5
11907  ac_status=$?
11908  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11909  test $ac_status = 0; }; then
11910  pkg_cv_XMAN_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 xaw7 xt" 2>/dev/null`
11911		      test "x$?" != "x0" && pkg_failed=yes
11912else
11913  pkg_failed=yes
11914fi
11915 else
11916    pkg_failed=untried
11917fi
11918
11919
11920
11921if test $pkg_failed = yes; then
11922   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11923printf "%s\n" "no" >&6; }
11924
11925if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11926        _pkg_short_errors_supported=yes
11927else
11928        _pkg_short_errors_supported=no
11929fi
11930        if test $_pkg_short_errors_supported = yes; then
11931	        XMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.17 xaw7 xt" 2>&1`
11932        else
11933	        XMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.17 xaw7 xt" 2>&1`
11934        fi
11935	# Put the nasty error message in config.log where it belongs
11936	echo "$XMAN_PKG_ERRORS" >&5
11937
11938	as_fn_error $? "Package requirements (xproto >= 7.0.17 xaw7 xt) were not met:
11939
11940$XMAN_PKG_ERRORS
11941
11942Consider adjusting the PKG_CONFIG_PATH environment variable if you
11943installed software in a non-standard prefix.
11944
11945Alternatively, you may set the environment variables XMAN_CFLAGS
11946and XMAN_LIBS to avoid the need to call pkg-config.
11947See the pkg-config man page for more details." "$LINENO" 5
11948elif test $pkg_failed = untried; then
11949     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11950printf "%s\n" "no" >&6; }
11951	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11952printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11953as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11954is in your PATH or set the PKG_CONFIG environment variable to the full
11955path to pkg-config.
11956
11957Alternatively, you may set the environment variables XMAN_CFLAGS
11958and XMAN_LIBS to avoid the need to call pkg-config.
11959See the pkg-config man page for more details.
11960
11961To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11962See 'config.log' for more details" "$LINENO" 5; }
11963else
11964	XMAN_CFLAGS=$pkg_cv_XMAN_CFLAGS
11965	XMAN_LIBS=$pkg_cv_XMAN_LIBS
11966        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11967printf "%s\n" "yes" >&6; }
11968
11969fi
11970
11971
11972# Check whether --with-manconfig was given.
11973if test ${with_manconfig+y}
11974then :
11975  withval=$with_manconfig; MANCONF="$withval"
11976fi
11977
11978if test x$MANCONF = x; then
11979# Check for man page config files
11980    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /etc/man.conf" >&5
11981printf %s "checking for /etc/man.conf... " >&6; }
11982if test ${ac_cv_file__etc_man_conf+y}
11983then :
11984  printf %s "(cached) " >&6
11985else case e in #(
11986  e) test "$cross_compiling" = yes &&
11987  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11988if test -r "/etc/man.conf"; then
11989  ac_cv_file__etc_man_conf=yes
11990else
11991  ac_cv_file__etc_man_conf=no
11992fi ;;
11993esac
11994fi
11995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_man_conf" >&5
11996printf "%s\n" "$ac_cv_file__etc_man_conf" >&6; }
11997if test "x$ac_cv_file__etc_man_conf" = xyes
11998then :
11999  MANCONF="/etc/man.conf"
12000else case e in #(
12001  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /etc/man.config" >&5
12002printf %s "checking for /etc/man.config... " >&6; }
12003if test ${ac_cv_file__etc_man_config+y}
12004then :
12005  printf %s "(cached) " >&6
12006else case e in #(
12007  e) test "$cross_compiling" = yes &&
12008  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
12009if test -r "/etc/man.config"; then
12010  ac_cv_file__etc_man_config=yes
12011else
12012  ac_cv_file__etc_man_config=no
12013fi ;;
12014esac
12015fi
12016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_man_config" >&5
12017printf "%s\n" "$ac_cv_file__etc_man_config" >&6; }
12018if test "x$ac_cv_file__etc_man_config" = xyes
12019then :
12020  MANCONF="/etc/man.config"
12021else case e in #(
12022  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /etc/manpath.config" >&5
12023printf %s "checking for /etc/manpath.config... " >&6; }
12024if test ${ac_cv_file__etc_manpath_config+y}
12025then :
12026  printf %s "(cached) " >&6
12027else case e in #(
12028  e) test "$cross_compiling" = yes &&
12029  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
12030if test -r "/etc/manpath.config"; then
12031  ac_cv_file__etc_manpath_config=yes
12032else
12033  ac_cv_file__etc_manpath_config=no
12034fi ;;
12035esac
12036fi
12037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_manpath_config" >&5
12038printf "%s\n" "$ac_cv_file__etc_manpath_config" >&6; }
12039if test "x$ac_cv_file__etc_manpath_config" = xyes
12040then :
12041  MANCONF="/etc/manpath.config"
12042else case e in #(
12043  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/misc/man.conf" >&5
12044printf %s "checking for /usr/share/misc/man.conf... " >&6; }
12045if test ${ac_cv_file__usr_share_misc_man_conf+y}
12046then :
12047  printf %s "(cached) " >&6
12048else case e in #(
12049  e) test "$cross_compiling" = yes &&
12050  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
12051if test -r "/usr/share/misc/man.conf"; then
12052  ac_cv_file__usr_share_misc_man_conf=yes
12053else
12054  ac_cv_file__usr_share_misc_man_conf=no
12055fi ;;
12056esac
12057fi
12058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_misc_man_conf" >&5
12059printf "%s\n" "$ac_cv_file__usr_share_misc_man_conf" >&6; }
12060if test "x$ac_cv_file__usr_share_misc_man_conf" = xyes
12061then :
12062  MANCONF="/usr/share/misc/man.conf"
12063fi
12064 ;;
12065esac
12066fi
12067 ;;
12068esac
12069fi
12070 ;;
12071esac
12072fi
12073
12074fi
12075
12076if test x$MANCONF != x ; then
12077
12078printf "%s\n" "#define MANCONF \"$MANCONF\"" >>confdefs.h
12079
12080
12081    # Try to determine format of config file
12082    # would be better to somehow determine from the files themselves, but
12083    # we'll guess based on pathname and OS for now (mirrors old Imake tests)
12084    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking man config file format" >&5
12085printf %s "checking man config file format... " >&6; }
12086    if test x$MANCONF = x/etc/manpath.config ; then
12087	MAN_CONFIG_STYLE="FreeBSD"
12088    else
12089	case $host_os in
12090	*darwin* | *openbsd* | *netbsd* )
12091	    MAN_CONFIG_STYLE="OpenBSD"
12092	    ;;
12093	*linux* | cygwin* )
12094	    MAN_CONFIG_STYLE="Linux"
12095	    ;;
12096	*bsd* )
12097	    MAN_CONFIG_STYLE="BSD"
12098	    ;;
12099	*)
12100	    ;;
12101	esac
12102    fi
12103    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAN_CONFIG_STYLE" >&5
12104printf "%s\n" "$MAN_CONFIG_STYLE" >&6; }
12105
12106    case $MAN_CONFIG_STYLE in
12107	FreeBSD)
12108
12109printf "%s\n" "#define MANCONFIGSTYLE_FreeBSD 1" >>confdefs.h
12110
12111	    ;;
12112	OpenBSD)
12113
12114printf "%s\n" "#define MANCONFIGSTYLE_OpenBSD 1" >>confdefs.h
12115
12116	    ;;
12117	BSD)
12118
12119printf "%s\n" "#define MANCONFIGSTYLE_BSD 1" >>confdefs.h
12120
12121	    ;;
12122	Linux)
12123
12124printf "%s\n" "#define MANCONFIGSTYLE_Linux 1" >>confdefs.h
12125
12126	    ;;
12127	*)
12128	    as_fn_error $? "Could not determine man page file config format." "$LINENO" 5
12129    esac
12130fi
12131
12132
12133pkg_failed=no
12134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
12135printf %s "checking for APPDEFS... " >&6; }
12136
12137if test -n "$APPDEFS_CFLAGS"; then
12138    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
12139 elif test -n "$PKG_CONFIG"; then
12140    if test -n "$PKG_CONFIG" && \
12141    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
12142  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
12143  ac_status=$?
12144  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12145  test $ac_status = 0; }; then
12146  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
12147		      test "x$?" != "x0" && pkg_failed=yes
12148else
12149  pkg_failed=yes
12150fi
12151 else
12152    pkg_failed=untried
12153fi
12154if test -n "$APPDEFS_LIBS"; then
12155    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
12156 elif test -n "$PKG_CONFIG"; then
12157    if test -n "$PKG_CONFIG" && \
12158    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
12159  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
12160  ac_status=$?
12161  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12162  test $ac_status = 0; }; then
12163  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
12164		      test "x$?" != "x0" && pkg_failed=yes
12165else
12166  pkg_failed=yes
12167fi
12168 else
12169    pkg_failed=untried
12170fi
12171
12172
12173
12174if test $pkg_failed = yes; then
12175   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12176printf "%s\n" "no" >&6; }
12177
12178if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12179        _pkg_short_errors_supported=yes
12180else
12181        _pkg_short_errors_supported=no
12182fi
12183        if test $_pkg_short_errors_supported = yes; then
12184	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
12185        else
12186	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
12187        fi
12188	# Put the nasty error message in config.log where it belongs
12189	echo "$APPDEFS_PKG_ERRORS" >&5
12190
12191	as_fn_error $? "Package requirements (xt) were not met:
12192
12193$APPDEFS_PKG_ERRORS
12194
12195Consider adjusting the PKG_CONFIG_PATH environment variable if you
12196installed software in a non-standard prefix.
12197
12198Alternatively, you may set the environment variables APPDEFS_CFLAGS
12199and APPDEFS_LIBS to avoid the need to call pkg-config.
12200See the pkg-config man page for more details." "$LINENO" 5
12201elif test $pkg_failed = untried; then
12202     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12203printf "%s\n" "no" >&6; }
12204	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12205printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12206as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12207is in your PATH or set the PKG_CONFIG environment variable to the full
12208path to pkg-config.
12209
12210Alternatively, you may set the environment variables APPDEFS_CFLAGS
12211and APPDEFS_LIBS to avoid the need to call pkg-config.
12212See the pkg-config man page for more details.
12213
12214To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12215See 'config.log' for more details" "$LINENO" 5; }
12216else
12217	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
12218	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
12219        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12220printf "%s\n" "yes" >&6; }
12221
12222fi
12223xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
12224
12225# Check whether --with-appdefaultdir was given.
12226if test ${with_appdefaultdir+y}
12227then :
12228  withval=$with_appdefaultdir; appdefaultdir="$withval"
12229else case e in #(
12230  e) appdefaultdir="${xt_appdefaultdir}" ;;
12231esac
12232fi
12233
12234
12235
12236if test "x$RELEASE_VERSION" != "x"; then
12237
12238printf "%s\n" "#define RELEASE_VERSION \"$RELEASE_VERSION\"" >>confdefs.h
12239
12240fi
12241
12242ac_config_files="$ac_config_files Makefile man/Makefile"
12243
12244cat >confcache <<\_ACEOF
12245# This file is a shell script that caches the results of configure
12246# tests run on this system so they can be shared between configure
12247# scripts and configure runs, see configure's option --config-cache.
12248# It is not useful on other systems.  If it contains results you don't
12249# want to keep, you may remove or edit it.
12250#
12251# config.status only pays attention to the cache file if you give it
12252# the --recheck option to rerun configure.
12253#
12254# 'ac_cv_env_foo' variables (set or unset) will be overridden when
12255# loading this file, other *unset* 'ac_cv_foo' will be assigned the
12256# following values.
12257
12258_ACEOF
12259
12260# The following way of writing the cache mishandles newlines in values,
12261# but we know of no workaround that is simple, portable, and efficient.
12262# So, we kill variables containing newlines.
12263# Ultrix sh set writes to stderr and can't be redirected directly,
12264# and sets the high bit in the cache file unless we assign to the vars.
12265(
12266  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12267    eval ac_val=\$$ac_var
12268    case $ac_val in #(
12269    *${as_nl}*)
12270      case $ac_var in #(
12271      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12272printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12273      esac
12274      case $ac_var in #(
12275      _ | IFS | as_nl) ;; #(
12276      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12277      *) { eval $ac_var=; unset $ac_var;} ;;
12278      esac ;;
12279    esac
12280  done
12281
12282  (set) 2>&1 |
12283    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12284    *${as_nl}ac_space=\ *)
12285      # 'set' does not quote correctly, so add quotes: double-quote
12286      # substitution turns \\\\ into \\, and sed turns \\ into \.
12287      sed -n \
12288	"s/'/'\\\\''/g;
12289	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12290      ;; #(
12291    *)
12292      # 'set' quotes correctly as required by POSIX, so do not add quotes.
12293      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12294      ;;
12295    esac |
12296    sort
12297) |
12298  sed '
12299     /^ac_cv_env_/b end
12300     t clear
12301     :clear
12302     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12303     t end
12304     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12305     :end' >>confcache
12306if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12307  if test -w "$cache_file"; then
12308    if test "x$cache_file" != "x/dev/null"; then
12309      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12310printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12311      if test ! -f "$cache_file" || test -h "$cache_file"; then
12312	cat confcache >"$cache_file"
12313      else
12314        case $cache_file in #(
12315        */* | ?:*)
12316	  mv -f confcache "$cache_file"$$ &&
12317	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12318        *)
12319	  mv -f confcache "$cache_file" ;;
12320	esac
12321      fi
12322    fi
12323  else
12324    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12325printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12326  fi
12327fi
12328rm -f confcache
12329
12330test "x$prefix" = xNONE && prefix=$ac_default_prefix
12331# Let make expand exec_prefix.
12332test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12333
12334DEFS=-DHAVE_CONFIG_H
12335
12336ac_libobjs=
12337ac_ltlibobjs=
12338U=
12339for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12340  # 1. Remove the extension, and $U if already installed.
12341  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12342  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12343  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12344  #    will be set to the directory where LIBOBJS objects are built.
12345  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12346  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12347done
12348LIBOBJS=$ac_libobjs
12349
12350LTLIBOBJS=$ac_ltlibobjs
12351
12352
12353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12354printf %s "checking that generated files are newer than configure... " >&6; }
12355   if test -n "$am_sleep_pid"; then
12356     # Hide warnings about reused PIDs.
12357     wait $am_sleep_pid 2>/dev/null
12358   fi
12359   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
12360printf "%s\n" "done" >&6; }
12361 if test -n "$EXEEXT"; then
12362  am__EXEEXT_TRUE=
12363  am__EXEEXT_FALSE='#'
12364else
12365  am__EXEEXT_TRUE='#'
12366  am__EXEEXT_FALSE=
12367fi
12368
12369if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12370  as_fn_error $? "conditional \"AMDEP\" was never defined.
12371Usually this means the macro was only invoked conditionally." "$LINENO" 5
12372fi
12373if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12374  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12375Usually this means the macro was only invoked conditionally." "$LINENO" 5
12376fi
12377# Check whether --enable-year2038 was given.
12378if test ${enable_year2038+y}
12379then :
12380  enableval=$enable_year2038;
12381fi
12382
12383
12384: "${CONFIG_STATUS=./config.status}"
12385ac_write_fail=0
12386ac_clean_files_save=$ac_clean_files
12387ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12389printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12390as_write_fail=0
12391cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12392#! $SHELL
12393# Generated by $as_me.
12394# Run this file to recreate the current configuration.
12395# Compiler output produced by configure, useful for debugging
12396# configure, is in config.log if it exists.
12397
12398debug=false
12399ac_cs_recheck=false
12400ac_cs_silent=false
12401
12402SHELL=\${CONFIG_SHELL-$SHELL}
12403export SHELL
12404_ASEOF
12405cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12406## -------------------- ##
12407## M4sh Initialization. ##
12408## -------------------- ##
12409
12410# Be more Bourne compatible
12411DUALCASE=1; export DUALCASE # for MKS sh
12412if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12413then :
12414  emulate sh
12415  NULLCMD=:
12416  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12417  # is contrary to our usage.  Disable this feature.
12418  alias -g '${1+"$@"}'='"$@"'
12419  setopt NO_GLOB_SUBST
12420else case e in #(
12421  e) case `(set -o) 2>/dev/null` in #(
12422  *posix*) :
12423    set -o posix ;; #(
12424  *) :
12425     ;;
12426esac ;;
12427esac
12428fi
12429
12430
12431
12432# Reset variables that may have inherited troublesome values from
12433# the environment.
12434
12435# IFS needs to be set, to space, tab, and newline, in precisely that order.
12436# (If _AS_PATH_WALK were called with IFS unset, it would have the
12437# side effect of setting IFS to empty, thus disabling word splitting.)
12438# Quoting is to prevent editors from complaining about space-tab.
12439as_nl='
12440'
12441export as_nl
12442IFS=" ""	$as_nl"
12443
12444PS1='$ '
12445PS2='> '
12446PS4='+ '
12447
12448# Ensure predictable behavior from utilities with locale-dependent output.
12449LC_ALL=C
12450export LC_ALL
12451LANGUAGE=C
12452export LANGUAGE
12453
12454# We cannot yet rely on "unset" to work, but we need these variables
12455# to be unset--not just set to an empty or harmless value--now, to
12456# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
12457# also avoids known problems related to "unset" and subshell syntax
12458# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12459for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12460do eval test \${$as_var+y} \
12461  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12462done
12463
12464# Ensure that fds 0, 1, and 2 are open.
12465if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12466if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12467if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
12468
12469# The user is always right.
12470if ${PATH_SEPARATOR+false} :; then
12471  PATH_SEPARATOR=:
12472  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12473    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12474      PATH_SEPARATOR=';'
12475  }
12476fi
12477
12478
12479# Find who we are.  Look in the path if we contain no directory separator.
12480as_myself=
12481case $0 in #((
12482  *[\\/]* ) as_myself=$0 ;;
12483  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12484for as_dir in $PATH
12485do
12486  IFS=$as_save_IFS
12487  case $as_dir in #(((
12488    '') as_dir=./ ;;
12489    */) ;;
12490    *) as_dir=$as_dir/ ;;
12491  esac
12492    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12493  done
12494IFS=$as_save_IFS
12495
12496     ;;
12497esac
12498# We did not find ourselves, most probably we were run as 'sh COMMAND'
12499# in which case we are not to be found in the path.
12500if test "x$as_myself" = x; then
12501  as_myself=$0
12502fi
12503if test ! -f "$as_myself"; then
12504  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12505  exit 1
12506fi
12507
12508
12509
12510# as_fn_error STATUS ERROR [LINENO LOG_FD]
12511# ----------------------------------------
12512# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12513# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12514# script with STATUS, using 1 if that was 0.
12515as_fn_error ()
12516{
12517  as_status=$1; test $as_status -eq 0 && as_status=1
12518  if test "$4"; then
12519    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12520    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12521  fi
12522  printf "%s\n" "$as_me: error: $2" >&2
12523  as_fn_exit $as_status
12524} # as_fn_error
12525
12526
12527# as_fn_set_status STATUS
12528# -----------------------
12529# Set $? to STATUS, without forking.
12530as_fn_set_status ()
12531{
12532  return $1
12533} # as_fn_set_status
12534
12535# as_fn_exit STATUS
12536# -----------------
12537# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12538as_fn_exit ()
12539{
12540  set +e
12541  as_fn_set_status $1
12542  exit $1
12543} # as_fn_exit
12544
12545# as_fn_unset VAR
12546# ---------------
12547# Portably unset VAR.
12548as_fn_unset ()
12549{
12550  { eval $1=; unset $1;}
12551}
12552as_unset=as_fn_unset
12553
12554# as_fn_append VAR VALUE
12555# ----------------------
12556# Append the text in VALUE to the end of the definition contained in VAR. Take
12557# advantage of any shell optimizations that allow amortized linear growth over
12558# repeated appends, instead of the typical quadratic growth present in naive
12559# implementations.
12560if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12561then :
12562  eval 'as_fn_append ()
12563  {
12564    eval $1+=\$2
12565  }'
12566else case e in #(
12567  e) as_fn_append ()
12568  {
12569    eval $1=\$$1\$2
12570  } ;;
12571esac
12572fi # as_fn_append
12573
12574# as_fn_arith ARG...
12575# ------------------
12576# Perform arithmetic evaluation on the ARGs, and store the result in the
12577# global $as_val. Take advantage of shells that can avoid forks. The arguments
12578# must be portable across $(()) and expr.
12579if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12580then :
12581  eval 'as_fn_arith ()
12582  {
12583    as_val=$(( $* ))
12584  }'
12585else case e in #(
12586  e) as_fn_arith ()
12587  {
12588    as_val=`expr "$@" || test $? -eq 1`
12589  } ;;
12590esac
12591fi # as_fn_arith
12592
12593
12594if expr a : '\(a\)' >/dev/null 2>&1 &&
12595   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12596  as_expr=expr
12597else
12598  as_expr=false
12599fi
12600
12601if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12602  as_basename=basename
12603else
12604  as_basename=false
12605fi
12606
12607if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12608  as_dirname=dirname
12609else
12610  as_dirname=false
12611fi
12612
12613as_me=`$as_basename -- "$0" ||
12614$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12615	 X"$0" : 'X\(//\)$' \| \
12616	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12617printf "%s\n" X/"$0" |
12618    sed '/^.*\/\([^/][^/]*\)\/*$/{
12619	    s//\1/
12620	    q
12621	  }
12622	  /^X\/\(\/\/\)$/{
12623	    s//\1/
12624	    q
12625	  }
12626	  /^X\/\(\/\).*/{
12627	    s//\1/
12628	    q
12629	  }
12630	  s/.*/./; q'`
12631
12632# Avoid depending upon Character Ranges.
12633as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12634as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12635as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12636as_cr_digits='0123456789'
12637as_cr_alnum=$as_cr_Letters$as_cr_digits
12638
12639
12640# Determine whether it's possible to make 'echo' print without a newline.
12641# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12642# for compatibility with existing Makefiles.
12643ECHO_C= ECHO_N= ECHO_T=
12644case `echo -n x` in #(((((
12645-n*)
12646  case `echo 'xy\c'` in
12647  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12648  xy)  ECHO_C='\c';;
12649  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12650       ECHO_T='	';;
12651  esac;;
12652*)
12653  ECHO_N='-n';;
12654esac
12655
12656# For backward compatibility with old third-party macros, we provide
12657# the shell variables $as_echo and $as_echo_n.  New code should use
12658# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12659as_echo='printf %s\n'
12660as_echo_n='printf %s'
12661
12662rm -f conf$$ conf$$.exe conf$$.file
12663if test -d conf$$.dir; then
12664  rm -f conf$$.dir/conf$$.file
12665else
12666  rm -f conf$$.dir
12667  mkdir conf$$.dir 2>/dev/null
12668fi
12669if (echo >conf$$.file) 2>/dev/null; then
12670  if ln -s conf$$.file conf$$ 2>/dev/null; then
12671    as_ln_s='ln -s'
12672    # ... but there are two gotchas:
12673    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12674    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12675    # In both cases, we have to default to 'cp -pR'.
12676    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12677      as_ln_s='cp -pR'
12678  elif ln conf$$.file conf$$ 2>/dev/null; then
12679    as_ln_s=ln
12680  else
12681    as_ln_s='cp -pR'
12682  fi
12683else
12684  as_ln_s='cp -pR'
12685fi
12686rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12687rmdir conf$$.dir 2>/dev/null
12688
12689
12690# as_fn_mkdir_p
12691# -------------
12692# Create "$as_dir" as a directory, including parents if necessary.
12693as_fn_mkdir_p ()
12694{
12695
12696  case $as_dir in #(
12697  -*) as_dir=./$as_dir;;
12698  esac
12699  test -d "$as_dir" || eval $as_mkdir_p || {
12700    as_dirs=
12701    while :; do
12702      case $as_dir in #(
12703      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12704      *) as_qdir=$as_dir;;
12705      esac
12706      as_dirs="'$as_qdir' $as_dirs"
12707      as_dir=`$as_dirname -- "$as_dir" ||
12708$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12709	 X"$as_dir" : 'X\(//\)[^/]' \| \
12710	 X"$as_dir" : 'X\(//\)$' \| \
12711	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12712printf "%s\n" X"$as_dir" |
12713    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12714	    s//\1/
12715	    q
12716	  }
12717	  /^X\(\/\/\)[^/].*/{
12718	    s//\1/
12719	    q
12720	  }
12721	  /^X\(\/\/\)$/{
12722	    s//\1/
12723	    q
12724	  }
12725	  /^X\(\/\).*/{
12726	    s//\1/
12727	    q
12728	  }
12729	  s/.*/./; q'`
12730      test -d "$as_dir" && break
12731    done
12732    test -z "$as_dirs" || eval "mkdir $as_dirs"
12733  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12734
12735
12736} # as_fn_mkdir_p
12737if mkdir -p . 2>/dev/null; then
12738  as_mkdir_p='mkdir -p "$as_dir"'
12739else
12740  test -d ./-p && rmdir ./-p
12741  as_mkdir_p=false
12742fi
12743
12744
12745# as_fn_executable_p FILE
12746# -----------------------
12747# Test if FILE is an executable regular file.
12748as_fn_executable_p ()
12749{
12750  test -f "$1" && test -x "$1"
12751} # as_fn_executable_p
12752as_test_x='test -x'
12753as_executable_p=as_fn_executable_p
12754
12755# Sed expression to map a string onto a valid CPP name.
12756as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12757as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12758
12759# Sed expression to map a string onto a valid variable name.
12760as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12761as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12762
12763
12764exec 6>&1
12765## ----------------------------------- ##
12766## Main body of $CONFIG_STATUS script. ##
12767## ----------------------------------- ##
12768_ASEOF
12769test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12770
12771cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12772# Save the log message, to keep $0 and so on meaningful, and to
12773# report actual input values of CONFIG_FILES etc. instead of their
12774# values after options handling.
12775ac_log="
12776This file was extended by xman $as_me 1.2.0, which was
12777generated by GNU Autoconf 2.72.  Invocation command line was
12778
12779  CONFIG_FILES    = $CONFIG_FILES
12780  CONFIG_HEADERS  = $CONFIG_HEADERS
12781  CONFIG_LINKS    = $CONFIG_LINKS
12782  CONFIG_COMMANDS = $CONFIG_COMMANDS
12783  $ $0 $@
12784
12785on `(hostname || uname -n) 2>/dev/null | sed 1q`
12786"
12787
12788_ACEOF
12789
12790case $ac_config_files in *"
12791"*) set x $ac_config_files; shift; ac_config_files=$*;;
12792esac
12793
12794case $ac_config_headers in *"
12795"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12796esac
12797
12798
12799cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12800# Files that config.status was made for.
12801config_files="$ac_config_files"
12802config_headers="$ac_config_headers"
12803config_commands="$ac_config_commands"
12804
12805_ACEOF
12806
12807cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12808ac_cs_usage="\
12809'$as_me' instantiates files and other configuration actions
12810from templates according to the current configuration.  Unless the files
12811and actions are specified as TAGs, all are instantiated by default.
12812
12813Usage: $0 [OPTION]... [TAG]...
12814
12815  -h, --help       print this help, then exit
12816  -V, --version    print version number and configuration settings, then exit
12817      --config     print configuration, then exit
12818  -q, --quiet, --silent
12819                   do not print progress messages
12820  -d, --debug      don't remove temporary files
12821      --recheck    update $as_me by reconfiguring in the same conditions
12822      --file=FILE[:TEMPLATE]
12823                   instantiate the configuration file FILE
12824      --header=FILE[:TEMPLATE]
12825                   instantiate the configuration header FILE
12826
12827Configuration files:
12828$config_files
12829
12830Configuration headers:
12831$config_headers
12832
12833Configuration commands:
12834$config_commands
12835
12836Report bugs to <https://gitlab.freedesktop.org/xorg/app/xman/-/issues/>."
12837
12838_ACEOF
12839ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12840ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12841cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12842ac_cs_config='$ac_cs_config_escaped'
12843ac_cs_version="\\
12844xman config.status 1.2.0
12845configured by $0, generated by GNU Autoconf 2.72,
12846  with options \\"\$ac_cs_config\\"
12847
12848Copyright (C) 2023 Free Software Foundation, Inc.
12849This config.status script is free software; the Free Software Foundation
12850gives unlimited permission to copy, distribute and modify it."
12851
12852ac_pwd='$ac_pwd'
12853srcdir='$srcdir'
12854INSTALL='$INSTALL'
12855MKDIR_P='$MKDIR_P'
12856AWK='$AWK'
12857test -n "\$AWK" || AWK=awk
12858_ACEOF
12859
12860cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12861# The default lists apply if the user does not specify any file.
12862ac_need_defaults=:
12863while test $# != 0
12864do
12865  case $1 in
12866  --*=?*)
12867    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12868    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12869    ac_shift=:
12870    ;;
12871  --*=)
12872    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12873    ac_optarg=
12874    ac_shift=:
12875    ;;
12876  *)
12877    ac_option=$1
12878    ac_optarg=$2
12879    ac_shift=shift
12880    ;;
12881  esac
12882
12883  case $ac_option in
12884  # Handling of the options.
12885  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12886    ac_cs_recheck=: ;;
12887  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12888    printf "%s\n" "$ac_cs_version"; exit ;;
12889  --config | --confi | --conf | --con | --co | --c )
12890    printf "%s\n" "$ac_cs_config"; exit ;;
12891  --debug | --debu | --deb | --de | --d | -d )
12892    debug=: ;;
12893  --file | --fil | --fi | --f )
12894    $ac_shift
12895    case $ac_optarg in
12896    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12897    '') as_fn_error $? "missing file argument" ;;
12898    esac
12899    as_fn_append CONFIG_FILES " '$ac_optarg'"
12900    ac_need_defaults=false;;
12901  --header | --heade | --head | --hea )
12902    $ac_shift
12903    case $ac_optarg in
12904    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12905    esac
12906    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12907    ac_need_defaults=false;;
12908  --he | --h)
12909    # Conflict between --help and --header
12910    as_fn_error $? "ambiguous option: '$1'
12911Try '$0 --help' for more information.";;
12912  --help | --hel | -h )
12913    printf "%s\n" "$ac_cs_usage"; exit ;;
12914  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12915  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12916    ac_cs_silent=: ;;
12917
12918  # This is an error.
12919  -*) as_fn_error $? "unrecognized option: '$1'
12920Try '$0 --help' for more information." ;;
12921
12922  *) as_fn_append ac_config_targets " $1"
12923     ac_need_defaults=false ;;
12924
12925  esac
12926  shift
12927done
12928
12929ac_configure_extra_args=
12930
12931if $ac_cs_silent; then
12932  exec 6>/dev/null
12933  ac_configure_extra_args="$ac_configure_extra_args --silent"
12934fi
12935
12936_ACEOF
12937cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12938if \$ac_cs_recheck; then
12939  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12940  shift
12941  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12942  CONFIG_SHELL='$SHELL'
12943  export CONFIG_SHELL
12944  exec "\$@"
12945fi
12946
12947_ACEOF
12948cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12949exec 5>>config.log
12950{
12951  echo
12952  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12953## Running $as_me. ##
12954_ASBOX
12955  printf "%s\n" "$ac_log"
12956} >&5
12957
12958_ACEOF
12959cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12960#
12961# INIT-COMMANDS
12962#
12963AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12964
12965_ACEOF
12966
12967cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12968
12969# Handling of arguments.
12970for ac_config_target in $ac_config_targets
12971do
12972  case $ac_config_target in
12973    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12974    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12975    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12976    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12977
12978  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12979  esac
12980done
12981
12982
12983# If the user did not use the arguments to specify the items to instantiate,
12984# then the envvar interface is used.  Set only those that are not.
12985# We use the long form for the default assignment because of an extremely
12986# bizarre bug on SunOS 4.1.3.
12987if $ac_need_defaults; then
12988  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12989  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12990  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12991fi
12992
12993# Have a temporary directory for convenience.  Make it in the build tree
12994# simply because there is no reason against having it here, and in addition,
12995# creating and moving files from /tmp can sometimes cause problems.
12996# Hook for its removal unless debugging.
12997# Note that there is a small window in which the directory will not be cleaned:
12998# after its creation but before its name has been assigned to '$tmp'.
12999$debug ||
13000{
13001  tmp= ac_tmp=
13002  trap 'exit_status=$?
13003  : "${ac_tmp:=$tmp}"
13004  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13005' 0
13006  trap 'as_fn_exit 1' 1 2 13 15
13007}
13008# Create a (secure) tmp directory for tmp files.
13009
13010{
13011  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13012  test -d "$tmp"
13013}  ||
13014{
13015  tmp=./conf$$-$RANDOM
13016  (umask 077 && mkdir "$tmp")
13017} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13018ac_tmp=$tmp
13019
13020# Set up the scripts for CONFIG_FILES section.
13021# No need to generate them if there are no CONFIG_FILES.
13022# This happens for instance with './config.status config.h'.
13023if test -n "$CONFIG_FILES"; then
13024
13025
13026ac_cr=`echo X | tr X '\015'`
13027# On cygwin, bash can eat \r inside `` if the user requested igncr.
13028# But we know of no other shell where ac_cr would be empty at this
13029# point, so we can use a bashism as a fallback.
13030if test "x$ac_cr" = x; then
13031  eval ac_cr=\$\'\\r\'
13032fi
13033ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13034if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13035  ac_cs_awk_cr='\\r'
13036else
13037  ac_cs_awk_cr=$ac_cr
13038fi
13039
13040echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13041_ACEOF
13042
13043
13044{
13045  echo "cat >conf$$subs.awk <<_ACEOF" &&
13046  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13047  echo "_ACEOF"
13048} >conf$$subs.sh ||
13049  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13050ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13051ac_delim='%!_!# '
13052for ac_last_try in false false false false false :; do
13053  . ./conf$$subs.sh ||
13054    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13055
13056  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13057  if test $ac_delim_n = $ac_delim_num; then
13058    break
13059  elif $ac_last_try; then
13060    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13061  else
13062    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13063  fi
13064done
13065rm -f conf$$subs.sh
13066
13067cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13068cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13069_ACEOF
13070sed -n '
13071h
13072s/^/S["/; s/!.*/"]=/
13073p
13074g
13075s/^[^!]*!//
13076:repl
13077t repl
13078s/'"$ac_delim"'$//
13079t delim
13080:nl
13081h
13082s/\(.\{148\}\)..*/\1/
13083t more1
13084s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13085p
13086n
13087b repl
13088:more1
13089s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13090p
13091g
13092s/.\{148\}//
13093t nl
13094:delim
13095h
13096s/\(.\{148\}\)..*/\1/
13097t more2
13098s/["\\]/\\&/g; s/^/"/; s/$/"/
13099p
13100b
13101:more2
13102s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13103p
13104g
13105s/.\{148\}//
13106t delim
13107' <conf$$subs.awk | sed '
13108/^[^""]/{
13109  N
13110  s/\n//
13111}
13112' >>$CONFIG_STATUS || ac_write_fail=1
13113rm -f conf$$subs.awk
13114cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13115_ACAWK
13116cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13117  for (key in S) S_is_set[key] = 1
13118  FS = ""
13119
13120}
13121{
13122  line = $ 0
13123  nfields = split(line, field, "@")
13124  substed = 0
13125  len = length(field[1])
13126  for (i = 2; i < nfields; i++) {
13127    key = field[i]
13128    keylen = length(key)
13129    if (S_is_set[key]) {
13130      value = S[key]
13131      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13132      len += length(value) + length(field[++i])
13133      substed = 1
13134    } else
13135      len += 1 + keylen
13136  }
13137
13138  print line
13139}
13140
13141_ACAWK
13142_ACEOF
13143cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13144if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13145  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13146else
13147  cat
13148fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13149  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13150_ACEOF
13151
13152# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13153# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13154# trailing colons and then remove the whole line if VPATH becomes empty
13155# (actually we leave an empty line to preserve line numbers).
13156if test "x$srcdir" = x.; then
13157  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13158h
13159s///
13160s/^/:/
13161s/[	 ]*$/:/
13162s/:\$(srcdir):/:/g
13163s/:\${srcdir}:/:/g
13164s/:@srcdir@:/:/g
13165s/^:*//
13166s/:*$//
13167x
13168s/\(=[	 ]*\).*/\1/
13169G
13170s/\n//
13171s/^[^=]*=[	 ]*$//
13172}'
13173fi
13174
13175cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13176fi # test -n "$CONFIG_FILES"
13177
13178# Set up the scripts for CONFIG_HEADERS section.
13179# No need to generate them if there are no CONFIG_HEADERS.
13180# This happens for instance with './config.status Makefile'.
13181if test -n "$CONFIG_HEADERS"; then
13182cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13183BEGIN {
13184_ACEOF
13185
13186# Transform confdefs.h into an awk script 'defines.awk', embedded as
13187# here-document in config.status, that substitutes the proper values into
13188# config.h.in to produce config.h.
13189
13190# Create a delimiter string that does not exist in confdefs.h, to ease
13191# handling of long lines.
13192ac_delim='%!_!# '
13193for ac_last_try in false false :; do
13194  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13195  if test -z "$ac_tt"; then
13196    break
13197  elif $ac_last_try; then
13198    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13199  else
13200    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13201  fi
13202done
13203
13204# For the awk script, D is an array of macro values keyed by name,
13205# likewise P contains macro parameters if any.  Preserve backslash
13206# newline sequences.
13207
13208ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13209sed -n '
13210s/.\{148\}/&'"$ac_delim"'/g
13211t rset
13212:rset
13213s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13214t def
13215d
13216:def
13217s/\\$//
13218t bsnl
13219s/["\\]/\\&/g
13220s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13221D["\1"]=" \3"/p
13222s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13223d
13224:bsnl
13225s/["\\]/\\&/g
13226s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13227D["\1"]=" \3\\\\\\n"\\/p
13228t cont
13229s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13230t cont
13231d
13232:cont
13233n
13234s/.\{148\}/&'"$ac_delim"'/g
13235t clear
13236:clear
13237s/\\$//
13238t bsnlc
13239s/["\\]/\\&/g; s/^/"/; s/$/"/p
13240d
13241:bsnlc
13242s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13243b cont
13244' <confdefs.h | sed '
13245s/'"$ac_delim"'/"\\\
13246"/g' >>$CONFIG_STATUS || ac_write_fail=1
13247
13248cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13249  for (key in D) D_is_set[key] = 1
13250  FS = ""
13251}
13252/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13253  line = \$ 0
13254  split(line, arg, " ")
13255  if (arg[1] == "#") {
13256    defundef = arg[2]
13257    mac1 = arg[3]
13258  } else {
13259    defundef = substr(arg[1], 2)
13260    mac1 = arg[2]
13261  }
13262  split(mac1, mac2, "(") #)
13263  macro = mac2[1]
13264  prefix = substr(line, 1, index(line, defundef) - 1)
13265  if (D_is_set[macro]) {
13266    # Preserve the white space surrounding the "#".
13267    print prefix "define", macro P[macro] D[macro]
13268    next
13269  } else {
13270    # Replace #undef with comments.  This is necessary, for example,
13271    # in the case of _POSIX_SOURCE, which is predefined and required
13272    # on some systems where configure will not decide to define it.
13273    if (defundef == "undef") {
13274      print "/*", prefix defundef, macro, "*/"
13275      next
13276    }
13277  }
13278}
13279{ print }
13280_ACAWK
13281_ACEOF
13282cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13283  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13284fi # test -n "$CONFIG_HEADERS"
13285
13286
13287eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13288shift
13289for ac_tag
13290do
13291  case $ac_tag in
13292  :[FHLC]) ac_mode=$ac_tag; continue;;
13293  esac
13294  case $ac_mode$ac_tag in
13295  :[FHL]*:*);;
13296  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
13297  :[FH]-) ac_tag=-:-;;
13298  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13299  esac
13300  ac_save_IFS=$IFS
13301  IFS=:
13302  set x $ac_tag
13303  IFS=$ac_save_IFS
13304  shift
13305  ac_file=$1
13306  shift
13307
13308  case $ac_mode in
13309  :L) ac_source=$1;;
13310  :[FH])
13311    ac_file_inputs=
13312    for ac_f
13313    do
13314      case $ac_f in
13315      -) ac_f="$ac_tmp/stdin";;
13316      *) # Look for the file first in the build tree, then in the source tree
13317	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13318	 # because $ac_f cannot contain ':'.
13319	 test -f "$ac_f" ||
13320	   case $ac_f in
13321	   [\\/$]*) false;;
13322	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13323	   esac ||
13324	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
13325      esac
13326      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13327      as_fn_append ac_file_inputs " '$ac_f'"
13328    done
13329
13330    # Let's still pretend it is 'configure' which instantiates (i.e., don't
13331    # use $as_me), people would be surprised to read:
13332    #    /* config.h.  Generated by config.status.  */
13333    configure_input='Generated from '`
13334	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13335	`' by configure.'
13336    if test x"$ac_file" != x-; then
13337      configure_input="$ac_file.  $configure_input"
13338      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13339printf "%s\n" "$as_me: creating $ac_file" >&6;}
13340    fi
13341    # Neutralize special characters interpreted by sed in replacement strings.
13342    case $configure_input in #(
13343    *\&* | *\|* | *\\* )
13344       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13345       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13346    *) ac_sed_conf_input=$configure_input;;
13347    esac
13348
13349    case $ac_tag in
13350    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13351      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13352    esac
13353    ;;
13354  esac
13355
13356  ac_dir=`$as_dirname -- "$ac_file" ||
13357$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13358	 X"$ac_file" : 'X\(//\)[^/]' \| \
13359	 X"$ac_file" : 'X\(//\)$' \| \
13360	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13361printf "%s\n" X"$ac_file" |
13362    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13363	    s//\1/
13364	    q
13365	  }
13366	  /^X\(\/\/\)[^/].*/{
13367	    s//\1/
13368	    q
13369	  }
13370	  /^X\(\/\/\)$/{
13371	    s//\1/
13372	    q
13373	  }
13374	  /^X\(\/\).*/{
13375	    s//\1/
13376	    q
13377	  }
13378	  s/.*/./; q'`
13379  as_dir="$ac_dir"; as_fn_mkdir_p
13380  ac_builddir=.
13381
13382case "$ac_dir" in
13383.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13384*)
13385  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13386  # A ".." for each directory in $ac_dir_suffix.
13387  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13388  case $ac_top_builddir_sub in
13389  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13390  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13391  esac ;;
13392esac
13393ac_abs_top_builddir=$ac_pwd
13394ac_abs_builddir=$ac_pwd$ac_dir_suffix
13395# for backward compatibility:
13396ac_top_builddir=$ac_top_build_prefix
13397
13398case $srcdir in
13399  .)  # We are building in place.
13400    ac_srcdir=.
13401    ac_top_srcdir=$ac_top_builddir_sub
13402    ac_abs_top_srcdir=$ac_pwd ;;
13403  [\\/]* | ?:[\\/]* )  # Absolute name.
13404    ac_srcdir=$srcdir$ac_dir_suffix;
13405    ac_top_srcdir=$srcdir
13406    ac_abs_top_srcdir=$srcdir ;;
13407  *) # Relative name.
13408    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13409    ac_top_srcdir=$ac_top_build_prefix$srcdir
13410    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13411esac
13412ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13413
13414
13415  case $ac_mode in
13416  :F)
13417  #
13418  # CONFIG_FILE
13419  #
13420
13421  case $INSTALL in
13422  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13423  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13424  esac
13425  ac_MKDIR_P=$MKDIR_P
13426  case $MKDIR_P in
13427  [\\/$]* | ?:[\\/]* ) ;;
13428  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13429  esac
13430_ACEOF
13431
13432cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13433# If the template does not know about datarootdir, expand it.
13434# FIXME: This hack should be removed a few years after 2.60.
13435ac_datarootdir_hack=; ac_datarootdir_seen=
13436ac_sed_dataroot='
13437/datarootdir/ {
13438  p
13439  q
13440}
13441/@datadir@/p
13442/@docdir@/p
13443/@infodir@/p
13444/@localedir@/p
13445/@mandir@/p'
13446case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13447*datarootdir*) ac_datarootdir_seen=yes;;
13448*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13449  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13450printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13451_ACEOF
13452cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13453  ac_datarootdir_hack='
13454  s&@datadir@&$datadir&g
13455  s&@docdir@&$docdir&g
13456  s&@infodir@&$infodir&g
13457  s&@localedir@&$localedir&g
13458  s&@mandir@&$mandir&g
13459  s&\\\${datarootdir}&$datarootdir&g' ;;
13460esac
13461_ACEOF
13462
13463# Neutralize VPATH when '$srcdir' = '.'.
13464# Shell code in configure.ac might set extrasub.
13465# FIXME: do we really want to maintain this feature?
13466cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13467ac_sed_extra="$ac_vpsub
13468$extrasub
13469_ACEOF
13470cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13471:t
13472/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13473s|@configure_input@|$ac_sed_conf_input|;t t
13474s&@top_builddir@&$ac_top_builddir_sub&;t t
13475s&@top_build_prefix@&$ac_top_build_prefix&;t t
13476s&@srcdir@&$ac_srcdir&;t t
13477s&@abs_srcdir@&$ac_abs_srcdir&;t t
13478s&@top_srcdir@&$ac_top_srcdir&;t t
13479s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13480s&@builddir@&$ac_builddir&;t t
13481s&@abs_builddir@&$ac_abs_builddir&;t t
13482s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13483s&@INSTALL@&$ac_INSTALL&;t t
13484s&@MKDIR_P@&$ac_MKDIR_P&;t t
13485$ac_datarootdir_hack
13486"
13487eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13488  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13489
13490test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13491  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13492  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13493      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13494  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13495which seems to be undefined.  Please make sure it is defined" >&5
13496printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13497which seems to be undefined.  Please make sure it is defined" >&2;}
13498
13499  rm -f "$ac_tmp/stdin"
13500  case $ac_file in
13501  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13502  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13503  esac \
13504  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13505 ;;
13506  :H)
13507  #
13508  # CONFIG_HEADER
13509  #
13510  if test x"$ac_file" != x-; then
13511    {
13512      printf "%s\n" "/* $configure_input  */" >&1 \
13513      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13514    } >"$ac_tmp/config.h" \
13515      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13516    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13517      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13518printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13519    else
13520      rm -f "$ac_file"
13521      mv "$ac_tmp/config.h" "$ac_file" \
13522	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13523    fi
13524  else
13525    printf "%s\n" "/* $configure_input  */" >&1 \
13526      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13527      || as_fn_error $? "could not create -" "$LINENO" 5
13528  fi
13529# Compute "$ac_file"'s index in $config_headers.
13530_am_arg="$ac_file"
13531_am_stamp_count=1
13532for _am_header in $config_headers :; do
13533  case $_am_header in
13534    $_am_arg | $_am_arg:* )
13535      break ;;
13536    * )
13537      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13538  esac
13539done
13540echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13541$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13542	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13543	 X"$_am_arg" : 'X\(//\)$' \| \
13544	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13545printf "%s\n" X"$_am_arg" |
13546    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13547	    s//\1/
13548	    q
13549	  }
13550	  /^X\(\/\/\)[^/].*/{
13551	    s//\1/
13552	    q
13553	  }
13554	  /^X\(\/\/\)$/{
13555	    s//\1/
13556	    q
13557	  }
13558	  /^X\(\/\).*/{
13559	    s//\1/
13560	    q
13561	  }
13562	  s/.*/./; q'`/stamp-h$_am_stamp_count
13563 ;;
13564
13565  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13566printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13567 ;;
13568  esac
13569
13570
13571  case $ac_file$ac_mode in
13572    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13573  # Older Autoconf quotes --file arguments for eval, but not when files
13574  # are listed without --file.  Let's play safe and only enable the eval
13575  # if we detect the quoting.
13576  # TODO: see whether this extra hack can be removed once we start
13577  # requiring Autoconf 2.70 or later.
13578  case $CONFIG_FILES in #(
13579  *\'*) :
13580    eval set x "$CONFIG_FILES" ;; #(
13581  *) :
13582    set x $CONFIG_FILES ;; #(
13583  *) :
13584     ;;
13585esac
13586  shift
13587  # Used to flag and report bootstrapping failures.
13588  am_rc=0
13589  for am_mf
13590  do
13591    # Strip MF so we end up with the name of the file.
13592    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13593    # Check whether this is an Automake generated Makefile which includes
13594    # dependency-tracking related rules and includes.
13595    # Grep'ing the whole file directly is not great: AIX grep has a line
13596    # limit of 2048, but all sed's we know have understand at least 4000.
13597    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13598      || continue
13599    am_dirpart=`$as_dirname -- "$am_mf" ||
13600$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13601	 X"$am_mf" : 'X\(//\)[^/]' \| \
13602	 X"$am_mf" : 'X\(//\)$' \| \
13603	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13604printf "%s\n" X"$am_mf" |
13605    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13606	    s//\1/
13607	    q
13608	  }
13609	  /^X\(\/\/\)[^/].*/{
13610	    s//\1/
13611	    q
13612	  }
13613	  /^X\(\/\/\)$/{
13614	    s//\1/
13615	    q
13616	  }
13617	  /^X\(\/\).*/{
13618	    s//\1/
13619	    q
13620	  }
13621	  s/.*/./; q'`
13622    am_filepart=`$as_basename -- "$am_mf" ||
13623$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13624	 X"$am_mf" : 'X\(//\)$' \| \
13625	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13626printf "%s\n" X/"$am_mf" |
13627    sed '/^.*\/\([^/][^/]*\)\/*$/{
13628	    s//\1/
13629	    q
13630	  }
13631	  /^X\/\(\/\/\)$/{
13632	    s//\1/
13633	    q
13634	  }
13635	  /^X\/\(\/\).*/{
13636	    s//\1/
13637	    q
13638	  }
13639	  s/.*/./; q'`
13640    { echo "$as_me:$LINENO: cd "$am_dirpart" \
13641      && sed -e '/# am--include-marker/d' "$am_filepart" \
13642        | $MAKE -f - am--depfiles" >&5
13643   (cd "$am_dirpart" \
13644      && sed -e '/# am--include-marker/d' "$am_filepart" \
13645        | $MAKE -f - am--depfiles) >&5 2>&5
13646   ac_status=$?
13647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648   (exit $ac_status); } || am_rc=$?
13649  done
13650  if test $am_rc -ne 0; then
13651    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13652printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13653as_fn_error $? "Something went wrong bootstrapping makefile fragments
13654    for automatic dependency tracking.  If GNU make was not used, consider
13655    re-running the configure script with MAKE=\"gmake\" (or whatever is
13656    necessary).  You can also try re-running configure with the
13657    '--disable-dependency-tracking' option to at least be able to build
13658    the package (albeit without support for automatic dependency tracking).
13659See 'config.log' for more details" "$LINENO" 5; }
13660  fi
13661  { am_dirpart=; unset am_dirpart;}
13662  { am_filepart=; unset am_filepart;}
13663  { am_mf=; unset am_mf;}
13664  { am_rc=; unset am_rc;}
13665  rm -f conftest-deps.mk
13666}
13667 ;;
13668
13669  esac
13670done # for ac_tag
13671
13672
13673as_fn_exit 0
13674_ACEOF
13675ac_clean_files=$ac_clean_files_save
13676
13677test $ac_write_fail = 0 ||
13678  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13679
13680
13681# configure is writing to config.log, and then calls config.status.
13682# config.status does its own redirection, appending to config.log.
13683# Unfortunately, on DOS this fails, as config.log is still kept open
13684# by configure, so config.status won't be able to write to it; its
13685# output is simply discarded.  So we exec the FD to /dev/null,
13686# effectively closing config.log, so it can be properly (re)opened and
13687# appended to by config.status.  When coming back to configure, we
13688# need to make the FD available again.
13689if test "$no_create" != yes; then
13690  ac_cs_success=:
13691  ac_config_status_args=
13692  test "$silent" = yes &&
13693    ac_config_status_args="$ac_config_status_args --quiet"
13694  exec 5>/dev/null
13695  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13696  exec 5>>config.log
13697  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13698  # would make configure fail if this is the last instruction.
13699  $ac_cs_success || as_fn_exit 1
13700fi
13701if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13702  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13703printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13704fi
13705
13706
13707