configure revision 1.1.1.5 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xkbprint 1.0.5.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbprint/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
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.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
270 $0: https://gitlab.freedesktop.org/xorg/app/xkbprint/issues
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
274 $0: have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315
316 # as_fn_mkdir_p
317 # -------------
318 # Create "$as_dir" as a directory, including parents if necessary.
319 as_fn_mkdir_p ()
320 {
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362 } # as_fn_mkdir_p
363
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
368 {
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
376 # implementations.
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382 else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387 fi # as_fn_append
388
389 # as_fn_arith ARG...
390 # ------------------
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399 else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404 fi # as_fn_arith
405
406
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
412 as_fn_error ()
413 {
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 fi
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421 } # as_fn_error
422
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426 else
427 as_expr=false
428 fi
429
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432 else
433 as_basename=false
434 fi
435
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438 else
439 as_dirname=false
440 fi
441
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 $as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
460
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
483 N
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
502 }
503
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
506 -n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513 *)
514 ECHO_N='-n';;
515 esac
516
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520 else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
523 fi
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
537 fi
538 else
539 as_ln_s='cp -pR'
540 fi
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
543
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546 else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549 fi
550
551 as_test_x='test -x'
552 as_executable_p=as_fn_executable_p
553
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561 test -n "$DJDIR" || exec 7<&0 </dev/null
562 exec 6>&1
563
564 # Name of the host.
565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566 # so uname gets run too.
567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569 #
570 # Initializations.
571 #
572 ac_default_prefix=/usr/local
573 ac_clean_files=
574 ac_config_libobj_dir=.
575 LIBOBJS=
576 cross_compiling=no
577 subdirs=
578 MFLAGS=
579 MAKEFLAGS=
580
581 # Identity of this package.
582 PACKAGE_NAME='xkbprint'
583 PACKAGE_TARNAME='xkbprint'
584 PACKAGE_VERSION='1.0.5'
585 PACKAGE_STRING='xkbprint 1.0.5'
586 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xkbprint/issues'
587 PACKAGE_URL=''
588
589 ac_unique_file="Makefile.am"
590 # Factoring default headers for most tests.
591 ac_includes_default="\
592 #include <stdio.h>
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
595 #endif
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
598 #endif
599 #ifdef STDC_HEADERS
600 # include <stdlib.h>
601 # include <stddef.h>
602 #else
603 # ifdef HAVE_STDLIB_H
604 # include <stdlib.h>
605 # endif
606 #endif
607 #ifdef HAVE_STRING_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 # include <memory.h>
610 # endif
611 # include <string.h>
612 #endif
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
615 #endif
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
618 #endif
619 #ifdef HAVE_STDINT_H
620 # include <stdint.h>
621 #endif
622 #ifdef HAVE_UNISTD_H
623 # include <unistd.h>
624 #endif"
625
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 LIBOBJS
630 XKBPRINT_LIBS
631 XKBPRINT_CFLAGS
632 MAN_SUBSTS
633 XORG_MAN_PAGE
634 ADMIN_MAN_DIR
635 DRIVER_MAN_DIR
636 MISC_MAN_DIR
637 FILE_MAN_DIR
638 LIB_MAN_DIR
639 APP_MAN_DIR
640 ADMIN_MAN_SUFFIX
641 DRIVER_MAN_SUFFIX
642 MISC_MAN_SUFFIX
643 FILE_MAN_SUFFIX
644 LIB_MAN_SUFFIX
645 APP_MAN_SUFFIX
646 SED
647 host_os
648 host_vendor
649 host_cpu
650 host
651 build_os
652 build_vendor
653 build_cpu
654 build
655 INSTALL_CMD
656 PKG_CONFIG_LIBDIR
657 PKG_CONFIG_PATH
658 PKG_CONFIG
659 CHANGELOG_CMD
660 STRICT_CFLAGS
661 CWARNFLAGS
662 BASE_CFLAGS
663 AM_BACKSLASH
664 AM_DEFAULT_VERBOSITY
665 AM_DEFAULT_V
666 AM_V
667 am__fastdepCC_FALSE
668 am__fastdepCC_TRUE
669 CCDEPMODE
670 am__nodep
671 AMDEPBACKSLASH
672 AMDEP_FALSE
673 AMDEP_TRUE
674 am__include
675 DEPDIR
676 am__untar
677 am__tar
678 AMTAR
679 am__leading_dot
680 SET_MAKE
681 AWK
682 mkdir_p
683 MKDIR_P
684 INSTALL_STRIP_PROGRAM
685 STRIP
686 install_sh
687 MAKEINFO
688 AUTOHEADER
689 AUTOMAKE
690 AUTOCONF
691 ACLOCAL
692 VERSION
693 PACKAGE
694 CYGPATH_W
695 am__isrc
696 INSTALL_DATA
697 INSTALL_SCRIPT
698 INSTALL_PROGRAM
699 EGREP
700 GREP
701 CPP
702 OBJEXT
703 EXEEXT
704 ac_ct_CC
705 CPPFLAGS
706 LDFLAGS
707 CFLAGS
708 CC
709 target_alias
710 host_alias
711 build_alias
712 LIBS
713 ECHO_T
714 ECHO_N
715 ECHO_C
716 DEFS
717 mandir
718 localedir
719 libdir
720 psdir
721 pdfdir
722 dvidir
723 htmldir
724 infodir
725 docdir
726 oldincludedir
727 includedir
728 localstatedir
729 sharedstatedir
730 sysconfdir
731 datadir
732 datarootdir
733 libexecdir
734 sbindir
735 bindir
736 program_transform_name
737 prefix
738 exec_prefix
739 PACKAGE_URL
740 PACKAGE_BUGREPORT
741 PACKAGE_STRING
742 PACKAGE_VERSION
743 PACKAGE_TARNAME
744 PACKAGE_NAME
745 PATH_SEPARATOR
746 SHELL
747 am__quote'
748 ac_subst_files=''
749 ac_user_opts='
750 enable_option_checking
751 enable_dependency_tracking
752 enable_silent_rules
753 enable_selective_werror
754 enable_strict_compilation
755 '
756 ac_precious_vars='build_alias
757 host_alias
758 target_alias
759 CC
760 CFLAGS
761 LDFLAGS
762 LIBS
763 CPPFLAGS
764 CPP
765 PKG_CONFIG
766 PKG_CONFIG_PATH
767 PKG_CONFIG_LIBDIR
768 XKBPRINT_CFLAGS
769 XKBPRINT_LIBS'
770
771
772 # Initialize some variables set by options.
773 ac_init_help=
774 ac_init_version=false
775 ac_unrecognized_opts=
776 ac_unrecognized_sep=
777 # The variables have the same names as the options, with
778 # dashes changed to underlines.
779 cache_file=/dev/null
780 exec_prefix=NONE
781 no_create=
782 no_recursion=
783 prefix=NONE
784 program_prefix=NONE
785 program_suffix=NONE
786 program_transform_name=s,x,x,
787 silent=
788 site=
789 srcdir=
790 verbose=
791 x_includes=NONE
792 x_libraries=NONE
793
794 # Installation directory options.
795 # These are left unexpanded so users can "make install exec_prefix=/foo"
796 # and all the variables that are supposed to be based on exec_prefix
797 # by default will actually change.
798 # Use braces instead of parens because sh, perl, etc. also accept them.
799 # (The list follows the same order as the GNU Coding Standards.)
800 bindir='${exec_prefix}/bin'
801 sbindir='${exec_prefix}/sbin'
802 libexecdir='${exec_prefix}/libexec'
803 datarootdir='${prefix}/share'
804 datadir='${datarootdir}'
805 sysconfdir='${prefix}/etc'
806 sharedstatedir='${prefix}/com'
807 localstatedir='${prefix}/var'
808 includedir='${prefix}/include'
809 oldincludedir='/usr/include'
810 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
811 infodir='${datarootdir}/info'
812 htmldir='${docdir}'
813 dvidir='${docdir}'
814 pdfdir='${docdir}'
815 psdir='${docdir}'
816 libdir='${exec_prefix}/lib'
817 localedir='${datarootdir}/locale'
818 mandir='${datarootdir}/man'
819
820 ac_prev=
821 ac_dashdash=
822 for ac_option
823 do
824 # If the previous option needs an argument, assign it.
825 if test -n "$ac_prev"; then
826 eval $ac_prev=\$ac_option
827 ac_prev=
828 continue
829 fi
830
831 case $ac_option in
832 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
833 *=) ac_optarg= ;;
834 *) ac_optarg=yes ;;
835 esac
836
837 # Accept the important Cygnus configure options, so we can diagnose typos.
838
839 case $ac_dashdash$ac_option in
840 --)
841 ac_dashdash=yes ;;
842
843 -bindir | --bindir | --bindi | --bind | --bin | --bi)
844 ac_prev=bindir ;;
845 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
846 bindir=$ac_optarg ;;
847
848 -build | --build | --buil | --bui | --bu)
849 ac_prev=build_alias ;;
850 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
851 build_alias=$ac_optarg ;;
852
853 -cache-file | --cache-file | --cache-fil | --cache-fi \
854 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
855 ac_prev=cache_file ;;
856 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
857 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
858 cache_file=$ac_optarg ;;
859
860 --config-cache | -C)
861 cache_file=config.cache ;;
862
863 -datadir | --datadir | --datadi | --datad)
864 ac_prev=datadir ;;
865 -datadir=* | --datadir=* | --datadi=* | --datad=*)
866 datadir=$ac_optarg ;;
867
868 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
869 | --dataroo | --dataro | --datar)
870 ac_prev=datarootdir ;;
871 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
872 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
873 datarootdir=$ac_optarg ;;
874
875 -disable-* | --disable-*)
876 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
877 # Reject names that are not valid shell variable names.
878 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879 as_fn_error $? "invalid feature name: $ac_useropt"
880 ac_useropt_orig=$ac_useropt
881 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882 case $ac_user_opts in
883 *"
884 "enable_$ac_useropt"
885 "*) ;;
886 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
887 ac_unrecognized_sep=', ';;
888 esac
889 eval enable_$ac_useropt=no ;;
890
891 -docdir | --docdir | --docdi | --doc | --do)
892 ac_prev=docdir ;;
893 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
894 docdir=$ac_optarg ;;
895
896 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897 ac_prev=dvidir ;;
898 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
899 dvidir=$ac_optarg ;;
900
901 -enable-* | --enable-*)
902 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
903 # Reject names that are not valid shell variable names.
904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905 as_fn_error $? "invalid feature name: $ac_useropt"
906 ac_useropt_orig=$ac_useropt
907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908 case $ac_user_opts in
909 *"
910 "enable_$ac_useropt"
911 "*) ;;
912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
913 ac_unrecognized_sep=', ';;
914 esac
915 eval enable_$ac_useropt=\$ac_optarg ;;
916
917 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
918 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
919 | --exec | --exe | --ex)
920 ac_prev=exec_prefix ;;
921 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
922 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
923 | --exec=* | --exe=* | --ex=*)
924 exec_prefix=$ac_optarg ;;
925
926 -gas | --gas | --ga | --g)
927 # Obsolete; use --with-gas.
928 with_gas=yes ;;
929
930 -help | --help | --hel | --he | -h)
931 ac_init_help=long ;;
932 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
933 ac_init_help=recursive ;;
934 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
935 ac_init_help=short ;;
936
937 -host | --host | --hos | --ho)
938 ac_prev=host_alias ;;
939 -host=* | --host=* | --hos=* | --ho=*)
940 host_alias=$ac_optarg ;;
941
942 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943 ac_prev=htmldir ;;
944 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945 | --ht=*)
946 htmldir=$ac_optarg ;;
947
948 -includedir | --includedir | --includedi | --included | --include \
949 | --includ | --inclu | --incl | --inc)
950 ac_prev=includedir ;;
951 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
952 | --includ=* | --inclu=* | --incl=* | --inc=*)
953 includedir=$ac_optarg ;;
954
955 -infodir | --infodir | --infodi | --infod | --info | --inf)
956 ac_prev=infodir ;;
957 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
958 infodir=$ac_optarg ;;
959
960 -libdir | --libdir | --libdi | --libd)
961 ac_prev=libdir ;;
962 -libdir=* | --libdir=* | --libdi=* | --libd=*)
963 libdir=$ac_optarg ;;
964
965 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
966 | --libexe | --libex | --libe)
967 ac_prev=libexecdir ;;
968 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
969 | --libexe=* | --libex=* | --libe=*)
970 libexecdir=$ac_optarg ;;
971
972 -localedir | --localedir | --localedi | --localed | --locale)
973 ac_prev=localedir ;;
974 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
975 localedir=$ac_optarg ;;
976
977 -localstatedir | --localstatedir | --localstatedi | --localstated \
978 | --localstate | --localstat | --localsta | --localst | --locals)
979 ac_prev=localstatedir ;;
980 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
981 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
982 localstatedir=$ac_optarg ;;
983
984 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985 ac_prev=mandir ;;
986 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
987 mandir=$ac_optarg ;;
988
989 -nfp | --nfp | --nf)
990 # Obsolete; use --without-fp.
991 with_fp=no ;;
992
993 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
994 | --no-cr | --no-c | -n)
995 no_create=yes ;;
996
997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999 no_recursion=yes ;;
1000
1001 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1002 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1003 | --oldin | --oldi | --old | --ol | --o)
1004 ac_prev=oldincludedir ;;
1005 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1006 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1007 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1008 oldincludedir=$ac_optarg ;;
1009
1010 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011 ac_prev=prefix ;;
1012 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1013 prefix=$ac_optarg ;;
1014
1015 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1016 | --program-pre | --program-pr | --program-p)
1017 ac_prev=program_prefix ;;
1018 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1019 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1020 program_prefix=$ac_optarg ;;
1021
1022 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1023 | --program-suf | --program-su | --program-s)
1024 ac_prev=program_suffix ;;
1025 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1026 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1027 program_suffix=$ac_optarg ;;
1028
1029 -program-transform-name | --program-transform-name \
1030 | --program-transform-nam | --program-transform-na \
1031 | --program-transform-n | --program-transform- \
1032 | --program-transform | --program-transfor \
1033 | --program-transfo | --program-transf \
1034 | --program-trans | --program-tran \
1035 | --progr-tra | --program-tr | --program-t)
1036 ac_prev=program_transform_name ;;
1037 -program-transform-name=* | --program-transform-name=* \
1038 | --program-transform-nam=* | --program-transform-na=* \
1039 | --program-transform-n=* | --program-transform-=* \
1040 | --program-transform=* | --program-transfor=* \
1041 | --program-transfo=* | --program-transf=* \
1042 | --program-trans=* | --program-tran=* \
1043 | --progr-tra=* | --program-tr=* | --program-t=*)
1044 program_transform_name=$ac_optarg ;;
1045
1046 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047 ac_prev=pdfdir ;;
1048 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1049 pdfdir=$ac_optarg ;;
1050
1051 -psdir | --psdir | --psdi | --psd | --ps)
1052 ac_prev=psdir ;;
1053 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1054 psdir=$ac_optarg ;;
1055
1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057 | -silent | --silent | --silen | --sile | --sil)
1058 silent=yes ;;
1059
1060 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1061 ac_prev=sbindir ;;
1062 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1063 | --sbi=* | --sb=*)
1064 sbindir=$ac_optarg ;;
1065
1066 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1067 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1068 | --sharedst | --shareds | --shared | --share | --shar \
1069 | --sha | --sh)
1070 ac_prev=sharedstatedir ;;
1071 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1072 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1073 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1074 | --sha=* | --sh=*)
1075 sharedstatedir=$ac_optarg ;;
1076
1077 -site | --site | --sit)
1078 ac_prev=site ;;
1079 -site=* | --site=* | --sit=*)
1080 site=$ac_optarg ;;
1081
1082 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1083 ac_prev=srcdir ;;
1084 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1085 srcdir=$ac_optarg ;;
1086
1087 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1088 | --syscon | --sysco | --sysc | --sys | --sy)
1089 ac_prev=sysconfdir ;;
1090 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1091 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1092 sysconfdir=$ac_optarg ;;
1093
1094 -target | --target | --targe | --targ | --tar | --ta | --t)
1095 ac_prev=target_alias ;;
1096 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1097 target_alias=$ac_optarg ;;
1098
1099 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1100 verbose=yes ;;
1101
1102 -version | --version | --versio | --versi | --vers | -V)
1103 ac_init_version=: ;;
1104
1105 -with-* | --with-*)
1106 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 as_fn_error $? "invalid package name: $ac_useropt"
1110 ac_useropt_orig=$ac_useropt
1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1113 *"
1114 "with_$ac_useropt"
1115 "*) ;;
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1117 ac_unrecognized_sep=', ';;
1118 esac
1119 eval with_$ac_useropt=\$ac_optarg ;;
1120
1121 -without-* | --without-*)
1122 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error $? "invalid package name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1129 *"
1130 "with_$ac_useropt"
1131 "*) ;;
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1134 esac
1135 eval with_$ac_useropt=no ;;
1136
1137 --x)
1138 # Obsolete; use --with-x.
1139 with_x=yes ;;
1140
1141 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142 | --x-incl | --x-inc | --x-in | --x-i)
1143 ac_prev=x_includes ;;
1144 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146 x_includes=$ac_optarg ;;
1147
1148 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150 ac_prev=x_libraries ;;
1151 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153 x_libraries=$ac_optarg ;;
1154
1155 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1156 Try \`$0 --help' for more information"
1157 ;;
1158
1159 *=*)
1160 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1161 # Reject names that are not valid shell variable names.
1162 case $ac_envvar in #(
1163 '' | [0-9]* | *[!_$as_cr_alnum]* )
1164 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1165 esac
1166 eval $ac_envvar=\$ac_optarg
1167 export $ac_envvar ;;
1168
1169 *)
1170 # FIXME: should be removed in autoconf 3.0.
1171 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1175 ;;
1176
1177 esac
1178 done
1179
1180 if test -n "$ac_prev"; then
1181 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182 as_fn_error $? "missing argument to $ac_option"
1183 fi
1184
1185 if test -n "$ac_unrecognized_opts"; then
1186 case $enable_option_checking in
1187 no) ;;
1188 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1189 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1190 esac
1191 fi
1192
1193 # Check all directory arguments for consistency.
1194 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1195 datadir sysconfdir sharedstatedir localstatedir includedir \
1196 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1197 libdir localedir mandir
1198 do
1199 eval ac_val=\$$ac_var
1200 # Remove trailing slashes.
1201 case $ac_val in
1202 */ )
1203 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1204 eval $ac_var=\$ac_val;;
1205 esac
1206 # Be sure to have absolute directory names.
1207 case $ac_val in
1208 [\\/$]* | ?:[\\/]* ) continue;;
1209 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210 esac
1211 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1212 done
1213
1214 # There might be people who depend on the old broken behavior: `$host'
1215 # used to hold the argument of --host etc.
1216 # FIXME: To remove some day.
1217 build=$build_alias
1218 host=$host_alias
1219 target=$target_alias
1220
1221 # FIXME: To remove some day.
1222 if test "x$host_alias" != x; then
1223 if test "x$build_alias" = x; then
1224 cross_compiling=maybe
1225 elif test "x$build_alias" != "x$host_alias"; then
1226 cross_compiling=yes
1227 fi
1228 fi
1229
1230 ac_tool_prefix=
1231 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1232
1233 test "$silent" = yes && exec 6>/dev/null
1234
1235
1236 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1237 ac_ls_di=`ls -di .` &&
1238 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1239 as_fn_error $? "working directory cannot be determined"
1240 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1241 as_fn_error $? "pwd does not report name of working directory"
1242
1243
1244 # Find the source files, if location was not specified.
1245 if test -z "$srcdir"; then
1246 ac_srcdir_defaulted=yes
1247 # Try the directory containing this script, then the parent directory.
1248 ac_confdir=`$as_dirname -- "$as_myself" ||
1249 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1250 X"$as_myself" : 'X\(//\)[^/]' \| \
1251 X"$as_myself" : 'X\(//\)$' \| \
1252 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1253 $as_echo X"$as_myself" |
1254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1255 s//\1/
1256 q
1257 }
1258 /^X\(\/\/\)[^/].*/{
1259 s//\1/
1260 q
1261 }
1262 /^X\(\/\/\)$/{
1263 s//\1/
1264 q
1265 }
1266 /^X\(\/\).*/{
1267 s//\1/
1268 q
1269 }
1270 s/.*/./; q'`
1271 srcdir=$ac_confdir
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1273 srcdir=..
1274 fi
1275 else
1276 ac_srcdir_defaulted=no
1277 fi
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1279 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1280 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1281 fi
1282 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1283 ac_abs_confdir=`(
1284 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1285 pwd)`
1286 # When building in place, set srcdir=.
1287 if test "$ac_abs_confdir" = "$ac_pwd"; then
1288 srcdir=.
1289 fi
1290 # Remove unnecessary trailing slashes from srcdir.
1291 # Double slashes in file names in object file debugging info
1292 # mess up M-x gdb in Emacs.
1293 case $srcdir in
1294 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1295 esac
1296 for ac_var in $ac_precious_vars; do
1297 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1298 eval ac_env_${ac_var}_value=\$${ac_var}
1299 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1300 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1301 done
1302
1303 #
1304 # Report the --help message.
1305 #
1306 if test "$ac_init_help" = "long"; then
1307 # Omit some internal or obsolete options to make the list less imposing.
1308 # This message is too long to be a string in the A/UX 3.1 sh.
1309 cat <<_ACEOF
1310 \`configure' configures xkbprint 1.0.5 to adapt to many kinds of systems.
1311
1312 Usage: $0 [OPTION]... [VAR=VALUE]...
1313
1314 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1315 VAR=VALUE. See below for descriptions of some of the useful variables.
1316
1317 Defaults for the options are specified in brackets.
1318
1319 Configuration:
1320 -h, --help display this help and exit
1321 --help=short display options specific to this package
1322 --help=recursive display the short help of all the included packages
1323 -V, --version display version information and exit
1324 -q, --quiet, --silent do not print \`checking ...' messages
1325 --cache-file=FILE cache test results in FILE [disabled]
1326 -C, --config-cache alias for \`--cache-file=config.cache'
1327 -n, --no-create do not create output files
1328 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1329
1330 Installation directories:
1331 --prefix=PREFIX install architecture-independent files in PREFIX
1332 [$ac_default_prefix]
1333 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1334 [PREFIX]
1335
1336 By default, \`make install' will install all the files in
1337 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1338 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1339 for instance \`--prefix=\$HOME'.
1340
1341 For better control, use the options below.
1342
1343 Fine tuning of the installation directories:
1344 --bindir=DIR user executables [EPREFIX/bin]
1345 --sbindir=DIR system admin executables [EPREFIX/sbin]
1346 --libexecdir=DIR program executables [EPREFIX/libexec]
1347 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1348 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1349 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1350 --libdir=DIR object code libraries [EPREFIX/lib]
1351 --includedir=DIR C header files [PREFIX/include]
1352 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1353 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1354 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1355 --infodir=DIR info documentation [DATAROOTDIR/info]
1356 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1357 --mandir=DIR man documentation [DATAROOTDIR/man]
1358 --docdir=DIR documentation root [DATAROOTDIR/doc/xkbprint]
1359 --htmldir=DIR html documentation [DOCDIR]
1360 --dvidir=DIR dvi documentation [DOCDIR]
1361 --pdfdir=DIR pdf documentation [DOCDIR]
1362 --psdir=DIR ps documentation [DOCDIR]
1363 _ACEOF
1364
1365 cat <<\_ACEOF
1366
1367 Program names:
1368 --program-prefix=PREFIX prepend PREFIX to installed program names
1369 --program-suffix=SUFFIX append SUFFIX to installed program names
1370 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1371
1372 System types:
1373 --build=BUILD configure for building on BUILD [guessed]
1374 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1375 _ACEOF
1376 fi
1377
1378 if test -n "$ac_init_help"; then
1379 case $ac_init_help in
1380 short | recursive ) echo "Configuration of xkbprint 1.0.5:";;
1381 esac
1382 cat <<\_ACEOF
1383
1384 Optional Features:
1385 --disable-option-checking ignore unrecognized --enable/--with options
1386 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1387 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1388 --enable-dependency-tracking
1389 do not reject slow dependency extractors
1390 --disable-dependency-tracking
1391 speeds up one-time build
1392 --enable-silent-rules less verbose build output (undo: "make V=1")
1393 --disable-silent-rules verbose build output (undo: "make V=0")
1394 --disable-selective-werror
1395 Turn off selective compiler errors. (default:
1396 enabled)
1397 --enable-strict-compilation
1398 Enable all warnings from compiler and make them
1399 errors (default: disabled)
1400
1401 Some influential environment variables:
1402 CC C compiler command
1403 CFLAGS C compiler flags
1404 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1405 nonstandard directory <lib dir>
1406 LIBS libraries to pass to the linker, e.g. -l<library>
1407 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1408 you have headers in a nonstandard directory <include dir>
1409 CPP C preprocessor
1410 PKG_CONFIG path to pkg-config utility
1411 PKG_CONFIG_PATH
1412 directories to add to pkg-config's search path
1413 PKG_CONFIG_LIBDIR
1414 path overriding pkg-config's built-in search path
1415 XKBPRINT_CFLAGS
1416 C compiler flags for XKBPRINT, overriding pkg-config
1417 XKBPRINT_LIBS
1418 linker flags for XKBPRINT, overriding pkg-config
1419
1420 Use these variables to override the choices made by `configure' or to help
1421 it to find libraries and programs with nonstandard names/locations.
1422
1423 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbprint/issues>.
1424 _ACEOF
1425 ac_status=$?
1426 fi
1427
1428 if test "$ac_init_help" = "recursive"; then
1429 # If there are subdirs, report their specific --help.
1430 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1431 test -d "$ac_dir" ||
1432 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1433 continue
1434 ac_builddir=.
1435
1436 case "$ac_dir" in
1437 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438 *)
1439 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1440 # A ".." for each directory in $ac_dir_suffix.
1441 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1442 case $ac_top_builddir_sub in
1443 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1445 esac ;;
1446 esac
1447 ac_abs_top_builddir=$ac_pwd
1448 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1449 # for backward compatibility:
1450 ac_top_builddir=$ac_top_build_prefix
1451
1452 case $srcdir in
1453 .) # We are building in place.
1454 ac_srcdir=.
1455 ac_top_srcdir=$ac_top_builddir_sub
1456 ac_abs_top_srcdir=$ac_pwd ;;
1457 [\\/]* | ?:[\\/]* ) # Absolute name.
1458 ac_srcdir=$srcdir$ac_dir_suffix;
1459 ac_top_srcdir=$srcdir
1460 ac_abs_top_srcdir=$srcdir ;;
1461 *) # Relative name.
1462 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1463 ac_top_srcdir=$ac_top_build_prefix$srcdir
1464 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1465 esac
1466 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1467
1468 cd "$ac_dir" || { ac_status=$?; continue; }
1469 # Check for guested configure.
1470 if test -f "$ac_srcdir/configure.gnu"; then
1471 echo &&
1472 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1473 elif test -f "$ac_srcdir/configure"; then
1474 echo &&
1475 $SHELL "$ac_srcdir/configure" --help=recursive
1476 else
1477 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1478 fi || ac_status=$?
1479 cd "$ac_pwd" || { ac_status=$?; break; }
1480 done
1481 fi
1482
1483 test -n "$ac_init_help" && exit $ac_status
1484 if $ac_init_version; then
1485 cat <<\_ACEOF
1486 xkbprint configure 1.0.5
1487 generated by GNU Autoconf 2.69
1488
1489 Copyright (C) 2012 Free Software Foundation, Inc.
1490 This configure script is free software; the Free Software Foundation
1491 gives unlimited permission to copy, distribute and modify it.
1492 _ACEOF
1493 exit
1494 fi
1495
1496 ## ------------------------ ##
1497 ## Autoconf initialization. ##
1498 ## ------------------------ ##
1499
1500 # ac_fn_c_try_compile LINENO
1501 # --------------------------
1502 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1503 ac_fn_c_try_compile ()
1504 {
1505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506 rm -f conftest.$ac_objext
1507 if { { ac_try="$ac_compile"
1508 case "(($ac_try" in
1509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1510 *) ac_try_echo=$ac_try;;
1511 esac
1512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1513 $as_echo "$ac_try_echo"; } >&5
1514 (eval "$ac_compile") 2>conftest.err
1515 ac_status=$?
1516 if test -s conftest.err; then
1517 grep -v '^ *+' conftest.err >conftest.er1
1518 cat conftest.er1 >&5
1519 mv -f conftest.er1 conftest.err
1520 fi
1521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1522 test $ac_status = 0; } && {
1523 test -z "$ac_c_werror_flag" ||
1524 test ! -s conftest.err
1525 } && test -s conftest.$ac_objext; then :
1526 ac_retval=0
1527 else
1528 $as_echo "$as_me: failed program was:" >&5
1529 sed 's/^/| /' conftest.$ac_ext >&5
1530
1531 ac_retval=1
1532 fi
1533 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1534 as_fn_set_status $ac_retval
1535
1536 } # ac_fn_c_try_compile
1537
1538 # ac_fn_c_try_cpp LINENO
1539 # ----------------------
1540 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1541 ac_fn_c_try_cpp ()
1542 {
1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544 if { { ac_try="$ac_cpp conftest.$ac_ext"
1545 case "(($ac_try" in
1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547 *) ac_try_echo=$ac_try;;
1548 esac
1549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550 $as_echo "$ac_try_echo"; } >&5
1551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1552 ac_status=$?
1553 if test -s conftest.err; then
1554 grep -v '^ *+' conftest.err >conftest.er1
1555 cat conftest.er1 >&5
1556 mv -f conftest.er1 conftest.err
1557 fi
1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 test $ac_status = 0; } > conftest.i && {
1560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1561 test ! -s conftest.err
1562 }; then :
1563 ac_retval=0
1564 else
1565 $as_echo "$as_me: failed program was:" >&5
1566 sed 's/^/| /' conftest.$ac_ext >&5
1567
1568 ac_retval=1
1569 fi
1570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1571 as_fn_set_status $ac_retval
1572
1573 } # ac_fn_c_try_cpp
1574
1575 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1576 # -------------------------------------------------------
1577 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1578 # the include files in INCLUDES and setting the cache variable VAR
1579 # accordingly.
1580 ac_fn_c_check_header_mongrel ()
1581 {
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 if eval \${$3+:} false; then :
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1585 $as_echo_n "checking for $2... " >&6; }
1586 if eval \${$3+:} false; then :
1587 $as_echo_n "(cached) " >&6
1588 fi
1589 eval ac_res=\$$3
1590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1591 $as_echo "$ac_res" >&6; }
1592 else
1593 # Is the header compilable?
1594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1595 $as_echo_n "checking $2 usability... " >&6; }
1596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1597 /* end confdefs.h. */
1598 $4
1599 #include <$2>
1600 _ACEOF
1601 if ac_fn_c_try_compile "$LINENO"; then :
1602 ac_header_compiler=yes
1603 else
1604 ac_header_compiler=no
1605 fi
1606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1608 $as_echo "$ac_header_compiler" >&6; }
1609
1610 # Is the header present?
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1612 $as_echo_n "checking $2 presence... " >&6; }
1613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1614 /* end confdefs.h. */
1615 #include <$2>
1616 _ACEOF
1617 if ac_fn_c_try_cpp "$LINENO"; then :
1618 ac_header_preproc=yes
1619 else
1620 ac_header_preproc=no
1621 fi
1622 rm -f conftest.err conftest.i conftest.$ac_ext
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1624 $as_echo "$ac_header_preproc" >&6; }
1625
1626 # So? What about this header?
1627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1628 yes:no: )
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1630 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1632 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1633 ;;
1634 no:yes:* )
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1636 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1638 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1640 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1642 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1644 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1645 ( $as_echo "## ---------------------------------------------------------------------- ##
1646 ## Report this to https://gitlab.freedesktop.org/xorg/app/xkbprint/issues ##
1647 ## ---------------------------------------------------------------------- ##"
1648 ) | sed "s/^/$as_me: WARNING: /" >&2
1649 ;;
1650 esac
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1652 $as_echo_n "checking for $2... " >&6; }
1653 if eval \${$3+:} false; then :
1654 $as_echo_n "(cached) " >&6
1655 else
1656 eval "$3=\$ac_header_compiler"
1657 fi
1658 eval ac_res=\$$3
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1660 $as_echo "$ac_res" >&6; }
1661 fi
1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663
1664 } # ac_fn_c_check_header_mongrel
1665
1666 # ac_fn_c_try_run LINENO
1667 # ----------------------
1668 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1669 # that executables *can* be run.
1670 ac_fn_c_try_run ()
1671 {
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 if { { ac_try="$ac_link"
1674 case "(($ac_try" in
1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676 *) ac_try_echo=$ac_try;;
1677 esac
1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 $as_echo "$ac_try_echo"; } >&5
1680 (eval "$ac_link") 2>&5
1681 ac_status=$?
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1684 { { case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687 esac
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_try") 2>&5
1691 ac_status=$?
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; }; }; then :
1694 ac_retval=0
1695 else
1696 $as_echo "$as_me: program exited with status $ac_status" >&5
1697 $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1699
1700 ac_retval=$ac_status
1701 fi
1702 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704 as_fn_set_status $ac_retval
1705
1706 } # ac_fn_c_try_run
1707
1708 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1709 # -------------------------------------------------------
1710 # Tests whether HEADER exists and can be compiled using the include files in
1711 # INCLUDES, setting the cache variable VAR accordingly.
1712 ac_fn_c_check_header_compile ()
1713 {
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716 $as_echo_n "checking for $2... " >&6; }
1717 if eval \${$3+:} false; then :
1718 $as_echo_n "(cached) " >&6
1719 else
1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721 /* end confdefs.h. */
1722 $4
1723 #include <$2>
1724 _ACEOF
1725 if ac_fn_c_try_compile "$LINENO"; then :
1726 eval "$3=yes"
1727 else
1728 eval "$3=no"
1729 fi
1730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1731 fi
1732 eval ac_res=\$$3
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1734 $as_echo "$ac_res" >&6; }
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736
1737 } # ac_fn_c_check_header_compile
1738
1739 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1740 # ---------------------------------------------
1741 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1742 # accordingly.
1743 ac_fn_c_check_decl ()
1744 {
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 as_decl_name=`echo $2|sed 's/ *(.*//'`
1747 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1749 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1750 if eval \${$3+:} false; then :
1751 $as_echo_n "(cached) " >&6
1752 else
1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h. */
1755 $4
1756 int
1757 main ()
1758 {
1759 #ifndef $as_decl_name
1760 #ifdef __cplusplus
1761 (void) $as_decl_use;
1762 #else
1763 (void) $as_decl_name;
1764 #endif
1765 #endif
1766
1767 ;
1768 return 0;
1769 }
1770 _ACEOF
1771 if ac_fn_c_try_compile "$LINENO"; then :
1772 eval "$3=yes"
1773 else
1774 eval "$3=no"
1775 fi
1776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1777 fi
1778 eval ac_res=\$$3
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780 $as_echo "$ac_res" >&6; }
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782
1783 } # ac_fn_c_check_decl
1784
1785 # ac_fn_c_try_link LINENO
1786 # -----------------------
1787 # Try to link conftest.$ac_ext, and return whether this succeeded.
1788 ac_fn_c_try_link ()
1789 {
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 rm -f conftest.$ac_objext conftest$ac_exeext
1792 if { { ac_try="$ac_link"
1793 case "(($ac_try" in
1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795 *) ac_try_echo=$ac_try;;
1796 esac
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799 (eval "$ac_link") 2>conftest.err
1800 ac_status=$?
1801 if test -s conftest.err; then
1802 grep -v '^ *+' conftest.err >conftest.er1
1803 cat conftest.er1 >&5
1804 mv -f conftest.er1 conftest.err
1805 fi
1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; } && {
1808 test -z "$ac_c_werror_flag" ||
1809 test ! -s conftest.err
1810 } && test -s conftest$ac_exeext && {
1811 test "$cross_compiling" = yes ||
1812 test -x conftest$ac_exeext
1813 }; then :
1814 ac_retval=0
1815 else
1816 $as_echo "$as_me: failed program was:" >&5
1817 sed 's/^/| /' conftest.$ac_ext >&5
1818
1819 ac_retval=1
1820 fi
1821 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1822 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1823 # interfere with the next link command; also delete a directory that is
1824 # left behind by Apple's compiler. We do this before executing the actions.
1825 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 as_fn_set_status $ac_retval
1828
1829 } # ac_fn_c_try_link
1830
1831 # ac_fn_c_check_func LINENO FUNC VAR
1832 # ----------------------------------
1833 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1834 ac_fn_c_check_func ()
1835 {
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838 $as_echo_n "checking for $2... " >&6; }
1839 if eval \${$3+:} false; then :
1840 $as_echo_n "(cached) " >&6
1841 else
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1844 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1846 #define $2 innocuous_$2
1847
1848 /* System header to define __stub macros and hopefully few prototypes,
1849 which can conflict with char $2 (); below.
1850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1851 <limits.h> exists even on freestanding compilers. */
1852
1853 #ifdef __STDC__
1854 # include <limits.h>
1855 #else
1856 # include <assert.h>
1857 #endif
1858
1859 #undef $2
1860
1861 /* Override any GCC internal prototype to avoid an error.
1862 Use char because int might match the return type of a GCC
1863 builtin and then its argument prototype would still apply. */
1864 #ifdef __cplusplus
1865 extern "C"
1866 #endif
1867 char $2 ();
1868 /* The GNU C library defines this for functions which it implements
1869 to always fail with ENOSYS. Some functions are actually named
1870 something starting with __ and the normal name is an alias. */
1871 #if defined __stub_$2 || defined __stub___$2
1872 choke me
1873 #endif
1874
1875 int
1876 main ()
1877 {
1878 return $2 ();
1879 ;
1880 return 0;
1881 }
1882 _ACEOF
1883 if ac_fn_c_try_link "$LINENO"; then :
1884 eval "$3=yes"
1885 else
1886 eval "$3=no"
1887 fi
1888 rm -f core conftest.err conftest.$ac_objext \
1889 conftest$ac_exeext conftest.$ac_ext
1890 fi
1891 eval ac_res=\$$3
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893 $as_echo "$ac_res" >&6; }
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895
1896 } # ac_fn_c_check_func
1897 cat >config.log <<_ACEOF
1898 This file contains any messages produced by compilers while
1899 running configure, to aid debugging if configure makes a mistake.
1900
1901 It was created by xkbprint $as_me 1.0.5, which was
1902 generated by GNU Autoconf 2.69. Invocation command line was
1903
1904 $ $0 $@
1905
1906 _ACEOF
1907 exec 5>>config.log
1908 {
1909 cat <<_ASUNAME
1910 ## --------- ##
1911 ## Platform. ##
1912 ## --------- ##
1913
1914 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1915 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1916 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1917 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1918 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1919
1920 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1921 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1922
1923 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1924 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1925 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1926 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1927 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1928 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1929 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1930
1931 _ASUNAME
1932
1933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934 for as_dir in $PATH
1935 do
1936 IFS=$as_save_IFS
1937 test -z "$as_dir" && as_dir=.
1938 $as_echo "PATH: $as_dir"
1939 done
1940 IFS=$as_save_IFS
1941
1942 } >&5
1943
1944 cat >&5 <<_ACEOF
1945
1946
1947 ## ----------- ##
1948 ## Core tests. ##
1949 ## ----------- ##
1950
1951 _ACEOF
1952
1953
1954 # Keep a trace of the command line.
1955 # Strip out --no-create and --no-recursion so they do not pile up.
1956 # Strip out --silent because we don't want to record it for future runs.
1957 # Also quote any args containing shell meta-characters.
1958 # Make two passes to allow for proper duplicate-argument suppression.
1959 ac_configure_args=
1960 ac_configure_args0=
1961 ac_configure_args1=
1962 ac_must_keep_next=false
1963 for ac_pass in 1 2
1964 do
1965 for ac_arg
1966 do
1967 case $ac_arg in
1968 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1969 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1970 | -silent | --silent | --silen | --sile | --sil)
1971 continue ;;
1972 *\'*)
1973 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1974 esac
1975 case $ac_pass in
1976 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1977 2)
1978 as_fn_append ac_configure_args1 " '$ac_arg'"
1979 if test $ac_must_keep_next = true; then
1980 ac_must_keep_next=false # Got value, back to normal.
1981 else
1982 case $ac_arg in
1983 *=* | --config-cache | -C | -disable-* | --disable-* \
1984 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1985 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1986 | -with-* | --with-* | -without-* | --without-* | --x)
1987 case "$ac_configure_args0 " in
1988 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1989 esac
1990 ;;
1991 -* ) ac_must_keep_next=true ;;
1992 esac
1993 fi
1994 as_fn_append ac_configure_args " '$ac_arg'"
1995 ;;
1996 esac
1997 done
1998 done
1999 { ac_configure_args0=; unset ac_configure_args0;}
2000 { ac_configure_args1=; unset ac_configure_args1;}
2001
2002 # When interrupted or exit'd, cleanup temporary files, and complete
2003 # config.log. We remove comments because anyway the quotes in there
2004 # would cause problems or look ugly.
2005 # WARNING: Use '\'' to represent an apostrophe within the trap.
2006 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2007 trap 'exit_status=$?
2008 # Save into config.log some information that might help in debugging.
2009 {
2010 echo
2011
2012 $as_echo "## ---------------- ##
2013 ## Cache variables. ##
2014 ## ---------------- ##"
2015 echo
2016 # The following way of writing the cache mishandles newlines in values,
2017 (
2018 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2019 eval ac_val=\$$ac_var
2020 case $ac_val in #(
2021 *${as_nl}*)
2022 case $ac_var in #(
2023 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2024 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2025 esac
2026 case $ac_var in #(
2027 _ | IFS | as_nl) ;; #(
2028 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2029 *) { eval $ac_var=; unset $ac_var;} ;;
2030 esac ;;
2031 esac
2032 done
2033 (set) 2>&1 |
2034 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2035 *${as_nl}ac_space=\ *)
2036 sed -n \
2037 "s/'\''/'\''\\\\'\'''\''/g;
2038 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2039 ;; #(
2040 *)
2041 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2042 ;;
2043 esac |
2044 sort
2045 )
2046 echo
2047
2048 $as_echo "## ----------------- ##
2049 ## Output variables. ##
2050 ## ----------------- ##"
2051 echo
2052 for ac_var in $ac_subst_vars
2053 do
2054 eval ac_val=\$$ac_var
2055 case $ac_val in
2056 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2057 esac
2058 $as_echo "$ac_var='\''$ac_val'\''"
2059 done | sort
2060 echo
2061
2062 if test -n "$ac_subst_files"; then
2063 $as_echo "## ------------------- ##
2064 ## File substitutions. ##
2065 ## ------------------- ##"
2066 echo
2067 for ac_var in $ac_subst_files
2068 do
2069 eval ac_val=\$$ac_var
2070 case $ac_val in
2071 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2072 esac
2073 $as_echo "$ac_var='\''$ac_val'\''"
2074 done | sort
2075 echo
2076 fi
2077
2078 if test -s confdefs.h; then
2079 $as_echo "## ----------- ##
2080 ## confdefs.h. ##
2081 ## ----------- ##"
2082 echo
2083 cat confdefs.h
2084 echo
2085 fi
2086 test "$ac_signal" != 0 &&
2087 $as_echo "$as_me: caught signal $ac_signal"
2088 $as_echo "$as_me: exit $exit_status"
2089 } >&5
2090 rm -f core *.core core.conftest.* &&
2091 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2092 exit $exit_status
2093 ' 0
2094 for ac_signal in 1 2 13 15; do
2095 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2096 done
2097 ac_signal=0
2098
2099 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2100 rm -f -r conftest* confdefs.h
2101
2102 $as_echo "/* confdefs.h */" > confdefs.h
2103
2104 # Predefined preprocessor variables.
2105
2106 cat >>confdefs.h <<_ACEOF
2107 #define PACKAGE_NAME "$PACKAGE_NAME"
2108 _ACEOF
2109
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2112 _ACEOF
2113
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2116 _ACEOF
2117
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_STRING "$PACKAGE_STRING"
2120 _ACEOF
2121
2122 cat >>confdefs.h <<_ACEOF
2123 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2124 _ACEOF
2125
2126 cat >>confdefs.h <<_ACEOF
2127 #define PACKAGE_URL "$PACKAGE_URL"
2128 _ACEOF
2129
2130
2131 # Let the site file select an alternate cache file if it wants to.
2132 # Prefer an explicitly selected file to automatically selected ones.
2133 ac_site_file1=NONE
2134 ac_site_file2=NONE
2135 if test -n "$CONFIG_SITE"; then
2136 # We do not want a PATH search for config.site.
2137 case $CONFIG_SITE in #((
2138 -*) ac_site_file1=./$CONFIG_SITE;;
2139 */*) ac_site_file1=$CONFIG_SITE;;
2140 *) ac_site_file1=./$CONFIG_SITE;;
2141 esac
2142 elif test "x$prefix" != xNONE; then
2143 ac_site_file1=$prefix/share/config.site
2144 ac_site_file2=$prefix/etc/config.site
2145 else
2146 ac_site_file1=$ac_default_prefix/share/config.site
2147 ac_site_file2=$ac_default_prefix/etc/config.site
2148 fi
2149 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2150 do
2151 test "x$ac_site_file" = xNONE && continue
2152 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2154 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2155 sed 's/^/| /' "$ac_site_file" >&5
2156 . "$ac_site_file" \
2157 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2159 as_fn_error $? "failed to load site script $ac_site_file
2160 See \`config.log' for more details" "$LINENO" 5; }
2161 fi
2162 done
2163
2164 if test -r "$cache_file"; then
2165 # Some versions of bash will fail to source /dev/null (special files
2166 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2167 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2169 $as_echo "$as_me: loading cache $cache_file" >&6;}
2170 case $cache_file in
2171 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2172 *) . "./$cache_file";;
2173 esac
2174 fi
2175 else
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2177 $as_echo "$as_me: creating cache $cache_file" >&6;}
2178 >$cache_file
2179 fi
2180
2181 # Check that the precious variables saved in the cache have kept the same
2182 # value.
2183 ac_cache_corrupted=false
2184 for ac_var in $ac_precious_vars; do
2185 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2186 eval ac_new_set=\$ac_env_${ac_var}_set
2187 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2188 eval ac_new_val=\$ac_env_${ac_var}_value
2189 case $ac_old_set,$ac_new_set in
2190 set,)
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2192 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2193 ac_cache_corrupted=: ;;
2194 ,set)
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2196 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2197 ac_cache_corrupted=: ;;
2198 ,);;
2199 *)
2200 if test "x$ac_old_val" != "x$ac_new_val"; then
2201 # differences in whitespace do not lead to failure.
2202 ac_old_val_w=`echo x $ac_old_val`
2203 ac_new_val_w=`echo x $ac_new_val`
2204 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2206 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2207 ac_cache_corrupted=:
2208 else
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2210 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2211 eval $ac_var=\$ac_old_val
2212 fi
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2214 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2216 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2217 fi;;
2218 esac
2219 # Pass precious variables to config.status.
2220 if test "$ac_new_set" = set; then
2221 case $ac_new_val in
2222 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2223 *) ac_arg=$ac_var=$ac_new_val ;;
2224 esac
2225 case " $ac_configure_args " in
2226 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2227 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2228 esac
2229 fi
2230 done
2231 if $ac_cache_corrupted; then
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2235 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2236 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2237 fi
2238 ## -------------------- ##
2239 ## Main body of script. ##
2240 ## -------------------- ##
2241
2242 ac_ext=c
2243 ac_cpp='$CPP $CPPFLAGS'
2244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2247
2248
2249
2250 ac_config_headers="$ac_config_headers config.h"
2251
2252 # Needed for asprintf on GNU libc
2253 ac_aux_dir=
2254 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2255 if test -f "$ac_dir/install-sh"; then
2256 ac_aux_dir=$ac_dir
2257 ac_install_sh="$ac_aux_dir/install-sh -c"
2258 break
2259 elif test -f "$ac_dir/install.sh"; then
2260 ac_aux_dir=$ac_dir
2261 ac_install_sh="$ac_aux_dir/install.sh -c"
2262 break
2263 elif test -f "$ac_dir/shtool"; then
2264 ac_aux_dir=$ac_dir
2265 ac_install_sh="$ac_aux_dir/shtool install -c"
2266 break
2267 fi
2268 done
2269 if test -z "$ac_aux_dir"; then
2270 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2271 fi
2272
2273 # These three variables are undocumented and unsupported,
2274 # and are intended to be withdrawn in a future Autoconf release.
2275 # They can cause serious problems if a builder's source tree is in a directory
2276 # whose full name contains unusual characters.
2277 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2278 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2279 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2280
2281
2282 # Expand $ac_aux_dir to an absolute path.
2283 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2284
2285 ac_ext=c
2286 ac_cpp='$CPP $CPPFLAGS'
2287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2290 if test -n "$ac_tool_prefix"; then
2291 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2292 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2294 $as_echo_n "checking for $ac_word... " >&6; }
2295 if ${ac_cv_prog_CC+:} false; then :
2296 $as_echo_n "(cached) " >&6
2297 else
2298 if test -n "$CC"; then
2299 ac_cv_prog_CC="$CC" # Let the user override the test.
2300 else
2301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302 for as_dir in $PATH
2303 do
2304 IFS=$as_save_IFS
2305 test -z "$as_dir" && as_dir=.
2306 for ac_exec_ext in '' $ac_executable_extensions; do
2307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2308 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2310 break 2
2311 fi
2312 done
2313 done
2314 IFS=$as_save_IFS
2315
2316 fi
2317 fi
2318 CC=$ac_cv_prog_CC
2319 if test -n "$CC"; then
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2321 $as_echo "$CC" >&6; }
2322 else
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2324 $as_echo "no" >&6; }
2325 fi
2326
2327
2328 fi
2329 if test -z "$ac_cv_prog_CC"; then
2330 ac_ct_CC=$CC
2331 # Extract the first word of "gcc", so it can be a program name with args.
2332 set dummy gcc; ac_word=$2
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2334 $as_echo_n "checking for $ac_word... " >&6; }
2335 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2336 $as_echo_n "(cached) " >&6
2337 else
2338 if test -n "$ac_ct_CC"; then
2339 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2340 else
2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342 for as_dir in $PATH
2343 do
2344 IFS=$as_save_IFS
2345 test -z "$as_dir" && as_dir=.
2346 for ac_exec_ext in '' $ac_executable_extensions; do
2347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2348 ac_cv_prog_ac_ct_CC="gcc"
2349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2350 break 2
2351 fi
2352 done
2353 done
2354 IFS=$as_save_IFS
2355
2356 fi
2357 fi
2358 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2359 if test -n "$ac_ct_CC"; then
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2361 $as_echo "$ac_ct_CC" >&6; }
2362 else
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2364 $as_echo "no" >&6; }
2365 fi
2366
2367 if test "x$ac_ct_CC" = x; then
2368 CC=""
2369 else
2370 case $cross_compiling:$ac_tool_warned in
2371 yes:)
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2374 ac_tool_warned=yes ;;
2375 esac
2376 CC=$ac_ct_CC
2377 fi
2378 else
2379 CC="$ac_cv_prog_CC"
2380 fi
2381
2382 if test -z "$CC"; then
2383 if test -n "$ac_tool_prefix"; then
2384 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2385 set dummy ${ac_tool_prefix}cc; ac_word=$2
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2387 $as_echo_n "checking for $ac_word... " >&6; }
2388 if ${ac_cv_prog_CC+:} false; then :
2389 $as_echo_n "(cached) " >&6
2390 else
2391 if test -n "$CC"; then
2392 ac_cv_prog_CC="$CC" # Let the user override the test.
2393 else
2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 for as_dir in $PATH
2396 do
2397 IFS=$as_save_IFS
2398 test -z "$as_dir" && as_dir=.
2399 for ac_exec_ext in '' $ac_executable_extensions; do
2400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2401 ac_cv_prog_CC="${ac_tool_prefix}cc"
2402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2403 break 2
2404 fi
2405 done
2406 done
2407 IFS=$as_save_IFS
2408
2409 fi
2410 fi
2411 CC=$ac_cv_prog_CC
2412 if test -n "$CC"; then
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2414 $as_echo "$CC" >&6; }
2415 else
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2417 $as_echo "no" >&6; }
2418 fi
2419
2420
2421 fi
2422 fi
2423 if test -z "$CC"; then
2424 # Extract the first word of "cc", so it can be a program name with args.
2425 set dummy cc; ac_word=$2
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2427 $as_echo_n "checking for $ac_word... " >&6; }
2428 if ${ac_cv_prog_CC+:} false; then :
2429 $as_echo_n "(cached) " >&6
2430 else
2431 if test -n "$CC"; then
2432 ac_cv_prog_CC="$CC" # Let the user override the test.
2433 else
2434 ac_prog_rejected=no
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 for as_dir in $PATH
2437 do
2438 IFS=$as_save_IFS
2439 test -z "$as_dir" && as_dir=.
2440 for ac_exec_ext in '' $ac_executable_extensions; do
2441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2442 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2443 ac_prog_rejected=yes
2444 continue
2445 fi
2446 ac_cv_prog_CC="cc"
2447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2448 break 2
2449 fi
2450 done
2451 done
2452 IFS=$as_save_IFS
2453
2454 if test $ac_prog_rejected = yes; then
2455 # We found a bogon in the path, so make sure we never use it.
2456 set dummy $ac_cv_prog_CC
2457 shift
2458 if test $# != 0; then
2459 # We chose a different compiler from the bogus one.
2460 # However, it has the same basename, so the bogon will be chosen
2461 # first if we set CC to just the basename; use the full file name.
2462 shift
2463 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2464 fi
2465 fi
2466 fi
2467 fi
2468 CC=$ac_cv_prog_CC
2469 if test -n "$CC"; then
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2471 $as_echo "$CC" >&6; }
2472 else
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2474 $as_echo "no" >&6; }
2475 fi
2476
2477
2478 fi
2479 if test -z "$CC"; then
2480 if test -n "$ac_tool_prefix"; then
2481 for ac_prog in cl.exe
2482 do
2483 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2484 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2486 $as_echo_n "checking for $ac_word... " >&6; }
2487 if ${ac_cv_prog_CC+:} false; then :
2488 $as_echo_n "(cached) " >&6
2489 else
2490 if test -n "$CC"; then
2491 ac_cv_prog_CC="$CC" # Let the user override the test.
2492 else
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 for as_dir in $PATH
2495 do
2496 IFS=$as_save_IFS
2497 test -z "$as_dir" && as_dir=.
2498 for ac_exec_ext in '' $ac_executable_extensions; do
2499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2500 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2502 break 2
2503 fi
2504 done
2505 done
2506 IFS=$as_save_IFS
2507
2508 fi
2509 fi
2510 CC=$ac_cv_prog_CC
2511 if test -n "$CC"; then
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2513 $as_echo "$CC" >&6; }
2514 else
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2516 $as_echo "no" >&6; }
2517 fi
2518
2519
2520 test -n "$CC" && break
2521 done
2522 fi
2523 if test -z "$CC"; then
2524 ac_ct_CC=$CC
2525 for ac_prog in cl.exe
2526 do
2527 # Extract the first word of "$ac_prog", so it can be a program name with args.
2528 set dummy $ac_prog; ac_word=$2
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2530 $as_echo_n "checking for $ac_word... " >&6; }
2531 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2532 $as_echo_n "(cached) " >&6
2533 else
2534 if test -n "$ac_ct_CC"; then
2535 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2536 else
2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 for as_dir in $PATH
2539 do
2540 IFS=$as_save_IFS
2541 test -z "$as_dir" && as_dir=.
2542 for ac_exec_ext in '' $ac_executable_extensions; do
2543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2544 ac_cv_prog_ac_ct_CC="$ac_prog"
2545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2546 break 2
2547 fi
2548 done
2549 done
2550 IFS=$as_save_IFS
2551
2552 fi
2553 fi
2554 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2555 if test -n "$ac_ct_CC"; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2557 $as_echo "$ac_ct_CC" >&6; }
2558 else
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2560 $as_echo "no" >&6; }
2561 fi
2562
2563
2564 test -n "$ac_ct_CC" && break
2565 done
2566
2567 if test "x$ac_ct_CC" = x; then
2568 CC=""
2569 else
2570 case $cross_compiling:$ac_tool_warned in
2571 yes:)
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2574 ac_tool_warned=yes ;;
2575 esac
2576 CC=$ac_ct_CC
2577 fi
2578 fi
2579
2580 fi
2581
2582
2583 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2585 as_fn_error $? "no acceptable C compiler found in \$PATH
2586 See \`config.log' for more details" "$LINENO" 5; }
2587
2588 # Provide some information about the compiler.
2589 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2590 set X $ac_compile
2591 ac_compiler=$2
2592 for ac_option in --version -v -V -qversion; do
2593 { { ac_try="$ac_compiler $ac_option >&5"
2594 case "(($ac_try" in
2595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2596 *) ac_try_echo=$ac_try;;
2597 esac
2598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2599 $as_echo "$ac_try_echo"; } >&5
2600 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2601 ac_status=$?
2602 if test -s conftest.err; then
2603 sed '10a\
2604 ... rest of stderr output deleted ...
2605 10q' conftest.err >conftest.er1
2606 cat conftest.er1 >&5
2607 fi
2608 rm -f conftest.er1 conftest.err
2609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2610 test $ac_status = 0; }
2611 done
2612
2613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2614 /* end confdefs.h. */
2615
2616 int
2617 main ()
2618 {
2619
2620 ;
2621 return 0;
2622 }
2623 _ACEOF
2624 ac_clean_files_save=$ac_clean_files
2625 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2626 # Try to create an executable without -o first, disregard a.out.
2627 # It will help us diagnose broken compilers, and finding out an intuition
2628 # of exeext.
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2630 $as_echo_n "checking whether the C compiler works... " >&6; }
2631 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2632
2633 # The possible output files:
2634 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2635
2636 ac_rmfiles=
2637 for ac_file in $ac_files
2638 do
2639 case $ac_file in
2640 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2641 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2642 esac
2643 done
2644 rm -f $ac_rmfiles
2645
2646 if { { ac_try="$ac_link_default"
2647 case "(($ac_try" in
2648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2649 *) ac_try_echo=$ac_try;;
2650 esac
2651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2652 $as_echo "$ac_try_echo"; } >&5
2653 (eval "$ac_link_default") 2>&5
2654 ac_status=$?
2655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2656 test $ac_status = 0; }; then :
2657 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2658 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2659 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2660 # so that the user can short-circuit this test for compilers unknown to
2661 # Autoconf.
2662 for ac_file in $ac_files ''
2663 do
2664 test -f "$ac_file" || continue
2665 case $ac_file in
2666 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2667 ;;
2668 [ab].out )
2669 # We found the default executable, but exeext='' is most
2670 # certainly right.
2671 break;;
2672 *.* )
2673 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2674 then :; else
2675 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2676 fi
2677 # We set ac_cv_exeext here because the later test for it is not
2678 # safe: cross compilers may not add the suffix if given an `-o'
2679 # argument, so we may need to know it at that point already.
2680 # Even if this section looks crufty: it has the advantage of
2681 # actually working.
2682 break;;
2683 * )
2684 break;;
2685 esac
2686 done
2687 test "$ac_cv_exeext" = no && ac_cv_exeext=
2688
2689 else
2690 ac_file=''
2691 fi
2692 if test -z "$ac_file"; then :
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2694 $as_echo "no" >&6; }
2695 $as_echo "$as_me: failed program was:" >&5
2696 sed 's/^/| /' conftest.$ac_ext >&5
2697
2698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2700 as_fn_error 77 "C compiler cannot create executables
2701 See \`config.log' for more details" "$LINENO" 5; }
2702 else
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2704 $as_echo "yes" >&6; }
2705 fi
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2707 $as_echo_n "checking for C compiler default output file name... " >&6; }
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2709 $as_echo "$ac_file" >&6; }
2710 ac_exeext=$ac_cv_exeext
2711
2712 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2713 ac_clean_files=$ac_clean_files_save
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2715 $as_echo_n "checking for suffix of executables... " >&6; }
2716 if { { ac_try="$ac_link"
2717 case "(($ac_try" in
2718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719 *) ac_try_echo=$ac_try;;
2720 esac
2721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2722 $as_echo "$ac_try_echo"; } >&5
2723 (eval "$ac_link") 2>&5
2724 ac_status=$?
2725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2726 test $ac_status = 0; }; then :
2727 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2728 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2729 # work properly (i.e., refer to `conftest.exe'), while it won't with
2730 # `rm'.
2731 for ac_file in conftest.exe conftest conftest.*; do
2732 test -f "$ac_file" || continue
2733 case $ac_file in
2734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2735 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2736 break;;
2737 * ) break;;
2738 esac
2739 done
2740 else
2741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2743 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2744 See \`config.log' for more details" "$LINENO" 5; }
2745 fi
2746 rm -f conftest conftest$ac_cv_exeext
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2748 $as_echo "$ac_cv_exeext" >&6; }
2749
2750 rm -f conftest.$ac_ext
2751 EXEEXT=$ac_cv_exeext
2752 ac_exeext=$EXEEXT
2753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2754 /* end confdefs.h. */
2755 #include <stdio.h>
2756 int
2757 main ()
2758 {
2759 FILE *f = fopen ("conftest.out", "w");
2760 return ferror (f) || fclose (f) != 0;
2761
2762 ;
2763 return 0;
2764 }
2765 _ACEOF
2766 ac_clean_files="$ac_clean_files conftest.out"
2767 # Check that the compiler produces executables we can run. If not, either
2768 # the compiler is broken, or we cross compile.
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2770 $as_echo_n "checking whether we are cross compiling... " >&6; }
2771 if test "$cross_compiling" != yes; then
2772 { { ac_try="$ac_link"
2773 case "(($ac_try" in
2774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775 *) ac_try_echo=$ac_try;;
2776 esac
2777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2778 $as_echo "$ac_try_echo"; } >&5
2779 (eval "$ac_link") 2>&5
2780 ac_status=$?
2781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2782 test $ac_status = 0; }
2783 if { ac_try='./conftest$ac_cv_exeext'
2784 { { case "(($ac_try" in
2785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786 *) ac_try_echo=$ac_try;;
2787 esac
2788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2789 $as_echo "$ac_try_echo"; } >&5
2790 (eval "$ac_try") 2>&5
2791 ac_status=$?
2792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2793 test $ac_status = 0; }; }; then
2794 cross_compiling=no
2795 else
2796 if test "$cross_compiling" = maybe; then
2797 cross_compiling=yes
2798 else
2799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2801 as_fn_error $? "cannot run C compiled programs.
2802 If you meant to cross compile, use \`--host'.
2803 See \`config.log' for more details" "$LINENO" 5; }
2804 fi
2805 fi
2806 fi
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2808 $as_echo "$cross_compiling" >&6; }
2809
2810 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2811 ac_clean_files=$ac_clean_files_save
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2813 $as_echo_n "checking for suffix of object files... " >&6; }
2814 if ${ac_cv_objext+:} false; then :
2815 $as_echo_n "(cached) " >&6
2816 else
2817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2818 /* end confdefs.h. */
2819
2820 int
2821 main ()
2822 {
2823
2824 ;
2825 return 0;
2826 }
2827 _ACEOF
2828 rm -f conftest.o conftest.obj
2829 if { { ac_try="$ac_compile"
2830 case "(($ac_try" in
2831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2832 *) ac_try_echo=$ac_try;;
2833 esac
2834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2835 $as_echo "$ac_try_echo"; } >&5
2836 (eval "$ac_compile") 2>&5
2837 ac_status=$?
2838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2839 test $ac_status = 0; }; then :
2840 for ac_file in conftest.o conftest.obj conftest.*; do
2841 test -f "$ac_file" || continue;
2842 case $ac_file in
2843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2844 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2845 break;;
2846 esac
2847 done
2848 else
2849 $as_echo "$as_me: failed program was:" >&5
2850 sed 's/^/| /' conftest.$ac_ext >&5
2851
2852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2854 as_fn_error $? "cannot compute suffix of object files: cannot compile
2855 See \`config.log' for more details" "$LINENO" 5; }
2856 fi
2857 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2858 fi
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2860 $as_echo "$ac_cv_objext" >&6; }
2861 OBJEXT=$ac_cv_objext
2862 ac_objext=$OBJEXT
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2864 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2865 if ${ac_cv_c_compiler_gnu+:} false; then :
2866 $as_echo_n "(cached) " >&6
2867 else
2868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2869 /* end confdefs.h. */
2870
2871 int
2872 main ()
2873 {
2874 #ifndef __GNUC__
2875 choke me
2876 #endif
2877
2878 ;
2879 return 0;
2880 }
2881 _ACEOF
2882 if ac_fn_c_try_compile "$LINENO"; then :
2883 ac_compiler_gnu=yes
2884 else
2885 ac_compiler_gnu=no
2886 fi
2887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2888 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2889
2890 fi
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2892 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2893 if test $ac_compiler_gnu = yes; then
2894 GCC=yes
2895 else
2896 GCC=
2897 fi
2898 ac_test_CFLAGS=${CFLAGS+set}
2899 ac_save_CFLAGS=$CFLAGS
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2901 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2902 if ${ac_cv_prog_cc_g+:} false; then :
2903 $as_echo_n "(cached) " >&6
2904 else
2905 ac_save_c_werror_flag=$ac_c_werror_flag
2906 ac_c_werror_flag=yes
2907 ac_cv_prog_cc_g=no
2908 CFLAGS="-g"
2909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2910 /* end confdefs.h. */
2911
2912 int
2913 main ()
2914 {
2915
2916 ;
2917 return 0;
2918 }
2919 _ACEOF
2920 if ac_fn_c_try_compile "$LINENO"; then :
2921 ac_cv_prog_cc_g=yes
2922 else
2923 CFLAGS=""
2924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2925 /* end confdefs.h. */
2926
2927 int
2928 main ()
2929 {
2930
2931 ;
2932 return 0;
2933 }
2934 _ACEOF
2935 if ac_fn_c_try_compile "$LINENO"; then :
2936
2937 else
2938 ac_c_werror_flag=$ac_save_c_werror_flag
2939 CFLAGS="-g"
2940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2941 /* end confdefs.h. */
2942
2943 int
2944 main ()
2945 {
2946
2947 ;
2948 return 0;
2949 }
2950 _ACEOF
2951 if ac_fn_c_try_compile "$LINENO"; then :
2952 ac_cv_prog_cc_g=yes
2953 fi
2954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2955 fi
2956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2957 fi
2958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2959 ac_c_werror_flag=$ac_save_c_werror_flag
2960 fi
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2962 $as_echo "$ac_cv_prog_cc_g" >&6; }
2963 if test "$ac_test_CFLAGS" = set; then
2964 CFLAGS=$ac_save_CFLAGS
2965 elif test $ac_cv_prog_cc_g = yes; then
2966 if test "$GCC" = yes; then
2967 CFLAGS="-g -O2"
2968 else
2969 CFLAGS="-g"
2970 fi
2971 else
2972 if test "$GCC" = yes; then
2973 CFLAGS="-O2"
2974 else
2975 CFLAGS=
2976 fi
2977 fi
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2979 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2980 if ${ac_cv_prog_cc_c89+:} false; then :
2981 $as_echo_n "(cached) " >&6
2982 else
2983 ac_cv_prog_cc_c89=no
2984 ac_save_CC=$CC
2985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2986 /* end confdefs.h. */
2987 #include <stdarg.h>
2988 #include <stdio.h>
2989 struct stat;
2990 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2991 struct buf { int x; };
2992 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2993 static char *e (p, i)
2994 char **p;
2995 int i;
2996 {
2997 return p[i];
2998 }
2999 static char *f (char * (*g) (char **, int), char **p, ...)
3000 {
3001 char *s;
3002 va_list v;
3003 va_start (v,p);
3004 s = g (p, va_arg (v,int));
3005 va_end (v);
3006 return s;
3007 }
3008
3009 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3010 function prototypes and stuff, but not '\xHH' hex character constants.
3011 These don't provoke an error unfortunately, instead are silently treated
3012 as 'x'. The following induces an error, until -std is added to get
3013 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3014 array size at least. It's necessary to write '\x00'==0 to get something
3015 that's true only with -std. */
3016 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3017
3018 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3019 inside strings and character constants. */
3020 #define FOO(x) 'x'
3021 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3022
3023 int test (int i, double x);
3024 struct s1 {int (*f) (int a);};
3025 struct s2 {int (*f) (double a);};
3026 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3027 int argc;
3028 char **argv;
3029 int
3030 main ()
3031 {
3032 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3033 ;
3034 return 0;
3035 }
3036 _ACEOF
3037 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3038 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3039 do
3040 CC="$ac_save_CC $ac_arg"
3041 if ac_fn_c_try_compile "$LINENO"; then :
3042 ac_cv_prog_cc_c89=$ac_arg
3043 fi
3044 rm -f core conftest.err conftest.$ac_objext
3045 test "x$ac_cv_prog_cc_c89" != "xno" && break
3046 done
3047 rm -f conftest.$ac_ext
3048 CC=$ac_save_CC
3049
3050 fi
3051 # AC_CACHE_VAL
3052 case "x$ac_cv_prog_cc_c89" in
3053 x)
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3055 $as_echo "none needed" >&6; } ;;
3056 xno)
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3058 $as_echo "unsupported" >&6; } ;;
3059 *)
3060 CC="$CC $ac_cv_prog_cc_c89"
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3062 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3063 esac
3064 if test "x$ac_cv_prog_cc_c89" != xno; then :
3065
3066 fi
3067
3068 ac_ext=c
3069 ac_cpp='$CPP $CPPFLAGS'
3070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3073
3074 ac_ext=c
3075 ac_cpp='$CPP $CPPFLAGS'
3076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3080 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3081 if ${am_cv_prog_cc_c_o+:} false; then :
3082 $as_echo_n "(cached) " >&6
3083 else
3084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3085 /* end confdefs.h. */
3086
3087 int
3088 main ()
3089 {
3090
3091 ;
3092 return 0;
3093 }
3094 _ACEOF
3095 # Make sure it works both with $CC and with simple cc.
3096 # Following AC_PROG_CC_C_O, we do the test twice because some
3097 # compilers refuse to overwrite an existing .o file with -o,
3098 # though they will create one.
3099 am_cv_prog_cc_c_o=yes
3100 for am_i in 1 2; do
3101 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3102 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3103 ac_status=$?
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } \
3106 && test -f conftest2.$ac_objext; then
3107 : OK
3108 else
3109 am_cv_prog_cc_c_o=no
3110 break
3111 fi
3112 done
3113 rm -f core conftest*
3114 unset am_i
3115 fi
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3117 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3118 if test "$am_cv_prog_cc_c_o" != yes; then
3119 # Losing compiler, so override with the script.
3120 # FIXME: It is wrong to rewrite CC.
3121 # But if we don't then we get into trouble of one sort or another.
3122 # A longer-term fix would be to have automake use am__CC in this case,
3123 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3124 CC="$am_aux_dir/compile $CC"
3125 fi
3126 ac_ext=c
3127 ac_cpp='$CPP $CPPFLAGS'
3128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3131
3132
3133
3134 ac_ext=c
3135 ac_cpp='$CPP $CPPFLAGS'
3136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3140 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3141 # On Suns, sometimes $CPP names a directory.
3142 if test -n "$CPP" && test -d "$CPP"; then
3143 CPP=
3144 fi
3145 if test -z "$CPP"; then
3146 if ${ac_cv_prog_CPP+:} false; then :
3147 $as_echo_n "(cached) " >&6
3148 else
3149 # Double quotes because CPP needs to be expanded
3150 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3151 do
3152 ac_preproc_ok=false
3153 for ac_c_preproc_warn_flag in '' yes
3154 do
3155 # Use a header file that comes with gcc, so configuring glibc
3156 # with a fresh cross-compiler works.
3157 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3158 # <limits.h> exists even on freestanding compilers.
3159 # On the NeXT, cc -E runs the code through the compiler's parser,
3160 # not just through cpp. "Syntax error" is here to catch this case.
3161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3162 /* end confdefs.h. */
3163 #ifdef __STDC__
3164 # include <limits.h>
3165 #else
3166 # include <assert.h>
3167 #endif
3168 Syntax error
3169 _ACEOF
3170 if ac_fn_c_try_cpp "$LINENO"; then :
3171
3172 else
3173 # Broken: fails on valid input.
3174 continue
3175 fi
3176 rm -f conftest.err conftest.i conftest.$ac_ext
3177
3178 # OK, works on sane cases. Now check whether nonexistent headers
3179 # can be detected and how.
3180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3181 /* end confdefs.h. */
3182 #include <ac_nonexistent.h>
3183 _ACEOF
3184 if ac_fn_c_try_cpp "$LINENO"; then :
3185 # Broken: success on invalid input.
3186 continue
3187 else
3188 # Passes both tests.
3189 ac_preproc_ok=:
3190 break
3191 fi
3192 rm -f conftest.err conftest.i conftest.$ac_ext
3193
3194 done
3195 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3196 rm -f conftest.i conftest.err conftest.$ac_ext
3197 if $ac_preproc_ok; then :
3198 break
3199 fi
3200
3201 done
3202 ac_cv_prog_CPP=$CPP
3203
3204 fi
3205 CPP=$ac_cv_prog_CPP
3206 else
3207 ac_cv_prog_CPP=$CPP
3208 fi
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3210 $as_echo "$CPP" >&6; }
3211 ac_preproc_ok=false
3212 for ac_c_preproc_warn_flag in '' yes
3213 do
3214 # Use a header file that comes with gcc, so configuring glibc
3215 # with a fresh cross-compiler works.
3216 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3217 # <limits.h> exists even on freestanding compilers.
3218 # On the NeXT, cc -E runs the code through the compiler's parser,
3219 # not just through cpp. "Syntax error" is here to catch this case.
3220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3221 /* end confdefs.h. */
3222 #ifdef __STDC__
3223 # include <limits.h>
3224 #else
3225 # include <assert.h>
3226 #endif
3227 Syntax error
3228 _ACEOF
3229 if ac_fn_c_try_cpp "$LINENO"; then :
3230
3231 else
3232 # Broken: fails on valid input.
3233 continue
3234 fi
3235 rm -f conftest.err conftest.i conftest.$ac_ext
3236
3237 # OK, works on sane cases. Now check whether nonexistent headers
3238 # can be detected and how.
3239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3240 /* end confdefs.h. */
3241 #include <ac_nonexistent.h>
3242 _ACEOF
3243 if ac_fn_c_try_cpp "$LINENO"; then :
3244 # Broken: success on invalid input.
3245 continue
3246 else
3247 # Passes both tests.
3248 ac_preproc_ok=:
3249 break
3250 fi
3251 rm -f conftest.err conftest.i conftest.$ac_ext
3252
3253 done
3254 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3255 rm -f conftest.i conftest.err conftest.$ac_ext
3256 if $ac_preproc_ok; then :
3257
3258 else
3259 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3261 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3262 See \`config.log' for more details" "$LINENO" 5; }
3263 fi
3264
3265 ac_ext=c
3266 ac_cpp='$CPP $CPPFLAGS'
3267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270
3271
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3273 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3274 if ${ac_cv_path_GREP+:} false; then :
3275 $as_echo_n "(cached) " >&6
3276 else
3277 if test -z "$GREP"; then
3278 ac_path_GREP_found=false
3279 # Loop through the user's path and test for each of PROGNAME-LIST
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3282 do
3283 IFS=$as_save_IFS
3284 test -z "$as_dir" && as_dir=.
3285 for ac_prog in grep ggrep; do
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3288 as_fn_executable_p "$ac_path_GREP" || continue
3289 # Check for GNU ac_path_GREP and select it if it is found.
3290 # Check for GNU $ac_path_GREP
3291 case `"$ac_path_GREP" --version 2>&1` in
3292 *GNU*)
3293 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3294 *)
3295 ac_count=0
3296 $as_echo_n 0123456789 >"conftest.in"
3297 while :
3298 do
3299 cat "conftest.in" "conftest.in" >"conftest.tmp"
3300 mv "conftest.tmp" "conftest.in"
3301 cp "conftest.in" "conftest.nl"
3302 $as_echo 'GREP' >> "conftest.nl"
3303 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3304 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3305 as_fn_arith $ac_count + 1 && ac_count=$as_val
3306 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3307 # Best one so far, save it but keep looking for a better one
3308 ac_cv_path_GREP="$ac_path_GREP"
3309 ac_path_GREP_max=$ac_count
3310 fi
3311 # 10*(2^10) chars as input seems more than enough
3312 test $ac_count -gt 10 && break
3313 done
3314 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3315 esac
3316
3317 $ac_path_GREP_found && break 3
3318 done
3319 done
3320 done
3321 IFS=$as_save_IFS
3322 if test -z "$ac_cv_path_GREP"; then
3323 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3324 fi
3325 else
3326 ac_cv_path_GREP=$GREP
3327 fi
3328
3329 fi
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3331 $as_echo "$ac_cv_path_GREP" >&6; }
3332 GREP="$ac_cv_path_GREP"
3333
3334
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3336 $as_echo_n "checking for egrep... " >&6; }
3337 if ${ac_cv_path_EGREP+:} false; then :
3338 $as_echo_n "(cached) " >&6
3339 else
3340 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3341 then ac_cv_path_EGREP="$GREP -E"
3342 else
3343 if test -z "$EGREP"; then
3344 ac_path_EGREP_found=false
3345 # Loop through the user's path and test for each of PROGNAME-LIST
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3348 do
3349 IFS=$as_save_IFS
3350 test -z "$as_dir" && as_dir=.
3351 for ac_prog in egrep; do
3352 for ac_exec_ext in '' $ac_executable_extensions; do
3353 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3354 as_fn_executable_p "$ac_path_EGREP" || continue
3355 # Check for GNU ac_path_EGREP and select it if it is found.
3356 # Check for GNU $ac_path_EGREP
3357 case `"$ac_path_EGREP" --version 2>&1` in
3358 *GNU*)
3359 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3360 *)
3361 ac_count=0
3362 $as_echo_n 0123456789 >"conftest.in"
3363 while :
3364 do
3365 cat "conftest.in" "conftest.in" >"conftest.tmp"
3366 mv "conftest.tmp" "conftest.in"
3367 cp "conftest.in" "conftest.nl"
3368 $as_echo 'EGREP' >> "conftest.nl"
3369 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3370 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3371 as_fn_arith $ac_count + 1 && ac_count=$as_val
3372 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3373 # Best one so far, save it but keep looking for a better one
3374 ac_cv_path_EGREP="$ac_path_EGREP"
3375 ac_path_EGREP_max=$ac_count
3376 fi
3377 # 10*(2^10) chars as input seems more than enough
3378 test $ac_count -gt 10 && break
3379 done
3380 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3381 esac
3382
3383 $ac_path_EGREP_found && break 3
3384 done
3385 done
3386 done
3387 IFS=$as_save_IFS
3388 if test -z "$ac_cv_path_EGREP"; then
3389 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3390 fi
3391 else
3392 ac_cv_path_EGREP=$EGREP
3393 fi
3394
3395 fi
3396 fi
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3398 $as_echo "$ac_cv_path_EGREP" >&6; }
3399 EGREP="$ac_cv_path_EGREP"
3400
3401
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3403 $as_echo_n "checking for ANSI C header files... " >&6; }
3404 if ${ac_cv_header_stdc+:} false; then :
3405 $as_echo_n "(cached) " >&6
3406 else
3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h. */
3409 #include <stdlib.h>
3410 #include <stdarg.h>
3411 #include <string.h>
3412 #include <float.h>
3413
3414 int
3415 main ()
3416 {
3417
3418 ;
3419 return 0;
3420 }
3421 _ACEOF
3422 if ac_fn_c_try_compile "$LINENO"; then :
3423 ac_cv_header_stdc=yes
3424 else
3425 ac_cv_header_stdc=no
3426 fi
3427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3428
3429 if test $ac_cv_header_stdc = yes; then
3430 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h. */
3433 #include <string.h>
3434
3435 _ACEOF
3436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3437 $EGREP "memchr" >/dev/null 2>&1; then :
3438
3439 else
3440 ac_cv_header_stdc=no
3441 fi
3442 rm -f conftest*
3443
3444 fi
3445
3446 if test $ac_cv_header_stdc = yes; then
3447 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449 /* end confdefs.h. */
3450 #include <stdlib.h>
3451
3452 _ACEOF
3453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3454 $EGREP "free" >/dev/null 2>&1; then :
3455
3456 else
3457 ac_cv_header_stdc=no
3458 fi
3459 rm -f conftest*
3460
3461 fi
3462
3463 if test $ac_cv_header_stdc = yes; then
3464 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3465 if test "$cross_compiling" = yes; then :
3466 :
3467 else
3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 /* end confdefs.h. */
3470 #include <ctype.h>
3471 #include <stdlib.h>
3472 #if ((' ' & 0x0FF) == 0x020)
3473 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3474 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3475 #else
3476 # define ISLOWER(c) \
3477 (('a' <= (c) && (c) <= 'i') \
3478 || ('j' <= (c) && (c) <= 'r') \
3479 || ('s' <= (c) && (c) <= 'z'))
3480 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3481 #endif
3482
3483 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3484 int
3485 main ()
3486 {
3487 int i;
3488 for (i = 0; i < 256; i++)
3489 if (XOR (islower (i), ISLOWER (i))
3490 || toupper (i) != TOUPPER (i))
3491 return 2;
3492 return 0;
3493 }
3494 _ACEOF
3495 if ac_fn_c_try_run "$LINENO"; then :
3496
3497 else
3498 ac_cv_header_stdc=no
3499 fi
3500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3501 conftest.$ac_objext conftest.beam conftest.$ac_ext
3502 fi
3503
3504 fi
3505 fi
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3507 $as_echo "$ac_cv_header_stdc" >&6; }
3508 if test $ac_cv_header_stdc = yes; then
3509
3510 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3511
3512 fi
3513
3514 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3515 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3516 inttypes.h stdint.h unistd.h
3517 do :
3518 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3519 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3520 "
3521 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3522 cat >>confdefs.h <<_ACEOF
3523 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3524 _ACEOF
3525
3526 fi
3527
3528 done
3529
3530
3531
3532 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3533 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3534 MINIX=yes
3535 else
3536 MINIX=
3537 fi
3538
3539
3540 if test "$MINIX" = yes; then
3541
3542 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3543
3544
3545 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3546
3547
3548 $as_echo "#define _MINIX 1" >>confdefs.h
3549
3550 fi
3551
3552
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3554 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3555 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3556 $as_echo_n "(cached) " >&6
3557 else
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h. */
3560
3561 # define __EXTENSIONS__ 1
3562 $ac_includes_default
3563 int
3564 main ()
3565 {
3566
3567 ;
3568 return 0;
3569 }
3570 _ACEOF
3571 if ac_fn_c_try_compile "$LINENO"; then :
3572 ac_cv_safe_to_define___extensions__=yes
3573 else
3574 ac_cv_safe_to_define___extensions__=no
3575 fi
3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 fi
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3579 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3580 test $ac_cv_safe_to_define___extensions__ = yes &&
3581 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3582
3583 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3584
3585 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3586
3587 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3588
3589 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3590
3591
3592
3593 # Initialize Automake
3594 am__api_version='1.16'
3595
3596 # Find a good install program. We prefer a C program (faster),
3597 # so one script is as good as another. But avoid the broken or
3598 # incompatible versions:
3599 # SysV /etc/install, /usr/sbin/install
3600 # SunOS /usr/etc/install
3601 # IRIX /sbin/install
3602 # AIX /bin/install
3603 # AmigaOS /C/install, which installs bootblocks on floppy discs
3604 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3605 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3606 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3607 # OS/2's system install, which has a completely different semantic
3608 # ./install, which can be erroneously created by make from ./install.sh.
3609 # Reject install programs that cannot install multiple files.
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3611 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3612 if test -z "$INSTALL"; then
3613 if ${ac_cv_path_install+:} false; then :
3614 $as_echo_n "(cached) " >&6
3615 else
3616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617 for as_dir in $PATH
3618 do
3619 IFS=$as_save_IFS
3620 test -z "$as_dir" && as_dir=.
3621 # Account for people who put trailing slashes in PATH elements.
3622 case $as_dir/ in #((
3623 ./ | .// | /[cC]/* | \
3624 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3625 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3626 /usr/ucb/* ) ;;
3627 *)
3628 # OSF1 and SCO ODT 3.0 have their own names for install.
3629 # Don't use installbsd from OSF since it installs stuff as root
3630 # by default.
3631 for ac_prog in ginstall scoinst install; do
3632 for ac_exec_ext in '' $ac_executable_extensions; do
3633 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3634 if test $ac_prog = install &&
3635 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3636 # AIX install. It has an incompatible calling convention.
3637 :
3638 elif test $ac_prog = install &&
3639 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3640 # program-specific install script used by HP pwplus--don't use.
3641 :
3642 else
3643 rm -rf conftest.one conftest.two conftest.dir
3644 echo one > conftest.one
3645 echo two > conftest.two
3646 mkdir conftest.dir
3647 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3648 test -s conftest.one && test -s conftest.two &&
3649 test -s conftest.dir/conftest.one &&
3650 test -s conftest.dir/conftest.two
3651 then
3652 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3653 break 3
3654 fi
3655 fi
3656 fi
3657 done
3658 done
3659 ;;
3660 esac
3661
3662 done
3663 IFS=$as_save_IFS
3664
3665 rm -rf conftest.one conftest.two conftest.dir
3666
3667 fi
3668 if test "${ac_cv_path_install+set}" = set; then
3669 INSTALL=$ac_cv_path_install
3670 else
3671 # As a last resort, use the slow shell script. Don't cache a
3672 # value for INSTALL within a source directory, because that will
3673 # break other packages using the cache if that directory is
3674 # removed, or if the value is a relative name.
3675 INSTALL=$ac_install_sh
3676 fi
3677 fi
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3679 $as_echo "$INSTALL" >&6; }
3680
3681 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3682 # It thinks the first close brace ends the variable substitution.
3683 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3684
3685 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3686
3687 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3688
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3690 $as_echo_n "checking whether build environment is sane... " >&6; }
3691 # Reject unsafe characters in $srcdir or the absolute working directory
3692 # name. Accept space and tab only in the latter.
3693 am_lf='
3694 '
3695 case `pwd` in
3696 *[\\\"\#\$\&\'\`$am_lf]*)
3697 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3698 esac
3699 case $srcdir in
3700 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3701 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3702 esac
3703
3704 # Do 'set' in a subshell so we don't clobber the current shell's
3705 # arguments. Must try -L first in case configure is actually a
3706 # symlink; some systems play weird games with the mod time of symlinks
3707 # (eg FreeBSD returns the mod time of the symlink's containing
3708 # directory).
3709 if (
3710 am_has_slept=no
3711 for am_try in 1 2; do
3712 echo "timestamp, slept: $am_has_slept" > conftest.file
3713 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3714 if test "$*" = "X"; then
3715 # -L didn't work.
3716 set X `ls -t "$srcdir/configure" conftest.file`
3717 fi
3718 if test "$*" != "X $srcdir/configure conftest.file" \
3719 && test "$*" != "X conftest.file $srcdir/configure"; then
3720
3721 # If neither matched, then we have a broken ls. This can happen
3722 # if, for instance, CONFIG_SHELL is bash and it inherits a
3723 # broken ls alias from the environment. This has actually
3724 # happened. Such a system could not be considered "sane".
3725 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3726 alias in your environment" "$LINENO" 5
3727 fi
3728 if test "$2" = conftest.file || test $am_try -eq 2; then
3729 break
3730 fi
3731 # Just in case.
3732 sleep 1
3733 am_has_slept=yes
3734 done
3735 test "$2" = conftest.file
3736 )
3737 then
3738 # Ok.
3739 :
3740 else
3741 as_fn_error $? "newly created file is older than distributed files!
3742 Check your system clock" "$LINENO" 5
3743 fi
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3745 $as_echo "yes" >&6; }
3746 # If we didn't sleep, we still need to ensure time stamps of config.status and
3747 # generated files are strictly newer.
3748 am_sleep_pid=
3749 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3750 ( sleep 1 ) &
3751 am_sleep_pid=$!
3752 fi
3753
3754 rm -f conftest.file
3755
3756 test "$program_prefix" != NONE &&
3757 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3758 # Use a double $ so make ignores it.
3759 test "$program_suffix" != NONE &&
3760 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3761 # Double any \ or $.
3762 # By default was `s,x,x', remove it if useless.
3763 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3764 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3765
3766 if test x"${MISSING+set}" != xset; then
3767 case $am_aux_dir in
3768 *\ * | *\ *)
3769 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3770 *)
3771 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3772 esac
3773 fi
3774 # Use eval to expand $SHELL
3775 if eval "$MISSING --is-lightweight"; then
3776 am_missing_run="$MISSING "
3777 else
3778 am_missing_run=
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3780 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3781 fi
3782
3783 if test x"${install_sh+set}" != xset; then
3784 case $am_aux_dir in
3785 *\ * | *\ *)
3786 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3787 *)
3788 install_sh="\${SHELL} $am_aux_dir/install-sh"
3789 esac
3790 fi
3791
3792 # Installed binaries are usually stripped using 'strip' when the user
3793 # run "make install-strip". However 'strip' might not be the right
3794 # tool to use in cross-compilation environments, therefore Automake
3795 # will honor the 'STRIP' environment variable to overrule this program.
3796 if test "$cross_compiling" != no; then
3797 if test -n "$ac_tool_prefix"; then
3798 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3799 set dummy ${ac_tool_prefix}strip; ac_word=$2
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3801 $as_echo_n "checking for $ac_word... " >&6; }
3802 if ${ac_cv_prog_STRIP+:} false; then :
3803 $as_echo_n "(cached) " >&6
3804 else
3805 if test -n "$STRIP"; then
3806 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3807 else
3808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809 for as_dir in $PATH
3810 do
3811 IFS=$as_save_IFS
3812 test -z "$as_dir" && as_dir=.
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3815 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3817 break 2
3818 fi
3819 done
3820 done
3821 IFS=$as_save_IFS
3822
3823 fi
3824 fi
3825 STRIP=$ac_cv_prog_STRIP
3826 if test -n "$STRIP"; then
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3828 $as_echo "$STRIP" >&6; }
3829 else
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3831 $as_echo "no" >&6; }
3832 fi
3833
3834
3835 fi
3836 if test -z "$ac_cv_prog_STRIP"; then
3837 ac_ct_STRIP=$STRIP
3838 # Extract the first word of "strip", so it can be a program name with args.
3839 set dummy strip; ac_word=$2
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3841 $as_echo_n "checking for $ac_word... " >&6; }
3842 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3843 $as_echo_n "(cached) " >&6
3844 else
3845 if test -n "$ac_ct_STRIP"; then
3846 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3847 else
3848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849 for as_dir in $PATH
3850 do
3851 IFS=$as_save_IFS
3852 test -z "$as_dir" && as_dir=.
3853 for ac_exec_ext in '' $ac_executable_extensions; do
3854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3855 ac_cv_prog_ac_ct_STRIP="strip"
3856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3857 break 2
3858 fi
3859 done
3860 done
3861 IFS=$as_save_IFS
3862
3863 fi
3864 fi
3865 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3866 if test -n "$ac_ct_STRIP"; then
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3868 $as_echo "$ac_ct_STRIP" >&6; }
3869 else
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3871 $as_echo "no" >&6; }
3872 fi
3873
3874 if test "x$ac_ct_STRIP" = x; then
3875 STRIP=":"
3876 else
3877 case $cross_compiling:$ac_tool_warned in
3878 yes:)
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3881 ac_tool_warned=yes ;;
3882 esac
3883 STRIP=$ac_ct_STRIP
3884 fi
3885 else
3886 STRIP="$ac_cv_prog_STRIP"
3887 fi
3888
3889 fi
3890 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3891
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3893 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3894 if test -z "$MKDIR_P"; then
3895 if ${ac_cv_path_mkdir+:} false; then :
3896 $as_echo_n "(cached) " >&6
3897 else
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3900 do
3901 IFS=$as_save_IFS
3902 test -z "$as_dir" && as_dir=.
3903 for ac_prog in mkdir gmkdir; do
3904 for ac_exec_ext in '' $ac_executable_extensions; do
3905 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3906 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3907 'mkdir (GNU coreutils) '* | \
3908 'mkdir (coreutils) '* | \
3909 'mkdir (fileutils) '4.1*)
3910 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3911 break 3;;
3912 esac
3913 done
3914 done
3915 done
3916 IFS=$as_save_IFS
3917
3918 fi
3919
3920 test -d ./--version && rmdir ./--version
3921 if test "${ac_cv_path_mkdir+set}" = set; then
3922 MKDIR_P="$ac_cv_path_mkdir -p"
3923 else
3924 # As a last resort, use the slow shell script. Don't cache a
3925 # value for MKDIR_P within a source directory, because that will
3926 # break other packages using the cache if that directory is
3927 # removed, or if the value is a relative name.
3928 MKDIR_P="$ac_install_sh -d"
3929 fi
3930 fi
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3932 $as_echo "$MKDIR_P" >&6; }
3933
3934 for ac_prog in gawk mawk nawk awk
3935 do
3936 # Extract the first word of "$ac_prog", so it can be a program name with args.
3937 set dummy $ac_prog; ac_word=$2
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3939 $as_echo_n "checking for $ac_word... " >&6; }
3940 if ${ac_cv_prog_AWK+:} false; then :
3941 $as_echo_n "(cached) " >&6
3942 else
3943 if test -n "$AWK"; then
3944 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3945 else
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 for as_dir in $PATH
3948 do
3949 IFS=$as_save_IFS
3950 test -z "$as_dir" && as_dir=.
3951 for ac_exec_ext in '' $ac_executable_extensions; do
3952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3953 ac_cv_prog_AWK="$ac_prog"
3954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3955 break 2
3956 fi
3957 done
3958 done
3959 IFS=$as_save_IFS
3960
3961 fi
3962 fi
3963 AWK=$ac_cv_prog_AWK
3964 if test -n "$AWK"; then
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3966 $as_echo "$AWK" >&6; }
3967 else
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969 $as_echo "no" >&6; }
3970 fi
3971
3972
3973 test -n "$AWK" && break
3974 done
3975
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3977 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3978 set x ${MAKE-make}
3979 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3980 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3981 $as_echo_n "(cached) " >&6
3982 else
3983 cat >conftest.make <<\_ACEOF
3984 SHELL = /bin/sh
3985 all:
3986 @echo '@@@%%%=$(MAKE)=@@@%%%'
3987 _ACEOF
3988 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3989 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3990 *@@@%%%=?*=@@@%%%*)
3991 eval ac_cv_prog_make_${ac_make}_set=yes;;
3992 *)
3993 eval ac_cv_prog_make_${ac_make}_set=no;;
3994 esac
3995 rm -f conftest.make
3996 fi
3997 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3999 $as_echo "yes" >&6; }
4000 SET_MAKE=
4001 else
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4003 $as_echo "no" >&6; }
4004 SET_MAKE="MAKE=${MAKE-make}"
4005 fi
4006
4007 rm -rf .tst 2>/dev/null
4008 mkdir .tst 2>/dev/null
4009 if test -d .tst; then
4010 am__leading_dot=.
4011 else
4012 am__leading_dot=_
4013 fi
4014 rmdir .tst 2>/dev/null
4015
4016 DEPDIR="${am__leading_dot}deps"
4017
4018 ac_config_commands="$ac_config_commands depfiles"
4019
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4021 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4022 cat > confinc.mk << 'END'
4023 am__doit:
4024 @echo this is the am__doit target >confinc.out
4025 .PHONY: am__doit
4026 END
4027 am__include="#"
4028 am__quote=
4029 # BSD make does it like this.
4030 echo '.include "confinc.mk" # ignored' > confmf.BSD
4031 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4032 echo 'include confinc.mk # ignored' > confmf.GNU
4033 _am_result=no
4034 for s in GNU BSD; do
4035 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4036 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4037 ac_status=$?
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); }
4040 case $?:`cat confinc.out 2>/dev/null` in #(
4041 '0:this is the am__doit target') :
4042 case $s in #(
4043 BSD) :
4044 am__include='.include' am__quote='"' ;; #(
4045 *) :
4046 am__include='include' am__quote='' ;;
4047 esac ;; #(
4048 *) :
4049 ;;
4050 esac
4051 if test "$am__include" != "#"; then
4052 _am_result="yes ($s style)"
4053 break
4054 fi
4055 done
4056 rm -f confinc.* confmf.*
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4058 $as_echo "${_am_result}" >&6; }
4059
4060 # Check whether --enable-dependency-tracking was given.
4061 if test "${enable_dependency_tracking+set}" = set; then :
4062 enableval=$enable_dependency_tracking;
4063 fi
4064
4065 if test "x$enable_dependency_tracking" != xno; then
4066 am_depcomp="$ac_aux_dir/depcomp"
4067 AMDEPBACKSLASH='\'
4068 am__nodep='_no'
4069 fi
4070 if test "x$enable_dependency_tracking" != xno; then
4071 AMDEP_TRUE=
4072 AMDEP_FALSE='#'
4073 else
4074 AMDEP_TRUE='#'
4075 AMDEP_FALSE=
4076 fi
4077
4078
4079 # Check whether --enable-silent-rules was given.
4080 if test "${enable_silent_rules+set}" = set; then :
4081 enableval=$enable_silent_rules;
4082 fi
4083
4084 case $enable_silent_rules in # (((
4085 yes) AM_DEFAULT_VERBOSITY=0;;
4086 no) AM_DEFAULT_VERBOSITY=1;;
4087 *) AM_DEFAULT_VERBOSITY=1;;
4088 esac
4089 am_make=${MAKE-make}
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4091 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4092 if ${am_cv_make_support_nested_variables+:} false; then :
4093 $as_echo_n "(cached) " >&6
4094 else
4095 if $as_echo 'TRUE=$(BAR$(V))
4096 BAR0=false
4097 BAR1=true
4098 V=1
4099 am__doit:
4100 @$(TRUE)
4101 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4102 am_cv_make_support_nested_variables=yes
4103 else
4104 am_cv_make_support_nested_variables=no
4105 fi
4106 fi
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4108 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4109 if test $am_cv_make_support_nested_variables = yes; then
4110 AM_V='$(V)'
4111 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4112 else
4113 AM_V=$AM_DEFAULT_VERBOSITY
4114 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4115 fi
4116 AM_BACKSLASH='\'
4117
4118 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4119 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4120 # is not polluted with repeated "-I."
4121 am__isrc=' -I$(srcdir)'
4122 # test to see if srcdir already configured
4123 if test -f $srcdir/config.status; then
4124 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4125 fi
4126 fi
4127
4128 # test whether we have cygpath
4129 if test -z "$CYGPATH_W"; then
4130 if (cygpath --version) >/dev/null 2>/dev/null; then
4131 CYGPATH_W='cygpath -w'
4132 else
4133 CYGPATH_W=echo
4134 fi
4135 fi
4136
4137
4138 # Define the identity of the package.
4139 PACKAGE='xkbprint'
4140 VERSION='1.0.5'
4141
4142
4143 cat >>confdefs.h <<_ACEOF
4144 #define PACKAGE "$PACKAGE"
4145 _ACEOF
4146
4147
4148 cat >>confdefs.h <<_ACEOF
4149 #define VERSION "$VERSION"
4150 _ACEOF
4151
4152 # Some tools Automake needs.
4153
4154 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4155
4156
4157 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4158
4159
4160 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4161
4162
4163 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4164
4165
4166 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4167
4168 # For better backward compatibility. To be removed once Automake 1.9.x
4169 # dies out for good. For more background, see:
4170 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4171 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4172 mkdir_p='$(MKDIR_P)'
4173
4174 # We need awk for the "check" target (and possibly the TAP driver). The
4175 # system "awk" is bad on some platforms.
4176 # Always define AMTAR for backward compatibility. Yes, it's still used
4177 # in the wild :-( We should find a proper way to deprecate it ...
4178 AMTAR='$${TAR-tar}'
4179
4180
4181 # We'll loop over all known methods to create a tar archive until one works.
4182 _am_tools='gnutar pax cpio none'
4183
4184 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4185
4186
4187
4188
4189
4190 depcc="$CC" am_compiler_list=
4191
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4193 $as_echo_n "checking dependency style of $depcc... " >&6; }
4194 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4195 $as_echo_n "(cached) " >&6
4196 else
4197 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4198 # We make a subdir and do the tests there. Otherwise we can end up
4199 # making bogus files that we don't know about and never remove. For
4200 # instance it was reported that on HP-UX the gcc test will end up
4201 # making a dummy file named 'D' -- because '-MD' means "put the output
4202 # in D".
4203 rm -rf conftest.dir
4204 mkdir conftest.dir
4205 # Copy depcomp to subdir because otherwise we won't find it if we're
4206 # using a relative directory.
4207 cp "$am_depcomp" conftest.dir
4208 cd conftest.dir
4209 # We will build objects and dependencies in a subdirectory because
4210 # it helps to detect inapplicable dependency modes. For instance
4211 # both Tru64's cc and ICC support -MD to output dependencies as a
4212 # side effect of compilation, but ICC will put the dependencies in
4213 # the current directory while Tru64 will put them in the object
4214 # directory.
4215 mkdir sub
4216
4217 am_cv_CC_dependencies_compiler_type=none
4218 if test "$am_compiler_list" = ""; then
4219 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4220 fi
4221 am__universal=false
4222 case " $depcc " in #(
4223 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4224 esac
4225
4226 for depmode in $am_compiler_list; do
4227 # Setup a source with many dependencies, because some compilers
4228 # like to wrap large dependency lists on column 80 (with \), and
4229 # we should not choose a depcomp mode which is confused by this.
4230 #
4231 # We need to recreate these files for each test, as the compiler may
4232 # overwrite some of them when testing with obscure command lines.
4233 # This happens at least with the AIX C compiler.
4234 : > sub/conftest.c
4235 for i in 1 2 3 4 5 6; do
4236 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4237 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4238 # Solaris 10 /bin/sh.
4239 echo '/* dummy */' > sub/conftst$i.h
4240 done
4241 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4242
4243 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4244 # mode. It turns out that the SunPro C++ compiler does not properly
4245 # handle '-M -o', and we need to detect this. Also, some Intel
4246 # versions had trouble with output in subdirs.
4247 am__obj=sub/conftest.${OBJEXT-o}
4248 am__minus_obj="-o $am__obj"
4249 case $depmode in
4250 gcc)
4251 # This depmode causes a compiler race in universal mode.
4252 test "$am__universal" = false || continue
4253 ;;
4254 nosideeffect)
4255 # After this tag, mechanisms are not by side-effect, so they'll
4256 # only be used when explicitly requested.
4257 if test "x$enable_dependency_tracking" = xyes; then
4258 continue
4259 else
4260 break
4261 fi
4262 ;;
4263 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4264 # This compiler won't grok '-c -o', but also, the minuso test has
4265 # not run yet. These depmodes are late enough in the game, and
4266 # so weak that their functioning should not be impacted.
4267 am__obj=conftest.${OBJEXT-o}
4268 am__minus_obj=
4269 ;;
4270 none) break ;;
4271 esac
4272 if depmode=$depmode \
4273 source=sub/conftest.c object=$am__obj \
4274 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4275 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4276 >/dev/null 2>conftest.err &&
4277 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4278 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4279 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4280 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4281 # icc doesn't choke on unknown options, it will just issue warnings
4282 # or remarks (even with -Werror). So we grep stderr for any message
4283 # that says an option was ignored or not supported.
4284 # When given -MP, icc 7.0 and 7.1 complain thusly:
4285 # icc: Command line warning: ignoring option '-M'; no argument required
4286 # The diagnosis changed in icc 8.0:
4287 # icc: Command line remark: option '-MP' not supported
4288 if (grep 'ignoring option' conftest.err ||
4289 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4290 am_cv_CC_dependencies_compiler_type=$depmode
4291 break
4292 fi
4293 fi
4294 done
4295
4296 cd ..
4297 rm -rf conftest.dir
4298 else
4299 am_cv_CC_dependencies_compiler_type=none
4300 fi
4301
4302 fi
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4304 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4305 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4306
4307 if
4308 test "x$enable_dependency_tracking" != xno \
4309 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4310 am__fastdepCC_TRUE=
4311 am__fastdepCC_FALSE='#'
4312 else
4313 am__fastdepCC_TRUE='#'
4314 am__fastdepCC_FALSE=
4315 fi
4316
4317
4318
4319 # POSIX will say in a future version that running "rm -f" with no argument
4320 # is OK; and we want to be able to make that assumption in our Makefile
4321 # recipes. So use an aggressive probe to check that the usage we want is
4322 # actually supported "in the wild" to an acceptable degree.
4323 # See automake bug#10828.
4324 # To make any issue more visible, cause the running configure to be aborted
4325 # by default if the 'rm' program in use doesn't match our expectations; the
4326 # user can still override this though.
4327 if rm -f && rm -fr && rm -rf; then : OK; else
4328 cat >&2 <<'END'
4329 Oops!
4330
4331 Your 'rm' program seems unable to run without file operands specified
4332 on the command line, even when the '-f' option is present. This is contrary
4333 to the behaviour of most rm programs out there, and not conforming with
4334 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4335
4336 Please tell bug-automake@gnu.org about your system, including the value
4337 of your $PATH and any error possibly output before this message. This
4338 can help us improve future automake versions.
4339
4340 END
4341 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4342 echo 'Configuration will proceed anyway, since you have set the' >&2
4343 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4344 echo >&2
4345 else
4346 cat >&2 <<'END'
4347 Aborting the configuration process, to ensure you take notice of the issue.
4348
4349 You can download and install GNU coreutils to get an 'rm' implementation
4350 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4351
4352 If you want to complete the configuration process using your problematic
4353 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4354 to "yes", and re-run configure.
4355
4356 END
4357 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4358 fi
4359 fi
4360
4361
4362 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4375 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4376 if ${ac_cv_prog_cc_c99+:} false; then :
4377 $as_echo_n "(cached) " >&6
4378 else
4379 ac_cv_prog_cc_c99=no
4380 ac_save_CC=$CC
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h. */
4383 #include <stdarg.h>
4384 #include <stdbool.h>
4385 #include <stdlib.h>
4386 #include <wchar.h>
4387 #include <stdio.h>
4388
4389 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4390 #define debug(...) fprintf (stderr, __VA_ARGS__)
4391 #define showlist(...) puts (#__VA_ARGS__)
4392 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4393 static void
4394 test_varargs_macros (void)
4395 {
4396 int x = 1234;
4397 int y = 5678;
4398 debug ("Flag");
4399 debug ("X = %d\n", x);
4400 showlist (The first, second, and third items.);
4401 report (x>y, "x is %d but y is %d", x, y);
4402 }
4403
4404 // Check long long types.
4405 #define BIG64 18446744073709551615ull
4406 #define BIG32 4294967295ul
4407 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4408 #if !BIG_OK
4409 your preprocessor is broken;
4410 #endif
4411 #if BIG_OK
4412 #else
4413 your preprocessor is broken;
4414 #endif
4415 static long long int bignum = -9223372036854775807LL;
4416 static unsigned long long int ubignum = BIG64;
4417
4418 struct incomplete_array
4419 {
4420 int datasize;
4421 double data[];
4422 };
4423
4424 struct named_init {
4425 int number;
4426 const wchar_t *name;
4427 double average;
4428 };
4429
4430 typedef const char *ccp;
4431
4432 static inline int
4433 test_restrict (ccp restrict text)
4434 {
4435 // See if C++-style comments work.
4436 // Iterate through items via the restricted pointer.
4437 // Also check for declarations in for loops.
4438 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4439 continue;
4440 return 0;
4441 }
4442
4443 // Check varargs and va_copy.
4444 static void
4445 test_varargs (const char *format, ...)
4446 {
4447 va_list args;
4448 va_start (args, format);
4449 va_list args_copy;
4450 va_copy (args_copy, args);
4451
4452 const char *str;
4453 int number;
4454 float fnumber;
4455
4456 while (*format)
4457 {
4458 switch (*format++)
4459 {
4460 case 's': // string
4461 str = va_arg (args_copy, const char *);
4462 break;
4463 case 'd': // int
4464 number = va_arg (args_copy, int);
4465 break;
4466 case 'f': // float
4467 fnumber = va_arg (args_copy, double);
4468 break;
4469 default:
4470 break;
4471 }
4472 }
4473 va_end (args_copy);
4474 va_end (args);
4475 }
4476
4477 int
4478 main ()
4479 {
4480
4481 // Check bool.
4482 _Bool success = false;
4483
4484 // Check restrict.
4485 if (test_restrict ("String literal") == 0)
4486 success = true;
4487 char *restrict newvar = "Another string";
4488
4489 // Check varargs.
4490 test_varargs ("s, d' f .", "string", 65, 34.234);
4491 test_varargs_macros ();
4492
4493 // Check flexible array members.
4494 struct incomplete_array *ia =
4495 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4496 ia->datasize = 10;
4497 for (int i = 0; i < ia->datasize; ++i)
4498 ia->data[i] = i * 1.234;
4499
4500 // Check named initializers.
4501 struct named_init ni = {
4502 .number = 34,
4503 .name = L"Test wide string",
4504 .average = 543.34343,
4505 };
4506
4507 ni.number = 58;
4508
4509 int dynamic_array[ni.number];
4510 dynamic_array[ni.number - 1] = 543;
4511
4512 // work around unused variable warnings
4513 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4514 || dynamic_array[ni.number - 1] != 543);
4515
4516 ;
4517 return 0;
4518 }
4519 _ACEOF
4520 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4521 do
4522 CC="$ac_save_CC $ac_arg"
4523 if ac_fn_c_try_compile "$LINENO"; then :
4524 ac_cv_prog_cc_c99=$ac_arg
4525 fi
4526 rm -f core conftest.err conftest.$ac_objext
4527 test "x$ac_cv_prog_cc_c99" != "xno" && break
4528 done
4529 rm -f conftest.$ac_ext
4530 CC=$ac_save_CC
4531
4532 fi
4533 # AC_CACHE_VAL
4534 case "x$ac_cv_prog_cc_c99" in
4535 x)
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4537 $as_echo "none needed" >&6; } ;;
4538 xno)
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4540 $as_echo "unsupported" >&6; } ;;
4541 *)
4542 CC="$CC $ac_cv_prog_cc_c99"
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4544 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4545 esac
4546 if test "x$ac_cv_prog_cc_c99" != xno; then :
4547
4548 fi
4549
4550
4551
4552
4553
4554
4555 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4556 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4557 CLANGCC="yes"
4558 else
4559 CLANGCC="no"
4560 fi
4561
4562 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4563 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4564 INTELCC="yes"
4565 else
4566 INTELCC="no"
4567 fi
4568
4569 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4570 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4571 SUNCC="yes"
4572 else
4573 SUNCC="no"
4574 fi
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4585 if test -n "$ac_tool_prefix"; then
4586 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4587 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4589 $as_echo_n "checking for $ac_word... " >&6; }
4590 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4591 $as_echo_n "(cached) " >&6
4592 else
4593 case $PKG_CONFIG in
4594 [\\/]* | ?:[\\/]*)
4595 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4596 ;;
4597 *)
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH
4600 do
4601 IFS=$as_save_IFS
4602 test -z "$as_dir" && as_dir=.
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4605 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4607 break 2
4608 fi
4609 done
4610 done
4611 IFS=$as_save_IFS
4612
4613 ;;
4614 esac
4615 fi
4616 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4617 if test -n "$PKG_CONFIG"; then
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4619 $as_echo "$PKG_CONFIG" >&6; }
4620 else
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4622 $as_echo "no" >&6; }
4623 fi
4624
4625
4626 fi
4627 if test -z "$ac_cv_path_PKG_CONFIG"; then
4628 ac_pt_PKG_CONFIG=$PKG_CONFIG
4629 # Extract the first word of "pkg-config", so it can be a program name with args.
4630 set dummy pkg-config; ac_word=$2
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4632 $as_echo_n "checking for $ac_word... " >&6; }
4633 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4634 $as_echo_n "(cached) " >&6
4635 else
4636 case $ac_pt_PKG_CONFIG in
4637 [\\/]* | ?:[\\/]*)
4638 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4639 ;;
4640 *)
4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 for as_dir in $PATH
4643 do
4644 IFS=$as_save_IFS
4645 test -z "$as_dir" && as_dir=.
4646 for ac_exec_ext in '' $ac_executable_extensions; do
4647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4648 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4650 break 2
4651 fi
4652 done
4653 done
4654 IFS=$as_save_IFS
4655
4656 ;;
4657 esac
4658 fi
4659 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4660 if test -n "$ac_pt_PKG_CONFIG"; then
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4662 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4663 else
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665 $as_echo "no" >&6; }
4666 fi
4667
4668 if test "x$ac_pt_PKG_CONFIG" = x; then
4669 PKG_CONFIG=""
4670 else
4671 case $cross_compiling:$ac_tool_warned in
4672 yes:)
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4675 ac_tool_warned=yes ;;
4676 esac
4677 PKG_CONFIG=$ac_pt_PKG_CONFIG
4678 fi
4679 else
4680 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4681 fi
4682
4683 fi
4684 if test -n "$PKG_CONFIG"; then
4685 _pkg_min_version=0.9.0
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4687 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4688 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4690 $as_echo "yes" >&6; }
4691 else
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693 $as_echo "no" >&6; }
4694 PKG_CONFIG=""
4695 fi
4696 fi
4697 # Make sure we can run config.sub.
4698 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4699 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4700
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4702 $as_echo_n "checking build system type... " >&6; }
4703 if ${ac_cv_build+:} false; then :
4704 $as_echo_n "(cached) " >&6
4705 else
4706 ac_build_alias=$build_alias
4707 test "x$ac_build_alias" = x &&
4708 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4709 test "x$ac_build_alias" = x &&
4710 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4711 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4712 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4713
4714 fi
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4716 $as_echo "$ac_cv_build" >&6; }
4717 case $ac_cv_build in
4718 *-*-*) ;;
4719 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4720 esac
4721 build=$ac_cv_build
4722 ac_save_IFS=$IFS; IFS='-'
4723 set x $ac_cv_build
4724 shift
4725 build_cpu=$1
4726 build_vendor=$2
4727 shift; shift
4728 # Remember, the first character of IFS is used to create $*,
4729 # except with old shells:
4730 build_os=$*
4731 IFS=$ac_save_IFS
4732 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4733
4734
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4736 $as_echo_n "checking host system type... " >&6; }
4737 if ${ac_cv_host+:} false; then :
4738 $as_echo_n "(cached) " >&6
4739 else
4740 if test "x$host_alias" = x; then
4741 ac_cv_host=$ac_cv_build
4742 else
4743 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4744 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4745 fi
4746
4747 fi
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4749 $as_echo "$ac_cv_host" >&6; }
4750 case $ac_cv_host in
4751 *-*-*) ;;
4752 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4753 esac
4754 host=$ac_cv_host
4755 ac_save_IFS=$IFS; IFS='-'
4756 set x $ac_cv_host
4757 shift
4758 host_cpu=$1
4759 host_vendor=$2
4760 shift; shift
4761 # Remember, the first character of IFS is used to create $*,
4762 # except with old shells:
4763 host_os=$*
4764 IFS=$ac_save_IFS
4765 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4766
4767
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4769 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4770 if ${ac_cv_path_SED+:} false; then :
4771 $as_echo_n "(cached) " >&6
4772 else
4773 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4774 for ac_i in 1 2 3 4 5 6 7; do
4775 ac_script="$ac_script$as_nl$ac_script"
4776 done
4777 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4778 { ac_script=; unset ac_script;}
4779 if test -z "$SED"; then
4780 ac_path_SED_found=false
4781 # Loop through the user's path and test for each of PROGNAME-LIST
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 for as_dir in $PATH
4784 do
4785 IFS=$as_save_IFS
4786 test -z "$as_dir" && as_dir=.
4787 for ac_prog in sed gsed; do
4788 for ac_exec_ext in '' $ac_executable_extensions; do
4789 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4790 as_fn_executable_p "$ac_path_SED" || continue
4791 # Check for GNU ac_path_SED and select it if it is found.
4792 # Check for GNU $ac_path_SED
4793 case `"$ac_path_SED" --version 2>&1` in
4794 *GNU*)
4795 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4796 *)
4797 ac_count=0
4798 $as_echo_n 0123456789 >"conftest.in"
4799 while :
4800 do
4801 cat "conftest.in" "conftest.in" >"conftest.tmp"
4802 mv "conftest.tmp" "conftest.in"
4803 cp "conftest.in" "conftest.nl"
4804 $as_echo '' >> "conftest.nl"
4805 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4806 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4807 as_fn_arith $ac_count + 1 && ac_count=$as_val
4808 if test $ac_count -gt ${ac_path_SED_max-0}; then
4809 # Best one so far, save it but keep looking for a better one
4810 ac_cv_path_SED="$ac_path_SED"
4811 ac_path_SED_max=$ac_count
4812 fi
4813 # 10*(2^10) chars as input seems more than enough
4814 test $ac_count -gt 10 && break
4815 done
4816 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4817 esac
4818
4819 $ac_path_SED_found && break 3
4820 done
4821 done
4822 done
4823 IFS=$as_save_IFS
4824 if test -z "$ac_cv_path_SED"; then
4825 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4826 fi
4827 else
4828 ac_cv_path_SED=$SED
4829 fi
4830
4831 fi
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4833 $as_echo "$ac_cv_path_SED" >&6; }
4834 SED="$ac_cv_path_SED"
4835 rm -f conftest.sed
4836
4837
4838
4839
4840
4841
4842 # Check whether --enable-selective-werror was given.
4843 if test "${enable_selective_werror+set}" = set; then :
4844 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4845 else
4846 SELECTIVE_WERROR=yes
4847 fi
4848
4849
4850
4851
4852
4853 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4854 if test "x$SUNCC" = "xyes"; then
4855 BASE_CFLAGS="-v"
4856 else
4857 BASE_CFLAGS=""
4858 fi
4859
4860 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874 xorg_testset_save_CFLAGS="$CFLAGS"
4875
4876 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4879 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4880 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4881 $as_echo_n "(cached) " >&6
4882 else
4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h. */
4885 int i;
4886 _ACEOF
4887 if ac_fn_c_try_compile "$LINENO"; then :
4888 xorg_cv_cc_flag_unknown_warning_option=yes
4889 else
4890 xorg_cv_cc_flag_unknown_warning_option=no
4891 fi
4892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893 fi
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4895 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4896 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4897 CFLAGS="$xorg_testset_save_CFLAGS"
4898 fi
4899
4900 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4902 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4903 fi
4904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4906 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4907 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4908 $as_echo_n "(cached) " >&6
4909 else
4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h. */
4912 int i;
4913 _ACEOF
4914 if ac_fn_c_try_compile "$LINENO"; then :
4915 xorg_cv_cc_flag_unused_command_line_argument=yes
4916 else
4917 xorg_cv_cc_flag_unused_command_line_argument=no
4918 fi
4919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4920 fi
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4922 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4923 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4924 CFLAGS="$xorg_testset_save_CFLAGS"
4925 fi
4926
4927 found="no"
4928
4929 if test $found = "no" ; then
4930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4931 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4932 fi
4933
4934 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4936 fi
4937
4938 CFLAGS="$CFLAGS -Wall"
4939
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4941 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4942 cacheid=xorg_cv_cc_flag__Wall
4943 if eval \${$cacheid+:} false; then :
4944 $as_echo_n "(cached) " >&6
4945 else
4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947 /* end confdefs.h. */
4948 int i;
4949 int
4950 main ()
4951 {
4952
4953 ;
4954 return 0;
4955 }
4956 _ACEOF
4957 if ac_fn_c_try_link "$LINENO"; then :
4958 eval $cacheid=yes
4959 else
4960 eval $cacheid=no
4961 fi
4962 rm -f core conftest.err conftest.$ac_objext \
4963 conftest$ac_exeext conftest.$ac_ext
4964 fi
4965
4966
4967 CFLAGS="$xorg_testset_save_CFLAGS"
4968
4969 eval supported=\$$cacheid
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4971 $as_echo "$supported" >&6; }
4972 if test "$supported" = "yes" ; then
4973 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4974 found="yes"
4975 fi
4976 fi
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992 xorg_testset_save_CFLAGS="$CFLAGS"
4993
4994 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4997 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4998 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4999 $as_echo_n "(cached) " >&6
5000 else
5001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002 /* end confdefs.h. */
5003 int i;
5004 _ACEOF
5005 if ac_fn_c_try_compile "$LINENO"; then :
5006 xorg_cv_cc_flag_unknown_warning_option=yes
5007 else
5008 xorg_cv_cc_flag_unknown_warning_option=no
5009 fi
5010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5011 fi
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5013 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5014 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5015 CFLAGS="$xorg_testset_save_CFLAGS"
5016 fi
5017
5018 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5021 fi
5022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5024 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5025 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5026 $as_echo_n "(cached) " >&6
5027 else
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h. */
5030 int i;
5031 _ACEOF
5032 if ac_fn_c_try_compile "$LINENO"; then :
5033 xorg_cv_cc_flag_unused_command_line_argument=yes
5034 else
5035 xorg_cv_cc_flag_unused_command_line_argument=no
5036 fi
5037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5038 fi
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5040 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5041 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5042 CFLAGS="$xorg_testset_save_CFLAGS"
5043 fi
5044
5045 found="no"
5046
5047 if test $found = "no" ; then
5048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5050 fi
5051
5052 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5054 fi
5055
5056 CFLAGS="$CFLAGS -Wpointer-arith"
5057
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5059 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5060 cacheid=xorg_cv_cc_flag__Wpointer_arith
5061 if eval \${$cacheid+:} false; then :
5062 $as_echo_n "(cached) " >&6
5063 else
5064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5065 /* end confdefs.h. */
5066 int i;
5067 int
5068 main ()
5069 {
5070
5071 ;
5072 return 0;
5073 }
5074 _ACEOF
5075 if ac_fn_c_try_link "$LINENO"; then :
5076 eval $cacheid=yes
5077 else
5078 eval $cacheid=no
5079 fi
5080 rm -f core conftest.err conftest.$ac_objext \
5081 conftest$ac_exeext conftest.$ac_ext
5082 fi
5083
5084
5085 CFLAGS="$xorg_testset_save_CFLAGS"
5086
5087 eval supported=\$$cacheid
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5089 $as_echo "$supported" >&6; }
5090 if test "$supported" = "yes" ; then
5091 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5092 found="yes"
5093 fi
5094 fi
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110 xorg_testset_save_CFLAGS="$CFLAGS"
5111
5112 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5115 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5116 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5117 $as_echo_n "(cached) " >&6
5118 else
5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120 /* end confdefs.h. */
5121 int i;
5122 _ACEOF
5123 if ac_fn_c_try_compile "$LINENO"; then :
5124 xorg_cv_cc_flag_unknown_warning_option=yes
5125 else
5126 xorg_cv_cc_flag_unknown_warning_option=no
5127 fi
5128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5129 fi
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5131 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5132 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5133 CFLAGS="$xorg_testset_save_CFLAGS"
5134 fi
5135
5136 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5139 fi
5140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5142 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5143 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5144 $as_echo_n "(cached) " >&6
5145 else
5146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147 /* end confdefs.h. */
5148 int i;
5149 _ACEOF
5150 if ac_fn_c_try_compile "$LINENO"; then :
5151 xorg_cv_cc_flag_unused_command_line_argument=yes
5152 else
5153 xorg_cv_cc_flag_unused_command_line_argument=no
5154 fi
5155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5156 fi
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5158 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5159 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5160 CFLAGS="$xorg_testset_save_CFLAGS"
5161 fi
5162
5163 found="no"
5164
5165 if test $found = "no" ; then
5166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5168 fi
5169
5170 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5172 fi
5173
5174 CFLAGS="$CFLAGS -Wmissing-declarations"
5175
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5177 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5178 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5179 if eval \${$cacheid+:} false; then :
5180 $as_echo_n "(cached) " >&6
5181 else
5182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183 /* end confdefs.h. */
5184 int i;
5185 int
5186 main ()
5187 {
5188
5189 ;
5190 return 0;
5191 }
5192 _ACEOF
5193 if ac_fn_c_try_link "$LINENO"; then :
5194 eval $cacheid=yes
5195 else
5196 eval $cacheid=no
5197 fi
5198 rm -f core conftest.err conftest.$ac_objext \
5199 conftest$ac_exeext conftest.$ac_ext
5200 fi
5201
5202
5203 CFLAGS="$xorg_testset_save_CFLAGS"
5204
5205 eval supported=\$$cacheid
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5207 $as_echo "$supported" >&6; }
5208 if test "$supported" = "yes" ; then
5209 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5210 found="yes"
5211 fi
5212 fi
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228 xorg_testset_save_CFLAGS="$CFLAGS"
5229
5230 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5233 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5234 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5235 $as_echo_n "(cached) " >&6
5236 else
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5239 int i;
5240 _ACEOF
5241 if ac_fn_c_try_compile "$LINENO"; then :
5242 xorg_cv_cc_flag_unknown_warning_option=yes
5243 else
5244 xorg_cv_cc_flag_unknown_warning_option=no
5245 fi
5246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5247 fi
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5249 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5250 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5251 CFLAGS="$xorg_testset_save_CFLAGS"
5252 fi
5253
5254 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5257 fi
5258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5260 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5261 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5262 $as_echo_n "(cached) " >&6
5263 else
5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h. */
5266 int i;
5267 _ACEOF
5268 if ac_fn_c_try_compile "$LINENO"; then :
5269 xorg_cv_cc_flag_unused_command_line_argument=yes
5270 else
5271 xorg_cv_cc_flag_unused_command_line_argument=no
5272 fi
5273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5274 fi
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5276 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5277 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5278 CFLAGS="$xorg_testset_save_CFLAGS"
5279 fi
5280
5281 found="no"
5282
5283 if test $found = "no" ; then
5284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5285 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5286 fi
5287
5288 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5290 fi
5291
5292 CFLAGS="$CFLAGS -Wformat=2"
5293
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5295 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5296 cacheid=xorg_cv_cc_flag__Wformat_2
5297 if eval \${$cacheid+:} false; then :
5298 $as_echo_n "(cached) " >&6
5299 else
5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301 /* end confdefs.h. */
5302 int i;
5303 int
5304 main ()
5305 {
5306
5307 ;
5308 return 0;
5309 }
5310 _ACEOF
5311 if ac_fn_c_try_link "$LINENO"; then :
5312 eval $cacheid=yes
5313 else
5314 eval $cacheid=no
5315 fi
5316 rm -f core conftest.err conftest.$ac_objext \
5317 conftest$ac_exeext conftest.$ac_ext
5318 fi
5319
5320
5321 CFLAGS="$xorg_testset_save_CFLAGS"
5322
5323 eval supported=\$$cacheid
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5325 $as_echo "$supported" >&6; }
5326 if test "$supported" = "yes" ; then
5327 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5328 found="yes"
5329 fi
5330 fi
5331
5332 if test $found = "no" ; then
5333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5335 fi
5336
5337 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5339 fi
5340
5341 CFLAGS="$CFLAGS -Wformat"
5342
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5344 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5345 cacheid=xorg_cv_cc_flag__Wformat
5346 if eval \${$cacheid+:} false; then :
5347 $as_echo_n "(cached) " >&6
5348 else
5349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350 /* end confdefs.h. */
5351 int i;
5352 int
5353 main ()
5354 {
5355
5356 ;
5357 return 0;
5358 }
5359 _ACEOF
5360 if ac_fn_c_try_link "$LINENO"; then :
5361 eval $cacheid=yes
5362 else
5363 eval $cacheid=no
5364 fi
5365 rm -f core conftest.err conftest.$ac_objext \
5366 conftest$ac_exeext conftest.$ac_ext
5367 fi
5368
5369
5370 CFLAGS="$xorg_testset_save_CFLAGS"
5371
5372 eval supported=\$$cacheid
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5374 $as_echo "$supported" >&6; }
5375 if test "$supported" = "yes" ; then
5376 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5377 found="yes"
5378 fi
5379 fi
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397 xorg_testset_save_CFLAGS="$CFLAGS"
5398
5399 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5402 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5403 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5404 $as_echo_n "(cached) " >&6
5405 else
5406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h. */
5408 int i;
5409 _ACEOF
5410 if ac_fn_c_try_compile "$LINENO"; then :
5411 xorg_cv_cc_flag_unknown_warning_option=yes
5412 else
5413 xorg_cv_cc_flag_unknown_warning_option=no
5414 fi
5415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5416 fi
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5418 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5419 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5420 CFLAGS="$xorg_testset_save_CFLAGS"
5421 fi
5422
5423 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5424 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5425 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5426 fi
5427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5429 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5430 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5431 $as_echo_n "(cached) " >&6
5432 else
5433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434 /* end confdefs.h. */
5435 int i;
5436 _ACEOF
5437 if ac_fn_c_try_compile "$LINENO"; then :
5438 xorg_cv_cc_flag_unused_command_line_argument=yes
5439 else
5440 xorg_cv_cc_flag_unused_command_line_argument=no
5441 fi
5442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5443 fi
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5445 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5446 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5447 CFLAGS="$xorg_testset_save_CFLAGS"
5448 fi
5449
5450 found="no"
5451
5452 if test $found = "no" ; then
5453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5455 fi
5456
5457 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5459 fi
5460
5461 CFLAGS="$CFLAGS -Wstrict-prototypes"
5462
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5464 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5465 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5466 if eval \${$cacheid+:} false; then :
5467 $as_echo_n "(cached) " >&6
5468 else
5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h. */
5471 int i;
5472 int
5473 main ()
5474 {
5475
5476 ;
5477 return 0;
5478 }
5479 _ACEOF
5480 if ac_fn_c_try_link "$LINENO"; then :
5481 eval $cacheid=yes
5482 else
5483 eval $cacheid=no
5484 fi
5485 rm -f core conftest.err conftest.$ac_objext \
5486 conftest$ac_exeext conftest.$ac_ext
5487 fi
5488
5489
5490 CFLAGS="$xorg_testset_save_CFLAGS"
5491
5492 eval supported=\$$cacheid
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5494 $as_echo "$supported" >&6; }
5495 if test "$supported" = "yes" ; then
5496 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5497 found="yes"
5498 fi
5499 fi
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515 xorg_testset_save_CFLAGS="$CFLAGS"
5516
5517 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5518 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5520 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5521 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5522 $as_echo_n "(cached) " >&6
5523 else
5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h. */
5526 int i;
5527 _ACEOF
5528 if ac_fn_c_try_compile "$LINENO"; then :
5529 xorg_cv_cc_flag_unknown_warning_option=yes
5530 else
5531 xorg_cv_cc_flag_unknown_warning_option=no
5532 fi
5533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5534 fi
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5536 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5537 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5538 CFLAGS="$xorg_testset_save_CFLAGS"
5539 fi
5540
5541 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5544 fi
5545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5547 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5548 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5549 $as_echo_n "(cached) " >&6
5550 else
5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h. */
5553 int i;
5554 _ACEOF
5555 if ac_fn_c_try_compile "$LINENO"; then :
5556 xorg_cv_cc_flag_unused_command_line_argument=yes
5557 else
5558 xorg_cv_cc_flag_unused_command_line_argument=no
5559 fi
5560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5561 fi
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5563 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5564 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5565 CFLAGS="$xorg_testset_save_CFLAGS"
5566 fi
5567
5568 found="no"
5569
5570 if test $found = "no" ; then
5571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5572 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5573 fi
5574
5575 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5577 fi
5578
5579 CFLAGS="$CFLAGS -Wmissing-prototypes"
5580
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5582 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5583 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5584 if eval \${$cacheid+:} false; then :
5585 $as_echo_n "(cached) " >&6
5586 else
5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h. */
5589 int i;
5590 int
5591 main ()
5592 {
5593
5594 ;
5595 return 0;
5596 }
5597 _ACEOF
5598 if ac_fn_c_try_link "$LINENO"; then :
5599 eval $cacheid=yes
5600 else
5601 eval $cacheid=no
5602 fi
5603 rm -f core conftest.err conftest.$ac_objext \
5604 conftest$ac_exeext conftest.$ac_ext
5605 fi
5606
5607
5608 CFLAGS="$xorg_testset_save_CFLAGS"
5609
5610 eval supported=\$$cacheid
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5612 $as_echo "$supported" >&6; }
5613 if test "$supported" = "yes" ; then
5614 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5615 found="yes"
5616 fi
5617 fi
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633 xorg_testset_save_CFLAGS="$CFLAGS"
5634
5635 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5638 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5639 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5640 $as_echo_n "(cached) " >&6
5641 else
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5644 int i;
5645 _ACEOF
5646 if ac_fn_c_try_compile "$LINENO"; then :
5647 xorg_cv_cc_flag_unknown_warning_option=yes
5648 else
5649 xorg_cv_cc_flag_unknown_warning_option=no
5650 fi
5651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652 fi
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5654 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5655 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5656 CFLAGS="$xorg_testset_save_CFLAGS"
5657 fi
5658
5659 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5661 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5662 fi
5663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5665 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5666 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5667 $as_echo_n "(cached) " >&6
5668 else
5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h. */
5671 int i;
5672 _ACEOF
5673 if ac_fn_c_try_compile "$LINENO"; then :
5674 xorg_cv_cc_flag_unused_command_line_argument=yes
5675 else
5676 xorg_cv_cc_flag_unused_command_line_argument=no
5677 fi
5678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5679 fi
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5681 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5682 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5683 CFLAGS="$xorg_testset_save_CFLAGS"
5684 fi
5685
5686 found="no"
5687
5688 if test $found = "no" ; then
5689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5691 fi
5692
5693 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5695 fi
5696
5697 CFLAGS="$CFLAGS -Wnested-externs"
5698
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5700 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5701 cacheid=xorg_cv_cc_flag__Wnested_externs
5702 if eval \${$cacheid+:} false; then :
5703 $as_echo_n "(cached) " >&6
5704 else
5705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706 /* end confdefs.h. */
5707 int i;
5708 int
5709 main ()
5710 {
5711
5712 ;
5713 return 0;
5714 }
5715 _ACEOF
5716 if ac_fn_c_try_link "$LINENO"; then :
5717 eval $cacheid=yes
5718 else
5719 eval $cacheid=no
5720 fi
5721 rm -f core conftest.err conftest.$ac_objext \
5722 conftest$ac_exeext conftest.$ac_ext
5723 fi
5724
5725
5726 CFLAGS="$xorg_testset_save_CFLAGS"
5727
5728 eval supported=\$$cacheid
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5730 $as_echo "$supported" >&6; }
5731 if test "$supported" = "yes" ; then
5732 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5733 found="yes"
5734 fi
5735 fi
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751 xorg_testset_save_CFLAGS="$CFLAGS"
5752
5753 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5754 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5756 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5757 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5758 $as_echo_n "(cached) " >&6
5759 else
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5762 int i;
5763 _ACEOF
5764 if ac_fn_c_try_compile "$LINENO"; then :
5765 xorg_cv_cc_flag_unknown_warning_option=yes
5766 else
5767 xorg_cv_cc_flag_unknown_warning_option=no
5768 fi
5769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5770 fi
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5772 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5773 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5774 CFLAGS="$xorg_testset_save_CFLAGS"
5775 fi
5776
5777 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5780 fi
5781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5783 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5784 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5785 $as_echo_n "(cached) " >&6
5786 else
5787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788 /* end confdefs.h. */
5789 int i;
5790 _ACEOF
5791 if ac_fn_c_try_compile "$LINENO"; then :
5792 xorg_cv_cc_flag_unused_command_line_argument=yes
5793 else
5794 xorg_cv_cc_flag_unused_command_line_argument=no
5795 fi
5796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5797 fi
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5799 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5800 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5801 CFLAGS="$xorg_testset_save_CFLAGS"
5802 fi
5803
5804 found="no"
5805
5806 if test $found = "no" ; then
5807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5809 fi
5810
5811 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5813 fi
5814
5815 CFLAGS="$CFLAGS -Wbad-function-cast"
5816
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5818 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5819 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5820 if eval \${$cacheid+:} false; then :
5821 $as_echo_n "(cached) " >&6
5822 else
5823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5824 /* end confdefs.h. */
5825 int i;
5826 int
5827 main ()
5828 {
5829
5830 ;
5831 return 0;
5832 }
5833 _ACEOF
5834 if ac_fn_c_try_link "$LINENO"; then :
5835 eval $cacheid=yes
5836 else
5837 eval $cacheid=no
5838 fi
5839 rm -f core conftest.err conftest.$ac_objext \
5840 conftest$ac_exeext conftest.$ac_ext
5841 fi
5842
5843
5844 CFLAGS="$xorg_testset_save_CFLAGS"
5845
5846 eval supported=\$$cacheid
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5848 $as_echo "$supported" >&6; }
5849 if test "$supported" = "yes" ; then
5850 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5851 found="yes"
5852 fi
5853 fi
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869 xorg_testset_save_CFLAGS="$CFLAGS"
5870
5871 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5874 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5875 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5876 $as_echo_n "(cached) " >&6
5877 else
5878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5879 /* end confdefs.h. */
5880 int i;
5881 _ACEOF
5882 if ac_fn_c_try_compile "$LINENO"; then :
5883 xorg_cv_cc_flag_unknown_warning_option=yes
5884 else
5885 xorg_cv_cc_flag_unknown_warning_option=no
5886 fi
5887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5888 fi
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5890 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5891 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5892 CFLAGS="$xorg_testset_save_CFLAGS"
5893 fi
5894
5895 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5897 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5898 fi
5899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5901 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5902 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5903 $as_echo_n "(cached) " >&6
5904 else
5905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906 /* end confdefs.h. */
5907 int i;
5908 _ACEOF
5909 if ac_fn_c_try_compile "$LINENO"; then :
5910 xorg_cv_cc_flag_unused_command_line_argument=yes
5911 else
5912 xorg_cv_cc_flag_unused_command_line_argument=no
5913 fi
5914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5915 fi
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5917 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5918 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5919 CFLAGS="$xorg_testset_save_CFLAGS"
5920 fi
5921
5922 found="no"
5923
5924 if test $found = "no" ; then
5925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5926 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5927 fi
5928
5929 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5931 fi
5932
5933 CFLAGS="$CFLAGS -Wold-style-definition"
5934
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5936 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5937 cacheid=xorg_cv_cc_flag__Wold_style_definition
5938 if eval \${$cacheid+:} false; then :
5939 $as_echo_n "(cached) " >&6
5940 else
5941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5942 /* end confdefs.h. */
5943 int i;
5944 int
5945 main ()
5946 {
5947
5948 ;
5949 return 0;
5950 }
5951 _ACEOF
5952 if ac_fn_c_try_link "$LINENO"; then :
5953 eval $cacheid=yes
5954 else
5955 eval $cacheid=no
5956 fi
5957 rm -f core conftest.err conftest.$ac_objext \
5958 conftest$ac_exeext conftest.$ac_ext
5959 fi
5960
5961
5962 CFLAGS="$xorg_testset_save_CFLAGS"
5963
5964 eval supported=\$$cacheid
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5966 $as_echo "$supported" >&6; }
5967 if test "$supported" = "yes" ; then
5968 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5969 found="yes"
5970 fi
5971 fi
5972
5973 if test $found = "no" ; then
5974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5976 fi
5977
5978 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5980 fi
5981
5982 CFLAGS="$CFLAGS -fd"
5983
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5985 $as_echo_n "checking if $CC supports -fd... " >&6; }
5986 cacheid=xorg_cv_cc_flag__fd
5987 if eval \${$cacheid+:} false; then :
5988 $as_echo_n "(cached) " >&6
5989 else
5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h. */
5992 int i;
5993 int
5994 main ()
5995 {
5996
5997 ;
5998 return 0;
5999 }
6000 _ACEOF
6001 if ac_fn_c_try_link "$LINENO"; then :
6002 eval $cacheid=yes
6003 else
6004 eval $cacheid=no
6005 fi
6006 rm -f core conftest.err conftest.$ac_objext \
6007 conftest$ac_exeext conftest.$ac_ext
6008 fi
6009
6010
6011 CFLAGS="$xorg_testset_save_CFLAGS"
6012
6013 eval supported=\$$cacheid
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6015 $as_echo "$supported" >&6; }
6016 if test "$supported" = "yes" ; then
6017 BASE_CFLAGS="$BASE_CFLAGS -fd"
6018 found="yes"
6019 fi
6020 fi
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036 xorg_testset_save_CFLAGS="$CFLAGS"
6037
6038 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6041 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6042 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6043 $as_echo_n "(cached) " >&6
6044 else
6045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6046 /* end confdefs.h. */
6047 int i;
6048 _ACEOF
6049 if ac_fn_c_try_compile "$LINENO"; then :
6050 xorg_cv_cc_flag_unknown_warning_option=yes
6051 else
6052 xorg_cv_cc_flag_unknown_warning_option=no
6053 fi
6054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055 fi
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6057 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6058 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6059 CFLAGS="$xorg_testset_save_CFLAGS"
6060 fi
6061
6062 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6065 fi
6066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6068 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6069 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6070 $as_echo_n "(cached) " >&6
6071 else
6072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6073 /* end confdefs.h. */
6074 int i;
6075 _ACEOF
6076 if ac_fn_c_try_compile "$LINENO"; then :
6077 xorg_cv_cc_flag_unused_command_line_argument=yes
6078 else
6079 xorg_cv_cc_flag_unused_command_line_argument=no
6080 fi
6081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6082 fi
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6084 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6085 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6086 CFLAGS="$xorg_testset_save_CFLAGS"
6087 fi
6088
6089 found="no"
6090
6091 if test $found = "no" ; then
6092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6094 fi
6095
6096 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6098 fi
6099
6100 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6101
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6103 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6104 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6105 if eval \${$cacheid+:} false; then :
6106 $as_echo_n "(cached) " >&6
6107 else
6108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h. */
6110 int i;
6111 int
6112 main ()
6113 {
6114
6115 ;
6116 return 0;
6117 }
6118 _ACEOF
6119 if ac_fn_c_try_link "$LINENO"; then :
6120 eval $cacheid=yes
6121 else
6122 eval $cacheid=no
6123 fi
6124 rm -f core conftest.err conftest.$ac_objext \
6125 conftest$ac_exeext conftest.$ac_ext
6126 fi
6127
6128
6129 CFLAGS="$xorg_testset_save_CFLAGS"
6130
6131 eval supported=\$$cacheid
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6133 $as_echo "$supported" >&6; }
6134 if test "$supported" = "yes" ; then
6135 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6136 found="yes"
6137 fi
6138 fi
6139
6140
6141
6142
6143
6144 # This chunk adds additional warnings that could catch undesired effects.
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158 xorg_testset_save_CFLAGS="$CFLAGS"
6159
6160 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6163 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6164 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6165 $as_echo_n "(cached) " >&6
6166 else
6167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168 /* end confdefs.h. */
6169 int i;
6170 _ACEOF
6171 if ac_fn_c_try_compile "$LINENO"; then :
6172 xorg_cv_cc_flag_unknown_warning_option=yes
6173 else
6174 xorg_cv_cc_flag_unknown_warning_option=no
6175 fi
6176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6177 fi
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6179 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6180 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6181 CFLAGS="$xorg_testset_save_CFLAGS"
6182 fi
6183
6184 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6187 fi
6188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6190 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6191 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6192 $as_echo_n "(cached) " >&6
6193 else
6194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6195 /* end confdefs.h. */
6196 int i;
6197 _ACEOF
6198 if ac_fn_c_try_compile "$LINENO"; then :
6199 xorg_cv_cc_flag_unused_command_line_argument=yes
6200 else
6201 xorg_cv_cc_flag_unused_command_line_argument=no
6202 fi
6203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6204 fi
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6206 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6207 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6208 CFLAGS="$xorg_testset_save_CFLAGS"
6209 fi
6210
6211 found="no"
6212
6213 if test $found = "no" ; then
6214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6216 fi
6217
6218 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6220 fi
6221
6222 CFLAGS="$CFLAGS -Wunused"
6223
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6225 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6226 cacheid=xorg_cv_cc_flag__Wunused
6227 if eval \${$cacheid+:} false; then :
6228 $as_echo_n "(cached) " >&6
6229 else
6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6231 /* end confdefs.h. */
6232 int i;
6233 int
6234 main ()
6235 {
6236
6237 ;
6238 return 0;
6239 }
6240 _ACEOF
6241 if ac_fn_c_try_link "$LINENO"; then :
6242 eval $cacheid=yes
6243 else
6244 eval $cacheid=no
6245 fi
6246 rm -f core conftest.err conftest.$ac_objext \
6247 conftest$ac_exeext conftest.$ac_ext
6248 fi
6249
6250
6251 CFLAGS="$xorg_testset_save_CFLAGS"
6252
6253 eval supported=\$$cacheid
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6255 $as_echo "$supported" >&6; }
6256 if test "$supported" = "yes" ; then
6257 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6258 found="yes"
6259 fi
6260 fi
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276 xorg_testset_save_CFLAGS="$CFLAGS"
6277
6278 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6281 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6282 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6283 $as_echo_n "(cached) " >&6
6284 else
6285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6286 /* end confdefs.h. */
6287 int i;
6288 _ACEOF
6289 if ac_fn_c_try_compile "$LINENO"; then :
6290 xorg_cv_cc_flag_unknown_warning_option=yes
6291 else
6292 xorg_cv_cc_flag_unknown_warning_option=no
6293 fi
6294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6295 fi
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6297 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6298 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6299 CFLAGS="$xorg_testset_save_CFLAGS"
6300 fi
6301
6302 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6305 fi
6306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6308 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6309 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6310 $as_echo_n "(cached) " >&6
6311 else
6312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313 /* end confdefs.h. */
6314 int i;
6315 _ACEOF
6316 if ac_fn_c_try_compile "$LINENO"; then :
6317 xorg_cv_cc_flag_unused_command_line_argument=yes
6318 else
6319 xorg_cv_cc_flag_unused_command_line_argument=no
6320 fi
6321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6322 fi
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6324 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6325 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6326 CFLAGS="$xorg_testset_save_CFLAGS"
6327 fi
6328
6329 found="no"
6330
6331 if test $found = "no" ; then
6332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6334 fi
6335
6336 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6338 fi
6339
6340 CFLAGS="$CFLAGS -Wuninitialized"
6341
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6343 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6344 cacheid=xorg_cv_cc_flag__Wuninitialized
6345 if eval \${$cacheid+:} false; then :
6346 $as_echo_n "(cached) " >&6
6347 else
6348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h. */
6350 int i;
6351 int
6352 main ()
6353 {
6354
6355 ;
6356 return 0;
6357 }
6358 _ACEOF
6359 if ac_fn_c_try_link "$LINENO"; then :
6360 eval $cacheid=yes
6361 else
6362 eval $cacheid=no
6363 fi
6364 rm -f core conftest.err conftest.$ac_objext \
6365 conftest$ac_exeext conftest.$ac_ext
6366 fi
6367
6368
6369 CFLAGS="$xorg_testset_save_CFLAGS"
6370
6371 eval supported=\$$cacheid
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6373 $as_echo "$supported" >&6; }
6374 if test "$supported" = "yes" ; then
6375 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6376 found="yes"
6377 fi
6378 fi
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394 xorg_testset_save_CFLAGS="$CFLAGS"
6395
6396 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6399 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6400 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6401 $as_echo_n "(cached) " >&6
6402 else
6403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404 /* end confdefs.h. */
6405 int i;
6406 _ACEOF
6407 if ac_fn_c_try_compile "$LINENO"; then :
6408 xorg_cv_cc_flag_unknown_warning_option=yes
6409 else
6410 xorg_cv_cc_flag_unknown_warning_option=no
6411 fi
6412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6413 fi
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6415 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6416 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6417 CFLAGS="$xorg_testset_save_CFLAGS"
6418 fi
6419
6420 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6423 fi
6424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6426 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6427 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6428 $as_echo_n "(cached) " >&6
6429 else
6430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6431 /* end confdefs.h. */
6432 int i;
6433 _ACEOF
6434 if ac_fn_c_try_compile "$LINENO"; then :
6435 xorg_cv_cc_flag_unused_command_line_argument=yes
6436 else
6437 xorg_cv_cc_flag_unused_command_line_argument=no
6438 fi
6439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6440 fi
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6442 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6443 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6444 CFLAGS="$xorg_testset_save_CFLAGS"
6445 fi
6446
6447 found="no"
6448
6449 if test $found = "no" ; then
6450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6452 fi
6453
6454 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6456 fi
6457
6458 CFLAGS="$CFLAGS -Wshadow"
6459
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6461 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6462 cacheid=xorg_cv_cc_flag__Wshadow
6463 if eval \${$cacheid+:} false; then :
6464 $as_echo_n "(cached) " >&6
6465 else
6466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h. */
6468 int i;
6469 int
6470 main ()
6471 {
6472
6473 ;
6474 return 0;
6475 }
6476 _ACEOF
6477 if ac_fn_c_try_link "$LINENO"; then :
6478 eval $cacheid=yes
6479 else
6480 eval $cacheid=no
6481 fi
6482 rm -f core conftest.err conftest.$ac_objext \
6483 conftest$ac_exeext conftest.$ac_ext
6484 fi
6485
6486
6487 CFLAGS="$xorg_testset_save_CFLAGS"
6488
6489 eval supported=\$$cacheid
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6491 $as_echo "$supported" >&6; }
6492 if test "$supported" = "yes" ; then
6493 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6494 found="yes"
6495 fi
6496 fi
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512 xorg_testset_save_CFLAGS="$CFLAGS"
6513
6514 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6517 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6518 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6519 $as_echo_n "(cached) " >&6
6520 else
6521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6522 /* end confdefs.h. */
6523 int i;
6524 _ACEOF
6525 if ac_fn_c_try_compile "$LINENO"; then :
6526 xorg_cv_cc_flag_unknown_warning_option=yes
6527 else
6528 xorg_cv_cc_flag_unknown_warning_option=no
6529 fi
6530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531 fi
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6533 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6534 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6535 CFLAGS="$xorg_testset_save_CFLAGS"
6536 fi
6537
6538 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6540 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6541 fi
6542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6544 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6545 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6546 $as_echo_n "(cached) " >&6
6547 else
6548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6549 /* end confdefs.h. */
6550 int i;
6551 _ACEOF
6552 if ac_fn_c_try_compile "$LINENO"; then :
6553 xorg_cv_cc_flag_unused_command_line_argument=yes
6554 else
6555 xorg_cv_cc_flag_unused_command_line_argument=no
6556 fi
6557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6558 fi
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6560 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6561 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6562 CFLAGS="$xorg_testset_save_CFLAGS"
6563 fi
6564
6565 found="no"
6566
6567 if test $found = "no" ; then
6568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6569 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6570 fi
6571
6572 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6574 fi
6575
6576 CFLAGS="$CFLAGS -Wmissing-noreturn"
6577
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6579 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6580 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6581 if eval \${$cacheid+:} false; then :
6582 $as_echo_n "(cached) " >&6
6583 else
6584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6585 /* end confdefs.h. */
6586 int i;
6587 int
6588 main ()
6589 {
6590
6591 ;
6592 return 0;
6593 }
6594 _ACEOF
6595 if ac_fn_c_try_link "$LINENO"; then :
6596 eval $cacheid=yes
6597 else
6598 eval $cacheid=no
6599 fi
6600 rm -f core conftest.err conftest.$ac_objext \
6601 conftest$ac_exeext conftest.$ac_ext
6602 fi
6603
6604
6605 CFLAGS="$xorg_testset_save_CFLAGS"
6606
6607 eval supported=\$$cacheid
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6609 $as_echo "$supported" >&6; }
6610 if test "$supported" = "yes" ; then
6611 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6612 found="yes"
6613 fi
6614 fi
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630 xorg_testset_save_CFLAGS="$CFLAGS"
6631
6632 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6635 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6636 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6637 $as_echo_n "(cached) " >&6
6638 else
6639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640 /* end confdefs.h. */
6641 int i;
6642 _ACEOF
6643 if ac_fn_c_try_compile "$LINENO"; then :
6644 xorg_cv_cc_flag_unknown_warning_option=yes
6645 else
6646 xorg_cv_cc_flag_unknown_warning_option=no
6647 fi
6648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6649 fi
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6651 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6652 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6653 CFLAGS="$xorg_testset_save_CFLAGS"
6654 fi
6655
6656 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6659 fi
6660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6662 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6663 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6664 $as_echo_n "(cached) " >&6
6665 else
6666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6667 /* end confdefs.h. */
6668 int i;
6669 _ACEOF
6670 if ac_fn_c_try_compile "$LINENO"; then :
6671 xorg_cv_cc_flag_unused_command_line_argument=yes
6672 else
6673 xorg_cv_cc_flag_unused_command_line_argument=no
6674 fi
6675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6676 fi
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6678 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6679 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6680 CFLAGS="$xorg_testset_save_CFLAGS"
6681 fi
6682
6683 found="no"
6684
6685 if test $found = "no" ; then
6686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6688 fi
6689
6690 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6692 fi
6693
6694 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6695
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6697 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6698 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6699 if eval \${$cacheid+:} false; then :
6700 $as_echo_n "(cached) " >&6
6701 else
6702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703 /* end confdefs.h. */
6704 int i;
6705 int
6706 main ()
6707 {
6708
6709 ;
6710 return 0;
6711 }
6712 _ACEOF
6713 if ac_fn_c_try_link "$LINENO"; then :
6714 eval $cacheid=yes
6715 else
6716 eval $cacheid=no
6717 fi
6718 rm -f core conftest.err conftest.$ac_objext \
6719 conftest$ac_exeext conftest.$ac_ext
6720 fi
6721
6722
6723 CFLAGS="$xorg_testset_save_CFLAGS"
6724
6725 eval supported=\$$cacheid
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6727 $as_echo "$supported" >&6; }
6728 if test "$supported" = "yes" ; then
6729 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6730 found="yes"
6731 fi
6732 fi
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748 xorg_testset_save_CFLAGS="$CFLAGS"
6749
6750 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6753 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6754 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6755 $as_echo_n "(cached) " >&6
6756 else
6757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758 /* end confdefs.h. */
6759 int i;
6760 _ACEOF
6761 if ac_fn_c_try_compile "$LINENO"; then :
6762 xorg_cv_cc_flag_unknown_warning_option=yes
6763 else
6764 xorg_cv_cc_flag_unknown_warning_option=no
6765 fi
6766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6767 fi
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6769 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6770 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6771 CFLAGS="$xorg_testset_save_CFLAGS"
6772 fi
6773
6774 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6777 fi
6778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6780 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6781 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6782 $as_echo_n "(cached) " >&6
6783 else
6784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h. */
6786 int i;
6787 _ACEOF
6788 if ac_fn_c_try_compile "$LINENO"; then :
6789 xorg_cv_cc_flag_unused_command_line_argument=yes
6790 else
6791 xorg_cv_cc_flag_unused_command_line_argument=no
6792 fi
6793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6794 fi
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6796 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6797 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6798 CFLAGS="$xorg_testset_save_CFLAGS"
6799 fi
6800
6801 found="no"
6802
6803 if test $found = "no" ; then
6804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6805 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6806 fi
6807
6808 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6810 fi
6811
6812 CFLAGS="$CFLAGS -Wredundant-decls"
6813
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6815 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6816 cacheid=xorg_cv_cc_flag__Wredundant_decls
6817 if eval \${$cacheid+:} false; then :
6818 $as_echo_n "(cached) " >&6
6819 else
6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821 /* end confdefs.h. */
6822 int i;
6823 int
6824 main ()
6825 {
6826
6827 ;
6828 return 0;
6829 }
6830 _ACEOF
6831 if ac_fn_c_try_link "$LINENO"; then :
6832 eval $cacheid=yes
6833 else
6834 eval $cacheid=no
6835 fi
6836 rm -f core conftest.err conftest.$ac_objext \
6837 conftest$ac_exeext conftest.$ac_ext
6838 fi
6839
6840
6841 CFLAGS="$xorg_testset_save_CFLAGS"
6842
6843 eval supported=\$$cacheid
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6845 $as_echo "$supported" >&6; }
6846 if test "$supported" = "yes" ; then
6847 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6848 found="yes"
6849 fi
6850 fi
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866 xorg_testset_save_CFLAGS="$CFLAGS"
6867
6868 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6871 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6872 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6873 $as_echo_n "(cached) " >&6
6874 else
6875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6876 /* end confdefs.h. */
6877 int i;
6878 _ACEOF
6879 if ac_fn_c_try_compile "$LINENO"; then :
6880 xorg_cv_cc_flag_unknown_warning_option=yes
6881 else
6882 xorg_cv_cc_flag_unknown_warning_option=no
6883 fi
6884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6885 fi
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6887 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6888 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6889 CFLAGS="$xorg_testset_save_CFLAGS"
6890 fi
6891
6892 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6895 fi
6896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6898 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6899 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6900 $as_echo_n "(cached) " >&6
6901 else
6902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903 /* end confdefs.h. */
6904 int i;
6905 _ACEOF
6906 if ac_fn_c_try_compile "$LINENO"; then :
6907 xorg_cv_cc_flag_unused_command_line_argument=yes
6908 else
6909 xorg_cv_cc_flag_unused_command_line_argument=no
6910 fi
6911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6912 fi
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6914 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6915 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6916 CFLAGS="$xorg_testset_save_CFLAGS"
6917 fi
6918
6919 found="no"
6920
6921 if test $found = "no" ; then
6922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6924 fi
6925
6926 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6928 fi
6929
6930 CFLAGS="$CFLAGS -Wlogical-op"
6931
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6933 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6934 cacheid=xorg_cv_cc_flag__Wlogical_op
6935 if eval \${$cacheid+:} false; then :
6936 $as_echo_n "(cached) " >&6
6937 else
6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939 /* end confdefs.h. */
6940 int i;
6941 int
6942 main ()
6943 {
6944
6945 ;
6946 return 0;
6947 }
6948 _ACEOF
6949 if ac_fn_c_try_link "$LINENO"; then :
6950 eval $cacheid=yes
6951 else
6952 eval $cacheid=no
6953 fi
6954 rm -f core conftest.err conftest.$ac_objext \
6955 conftest$ac_exeext conftest.$ac_ext
6956 fi
6957
6958
6959 CFLAGS="$xorg_testset_save_CFLAGS"
6960
6961 eval supported=\$$cacheid
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6963 $as_echo "$supported" >&6; }
6964 if test "$supported" = "yes" ; then
6965 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6966 found="yes"
6967 fi
6968 fi
6969
6970
6971
6972 # These are currently disabled because they are noisy. They will be enabled
6973 # in the future once the codebase is sufficiently modernized to silence
6974 # them. For now, I don't want them to drown out the other warnings.
6975 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6976 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6977 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6978
6979 # Turn some warnings into errors, so we don't accidently get successful builds
6980 # when there are problems that should be fixed.
6981
6982 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996 xorg_testset_save_CFLAGS="$CFLAGS"
6997
6998 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6999 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7001 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7002 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7003 $as_echo_n "(cached) " >&6
7004 else
7005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006 /* end confdefs.h. */
7007 int i;
7008 _ACEOF
7009 if ac_fn_c_try_compile "$LINENO"; then :
7010 xorg_cv_cc_flag_unknown_warning_option=yes
7011 else
7012 xorg_cv_cc_flag_unknown_warning_option=no
7013 fi
7014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7015 fi
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7017 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7018 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7019 CFLAGS="$xorg_testset_save_CFLAGS"
7020 fi
7021
7022 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7025 fi
7026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7028 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7029 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7030 $as_echo_n "(cached) " >&6
7031 else
7032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7033 /* end confdefs.h. */
7034 int i;
7035 _ACEOF
7036 if ac_fn_c_try_compile "$LINENO"; then :
7037 xorg_cv_cc_flag_unused_command_line_argument=yes
7038 else
7039 xorg_cv_cc_flag_unused_command_line_argument=no
7040 fi
7041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7042 fi
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7044 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7045 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7046 CFLAGS="$xorg_testset_save_CFLAGS"
7047 fi
7048
7049 found="no"
7050
7051 if test $found = "no" ; then
7052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7053 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7054 fi
7055
7056 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7058 fi
7059
7060 CFLAGS="$CFLAGS -Werror=implicit"
7061
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7063 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7064 cacheid=xorg_cv_cc_flag__Werror_implicit
7065 if eval \${$cacheid+:} false; then :
7066 $as_echo_n "(cached) " >&6
7067 else
7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h. */
7070 int i;
7071 int
7072 main ()
7073 {
7074
7075 ;
7076 return 0;
7077 }
7078 _ACEOF
7079 if ac_fn_c_try_link "$LINENO"; then :
7080 eval $cacheid=yes
7081 else
7082 eval $cacheid=no
7083 fi
7084 rm -f core conftest.err conftest.$ac_objext \
7085 conftest$ac_exeext conftest.$ac_ext
7086 fi
7087
7088
7089 CFLAGS="$xorg_testset_save_CFLAGS"
7090
7091 eval supported=\$$cacheid
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7093 $as_echo "$supported" >&6; }
7094 if test "$supported" = "yes" ; then
7095 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7096 found="yes"
7097 fi
7098 fi
7099
7100 if test $found = "no" ; then
7101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7103 fi
7104
7105 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7107 fi
7108
7109 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7110
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7112 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7113 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7114 if eval \${$cacheid+:} false; then :
7115 $as_echo_n "(cached) " >&6
7116 else
7117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7118 /* end confdefs.h. */
7119 int i;
7120 int
7121 main ()
7122 {
7123
7124 ;
7125 return 0;
7126 }
7127 _ACEOF
7128 if ac_fn_c_try_link "$LINENO"; then :
7129 eval $cacheid=yes
7130 else
7131 eval $cacheid=no
7132 fi
7133 rm -f core conftest.err conftest.$ac_objext \
7134 conftest$ac_exeext conftest.$ac_ext
7135 fi
7136
7137
7138 CFLAGS="$xorg_testset_save_CFLAGS"
7139
7140 eval supported=\$$cacheid
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7142 $as_echo "$supported" >&6; }
7143 if test "$supported" = "yes" ; then
7144 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7145 found="yes"
7146 fi
7147 fi
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163 xorg_testset_save_CFLAGS="$CFLAGS"
7164
7165 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7166 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7168 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7169 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7170 $as_echo_n "(cached) " >&6
7171 else
7172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173 /* end confdefs.h. */
7174 int i;
7175 _ACEOF
7176 if ac_fn_c_try_compile "$LINENO"; then :
7177 xorg_cv_cc_flag_unknown_warning_option=yes
7178 else
7179 xorg_cv_cc_flag_unknown_warning_option=no
7180 fi
7181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7182 fi
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7184 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7185 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7186 CFLAGS="$xorg_testset_save_CFLAGS"
7187 fi
7188
7189 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7191 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7192 fi
7193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7195 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7196 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7197 $as_echo_n "(cached) " >&6
7198 else
7199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7200 /* end confdefs.h. */
7201 int i;
7202 _ACEOF
7203 if ac_fn_c_try_compile "$LINENO"; then :
7204 xorg_cv_cc_flag_unused_command_line_argument=yes
7205 else
7206 xorg_cv_cc_flag_unused_command_line_argument=no
7207 fi
7208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7209 fi
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7211 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7212 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7213 CFLAGS="$xorg_testset_save_CFLAGS"
7214 fi
7215
7216 found="no"
7217
7218 if test $found = "no" ; then
7219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7221 fi
7222
7223 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7225 fi
7226
7227 CFLAGS="$CFLAGS -Werror=nonnull"
7228
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7230 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7231 cacheid=xorg_cv_cc_flag__Werror_nonnull
7232 if eval \${$cacheid+:} false; then :
7233 $as_echo_n "(cached) " >&6
7234 else
7235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236 /* end confdefs.h. */
7237 int i;
7238 int
7239 main ()
7240 {
7241
7242 ;
7243 return 0;
7244 }
7245 _ACEOF
7246 if ac_fn_c_try_link "$LINENO"; then :
7247 eval $cacheid=yes
7248 else
7249 eval $cacheid=no
7250 fi
7251 rm -f core conftest.err conftest.$ac_objext \
7252 conftest$ac_exeext conftest.$ac_ext
7253 fi
7254
7255
7256 CFLAGS="$xorg_testset_save_CFLAGS"
7257
7258 eval supported=\$$cacheid
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7260 $as_echo "$supported" >&6; }
7261 if test "$supported" = "yes" ; then
7262 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7263 found="yes"
7264 fi
7265 fi
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281 xorg_testset_save_CFLAGS="$CFLAGS"
7282
7283 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7284 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7286 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7287 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7288 $as_echo_n "(cached) " >&6
7289 else
7290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291 /* end confdefs.h. */
7292 int i;
7293 _ACEOF
7294 if ac_fn_c_try_compile "$LINENO"; then :
7295 xorg_cv_cc_flag_unknown_warning_option=yes
7296 else
7297 xorg_cv_cc_flag_unknown_warning_option=no
7298 fi
7299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7300 fi
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7302 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7303 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7304 CFLAGS="$xorg_testset_save_CFLAGS"
7305 fi
7306
7307 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7308 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7309 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7310 fi
7311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7313 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7314 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7315 $as_echo_n "(cached) " >&6
7316 else
7317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7318 /* end confdefs.h. */
7319 int i;
7320 _ACEOF
7321 if ac_fn_c_try_compile "$LINENO"; then :
7322 xorg_cv_cc_flag_unused_command_line_argument=yes
7323 else
7324 xorg_cv_cc_flag_unused_command_line_argument=no
7325 fi
7326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7327 fi
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7329 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7330 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7331 CFLAGS="$xorg_testset_save_CFLAGS"
7332 fi
7333
7334 found="no"
7335
7336 if test $found = "no" ; then
7337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7339 fi
7340
7341 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7343 fi
7344
7345 CFLAGS="$CFLAGS -Werror=init-self"
7346
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7348 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7349 cacheid=xorg_cv_cc_flag__Werror_init_self
7350 if eval \${$cacheid+:} false; then :
7351 $as_echo_n "(cached) " >&6
7352 else
7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354 /* end confdefs.h. */
7355 int i;
7356 int
7357 main ()
7358 {
7359
7360 ;
7361 return 0;
7362 }
7363 _ACEOF
7364 if ac_fn_c_try_link "$LINENO"; then :
7365 eval $cacheid=yes
7366 else
7367 eval $cacheid=no
7368 fi
7369 rm -f core conftest.err conftest.$ac_objext \
7370 conftest$ac_exeext conftest.$ac_ext
7371 fi
7372
7373
7374 CFLAGS="$xorg_testset_save_CFLAGS"
7375
7376 eval supported=\$$cacheid
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7378 $as_echo "$supported" >&6; }
7379 if test "$supported" = "yes" ; then
7380 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7381 found="yes"
7382 fi
7383 fi
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399 xorg_testset_save_CFLAGS="$CFLAGS"
7400
7401 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7402 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7404 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7405 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7406 $as_echo_n "(cached) " >&6
7407 else
7408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7409 /* end confdefs.h. */
7410 int i;
7411 _ACEOF
7412 if ac_fn_c_try_compile "$LINENO"; then :
7413 xorg_cv_cc_flag_unknown_warning_option=yes
7414 else
7415 xorg_cv_cc_flag_unknown_warning_option=no
7416 fi
7417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7418 fi
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7420 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7421 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7422 CFLAGS="$xorg_testset_save_CFLAGS"
7423 fi
7424
7425 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7428 fi
7429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7431 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7432 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7433 $as_echo_n "(cached) " >&6
7434 else
7435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436 /* end confdefs.h. */
7437 int i;
7438 _ACEOF
7439 if ac_fn_c_try_compile "$LINENO"; then :
7440 xorg_cv_cc_flag_unused_command_line_argument=yes
7441 else
7442 xorg_cv_cc_flag_unused_command_line_argument=no
7443 fi
7444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7445 fi
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7447 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7448 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7449 CFLAGS="$xorg_testset_save_CFLAGS"
7450 fi
7451
7452 found="no"
7453
7454 if test $found = "no" ; then
7455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7457 fi
7458
7459 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7461 fi
7462
7463 CFLAGS="$CFLAGS -Werror=main"
7464
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7466 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7467 cacheid=xorg_cv_cc_flag__Werror_main
7468 if eval \${$cacheid+:} false; then :
7469 $as_echo_n "(cached) " >&6
7470 else
7471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7472 /* end confdefs.h. */
7473 int i;
7474 int
7475 main ()
7476 {
7477
7478 ;
7479 return 0;
7480 }
7481 _ACEOF
7482 if ac_fn_c_try_link "$LINENO"; then :
7483 eval $cacheid=yes
7484 else
7485 eval $cacheid=no
7486 fi
7487 rm -f core conftest.err conftest.$ac_objext \
7488 conftest$ac_exeext conftest.$ac_ext
7489 fi
7490
7491
7492 CFLAGS="$xorg_testset_save_CFLAGS"
7493
7494 eval supported=\$$cacheid
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7496 $as_echo "$supported" >&6; }
7497 if test "$supported" = "yes" ; then
7498 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7499 found="yes"
7500 fi
7501 fi
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517 xorg_testset_save_CFLAGS="$CFLAGS"
7518
7519 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7522 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7523 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7524 $as_echo_n "(cached) " >&6
7525 else
7526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527 /* end confdefs.h. */
7528 int i;
7529 _ACEOF
7530 if ac_fn_c_try_compile "$LINENO"; then :
7531 xorg_cv_cc_flag_unknown_warning_option=yes
7532 else
7533 xorg_cv_cc_flag_unknown_warning_option=no
7534 fi
7535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7536 fi
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7538 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7539 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7540 CFLAGS="$xorg_testset_save_CFLAGS"
7541 fi
7542
7543 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7545 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7546 fi
7547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7549 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7550 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7551 $as_echo_n "(cached) " >&6
7552 else
7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h. */
7555 int i;
7556 _ACEOF
7557 if ac_fn_c_try_compile "$LINENO"; then :
7558 xorg_cv_cc_flag_unused_command_line_argument=yes
7559 else
7560 xorg_cv_cc_flag_unused_command_line_argument=no
7561 fi
7562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7563 fi
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7565 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7566 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7567 CFLAGS="$xorg_testset_save_CFLAGS"
7568 fi
7569
7570 found="no"
7571
7572 if test $found = "no" ; then
7573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7575 fi
7576
7577 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7579 fi
7580
7581 CFLAGS="$CFLAGS -Werror=missing-braces"
7582
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7584 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7585 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7586 if eval \${$cacheid+:} false; then :
7587 $as_echo_n "(cached) " >&6
7588 else
7589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590 /* end confdefs.h. */
7591 int i;
7592 int
7593 main ()
7594 {
7595
7596 ;
7597 return 0;
7598 }
7599 _ACEOF
7600 if ac_fn_c_try_link "$LINENO"; then :
7601 eval $cacheid=yes
7602 else
7603 eval $cacheid=no
7604 fi
7605 rm -f core conftest.err conftest.$ac_objext \
7606 conftest$ac_exeext conftest.$ac_ext
7607 fi
7608
7609
7610 CFLAGS="$xorg_testset_save_CFLAGS"
7611
7612 eval supported=\$$cacheid
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7614 $as_echo "$supported" >&6; }
7615 if test "$supported" = "yes" ; then
7616 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7617 found="yes"
7618 fi
7619 fi
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635 xorg_testset_save_CFLAGS="$CFLAGS"
7636
7637 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7640 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7641 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7642 $as_echo_n "(cached) " >&6
7643 else
7644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7645 /* end confdefs.h. */
7646 int i;
7647 _ACEOF
7648 if ac_fn_c_try_compile "$LINENO"; then :
7649 xorg_cv_cc_flag_unknown_warning_option=yes
7650 else
7651 xorg_cv_cc_flag_unknown_warning_option=no
7652 fi
7653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7654 fi
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7656 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7657 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7658 CFLAGS="$xorg_testset_save_CFLAGS"
7659 fi
7660
7661 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7664 fi
7665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7667 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7668 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7669 $as_echo_n "(cached) " >&6
7670 else
7671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7672 /* end confdefs.h. */
7673 int i;
7674 _ACEOF
7675 if ac_fn_c_try_compile "$LINENO"; then :
7676 xorg_cv_cc_flag_unused_command_line_argument=yes
7677 else
7678 xorg_cv_cc_flag_unused_command_line_argument=no
7679 fi
7680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7681 fi
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7683 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7684 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7685 CFLAGS="$xorg_testset_save_CFLAGS"
7686 fi
7687
7688 found="no"
7689
7690 if test $found = "no" ; then
7691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7693 fi
7694
7695 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7697 fi
7698
7699 CFLAGS="$CFLAGS -Werror=sequence-point"
7700
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7702 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7703 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7704 if eval \${$cacheid+:} false; then :
7705 $as_echo_n "(cached) " >&6
7706 else
7707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7708 /* end confdefs.h. */
7709 int i;
7710 int
7711 main ()
7712 {
7713
7714 ;
7715 return 0;
7716 }
7717 _ACEOF
7718 if ac_fn_c_try_link "$LINENO"; then :
7719 eval $cacheid=yes
7720 else
7721 eval $cacheid=no
7722 fi
7723 rm -f core conftest.err conftest.$ac_objext \
7724 conftest$ac_exeext conftest.$ac_ext
7725 fi
7726
7727
7728 CFLAGS="$xorg_testset_save_CFLAGS"
7729
7730 eval supported=\$$cacheid
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7732 $as_echo "$supported" >&6; }
7733 if test "$supported" = "yes" ; then
7734 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7735 found="yes"
7736 fi
7737 fi
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753 xorg_testset_save_CFLAGS="$CFLAGS"
7754
7755 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7758 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7759 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7760 $as_echo_n "(cached) " >&6
7761 else
7762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763 /* end confdefs.h. */
7764 int i;
7765 _ACEOF
7766 if ac_fn_c_try_compile "$LINENO"; then :
7767 xorg_cv_cc_flag_unknown_warning_option=yes
7768 else
7769 xorg_cv_cc_flag_unknown_warning_option=no
7770 fi
7771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7772 fi
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7774 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7775 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7776 CFLAGS="$xorg_testset_save_CFLAGS"
7777 fi
7778
7779 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7782 fi
7783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7785 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7786 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7787 $as_echo_n "(cached) " >&6
7788 else
7789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790 /* end confdefs.h. */
7791 int i;
7792 _ACEOF
7793 if ac_fn_c_try_compile "$LINENO"; then :
7794 xorg_cv_cc_flag_unused_command_line_argument=yes
7795 else
7796 xorg_cv_cc_flag_unused_command_line_argument=no
7797 fi
7798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7799 fi
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7801 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7802 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7803 CFLAGS="$xorg_testset_save_CFLAGS"
7804 fi
7805
7806 found="no"
7807
7808 if test $found = "no" ; then
7809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7811 fi
7812
7813 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7815 fi
7816
7817 CFLAGS="$CFLAGS -Werror=return-type"
7818
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7820 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7821 cacheid=xorg_cv_cc_flag__Werror_return_type
7822 if eval \${$cacheid+:} false; then :
7823 $as_echo_n "(cached) " >&6
7824 else
7825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7826 /* end confdefs.h. */
7827 int i;
7828 int
7829 main ()
7830 {
7831
7832 ;
7833 return 0;
7834 }
7835 _ACEOF
7836 if ac_fn_c_try_link "$LINENO"; then :
7837 eval $cacheid=yes
7838 else
7839 eval $cacheid=no
7840 fi
7841 rm -f core conftest.err conftest.$ac_objext \
7842 conftest$ac_exeext conftest.$ac_ext
7843 fi
7844
7845
7846 CFLAGS="$xorg_testset_save_CFLAGS"
7847
7848 eval supported=\$$cacheid
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7850 $as_echo "$supported" >&6; }
7851 if test "$supported" = "yes" ; then
7852 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7853 found="yes"
7854 fi
7855 fi
7856
7857 if test $found = "no" ; then
7858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7859 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7860 fi
7861
7862 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7864 fi
7865
7866 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7867
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7869 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7870 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7871 if eval \${$cacheid+:} false; then :
7872 $as_echo_n "(cached) " >&6
7873 else
7874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7875 /* end confdefs.h. */
7876 int i;
7877 int
7878 main ()
7879 {
7880
7881 ;
7882 return 0;
7883 }
7884 _ACEOF
7885 if ac_fn_c_try_link "$LINENO"; then :
7886 eval $cacheid=yes
7887 else
7888 eval $cacheid=no
7889 fi
7890 rm -f core conftest.err conftest.$ac_objext \
7891 conftest$ac_exeext conftest.$ac_ext
7892 fi
7893
7894
7895 CFLAGS="$xorg_testset_save_CFLAGS"
7896
7897 eval supported=\$$cacheid
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7899 $as_echo "$supported" >&6; }
7900 if test "$supported" = "yes" ; then
7901 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7902 found="yes"
7903 fi
7904 fi
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920 xorg_testset_save_CFLAGS="$CFLAGS"
7921
7922 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7925 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7926 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7927 $as_echo_n "(cached) " >&6
7928 else
7929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930 /* end confdefs.h. */
7931 int i;
7932 _ACEOF
7933 if ac_fn_c_try_compile "$LINENO"; then :
7934 xorg_cv_cc_flag_unknown_warning_option=yes
7935 else
7936 xorg_cv_cc_flag_unknown_warning_option=no
7937 fi
7938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7939 fi
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7941 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7942 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7943 CFLAGS="$xorg_testset_save_CFLAGS"
7944 fi
7945
7946 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7949 fi
7950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7952 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7953 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7954 $as_echo_n "(cached) " >&6
7955 else
7956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957 /* end confdefs.h. */
7958 int i;
7959 _ACEOF
7960 if ac_fn_c_try_compile "$LINENO"; then :
7961 xorg_cv_cc_flag_unused_command_line_argument=yes
7962 else
7963 xorg_cv_cc_flag_unused_command_line_argument=no
7964 fi
7965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7966 fi
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7968 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7969 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7970 CFLAGS="$xorg_testset_save_CFLAGS"
7971 fi
7972
7973 found="no"
7974
7975 if test $found = "no" ; then
7976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7978 fi
7979
7980 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7982 fi
7983
7984 CFLAGS="$CFLAGS -Werror=trigraphs"
7985
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7987 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7988 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7989 if eval \${$cacheid+:} false; then :
7990 $as_echo_n "(cached) " >&6
7991 else
7992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7993 /* end confdefs.h. */
7994 int i;
7995 int
7996 main ()
7997 {
7998
7999 ;
8000 return 0;
8001 }
8002 _ACEOF
8003 if ac_fn_c_try_link "$LINENO"; then :
8004 eval $cacheid=yes
8005 else
8006 eval $cacheid=no
8007 fi
8008 rm -f core conftest.err conftest.$ac_objext \
8009 conftest$ac_exeext conftest.$ac_ext
8010 fi
8011
8012
8013 CFLAGS="$xorg_testset_save_CFLAGS"
8014
8015 eval supported=\$$cacheid
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8017 $as_echo "$supported" >&6; }
8018 if test "$supported" = "yes" ; then
8019 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8020 found="yes"
8021 fi
8022 fi
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038 xorg_testset_save_CFLAGS="$CFLAGS"
8039
8040 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8041 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8043 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8044 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8045 $as_echo_n "(cached) " >&6
8046 else
8047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8048 /* end confdefs.h. */
8049 int i;
8050 _ACEOF
8051 if ac_fn_c_try_compile "$LINENO"; then :
8052 xorg_cv_cc_flag_unknown_warning_option=yes
8053 else
8054 xorg_cv_cc_flag_unknown_warning_option=no
8055 fi
8056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8057 fi
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8059 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8060 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8061 CFLAGS="$xorg_testset_save_CFLAGS"
8062 fi
8063
8064 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8067 fi
8068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8070 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8071 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8072 $as_echo_n "(cached) " >&6
8073 else
8074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075 /* end confdefs.h. */
8076 int i;
8077 _ACEOF
8078 if ac_fn_c_try_compile "$LINENO"; then :
8079 xorg_cv_cc_flag_unused_command_line_argument=yes
8080 else
8081 xorg_cv_cc_flag_unused_command_line_argument=no
8082 fi
8083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8084 fi
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8086 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8087 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8088 CFLAGS="$xorg_testset_save_CFLAGS"
8089 fi
8090
8091 found="no"
8092
8093 if test $found = "no" ; then
8094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8095 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8096 fi
8097
8098 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8100 fi
8101
8102 CFLAGS="$CFLAGS -Werror=array-bounds"
8103
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8105 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8106 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8107 if eval \${$cacheid+:} false; then :
8108 $as_echo_n "(cached) " >&6
8109 else
8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111 /* end confdefs.h. */
8112 int i;
8113 int
8114 main ()
8115 {
8116
8117 ;
8118 return 0;
8119 }
8120 _ACEOF
8121 if ac_fn_c_try_link "$LINENO"; then :
8122 eval $cacheid=yes
8123 else
8124 eval $cacheid=no
8125 fi
8126 rm -f core conftest.err conftest.$ac_objext \
8127 conftest$ac_exeext conftest.$ac_ext
8128 fi
8129
8130
8131 CFLAGS="$xorg_testset_save_CFLAGS"
8132
8133 eval supported=\$$cacheid
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8135 $as_echo "$supported" >&6; }
8136 if test "$supported" = "yes" ; then
8137 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8138 found="yes"
8139 fi
8140 fi
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156 xorg_testset_save_CFLAGS="$CFLAGS"
8157
8158 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8159 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8161 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8162 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8163 $as_echo_n "(cached) " >&6
8164 else
8165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166 /* end confdefs.h. */
8167 int i;
8168 _ACEOF
8169 if ac_fn_c_try_compile "$LINENO"; then :
8170 xorg_cv_cc_flag_unknown_warning_option=yes
8171 else
8172 xorg_cv_cc_flag_unknown_warning_option=no
8173 fi
8174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8175 fi
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8177 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8178 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8179 CFLAGS="$xorg_testset_save_CFLAGS"
8180 fi
8181
8182 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8185 fi
8186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8188 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8189 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8190 $as_echo_n "(cached) " >&6
8191 else
8192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8193 /* end confdefs.h. */
8194 int i;
8195 _ACEOF
8196 if ac_fn_c_try_compile "$LINENO"; then :
8197 xorg_cv_cc_flag_unused_command_line_argument=yes
8198 else
8199 xorg_cv_cc_flag_unused_command_line_argument=no
8200 fi
8201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8202 fi
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8204 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8205 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8206 CFLAGS="$xorg_testset_save_CFLAGS"
8207 fi
8208
8209 found="no"
8210
8211 if test $found = "no" ; then
8212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8214 fi
8215
8216 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8218 fi
8219
8220 CFLAGS="$CFLAGS -Werror=write-strings"
8221
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8223 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8224 cacheid=xorg_cv_cc_flag__Werror_write_strings
8225 if eval \${$cacheid+:} false; then :
8226 $as_echo_n "(cached) " >&6
8227 else
8228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229 /* end confdefs.h. */
8230 int i;
8231 int
8232 main ()
8233 {
8234
8235 ;
8236 return 0;
8237 }
8238 _ACEOF
8239 if ac_fn_c_try_link "$LINENO"; then :
8240 eval $cacheid=yes
8241 else
8242 eval $cacheid=no
8243 fi
8244 rm -f core conftest.err conftest.$ac_objext \
8245 conftest$ac_exeext conftest.$ac_ext
8246 fi
8247
8248
8249 CFLAGS="$xorg_testset_save_CFLAGS"
8250
8251 eval supported=\$$cacheid
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8253 $as_echo "$supported" >&6; }
8254 if test "$supported" = "yes" ; then
8255 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8256 found="yes"
8257 fi
8258 fi
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274 xorg_testset_save_CFLAGS="$CFLAGS"
8275
8276 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8277 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8279 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8280 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8281 $as_echo_n "(cached) " >&6
8282 else
8283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8284 /* end confdefs.h. */
8285 int i;
8286 _ACEOF
8287 if ac_fn_c_try_compile "$LINENO"; then :
8288 xorg_cv_cc_flag_unknown_warning_option=yes
8289 else
8290 xorg_cv_cc_flag_unknown_warning_option=no
8291 fi
8292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8293 fi
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8295 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8296 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8297 CFLAGS="$xorg_testset_save_CFLAGS"
8298 fi
8299
8300 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8302 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8303 fi
8304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8306 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8307 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8308 $as_echo_n "(cached) " >&6
8309 else
8310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8311 /* end confdefs.h. */
8312 int i;
8313 _ACEOF
8314 if ac_fn_c_try_compile "$LINENO"; then :
8315 xorg_cv_cc_flag_unused_command_line_argument=yes
8316 else
8317 xorg_cv_cc_flag_unused_command_line_argument=no
8318 fi
8319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8320 fi
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8322 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8323 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8324 CFLAGS="$xorg_testset_save_CFLAGS"
8325 fi
8326
8327 found="no"
8328
8329 if test $found = "no" ; then
8330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8332 fi
8333
8334 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8336 fi
8337
8338 CFLAGS="$CFLAGS -Werror=address"
8339
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8341 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8342 cacheid=xorg_cv_cc_flag__Werror_address
8343 if eval \${$cacheid+:} false; then :
8344 $as_echo_n "(cached) " >&6
8345 else
8346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8347 /* end confdefs.h. */
8348 int i;
8349 int
8350 main ()
8351 {
8352
8353 ;
8354 return 0;
8355 }
8356 _ACEOF
8357 if ac_fn_c_try_link "$LINENO"; then :
8358 eval $cacheid=yes
8359 else
8360 eval $cacheid=no
8361 fi
8362 rm -f core conftest.err conftest.$ac_objext \
8363 conftest$ac_exeext conftest.$ac_ext
8364 fi
8365
8366
8367 CFLAGS="$xorg_testset_save_CFLAGS"
8368
8369 eval supported=\$$cacheid
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8371 $as_echo "$supported" >&6; }
8372 if test "$supported" = "yes" ; then
8373 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8374 found="yes"
8375 fi
8376 fi
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392 xorg_testset_save_CFLAGS="$CFLAGS"
8393
8394 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8395 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8397 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8398 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8399 $as_echo_n "(cached) " >&6
8400 else
8401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8403 int i;
8404 _ACEOF
8405 if ac_fn_c_try_compile "$LINENO"; then :
8406 xorg_cv_cc_flag_unknown_warning_option=yes
8407 else
8408 xorg_cv_cc_flag_unknown_warning_option=no
8409 fi
8410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8411 fi
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8413 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8414 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8415 CFLAGS="$xorg_testset_save_CFLAGS"
8416 fi
8417
8418 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8421 fi
8422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8424 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8425 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8426 $as_echo_n "(cached) " >&6
8427 else
8428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8429 /* end confdefs.h. */
8430 int i;
8431 _ACEOF
8432 if ac_fn_c_try_compile "$LINENO"; then :
8433 xorg_cv_cc_flag_unused_command_line_argument=yes
8434 else
8435 xorg_cv_cc_flag_unused_command_line_argument=no
8436 fi
8437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8438 fi
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8440 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8441 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8442 CFLAGS="$xorg_testset_save_CFLAGS"
8443 fi
8444
8445 found="no"
8446
8447 if test $found = "no" ; then
8448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8449 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8450 fi
8451
8452 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8454 fi
8455
8456 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8457
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8459 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8460 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8461 if eval \${$cacheid+:} false; then :
8462 $as_echo_n "(cached) " >&6
8463 else
8464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8465 /* end confdefs.h. */
8466 int i;
8467 int
8468 main ()
8469 {
8470
8471 ;
8472 return 0;
8473 }
8474 _ACEOF
8475 if ac_fn_c_try_link "$LINENO"; then :
8476 eval $cacheid=yes
8477 else
8478 eval $cacheid=no
8479 fi
8480 rm -f core conftest.err conftest.$ac_objext \
8481 conftest$ac_exeext conftest.$ac_ext
8482 fi
8483
8484
8485 CFLAGS="$xorg_testset_save_CFLAGS"
8486
8487 eval supported=\$$cacheid
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8489 $as_echo "$supported" >&6; }
8490 if test "$supported" = "yes" ; then
8491 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8492 found="yes"
8493 fi
8494 fi
8495
8496 if test $found = "no" ; then
8497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8499 fi
8500
8501 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8503 fi
8504
8505 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8506
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8508 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8509 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8510 if eval \${$cacheid+:} false; then :
8511 $as_echo_n "(cached) " >&6
8512 else
8513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8514 /* end confdefs.h. */
8515 int i;
8516 int
8517 main ()
8518 {
8519
8520 ;
8521 return 0;
8522 }
8523 _ACEOF
8524 if ac_fn_c_try_link "$LINENO"; then :
8525 eval $cacheid=yes
8526 else
8527 eval $cacheid=no
8528 fi
8529 rm -f core conftest.err conftest.$ac_objext \
8530 conftest$ac_exeext conftest.$ac_ext
8531 fi
8532
8533
8534 CFLAGS="$xorg_testset_save_CFLAGS"
8535
8536 eval supported=\$$cacheid
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8538 $as_echo "$supported" >&6; }
8539 if test "$supported" = "yes" ; then
8540 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8541 found="yes"
8542 fi
8543 fi
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559 xorg_testset_save_CFLAGS="$CFLAGS"
8560
8561 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8564 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8565 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8566 $as_echo_n "(cached) " >&6
8567 else
8568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8569 /* end confdefs.h. */
8570 int i;
8571 _ACEOF
8572 if ac_fn_c_try_compile "$LINENO"; then :
8573 xorg_cv_cc_flag_unknown_warning_option=yes
8574 else
8575 xorg_cv_cc_flag_unknown_warning_option=no
8576 fi
8577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8578 fi
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8580 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8581 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8582 CFLAGS="$xorg_testset_save_CFLAGS"
8583 fi
8584
8585 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8588 fi
8589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8591 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8592 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8593 $as_echo_n "(cached) " >&6
8594 else
8595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8596 /* end confdefs.h. */
8597 int i;
8598 _ACEOF
8599 if ac_fn_c_try_compile "$LINENO"; then :
8600 xorg_cv_cc_flag_unused_command_line_argument=yes
8601 else
8602 xorg_cv_cc_flag_unused_command_line_argument=no
8603 fi
8604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8605 fi
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8607 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8608 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8609 CFLAGS="$xorg_testset_save_CFLAGS"
8610 fi
8611
8612 found="no"
8613
8614 if test $found = "no" ; then
8615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8617 fi
8618
8619 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8621 fi
8622
8623 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8624
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8626 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8627 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8628 if eval \${$cacheid+:} false; then :
8629 $as_echo_n "(cached) " >&6
8630 else
8631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8632 /* end confdefs.h. */
8633 int i;
8634 int
8635 main ()
8636 {
8637
8638 ;
8639 return 0;
8640 }
8641 _ACEOF
8642 if ac_fn_c_try_link "$LINENO"; then :
8643 eval $cacheid=yes
8644 else
8645 eval $cacheid=no
8646 fi
8647 rm -f core conftest.err conftest.$ac_objext \
8648 conftest$ac_exeext conftest.$ac_ext
8649 fi
8650
8651
8652 CFLAGS="$xorg_testset_save_CFLAGS"
8653
8654 eval supported=\$$cacheid
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8656 $as_echo "$supported" >&6; }
8657 if test "$supported" = "yes" ; then
8658 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8659 found="yes"
8660 fi
8661 fi
8662
8663 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8664 else
8665 { $as_echo "$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
8666 $as_echo "$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;}
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680 xorg_testset_save_CFLAGS="$CFLAGS"
8681
8682 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8685 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8686 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8687 $as_echo_n "(cached) " >&6
8688 else
8689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690 /* end confdefs.h. */
8691 int i;
8692 _ACEOF
8693 if ac_fn_c_try_compile "$LINENO"; then :
8694 xorg_cv_cc_flag_unknown_warning_option=yes
8695 else
8696 xorg_cv_cc_flag_unknown_warning_option=no
8697 fi
8698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8699 fi
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8701 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8703 CFLAGS="$xorg_testset_save_CFLAGS"
8704 fi
8705
8706 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8708 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8709 fi
8710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8712 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8713 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8714 $as_echo_n "(cached) " >&6
8715 else
8716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8717 /* end confdefs.h. */
8718 int i;
8719 _ACEOF
8720 if ac_fn_c_try_compile "$LINENO"; then :
8721 xorg_cv_cc_flag_unused_command_line_argument=yes
8722 else
8723 xorg_cv_cc_flag_unused_command_line_argument=no
8724 fi
8725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8726 fi
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8728 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8729 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8730 CFLAGS="$xorg_testset_save_CFLAGS"
8731 fi
8732
8733 found="no"
8734
8735 if test $found = "no" ; then
8736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8738 fi
8739
8740 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8742 fi
8743
8744 CFLAGS="$CFLAGS -Wimplicit"
8745
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8747 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8748 cacheid=xorg_cv_cc_flag__Wimplicit
8749 if eval \${$cacheid+:} false; then :
8750 $as_echo_n "(cached) " >&6
8751 else
8752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8753 /* end confdefs.h. */
8754 int i;
8755 int
8756 main ()
8757 {
8758
8759 ;
8760 return 0;
8761 }
8762 _ACEOF
8763 if ac_fn_c_try_link "$LINENO"; then :
8764 eval $cacheid=yes
8765 else
8766 eval $cacheid=no
8767 fi
8768 rm -f core conftest.err conftest.$ac_objext \
8769 conftest$ac_exeext conftest.$ac_ext
8770 fi
8771
8772
8773 CFLAGS="$xorg_testset_save_CFLAGS"
8774
8775 eval supported=\$$cacheid
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8777 $as_echo "$supported" >&6; }
8778 if test "$supported" = "yes" ; then
8779 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8780 found="yes"
8781 fi
8782 fi
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798 xorg_testset_save_CFLAGS="$CFLAGS"
8799
8800 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8803 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8804 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8805 $as_echo_n "(cached) " >&6
8806 else
8807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8808 /* end confdefs.h. */
8809 int i;
8810 _ACEOF
8811 if ac_fn_c_try_compile "$LINENO"; then :
8812 xorg_cv_cc_flag_unknown_warning_option=yes
8813 else
8814 xorg_cv_cc_flag_unknown_warning_option=no
8815 fi
8816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8817 fi
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8819 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8820 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8821 CFLAGS="$xorg_testset_save_CFLAGS"
8822 fi
8823
8824 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8826 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8827 fi
8828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8830 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8831 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8832 $as_echo_n "(cached) " >&6
8833 else
8834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8835 /* end confdefs.h. */
8836 int i;
8837 _ACEOF
8838 if ac_fn_c_try_compile "$LINENO"; then :
8839 xorg_cv_cc_flag_unused_command_line_argument=yes
8840 else
8841 xorg_cv_cc_flag_unused_command_line_argument=no
8842 fi
8843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8844 fi
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8846 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8848 CFLAGS="$xorg_testset_save_CFLAGS"
8849 fi
8850
8851 found="no"
8852
8853 if test $found = "no" ; then
8854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8856 fi
8857
8858 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8860 fi
8861
8862 CFLAGS="$CFLAGS -Wnonnull"
8863
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8865 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8866 cacheid=xorg_cv_cc_flag__Wnonnull
8867 if eval \${$cacheid+:} false; then :
8868 $as_echo_n "(cached) " >&6
8869 else
8870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8871 /* end confdefs.h. */
8872 int i;
8873 int
8874 main ()
8875 {
8876
8877 ;
8878 return 0;
8879 }
8880 _ACEOF
8881 if ac_fn_c_try_link "$LINENO"; then :
8882 eval $cacheid=yes
8883 else
8884 eval $cacheid=no
8885 fi
8886 rm -f core conftest.err conftest.$ac_objext \
8887 conftest$ac_exeext conftest.$ac_ext
8888 fi
8889
8890
8891 CFLAGS="$xorg_testset_save_CFLAGS"
8892
8893 eval supported=\$$cacheid
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8895 $as_echo "$supported" >&6; }
8896 if test "$supported" = "yes" ; then
8897 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8898 found="yes"
8899 fi
8900 fi
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916 xorg_testset_save_CFLAGS="$CFLAGS"
8917
8918 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8921 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8922 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8923 $as_echo_n "(cached) " >&6
8924 else
8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8927 int i;
8928 _ACEOF
8929 if ac_fn_c_try_compile "$LINENO"; then :
8930 xorg_cv_cc_flag_unknown_warning_option=yes
8931 else
8932 xorg_cv_cc_flag_unknown_warning_option=no
8933 fi
8934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8935 fi
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8937 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8938 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8939 CFLAGS="$xorg_testset_save_CFLAGS"
8940 fi
8941
8942 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8944 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8945 fi
8946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8948 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8949 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8950 $as_echo_n "(cached) " >&6
8951 else
8952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8953 /* end confdefs.h. */
8954 int i;
8955 _ACEOF
8956 if ac_fn_c_try_compile "$LINENO"; then :
8957 xorg_cv_cc_flag_unused_command_line_argument=yes
8958 else
8959 xorg_cv_cc_flag_unused_command_line_argument=no
8960 fi
8961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8962 fi
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8964 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8965 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8966 CFLAGS="$xorg_testset_save_CFLAGS"
8967 fi
8968
8969 found="no"
8970
8971 if test $found = "no" ; then
8972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8974 fi
8975
8976 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8978 fi
8979
8980 CFLAGS="$CFLAGS -Winit-self"
8981
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8983 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8984 cacheid=xorg_cv_cc_flag__Winit_self
8985 if eval \${$cacheid+:} false; then :
8986 $as_echo_n "(cached) " >&6
8987 else
8988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8989 /* end confdefs.h. */
8990 int i;
8991 int
8992 main ()
8993 {
8994
8995 ;
8996 return 0;
8997 }
8998 _ACEOF
8999 if ac_fn_c_try_link "$LINENO"; then :
9000 eval $cacheid=yes
9001 else
9002 eval $cacheid=no
9003 fi
9004 rm -f core conftest.err conftest.$ac_objext \
9005 conftest$ac_exeext conftest.$ac_ext
9006 fi
9007
9008
9009 CFLAGS="$xorg_testset_save_CFLAGS"
9010
9011 eval supported=\$$cacheid
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9013 $as_echo "$supported" >&6; }
9014 if test "$supported" = "yes" ; then
9015 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9016 found="yes"
9017 fi
9018 fi
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034 xorg_testset_save_CFLAGS="$CFLAGS"
9035
9036 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9039 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9040 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9041 $as_echo_n "(cached) " >&6
9042 else
9043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044 /* end confdefs.h. */
9045 int i;
9046 _ACEOF
9047 if ac_fn_c_try_compile "$LINENO"; then :
9048 xorg_cv_cc_flag_unknown_warning_option=yes
9049 else
9050 xorg_cv_cc_flag_unknown_warning_option=no
9051 fi
9052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9053 fi
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9055 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9056 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9057 CFLAGS="$xorg_testset_save_CFLAGS"
9058 fi
9059
9060 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9062 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9063 fi
9064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9066 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9067 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9068 $as_echo_n "(cached) " >&6
9069 else
9070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9071 /* end confdefs.h. */
9072 int i;
9073 _ACEOF
9074 if ac_fn_c_try_compile "$LINENO"; then :
9075 xorg_cv_cc_flag_unused_command_line_argument=yes
9076 else
9077 xorg_cv_cc_flag_unused_command_line_argument=no
9078 fi
9079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9080 fi
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9082 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9083 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9084 CFLAGS="$xorg_testset_save_CFLAGS"
9085 fi
9086
9087 found="no"
9088
9089 if test $found = "no" ; then
9090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9092 fi
9093
9094 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9096 fi
9097
9098 CFLAGS="$CFLAGS -Wmain"
9099
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9101 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
9102 cacheid=xorg_cv_cc_flag__Wmain
9103 if eval \${$cacheid+:} false; then :
9104 $as_echo_n "(cached) " >&6
9105 else
9106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9107 /* end confdefs.h. */
9108 int i;
9109 int
9110 main ()
9111 {
9112
9113 ;
9114 return 0;
9115 }
9116 _ACEOF
9117 if ac_fn_c_try_link "$LINENO"; then :
9118 eval $cacheid=yes
9119 else
9120 eval $cacheid=no
9121 fi
9122 rm -f core conftest.err conftest.$ac_objext \
9123 conftest$ac_exeext conftest.$ac_ext
9124 fi
9125
9126
9127 CFLAGS="$xorg_testset_save_CFLAGS"
9128
9129 eval supported=\$$cacheid
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9131 $as_echo "$supported" >&6; }
9132 if test "$supported" = "yes" ; then
9133 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9134 found="yes"
9135 fi
9136 fi
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152 xorg_testset_save_CFLAGS="$CFLAGS"
9153
9154 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9157 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9158 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9159 $as_echo_n "(cached) " >&6
9160 else
9161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9162 /* end confdefs.h. */
9163 int i;
9164 _ACEOF
9165 if ac_fn_c_try_compile "$LINENO"; then :
9166 xorg_cv_cc_flag_unknown_warning_option=yes
9167 else
9168 xorg_cv_cc_flag_unknown_warning_option=no
9169 fi
9170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9171 fi
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9173 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9174 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9175 CFLAGS="$xorg_testset_save_CFLAGS"
9176 fi
9177
9178 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9181 fi
9182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9184 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9185 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9186 $as_echo_n "(cached) " >&6
9187 else
9188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9189 /* end confdefs.h. */
9190 int i;
9191 _ACEOF
9192 if ac_fn_c_try_compile "$LINENO"; then :
9193 xorg_cv_cc_flag_unused_command_line_argument=yes
9194 else
9195 xorg_cv_cc_flag_unused_command_line_argument=no
9196 fi
9197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9198 fi
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9200 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9201 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9202 CFLAGS="$xorg_testset_save_CFLAGS"
9203 fi
9204
9205 found="no"
9206
9207 if test $found = "no" ; then
9208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9210 fi
9211
9212 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9214 fi
9215
9216 CFLAGS="$CFLAGS -Wmissing-braces"
9217
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9219 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9220 cacheid=xorg_cv_cc_flag__Wmissing_braces
9221 if eval \${$cacheid+:} false; then :
9222 $as_echo_n "(cached) " >&6
9223 else
9224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225 /* end confdefs.h. */
9226 int i;
9227 int
9228 main ()
9229 {
9230
9231 ;
9232 return 0;
9233 }
9234 _ACEOF
9235 if ac_fn_c_try_link "$LINENO"; then :
9236 eval $cacheid=yes
9237 else
9238 eval $cacheid=no
9239 fi
9240 rm -f core conftest.err conftest.$ac_objext \
9241 conftest$ac_exeext conftest.$ac_ext
9242 fi
9243
9244
9245 CFLAGS="$xorg_testset_save_CFLAGS"
9246
9247 eval supported=\$$cacheid
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9249 $as_echo "$supported" >&6; }
9250 if test "$supported" = "yes" ; then
9251 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9252 found="yes"
9253 fi
9254 fi
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270 xorg_testset_save_CFLAGS="$CFLAGS"
9271
9272 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9275 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9276 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9277 $as_echo_n "(cached) " >&6
9278 else
9279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9280 /* end confdefs.h. */
9281 int i;
9282 _ACEOF
9283 if ac_fn_c_try_compile "$LINENO"; then :
9284 xorg_cv_cc_flag_unknown_warning_option=yes
9285 else
9286 xorg_cv_cc_flag_unknown_warning_option=no
9287 fi
9288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9289 fi
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9291 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9292 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9293 CFLAGS="$xorg_testset_save_CFLAGS"
9294 fi
9295
9296 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9298 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9299 fi
9300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9302 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9303 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9304 $as_echo_n "(cached) " >&6
9305 else
9306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9307 /* end confdefs.h. */
9308 int i;
9309 _ACEOF
9310 if ac_fn_c_try_compile "$LINENO"; then :
9311 xorg_cv_cc_flag_unused_command_line_argument=yes
9312 else
9313 xorg_cv_cc_flag_unused_command_line_argument=no
9314 fi
9315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9316 fi
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9318 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9319 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9320 CFLAGS="$xorg_testset_save_CFLAGS"
9321 fi
9322
9323 found="no"
9324
9325 if test $found = "no" ; then
9326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9328 fi
9329
9330 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9332 fi
9333
9334 CFLAGS="$CFLAGS -Wsequence-point"
9335
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9337 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9338 cacheid=xorg_cv_cc_flag__Wsequence_point
9339 if eval \${$cacheid+:} false; then :
9340 $as_echo_n "(cached) " >&6
9341 else
9342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9343 /* end confdefs.h. */
9344 int i;
9345 int
9346 main ()
9347 {
9348
9349 ;
9350 return 0;
9351 }
9352 _ACEOF
9353 if ac_fn_c_try_link "$LINENO"; then :
9354 eval $cacheid=yes
9355 else
9356 eval $cacheid=no
9357 fi
9358 rm -f core conftest.err conftest.$ac_objext \
9359 conftest$ac_exeext conftest.$ac_ext
9360 fi
9361
9362
9363 CFLAGS="$xorg_testset_save_CFLAGS"
9364
9365 eval supported=\$$cacheid
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9367 $as_echo "$supported" >&6; }
9368 if test "$supported" = "yes" ; then
9369 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9370 found="yes"
9371 fi
9372 fi
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388 xorg_testset_save_CFLAGS="$CFLAGS"
9389
9390 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9393 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9394 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9395 $as_echo_n "(cached) " >&6
9396 else
9397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398 /* end confdefs.h. */
9399 int i;
9400 _ACEOF
9401 if ac_fn_c_try_compile "$LINENO"; then :
9402 xorg_cv_cc_flag_unknown_warning_option=yes
9403 else
9404 xorg_cv_cc_flag_unknown_warning_option=no
9405 fi
9406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9407 fi
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9409 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9410 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9411 CFLAGS="$xorg_testset_save_CFLAGS"
9412 fi
9413
9414 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9417 fi
9418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9420 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9421 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9422 $as_echo_n "(cached) " >&6
9423 else
9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425 /* end confdefs.h. */
9426 int i;
9427 _ACEOF
9428 if ac_fn_c_try_compile "$LINENO"; then :
9429 xorg_cv_cc_flag_unused_command_line_argument=yes
9430 else
9431 xorg_cv_cc_flag_unused_command_line_argument=no
9432 fi
9433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9434 fi
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9436 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9437 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9438 CFLAGS="$xorg_testset_save_CFLAGS"
9439 fi
9440
9441 found="no"
9442
9443 if test $found = "no" ; then
9444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9446 fi
9447
9448 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9450 fi
9451
9452 CFLAGS="$CFLAGS -Wreturn-type"
9453
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9455 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9456 cacheid=xorg_cv_cc_flag__Wreturn_type
9457 if eval \${$cacheid+:} false; then :
9458 $as_echo_n "(cached) " >&6
9459 else
9460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9461 /* end confdefs.h. */
9462 int i;
9463 int
9464 main ()
9465 {
9466
9467 ;
9468 return 0;
9469 }
9470 _ACEOF
9471 if ac_fn_c_try_link "$LINENO"; then :
9472 eval $cacheid=yes
9473 else
9474 eval $cacheid=no
9475 fi
9476 rm -f core conftest.err conftest.$ac_objext \
9477 conftest$ac_exeext conftest.$ac_ext
9478 fi
9479
9480
9481 CFLAGS="$xorg_testset_save_CFLAGS"
9482
9483 eval supported=\$$cacheid
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9485 $as_echo "$supported" >&6; }
9486 if test "$supported" = "yes" ; then
9487 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9488 found="yes"
9489 fi
9490 fi
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506 xorg_testset_save_CFLAGS="$CFLAGS"
9507
9508 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9511 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9512 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9513 $as_echo_n "(cached) " >&6
9514 else
9515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9516 /* end confdefs.h. */
9517 int i;
9518 _ACEOF
9519 if ac_fn_c_try_compile "$LINENO"; then :
9520 xorg_cv_cc_flag_unknown_warning_option=yes
9521 else
9522 xorg_cv_cc_flag_unknown_warning_option=no
9523 fi
9524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9525 fi
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9527 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9528 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9529 CFLAGS="$xorg_testset_save_CFLAGS"
9530 fi
9531
9532 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9535 fi
9536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9538 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9539 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9540 $as_echo_n "(cached) " >&6
9541 else
9542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9543 /* end confdefs.h. */
9544 int i;
9545 _ACEOF
9546 if ac_fn_c_try_compile "$LINENO"; then :
9547 xorg_cv_cc_flag_unused_command_line_argument=yes
9548 else
9549 xorg_cv_cc_flag_unused_command_line_argument=no
9550 fi
9551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9552 fi
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9554 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9555 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9556 CFLAGS="$xorg_testset_save_CFLAGS"
9557 fi
9558
9559 found="no"
9560
9561 if test $found = "no" ; then
9562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9564 fi
9565
9566 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9568 fi
9569
9570 CFLAGS="$CFLAGS -Wtrigraphs"
9571
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9573 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9574 cacheid=xorg_cv_cc_flag__Wtrigraphs
9575 if eval \${$cacheid+:} false; then :
9576 $as_echo_n "(cached) " >&6
9577 else
9578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9579 /* end confdefs.h. */
9580 int i;
9581 int
9582 main ()
9583 {
9584
9585 ;
9586 return 0;
9587 }
9588 _ACEOF
9589 if ac_fn_c_try_link "$LINENO"; then :
9590 eval $cacheid=yes
9591 else
9592 eval $cacheid=no
9593 fi
9594 rm -f core conftest.err conftest.$ac_objext \
9595 conftest$ac_exeext conftest.$ac_ext
9596 fi
9597
9598
9599 CFLAGS="$xorg_testset_save_CFLAGS"
9600
9601 eval supported=\$$cacheid
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9603 $as_echo "$supported" >&6; }
9604 if test "$supported" = "yes" ; then
9605 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9606 found="yes"
9607 fi
9608 fi
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624 xorg_testset_save_CFLAGS="$CFLAGS"
9625
9626 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9629 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9630 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9631 $as_echo_n "(cached) " >&6
9632 else
9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9634 /* end confdefs.h. */
9635 int i;
9636 _ACEOF
9637 if ac_fn_c_try_compile "$LINENO"; then :
9638 xorg_cv_cc_flag_unknown_warning_option=yes
9639 else
9640 xorg_cv_cc_flag_unknown_warning_option=no
9641 fi
9642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9643 fi
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9645 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9646 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9647 CFLAGS="$xorg_testset_save_CFLAGS"
9648 fi
9649
9650 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9653 fi
9654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9656 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9657 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9658 $as_echo_n "(cached) " >&6
9659 else
9660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9661 /* end confdefs.h. */
9662 int i;
9663 _ACEOF
9664 if ac_fn_c_try_compile "$LINENO"; then :
9665 xorg_cv_cc_flag_unused_command_line_argument=yes
9666 else
9667 xorg_cv_cc_flag_unused_command_line_argument=no
9668 fi
9669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9670 fi
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9672 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9673 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9674 CFLAGS="$xorg_testset_save_CFLAGS"
9675 fi
9676
9677 found="no"
9678
9679 if test $found = "no" ; then
9680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9682 fi
9683
9684 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9686 fi
9687
9688 CFLAGS="$CFLAGS -Warray-bounds"
9689
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9691 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9692 cacheid=xorg_cv_cc_flag__Warray_bounds
9693 if eval \${$cacheid+:} false; then :
9694 $as_echo_n "(cached) " >&6
9695 else
9696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9697 /* end confdefs.h. */
9698 int i;
9699 int
9700 main ()
9701 {
9702
9703 ;
9704 return 0;
9705 }
9706 _ACEOF
9707 if ac_fn_c_try_link "$LINENO"; then :
9708 eval $cacheid=yes
9709 else
9710 eval $cacheid=no
9711 fi
9712 rm -f core conftest.err conftest.$ac_objext \
9713 conftest$ac_exeext conftest.$ac_ext
9714 fi
9715
9716
9717 CFLAGS="$xorg_testset_save_CFLAGS"
9718
9719 eval supported=\$$cacheid
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9721 $as_echo "$supported" >&6; }
9722 if test "$supported" = "yes" ; then
9723 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9724 found="yes"
9725 fi
9726 fi
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742 xorg_testset_save_CFLAGS="$CFLAGS"
9743
9744 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9747 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9748 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9749 $as_echo_n "(cached) " >&6
9750 else
9751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9752 /* end confdefs.h. */
9753 int i;
9754 _ACEOF
9755 if ac_fn_c_try_compile "$LINENO"; then :
9756 xorg_cv_cc_flag_unknown_warning_option=yes
9757 else
9758 xorg_cv_cc_flag_unknown_warning_option=no
9759 fi
9760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9761 fi
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9763 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9764 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9765 CFLAGS="$xorg_testset_save_CFLAGS"
9766 fi
9767
9768 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9771 fi
9772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9774 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9775 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9776 $as_echo_n "(cached) " >&6
9777 else
9778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9779 /* end confdefs.h. */
9780 int i;
9781 _ACEOF
9782 if ac_fn_c_try_compile "$LINENO"; then :
9783 xorg_cv_cc_flag_unused_command_line_argument=yes
9784 else
9785 xorg_cv_cc_flag_unused_command_line_argument=no
9786 fi
9787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9788 fi
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9790 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9791 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9792 CFLAGS="$xorg_testset_save_CFLAGS"
9793 fi
9794
9795 found="no"
9796
9797 if test $found = "no" ; then
9798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9800 fi
9801
9802 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9804 fi
9805
9806 CFLAGS="$CFLAGS -Wwrite-strings"
9807
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9809 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9810 cacheid=xorg_cv_cc_flag__Wwrite_strings
9811 if eval \${$cacheid+:} false; then :
9812 $as_echo_n "(cached) " >&6
9813 else
9814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9815 /* end confdefs.h. */
9816 int i;
9817 int
9818 main ()
9819 {
9820
9821 ;
9822 return 0;
9823 }
9824 _ACEOF
9825 if ac_fn_c_try_link "$LINENO"; then :
9826 eval $cacheid=yes
9827 else
9828 eval $cacheid=no
9829 fi
9830 rm -f core conftest.err conftest.$ac_objext \
9831 conftest$ac_exeext conftest.$ac_ext
9832 fi
9833
9834
9835 CFLAGS="$xorg_testset_save_CFLAGS"
9836
9837 eval supported=\$$cacheid
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9839 $as_echo "$supported" >&6; }
9840 if test "$supported" = "yes" ; then
9841 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9842 found="yes"
9843 fi
9844 fi
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860 xorg_testset_save_CFLAGS="$CFLAGS"
9861
9862 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9865 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9866 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9867 $as_echo_n "(cached) " >&6
9868 else
9869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870 /* end confdefs.h. */
9871 int i;
9872 _ACEOF
9873 if ac_fn_c_try_compile "$LINENO"; then :
9874 xorg_cv_cc_flag_unknown_warning_option=yes
9875 else
9876 xorg_cv_cc_flag_unknown_warning_option=no
9877 fi
9878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9879 fi
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9881 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9882 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9883 CFLAGS="$xorg_testset_save_CFLAGS"
9884 fi
9885
9886 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9889 fi
9890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9892 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9893 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9894 $as_echo_n "(cached) " >&6
9895 else
9896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897 /* end confdefs.h. */
9898 int i;
9899 _ACEOF
9900 if ac_fn_c_try_compile "$LINENO"; then :
9901 xorg_cv_cc_flag_unused_command_line_argument=yes
9902 else
9903 xorg_cv_cc_flag_unused_command_line_argument=no
9904 fi
9905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9906 fi
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9908 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9909 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9910 CFLAGS="$xorg_testset_save_CFLAGS"
9911 fi
9912
9913 found="no"
9914
9915 if test $found = "no" ; then
9916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9918 fi
9919
9920 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9922 fi
9923
9924 CFLAGS="$CFLAGS -Waddress"
9925
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9927 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9928 cacheid=xorg_cv_cc_flag__Waddress
9929 if eval \${$cacheid+:} false; then :
9930 $as_echo_n "(cached) " >&6
9931 else
9932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9933 /* end confdefs.h. */
9934 int i;
9935 int
9936 main ()
9937 {
9938
9939 ;
9940 return 0;
9941 }
9942 _ACEOF
9943 if ac_fn_c_try_link "$LINENO"; then :
9944 eval $cacheid=yes
9945 else
9946 eval $cacheid=no
9947 fi
9948 rm -f core conftest.err conftest.$ac_objext \
9949 conftest$ac_exeext conftest.$ac_ext
9950 fi
9951
9952
9953 CFLAGS="$xorg_testset_save_CFLAGS"
9954
9955 eval supported=\$$cacheid
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9957 $as_echo "$supported" >&6; }
9958 if test "$supported" = "yes" ; then
9959 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9960 found="yes"
9961 fi
9962 fi
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978 xorg_testset_save_CFLAGS="$CFLAGS"
9979
9980 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9983 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9984 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9985 $as_echo_n "(cached) " >&6
9986 else
9987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9988 /* end confdefs.h. */
9989 int i;
9990 _ACEOF
9991 if ac_fn_c_try_compile "$LINENO"; then :
9992 xorg_cv_cc_flag_unknown_warning_option=yes
9993 else
9994 xorg_cv_cc_flag_unknown_warning_option=no
9995 fi
9996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9997 fi
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9999 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10000 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10001 CFLAGS="$xorg_testset_save_CFLAGS"
10002 fi
10003
10004 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10007 fi
10008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10010 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10011 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10012 $as_echo_n "(cached) " >&6
10013 else
10014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10015 /* end confdefs.h. */
10016 int i;
10017 _ACEOF
10018 if ac_fn_c_try_compile "$LINENO"; then :
10019 xorg_cv_cc_flag_unused_command_line_argument=yes
10020 else
10021 xorg_cv_cc_flag_unused_command_line_argument=no
10022 fi
10023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10024 fi
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10026 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10027 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10028 CFLAGS="$xorg_testset_save_CFLAGS"
10029 fi
10030
10031 found="no"
10032
10033 if test $found = "no" ; then
10034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10036 fi
10037
10038 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10040 fi
10041
10042 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10043
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10045 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10046 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10047 if eval \${$cacheid+:} false; then :
10048 $as_echo_n "(cached) " >&6
10049 else
10050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10051 /* end confdefs.h. */
10052 int i;
10053 int
10054 main ()
10055 {
10056
10057 ;
10058 return 0;
10059 }
10060 _ACEOF
10061 if ac_fn_c_try_link "$LINENO"; then :
10062 eval $cacheid=yes
10063 else
10064 eval $cacheid=no
10065 fi
10066 rm -f core conftest.err conftest.$ac_objext \
10067 conftest$ac_exeext conftest.$ac_ext
10068 fi
10069
10070
10071 CFLAGS="$xorg_testset_save_CFLAGS"
10072
10073 eval supported=\$$cacheid
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10075 $as_echo "$supported" >&6; }
10076 if test "$supported" = "yes" ; then
10077 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10078 found="yes"
10079 fi
10080 fi
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096 xorg_testset_save_CFLAGS="$CFLAGS"
10097
10098 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10101 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10102 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10103 $as_echo_n "(cached) " >&6
10104 else
10105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10106 /* end confdefs.h. */
10107 int i;
10108 _ACEOF
10109 if ac_fn_c_try_compile "$LINENO"; then :
10110 xorg_cv_cc_flag_unknown_warning_option=yes
10111 else
10112 xorg_cv_cc_flag_unknown_warning_option=no
10113 fi
10114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10115 fi
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10117 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10118 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10119 CFLAGS="$xorg_testset_save_CFLAGS"
10120 fi
10121
10122 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10125 fi
10126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10128 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10129 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10130 $as_echo_n "(cached) " >&6
10131 else
10132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10133 /* end confdefs.h. */
10134 int i;
10135 _ACEOF
10136 if ac_fn_c_try_compile "$LINENO"; then :
10137 xorg_cv_cc_flag_unused_command_line_argument=yes
10138 else
10139 xorg_cv_cc_flag_unused_command_line_argument=no
10140 fi
10141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10142 fi
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10144 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10145 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10146 CFLAGS="$xorg_testset_save_CFLAGS"
10147 fi
10148
10149 found="no"
10150
10151 if test $found = "no" ; then
10152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10154 fi
10155
10156 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10158 fi
10159
10160 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10161
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10163 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10164 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10165 if eval \${$cacheid+:} false; then :
10166 $as_echo_n "(cached) " >&6
10167 else
10168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10169 /* end confdefs.h. */
10170 int i;
10171 int
10172 main ()
10173 {
10174
10175 ;
10176 return 0;
10177 }
10178 _ACEOF
10179 if ac_fn_c_try_link "$LINENO"; then :
10180 eval $cacheid=yes
10181 else
10182 eval $cacheid=no
10183 fi
10184 rm -f core conftest.err conftest.$ac_objext \
10185 conftest$ac_exeext conftest.$ac_ext
10186 fi
10187
10188
10189 CFLAGS="$xorg_testset_save_CFLAGS"
10190
10191 eval supported=\$$cacheid
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10193 $as_echo "$supported" >&6; }
10194 if test "$supported" = "yes" ; then
10195 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10196 found="yes"
10197 fi
10198 fi
10199
10200
10201 fi
10202
10203
10204
10205
10206
10207
10208
10209 CWARNFLAGS="$BASE_CFLAGS"
10210 if test "x$GCC" = xyes ; then
10211 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10212 fi
10213
10214
10215
10216
10217
10218
10219
10220
10221 # Check whether --enable-strict-compilation was given.
10222 if test "${enable_strict_compilation+set}" = set; then :
10223 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10224 else
10225 STRICT_COMPILE=no
10226 fi
10227
10228
10229
10230
10231
10232
10233 STRICT_CFLAGS=""
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247 xorg_testset_save_CFLAGS="$CFLAGS"
10248
10249 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10252 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10253 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10254 $as_echo_n "(cached) " >&6
10255 else
10256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10257 /* end confdefs.h. */
10258 int i;
10259 _ACEOF
10260 if ac_fn_c_try_compile "$LINENO"; then :
10261 xorg_cv_cc_flag_unknown_warning_option=yes
10262 else
10263 xorg_cv_cc_flag_unknown_warning_option=no
10264 fi
10265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10266 fi
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10268 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10269 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10270 CFLAGS="$xorg_testset_save_CFLAGS"
10271 fi
10272
10273 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10276 fi
10277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10279 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10280 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10281 $as_echo_n "(cached) " >&6
10282 else
10283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10284 /* end confdefs.h. */
10285 int i;
10286 _ACEOF
10287 if ac_fn_c_try_compile "$LINENO"; then :
10288 xorg_cv_cc_flag_unused_command_line_argument=yes
10289 else
10290 xorg_cv_cc_flag_unused_command_line_argument=no
10291 fi
10292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10293 fi
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10295 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10296 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10297 CFLAGS="$xorg_testset_save_CFLAGS"
10298 fi
10299
10300 found="no"
10301
10302 if test $found = "no" ; then
10303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10305 fi
10306
10307 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10309 fi
10310
10311 CFLAGS="$CFLAGS -pedantic"
10312
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10314 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10315 cacheid=xorg_cv_cc_flag__pedantic
10316 if eval \${$cacheid+:} false; then :
10317 $as_echo_n "(cached) " >&6
10318 else
10319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10320 /* end confdefs.h. */
10321 int i;
10322 int
10323 main ()
10324 {
10325
10326 ;
10327 return 0;
10328 }
10329 _ACEOF
10330 if ac_fn_c_try_link "$LINENO"; then :
10331 eval $cacheid=yes
10332 else
10333 eval $cacheid=no
10334 fi
10335 rm -f core conftest.err conftest.$ac_objext \
10336 conftest$ac_exeext conftest.$ac_ext
10337 fi
10338
10339
10340 CFLAGS="$xorg_testset_save_CFLAGS"
10341
10342 eval supported=\$$cacheid
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10344 $as_echo "$supported" >&6; }
10345 if test "$supported" = "yes" ; then
10346 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10347 found="yes"
10348 fi
10349 fi
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365 xorg_testset_save_CFLAGS="$CFLAGS"
10366
10367 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10370 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10371 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10372 $as_echo_n "(cached) " >&6
10373 else
10374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10375 /* end confdefs.h. */
10376 int i;
10377 _ACEOF
10378 if ac_fn_c_try_compile "$LINENO"; then :
10379 xorg_cv_cc_flag_unknown_warning_option=yes
10380 else
10381 xorg_cv_cc_flag_unknown_warning_option=no
10382 fi
10383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10384 fi
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10386 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10387 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10388 CFLAGS="$xorg_testset_save_CFLAGS"
10389 fi
10390
10391 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10394 fi
10395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10397 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10398 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10399 $as_echo_n "(cached) " >&6
10400 else
10401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10402 /* end confdefs.h. */
10403 int i;
10404 _ACEOF
10405 if ac_fn_c_try_compile "$LINENO"; then :
10406 xorg_cv_cc_flag_unused_command_line_argument=yes
10407 else
10408 xorg_cv_cc_flag_unused_command_line_argument=no
10409 fi
10410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10411 fi
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10413 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10414 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10415 CFLAGS="$xorg_testset_save_CFLAGS"
10416 fi
10417
10418 found="no"
10419
10420 if test $found = "no" ; then
10421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10423 fi
10424
10425 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10427 fi
10428
10429 CFLAGS="$CFLAGS -Werror"
10430
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10432 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10433 cacheid=xorg_cv_cc_flag__Werror
10434 if eval \${$cacheid+:} false; then :
10435 $as_echo_n "(cached) " >&6
10436 else
10437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10438 /* end confdefs.h. */
10439 int i;
10440 int
10441 main ()
10442 {
10443
10444 ;
10445 return 0;
10446 }
10447 _ACEOF
10448 if ac_fn_c_try_link "$LINENO"; then :
10449 eval $cacheid=yes
10450 else
10451 eval $cacheid=no
10452 fi
10453 rm -f core conftest.err conftest.$ac_objext \
10454 conftest$ac_exeext conftest.$ac_ext
10455 fi
10456
10457
10458 CFLAGS="$xorg_testset_save_CFLAGS"
10459
10460 eval supported=\$$cacheid
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10462 $as_echo "$supported" >&6; }
10463 if test "$supported" = "yes" ; then
10464 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10465 found="yes"
10466 fi
10467 fi
10468
10469 if test $found = "no" ; then
10470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10471 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10472 fi
10473
10474 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10476 fi
10477
10478 CFLAGS="$CFLAGS -errwarn"
10479
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10481 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10482 cacheid=xorg_cv_cc_flag__errwarn
10483 if eval \${$cacheid+:} false; then :
10484 $as_echo_n "(cached) " >&6
10485 else
10486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10487 /* end confdefs.h. */
10488 int i;
10489 int
10490 main ()
10491 {
10492
10493 ;
10494 return 0;
10495 }
10496 _ACEOF
10497 if ac_fn_c_try_link "$LINENO"; then :
10498 eval $cacheid=yes
10499 else
10500 eval $cacheid=no
10501 fi
10502 rm -f core conftest.err conftest.$ac_objext \
10503 conftest$ac_exeext conftest.$ac_ext
10504 fi
10505
10506
10507 CFLAGS="$xorg_testset_save_CFLAGS"
10508
10509 eval supported=\$$cacheid
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10511 $as_echo "$supported" >&6; }
10512 if test "$supported" = "yes" ; then
10513 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10514 found="yes"
10515 fi
10516 fi
10517
10518
10519
10520 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10521 # activate it with -Werror, so we add it here explicitly.
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535 xorg_testset_save_CFLAGS="$CFLAGS"
10536
10537 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10540 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10541 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10542 $as_echo_n "(cached) " >&6
10543 else
10544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10545 /* end confdefs.h. */
10546 int i;
10547 _ACEOF
10548 if ac_fn_c_try_compile "$LINENO"; then :
10549 xorg_cv_cc_flag_unknown_warning_option=yes
10550 else
10551 xorg_cv_cc_flag_unknown_warning_option=no
10552 fi
10553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10554 fi
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10556 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10557 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10558 CFLAGS="$xorg_testset_save_CFLAGS"
10559 fi
10560
10561 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10564 fi
10565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10567 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10568 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10569 $as_echo_n "(cached) " >&6
10570 else
10571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10572 /* end confdefs.h. */
10573 int i;
10574 _ACEOF
10575 if ac_fn_c_try_compile "$LINENO"; then :
10576 xorg_cv_cc_flag_unused_command_line_argument=yes
10577 else
10578 xorg_cv_cc_flag_unused_command_line_argument=no
10579 fi
10580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10581 fi
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10583 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10584 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10585 CFLAGS="$xorg_testset_save_CFLAGS"
10586 fi
10587
10588 found="no"
10589
10590 if test $found = "no" ; then
10591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10592 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10593 fi
10594
10595 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10597 fi
10598
10599 CFLAGS="$CFLAGS -Werror=attributes"
10600
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10602 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10603 cacheid=xorg_cv_cc_flag__Werror_attributes
10604 if eval \${$cacheid+:} false; then :
10605 $as_echo_n "(cached) " >&6
10606 else
10607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10608 /* end confdefs.h. */
10609 int i;
10610 int
10611 main ()
10612 {
10613
10614 ;
10615 return 0;
10616 }
10617 _ACEOF
10618 if ac_fn_c_try_link "$LINENO"; then :
10619 eval $cacheid=yes
10620 else
10621 eval $cacheid=no
10622 fi
10623 rm -f core conftest.err conftest.$ac_objext \
10624 conftest$ac_exeext conftest.$ac_ext
10625 fi
10626
10627
10628 CFLAGS="$xorg_testset_save_CFLAGS"
10629
10630 eval supported=\$$cacheid
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10632 $as_echo "$supported" >&6; }
10633 if test "$supported" = "yes" ; then
10634 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10635 found="yes"
10636 fi
10637 fi
10638
10639
10640
10641 if test "x$STRICT_COMPILE" = "xyes"; then
10642 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10643 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10644 fi
10645
10646
10647
10648
10649
10650
10651 cat >>confdefs.h <<_ACEOF
10652 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10653 _ACEOF
10654
10655 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10656 if test "x$PVM" = "x"; then
10657 PVM="0"
10658 fi
10659
10660 cat >>confdefs.h <<_ACEOF
10661 #define PACKAGE_VERSION_MINOR $PVM
10662 _ACEOF
10663
10664 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10665 if test "x$PVP" = "x"; then
10666 PVP="0"
10667 fi
10668
10669 cat >>confdefs.h <<_ACEOF
10670 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10671 _ACEOF
10672
10673
10674
10675 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10676 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10677 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10678 touch \$(top_srcdir)/ChangeLog; \
10679 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10680
10681
10682
10683
10684 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10685 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10686 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10687 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10688 touch \$(top_srcdir)/INSTALL; \
10689 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10690
10691
10692
10693
10694
10695
10696 case $host_os in
10697 solaris*)
10698 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10699 # check for a man page file found in later versions that use
10700 # traditional section numbers instead
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10702 $as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; }
10703 if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then :
10704 $as_echo_n "(cached) " >&6
10705 else
10706 test "$cross_compiling" = yes &&
10707 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10708 if test -r "/usr/share/man/man7/attributes.7"; then
10709 ac_cv_file__usr_share_man_man7_attributes_7=yes
10710 else
10711 ac_cv_file__usr_share_man_man7_attributes_7=no
10712 fi
10713 fi
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10715 $as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10716 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then :
10717 SYSV_MAN_SECTIONS=false
10718 else
10719 SYSV_MAN_SECTIONS=true
10720 fi
10721
10722 ;;
10723 *) SYSV_MAN_SECTIONS=false ;;
10724 esac
10725
10726 if test x$APP_MAN_SUFFIX = x ; then
10727 APP_MAN_SUFFIX=1
10728 fi
10729 if test x$APP_MAN_DIR = x ; then
10730 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10731 fi
10732
10733 if test x$LIB_MAN_SUFFIX = x ; then
10734 LIB_MAN_SUFFIX=3
10735 fi
10736 if test x$LIB_MAN_DIR = x ; then
10737 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10738 fi
10739
10740 if test x$FILE_MAN_SUFFIX = x ; then
10741 case $SYSV_MAN_SECTIONS in
10742 true) FILE_MAN_SUFFIX=4 ;;
10743 *) FILE_MAN_SUFFIX=5 ;;
10744 esac
10745 fi
10746 if test x$FILE_MAN_DIR = x ; then
10747 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10748 fi
10749
10750 if test x$MISC_MAN_SUFFIX = x ; then
10751 case $SYSV_MAN_SECTIONS in
10752 true) MISC_MAN_SUFFIX=5 ;;
10753 *) MISC_MAN_SUFFIX=7 ;;
10754 esac
10755 fi
10756 if test x$MISC_MAN_DIR = x ; then
10757 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10758 fi
10759
10760 if test x$DRIVER_MAN_SUFFIX = x ; then
10761 case $SYSV_MAN_SECTIONS in
10762 true) DRIVER_MAN_SUFFIX=7 ;;
10763 *) DRIVER_MAN_SUFFIX=4 ;;
10764 esac
10765 fi
10766 if test x$DRIVER_MAN_DIR = x ; then
10767 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10768 fi
10769
10770 if test x$ADMIN_MAN_SUFFIX = x ; then
10771 case $SYSV_MAN_SECTIONS in
10772 true) ADMIN_MAN_SUFFIX=1m ;;
10773 *) ADMIN_MAN_SUFFIX=8 ;;
10774 esac
10775 fi
10776 if test x$ADMIN_MAN_DIR = x ; then
10777 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10778 fi
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794 XORG_MAN_PAGE="X Version 11"
10795
10796 MAN_SUBSTS="\
10797 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10798 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10799 -e 's|__xservername__|Xorg|g' \
10800 -e 's|__xconfigfile__|xorg.conf|g' \
10801 -e 's|__projectroot__|\$(prefix)|g' \
10802 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10803 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10804 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10805 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10806 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10807 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10808 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10809
10810
10811
10812 # Check whether --enable-silent-rules was given.
10813 if test "${enable_silent_rules+set}" = set; then :
10814 enableval=$enable_silent_rules;
10815 fi
10816
10817 case $enable_silent_rules in # (((
10818 yes) AM_DEFAULT_VERBOSITY=0;;
10819 no) AM_DEFAULT_VERBOSITY=1;;
10820 *) AM_DEFAULT_VERBOSITY=0;;
10821 esac
10822 am_make=${MAKE-make}
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10824 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10825 if ${am_cv_make_support_nested_variables+:} false; then :
10826 $as_echo_n "(cached) " >&6
10827 else
10828 if $as_echo 'TRUE=$(BAR$(V))
10829 BAR0=false
10830 BAR1=true
10831 V=1
10832 am__doit:
10833 @$(TRUE)
10834 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10835 am_cv_make_support_nested_variables=yes
10836 else
10837 am_cv_make_support_nested_variables=no
10838 fi
10839 fi
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10841 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10842 if test $am_cv_make_support_nested_variables = yes; then
10843 AM_V='$(V)'
10844 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10845 else
10846 AM_V=$AM_DEFAULT_VERBOSITY
10847 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10848 fi
10849 AM_BACKSLASH='\'
10850
10851
10852
10853 for ac_func in asprintf
10854 do :
10855 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
10856 if test "x$ac_cv_func_asprintf" = xyes; then :
10857 cat >>confdefs.h <<_ACEOF
10858 #define HAVE_ASPRINTF 1
10859 _ACEOF
10860
10861 fi
10862 done
10863
10864
10865 # Checks for pkg-config packages
10866
10867 pkg_failed=no
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XKBPRINT" >&5
10869 $as_echo_n "checking for XKBPRINT... " >&6; }
10870
10871 if test -n "$XKBPRINT_CFLAGS"; then
10872 pkg_cv_XKBPRINT_CFLAGS="$XKBPRINT_CFLAGS"
10873 elif test -n "$PKG_CONFIG"; then
10874 if test -n "$PKG_CONFIG" && \
10875 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11 xproto >= 7.0.17\""; } >&5
10876 ($PKG_CONFIG --exists --print-errors "xkbfile x11 xproto >= 7.0.17") 2>&5
10877 ac_status=$?
10878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10879 test $ac_status = 0; }; then
10880 pkg_cv_XKBPRINT_CFLAGS=`$PKG_CONFIG --cflags "xkbfile x11 xproto >= 7.0.17" 2>/dev/null`
10881 test "x$?" != "x0" && pkg_failed=yes
10882 else
10883 pkg_failed=yes
10884 fi
10885 else
10886 pkg_failed=untried
10887 fi
10888 if test -n "$XKBPRINT_LIBS"; then
10889 pkg_cv_XKBPRINT_LIBS="$XKBPRINT_LIBS"
10890 elif test -n "$PKG_CONFIG"; then
10891 if test -n "$PKG_CONFIG" && \
10892 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11 xproto >= 7.0.17\""; } >&5
10893 ($PKG_CONFIG --exists --print-errors "xkbfile x11 xproto >= 7.0.17") 2>&5
10894 ac_status=$?
10895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10896 test $ac_status = 0; }; then
10897 pkg_cv_XKBPRINT_LIBS=`$PKG_CONFIG --libs "xkbfile x11 xproto >= 7.0.17" 2>/dev/null`
10898 test "x$?" != "x0" && pkg_failed=yes
10899 else
10900 pkg_failed=yes
10901 fi
10902 else
10903 pkg_failed=untried
10904 fi
10905
10906
10907
10908 if test $pkg_failed = yes; then
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10910 $as_echo "no" >&6; }
10911
10912 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10913 _pkg_short_errors_supported=yes
10914 else
10915 _pkg_short_errors_supported=no
10916 fi
10917 if test $_pkg_short_errors_supported = yes; then
10918 XKBPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xkbfile x11 xproto >= 7.0.17" 2>&1`
10919 else
10920 XKBPRINT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xkbfile x11 xproto >= 7.0.17" 2>&1`
10921 fi
10922 # Put the nasty error message in config.log where it belongs
10923 echo "$XKBPRINT_PKG_ERRORS" >&5
10924
10925 as_fn_error $? "Package requirements (xkbfile x11 xproto >= 7.0.17) were not met:
10926
10927 $XKBPRINT_PKG_ERRORS
10928
10929 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10930 installed software in a non-standard prefix.
10931
10932 Alternatively, you may set the environment variables XKBPRINT_CFLAGS
10933 and XKBPRINT_LIBS to avoid the need to call pkg-config.
10934 See the pkg-config man page for more details." "$LINENO" 5
10935 elif test $pkg_failed = untried; then
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10937 $as_echo "no" >&6; }
10938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10940 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10941 is in your PATH or set the PKG_CONFIG environment variable to the full
10942 path to pkg-config.
10943
10944 Alternatively, you may set the environment variables XKBPRINT_CFLAGS
10945 and XKBPRINT_LIBS to avoid the need to call pkg-config.
10946 See the pkg-config man page for more details.
10947
10948 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10949 See \`config.log' for more details" "$LINENO" 5; }
10950 else
10951 XKBPRINT_CFLAGS=$pkg_cv_XKBPRINT_CFLAGS
10952 XKBPRINT_LIBS=$pkg_cv_XKBPRINT_LIBS
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10954 $as_echo "yes" >&6; }
10955
10956 fi
10957
10958 ac_config_files="$ac_config_files Makefile man/Makefile"
10959
10960 cat >confcache <<\_ACEOF
10961 # This file is a shell script that caches the results of configure
10962 # tests run on this system so they can be shared between configure
10963 # scripts and configure runs, see configure's option --config-cache.
10964 # It is not useful on other systems. If it contains results you don't
10965 # want to keep, you may remove or edit it.
10966 #
10967 # config.status only pays attention to the cache file if you give it
10968 # the --recheck option to rerun configure.
10969 #
10970 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10971 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10972 # following values.
10973
10974 _ACEOF
10975
10976 # The following way of writing the cache mishandles newlines in values,
10977 # but we know of no workaround that is simple, portable, and efficient.
10978 # So, we kill variables containing newlines.
10979 # Ultrix sh set writes to stderr and can't be redirected directly,
10980 # and sets the high bit in the cache file unless we assign to the vars.
10981 (
10982 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10983 eval ac_val=\$$ac_var
10984 case $ac_val in #(
10985 *${as_nl}*)
10986 case $ac_var in #(
10987 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10988 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10989 esac
10990 case $ac_var in #(
10991 _ | IFS | as_nl) ;; #(
10992 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10993 *) { eval $ac_var=; unset $ac_var;} ;;
10994 esac ;;
10995 esac
10996 done
10997
10998 (set) 2>&1 |
10999 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11000 *${as_nl}ac_space=\ *)
11001 # `set' does not quote correctly, so add quotes: double-quote
11002 # substitution turns \\\\ into \\, and sed turns \\ into \.
11003 sed -n \
11004 "s/'/'\\\\''/g;
11005 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11006 ;; #(
11007 *)
11008 # `set' quotes correctly as required by POSIX, so do not add quotes.
11009 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11010 ;;
11011 esac |
11012 sort
11013 ) |
11014 sed '
11015 /^ac_cv_env_/b end
11016 t clear
11017 :clear
11018 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11019 t end
11020 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11021 :end' >>confcache
11022 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11023 if test -w "$cache_file"; then
11024 if test "x$cache_file" != "x/dev/null"; then
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11026 $as_echo "$as_me: updating cache $cache_file" >&6;}
11027 if test ! -f "$cache_file" || test -h "$cache_file"; then
11028 cat confcache >"$cache_file"
11029 else
11030 case $cache_file in #(
11031 */* | ?:*)
11032 mv -f confcache "$cache_file"$$ &&
11033 mv -f "$cache_file"$$ "$cache_file" ;; #(
11034 *)
11035 mv -f confcache "$cache_file" ;;
11036 esac
11037 fi
11038 fi
11039 else
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11041 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11042 fi
11043 fi
11044 rm -f confcache
11045
11046 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11047 # Let make expand exec_prefix.
11048 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11049
11050 DEFS=-DHAVE_CONFIG_H
11051
11052 ac_libobjs=
11053 ac_ltlibobjs=
11054 U=
11055 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11056 # 1. Remove the extension, and $U if already installed.
11057 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11058 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11059 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11060 # will be set to the directory where LIBOBJS objects are built.
11061 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11062 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11063 done
11064 LIBOBJS=$ac_libobjs
11065
11066 LTLIBOBJS=$ac_ltlibobjs
11067
11068
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11070 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11071 if test -n "$am_sleep_pid"; then
11072 # Hide warnings about reused PIDs.
11073 wait $am_sleep_pid 2>/dev/null
11074 fi
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11076 $as_echo "done" >&6; }
11077 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11078 as_fn_error $? "conditional \"AMDEP\" was never defined.
11079 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11080 fi
11081 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11082 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11084 fi
11085 if test -n "$EXEEXT"; then
11086 am__EXEEXT_TRUE=
11087 am__EXEEXT_FALSE='#'
11088 else
11089 am__EXEEXT_TRUE='#'
11090 am__EXEEXT_FALSE=
11091 fi
11092
11093
11094 : "${CONFIG_STATUS=./config.status}"
11095 ac_write_fail=0
11096 ac_clean_files_save=$ac_clean_files
11097 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11099 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11100 as_write_fail=0
11101 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11102 #! $SHELL
11103 # Generated by $as_me.
11104 # Run this file to recreate the current configuration.
11105 # Compiler output produced by configure, useful for debugging
11106 # configure, is in config.log if it exists.
11107
11108 debug=false
11109 ac_cs_recheck=false
11110 ac_cs_silent=false
11111
11112 SHELL=\${CONFIG_SHELL-$SHELL}
11113 export SHELL
11114 _ASEOF
11115 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11116 ## -------------------- ##
11117 ## M4sh Initialization. ##
11118 ## -------------------- ##
11119
11120 # Be more Bourne compatible
11121 DUALCASE=1; export DUALCASE # for MKS sh
11122 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11123 emulate sh
11124 NULLCMD=:
11125 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11126 # is contrary to our usage. Disable this feature.
11127 alias -g '${1+"$@"}'='"$@"'
11128 setopt NO_GLOB_SUBST
11129 else
11130 case `(set -o) 2>/dev/null` in #(
11131 *posix*) :
11132 set -o posix ;; #(
11133 *) :
11134 ;;
11135 esac
11136 fi
11137
11138
11139 as_nl='
11140 '
11141 export as_nl
11142 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11143 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11144 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11145 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11146 # Prefer a ksh shell builtin over an external printf program on Solaris,
11147 # but without wasting forks for bash or zsh.
11148 if test -z "$BASH_VERSION$ZSH_VERSION" \
11149 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11150 as_echo='print -r --'
11151 as_echo_n='print -rn --'
11152 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11153 as_echo='printf %s\n'
11154 as_echo_n='printf %s'
11155 else
11156 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11157 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11158 as_echo_n='/usr/ucb/echo -n'
11159 else
11160 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11161 as_echo_n_body='eval
11162 arg=$1;
11163 case $arg in #(
11164 *"$as_nl"*)
11165 expr "X$arg" : "X\\(.*\\)$as_nl";
11166 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11167 esac;
11168 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11169 '
11170 export as_echo_n_body
11171 as_echo_n='sh -c $as_echo_n_body as_echo'
11172 fi
11173 export as_echo_body
11174 as_echo='sh -c $as_echo_body as_echo'
11175 fi
11176
11177 # The user is always right.
11178 if test "${PATH_SEPARATOR+set}" != set; then
11179 PATH_SEPARATOR=:
11180 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11181 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11182 PATH_SEPARATOR=';'
11183 }
11184 fi
11185
11186
11187 # IFS
11188 # We need space, tab and new line, in precisely that order. Quoting is
11189 # there to prevent editors from complaining about space-tab.
11190 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11191 # splitting by setting IFS to empty value.)
11192 IFS=" "" $as_nl"
11193
11194 # Find who we are. Look in the path if we contain no directory separator.
11195 as_myself=
11196 case $0 in #((
11197 *[\\/]* ) as_myself=$0 ;;
11198 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11199 for as_dir in $PATH
11200 do
11201 IFS=$as_save_IFS
11202 test -z "$as_dir" && as_dir=.
11203 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11204 done
11205 IFS=$as_save_IFS
11206
11207 ;;
11208 esac
11209 # We did not find ourselves, most probably we were run as `sh COMMAND'
11210 # in which case we are not to be found in the path.
11211 if test "x$as_myself" = x; then
11212 as_myself=$0
11213 fi
11214 if test ! -f "$as_myself"; then
11215 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11216 exit 1
11217 fi
11218
11219 # Unset variables that we do not need and which cause bugs (e.g. in
11220 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11221 # suppresses any "Segmentation fault" message there. '((' could
11222 # trigger a bug in pdksh 5.2.14.
11223 for as_var in BASH_ENV ENV MAIL MAILPATH
11224 do eval test x\${$as_var+set} = xset \
11225 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11226 done
11227 PS1='$ '
11228 PS2='> '
11229 PS4='+ '
11230
11231 # NLS nuisances.
11232 LC_ALL=C
11233 export LC_ALL
11234 LANGUAGE=C
11235 export LANGUAGE
11236
11237 # CDPATH.
11238 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11239
11240
11241 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11242 # ----------------------------------------
11243 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11244 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11245 # script with STATUS, using 1 if that was 0.
11246 as_fn_error ()
11247 {
11248 as_status=$1; test $as_status -eq 0 && as_status=1
11249 if test "$4"; then
11250 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11251 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11252 fi
11253 $as_echo "$as_me: error: $2" >&2
11254 as_fn_exit $as_status
11255 } # as_fn_error
11256
11257
11258 # as_fn_set_status STATUS
11259 # -----------------------
11260 # Set $? to STATUS, without forking.
11261 as_fn_set_status ()
11262 {
11263 return $1
11264 } # as_fn_set_status
11265
11266 # as_fn_exit STATUS
11267 # -----------------
11268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11269 as_fn_exit ()
11270 {
11271 set +e
11272 as_fn_set_status $1
11273 exit $1
11274 } # as_fn_exit
11275
11276 # as_fn_unset VAR
11277 # ---------------
11278 # Portably unset VAR.
11279 as_fn_unset ()
11280 {
11281 { eval $1=; unset $1;}
11282 }
11283 as_unset=as_fn_unset
11284 # as_fn_append VAR VALUE
11285 # ----------------------
11286 # Append the text in VALUE to the end of the definition contained in VAR. Take
11287 # advantage of any shell optimizations that allow amortized linear growth over
11288 # repeated appends, instead of the typical quadratic growth present in naive
11289 # implementations.
11290 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11291 eval 'as_fn_append ()
11292 {
11293 eval $1+=\$2
11294 }'
11295 else
11296 as_fn_append ()
11297 {
11298 eval $1=\$$1\$2
11299 }
11300 fi # as_fn_append
11301
11302 # as_fn_arith ARG...
11303 # ------------------
11304 # Perform arithmetic evaluation on the ARGs, and store the result in the
11305 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11306 # must be portable across $(()) and expr.
11307 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11308 eval 'as_fn_arith ()
11309 {
11310 as_val=$(( $* ))
11311 }'
11312 else
11313 as_fn_arith ()
11314 {
11315 as_val=`expr "$@" || test $? -eq 1`
11316 }
11317 fi # as_fn_arith
11318
11319
11320 if expr a : '\(a\)' >/dev/null 2>&1 &&
11321 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11322 as_expr=expr
11323 else
11324 as_expr=false
11325 fi
11326
11327 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11328 as_basename=basename
11329 else
11330 as_basename=false
11331 fi
11332
11333 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11334 as_dirname=dirname
11335 else
11336 as_dirname=false
11337 fi
11338
11339 as_me=`$as_basename -- "$0" ||
11340 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11341 X"$0" : 'X\(//\)$' \| \
11342 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11343 $as_echo X/"$0" |
11344 sed '/^.*\/\([^/][^/]*\)\/*$/{
11345 s//\1/
11346 q
11347 }
11348 /^X\/\(\/\/\)$/{
11349 s//\1/
11350 q
11351 }
11352 /^X\/\(\/\).*/{
11353 s//\1/
11354 q
11355 }
11356 s/.*/./; q'`
11357
11358 # Avoid depending upon Character Ranges.
11359 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11360 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11361 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11362 as_cr_digits='0123456789'
11363 as_cr_alnum=$as_cr_Letters$as_cr_digits
11364
11365 ECHO_C= ECHO_N= ECHO_T=
11366 case `echo -n x` in #(((((
11367 -n*)
11368 case `echo 'xy\c'` in
11369 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11370 xy) ECHO_C='\c';;
11371 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11372 ECHO_T=' ';;
11373 esac;;
11374 *)
11375 ECHO_N='-n';;
11376 esac
11377
11378 rm -f conf$$ conf$$.exe conf$$.file
11379 if test -d conf$$.dir; then
11380 rm -f conf$$.dir/conf$$.file
11381 else
11382 rm -f conf$$.dir
11383 mkdir conf$$.dir 2>/dev/null
11384 fi
11385 if (echo >conf$$.file) 2>/dev/null; then
11386 if ln -s conf$$.file conf$$ 2>/dev/null; then
11387 as_ln_s='ln -s'
11388 # ... but there are two gotchas:
11389 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11390 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11391 # In both cases, we have to default to `cp -pR'.
11392 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11393 as_ln_s='cp -pR'
11394 elif ln conf$$.file conf$$ 2>/dev/null; then
11395 as_ln_s=ln
11396 else
11397 as_ln_s='cp -pR'
11398 fi
11399 else
11400 as_ln_s='cp -pR'
11401 fi
11402 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11403 rmdir conf$$.dir 2>/dev/null
11404
11405
11406 # as_fn_mkdir_p
11407 # -------------
11408 # Create "$as_dir" as a directory, including parents if necessary.
11409 as_fn_mkdir_p ()
11410 {
11411
11412 case $as_dir in #(
11413 -*) as_dir=./$as_dir;;
11414 esac
11415 test -d "$as_dir" || eval $as_mkdir_p || {
11416 as_dirs=
11417 while :; do
11418 case $as_dir in #(
11419 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11420 *) as_qdir=$as_dir;;
11421 esac
11422 as_dirs="'$as_qdir' $as_dirs"
11423 as_dir=`$as_dirname -- "$as_dir" ||
11424 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11425 X"$as_dir" : 'X\(//\)[^/]' \| \
11426 X"$as_dir" : 'X\(//\)$' \| \
11427 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11428 $as_echo X"$as_dir" |
11429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11430 s//\1/
11431 q
11432 }
11433 /^X\(\/\/\)[^/].*/{
11434 s//\1/
11435 q
11436 }
11437 /^X\(\/\/\)$/{
11438 s//\1/
11439 q
11440 }
11441 /^X\(\/\).*/{
11442 s//\1/
11443 q
11444 }
11445 s/.*/./; q'`
11446 test -d "$as_dir" && break
11447 done
11448 test -z "$as_dirs" || eval "mkdir $as_dirs"
11449 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11450
11451
11452 } # as_fn_mkdir_p
11453 if mkdir -p . 2>/dev/null; then
11454 as_mkdir_p='mkdir -p "$as_dir"'
11455 else
11456 test -d ./-p && rmdir ./-p
11457 as_mkdir_p=false
11458 fi
11459
11460
11461 # as_fn_executable_p FILE
11462 # -----------------------
11463 # Test if FILE is an executable regular file.
11464 as_fn_executable_p ()
11465 {
11466 test -f "$1" && test -x "$1"
11467 } # as_fn_executable_p
11468 as_test_x='test -x'
11469 as_executable_p=as_fn_executable_p
11470
11471 # Sed expression to map a string onto a valid CPP name.
11472 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11473
11474 # Sed expression to map a string onto a valid variable name.
11475 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11476
11477
11478 exec 6>&1
11479 ## ----------------------------------- ##
11480 ## Main body of $CONFIG_STATUS script. ##
11481 ## ----------------------------------- ##
11482 _ASEOF
11483 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11484
11485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11486 # Save the log message, to keep $0 and so on meaningful, and to
11487 # report actual input values of CONFIG_FILES etc. instead of their
11488 # values after options handling.
11489 ac_log="
11490 This file was extended by xkbprint $as_me 1.0.5, which was
11491 generated by GNU Autoconf 2.69. Invocation command line was
11492
11493 CONFIG_FILES = $CONFIG_FILES
11494 CONFIG_HEADERS = $CONFIG_HEADERS
11495 CONFIG_LINKS = $CONFIG_LINKS
11496 CONFIG_COMMANDS = $CONFIG_COMMANDS
11497 $ $0 $@
11498
11499 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11500 "
11501
11502 _ACEOF
11503
11504 case $ac_config_files in *"
11505 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11506 esac
11507
11508 case $ac_config_headers in *"
11509 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11510 esac
11511
11512
11513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11514 # Files that config.status was made for.
11515 config_files="$ac_config_files"
11516 config_headers="$ac_config_headers"
11517 config_commands="$ac_config_commands"
11518
11519 _ACEOF
11520
11521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11522 ac_cs_usage="\
11523 \`$as_me' instantiates files and other configuration actions
11524 from templates according to the current configuration. Unless the files
11525 and actions are specified as TAGs, all are instantiated by default.
11526
11527 Usage: $0 [OPTION]... [TAG]...
11528
11529 -h, --help print this help, then exit
11530 -V, --version print version number and configuration settings, then exit
11531 --config print configuration, then exit
11532 -q, --quiet, --silent
11533 do not print progress messages
11534 -d, --debug don't remove temporary files
11535 --recheck update $as_me by reconfiguring in the same conditions
11536 --file=FILE[:TEMPLATE]
11537 instantiate the configuration file FILE
11538 --header=FILE[:TEMPLATE]
11539 instantiate the configuration header FILE
11540
11541 Configuration files:
11542 $config_files
11543
11544 Configuration headers:
11545 $config_headers
11546
11547 Configuration commands:
11548 $config_commands
11549
11550 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbprint/issues>."
11551
11552 _ACEOF
11553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11554 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11555 ac_cs_version="\\
11556 xkbprint config.status 1.0.5
11557 configured by $0, generated by GNU Autoconf 2.69,
11558 with options \\"\$ac_cs_config\\"
11559
11560 Copyright (C) 2012 Free Software Foundation, Inc.
11561 This config.status script is free software; the Free Software Foundation
11562 gives unlimited permission to copy, distribute and modify it."
11563
11564 ac_pwd='$ac_pwd'
11565 srcdir='$srcdir'
11566 INSTALL='$INSTALL'
11567 MKDIR_P='$MKDIR_P'
11568 AWK='$AWK'
11569 test -n "\$AWK" || AWK=awk
11570 _ACEOF
11571
11572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11573 # The default lists apply if the user does not specify any file.
11574 ac_need_defaults=:
11575 while test $# != 0
11576 do
11577 case $1 in
11578 --*=?*)
11579 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11580 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11581 ac_shift=:
11582 ;;
11583 --*=)
11584 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11585 ac_optarg=
11586 ac_shift=:
11587 ;;
11588 *)
11589 ac_option=$1
11590 ac_optarg=$2
11591 ac_shift=shift
11592 ;;
11593 esac
11594
11595 case $ac_option in
11596 # Handling of the options.
11597 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11598 ac_cs_recheck=: ;;
11599 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11600 $as_echo "$ac_cs_version"; exit ;;
11601 --config | --confi | --conf | --con | --co | --c )
11602 $as_echo "$ac_cs_config"; exit ;;
11603 --debug | --debu | --deb | --de | --d | -d )
11604 debug=: ;;
11605 --file | --fil | --fi | --f )
11606 $ac_shift
11607 case $ac_optarg in
11608 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11609 '') as_fn_error $? "missing file argument" ;;
11610 esac
11611 as_fn_append CONFIG_FILES " '$ac_optarg'"
11612 ac_need_defaults=false;;
11613 --header | --heade | --head | --hea )
11614 $ac_shift
11615 case $ac_optarg in
11616 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11617 esac
11618 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11619 ac_need_defaults=false;;
11620 --he | --h)
11621 # Conflict between --help and --header
11622 as_fn_error $? "ambiguous option: \`$1'
11623 Try \`$0 --help' for more information.";;
11624 --help | --hel | -h )
11625 $as_echo "$ac_cs_usage"; exit ;;
11626 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11627 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11628 ac_cs_silent=: ;;
11629
11630 # This is an error.
11631 -*) as_fn_error $? "unrecognized option: \`$1'
11632 Try \`$0 --help' for more information." ;;
11633
11634 *) as_fn_append ac_config_targets " $1"
11635 ac_need_defaults=false ;;
11636
11637 esac
11638 shift
11639 done
11640
11641 ac_configure_extra_args=
11642
11643 if $ac_cs_silent; then
11644 exec 6>/dev/null
11645 ac_configure_extra_args="$ac_configure_extra_args --silent"
11646 fi
11647
11648 _ACEOF
11649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11650 if \$ac_cs_recheck; then
11651 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11652 shift
11653 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11654 CONFIG_SHELL='$SHELL'
11655 export CONFIG_SHELL
11656 exec "\$@"
11657 fi
11658
11659 _ACEOF
11660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11661 exec 5>>config.log
11662 {
11663 echo
11664 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11665 ## Running $as_me. ##
11666 _ASBOX
11667 $as_echo "$ac_log"
11668 } >&5
11669
11670 _ACEOF
11671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11672 #
11673 # INIT-COMMANDS
11674 #
11675 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
11676
11677 _ACEOF
11678
11679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11680
11681 # Handling of arguments.
11682 for ac_config_target in $ac_config_targets
11683 do
11684 case $ac_config_target in
11685 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11686 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11687 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11688 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11689
11690 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11691 esac
11692 done
11693
11694
11695 # If the user did not use the arguments to specify the items to instantiate,
11696 # then the envvar interface is used. Set only those that are not.
11697 # We use the long form for the default assignment because of an extremely
11698 # bizarre bug on SunOS 4.1.3.
11699 if $ac_need_defaults; then
11700 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11701 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11702 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11703 fi
11704
11705 # Have a temporary directory for convenience. Make it in the build tree
11706 # simply because there is no reason against having it here, and in addition,
11707 # creating and moving files from /tmp can sometimes cause problems.
11708 # Hook for its removal unless debugging.
11709 # Note that there is a small window in which the directory will not be cleaned:
11710 # after its creation but before its name has been assigned to `$tmp'.
11711 $debug ||
11712 {
11713 tmp= ac_tmp=
11714 trap 'exit_status=$?
11715 : "${ac_tmp:=$tmp}"
11716 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11717 ' 0
11718 trap 'as_fn_exit 1' 1 2 13 15
11719 }
11720 # Create a (secure) tmp directory for tmp files.
11721
11722 {
11723 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11724 test -d "$tmp"
11725 } ||
11726 {
11727 tmp=./conf$$-$RANDOM
11728 (umask 077 && mkdir "$tmp")
11729 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11730 ac_tmp=$tmp
11731
11732 # Set up the scripts for CONFIG_FILES section.
11733 # No need to generate them if there are no CONFIG_FILES.
11734 # This happens for instance with `./config.status config.h'.
11735 if test -n "$CONFIG_FILES"; then
11736
11737
11738 ac_cr=`echo X | tr X '\015'`
11739 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11740 # But we know of no other shell where ac_cr would be empty at this
11741 # point, so we can use a bashism as a fallback.
11742 if test "x$ac_cr" = x; then
11743 eval ac_cr=\$\'\\r\'
11744 fi
11745 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11746 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11747 ac_cs_awk_cr='\\r'
11748 else
11749 ac_cs_awk_cr=$ac_cr
11750 fi
11751
11752 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11753 _ACEOF
11754
11755
11756 {
11757 echo "cat >conf$$subs.awk <<_ACEOF" &&
11758 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11759 echo "_ACEOF"
11760 } >conf$$subs.sh ||
11761 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11762 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11763 ac_delim='%!_!# '
11764 for ac_last_try in false false false false false :; do
11765 . ./conf$$subs.sh ||
11766 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11767
11768 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11769 if test $ac_delim_n = $ac_delim_num; then
11770 break
11771 elif $ac_last_try; then
11772 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11773 else
11774 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11775 fi
11776 done
11777 rm -f conf$$subs.sh
11778
11779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11780 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11781 _ACEOF
11782 sed -n '
11783 h
11784 s/^/S["/; s/!.*/"]=/
11785 p
11786 g
11787 s/^[^!]*!//
11788 :repl
11789 t repl
11790 s/'"$ac_delim"'$//
11791 t delim
11792 :nl
11793 h
11794 s/\(.\{148\}\)..*/\1/
11795 t more1
11796 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11797 p
11798 n
11799 b repl
11800 :more1
11801 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11802 p
11803 g
11804 s/.\{148\}//
11805 t nl
11806 :delim
11807 h
11808 s/\(.\{148\}\)..*/\1/
11809 t more2
11810 s/["\\]/\\&/g; s/^/"/; s/$/"/
11811 p
11812 b
11813 :more2
11814 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11815 p
11816 g
11817 s/.\{148\}//
11818 t delim
11819 ' <conf$$subs.awk | sed '
11820 /^[^""]/{
11821 N
11822 s/\n//
11823 }
11824 ' >>$CONFIG_STATUS || ac_write_fail=1
11825 rm -f conf$$subs.awk
11826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11827 _ACAWK
11828 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11829 for (key in S) S_is_set[key] = 1
11830 FS = ""
11831
11832 }
11833 {
11834 line = $ 0
11835 nfields = split(line, field, "@")
11836 substed = 0
11837 len = length(field[1])
11838 for (i = 2; i < nfields; i++) {
11839 key = field[i]
11840 keylen = length(key)
11841 if (S_is_set[key]) {
11842 value = S[key]
11843 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11844 len += length(value) + length(field[++i])
11845 substed = 1
11846 } else
11847 len += 1 + keylen
11848 }
11849
11850 print line
11851 }
11852
11853 _ACAWK
11854 _ACEOF
11855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11856 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11857 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11858 else
11859 cat
11860 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11861 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11862 _ACEOF
11863
11864 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11865 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11866 # trailing colons and then remove the whole line if VPATH becomes empty
11867 # (actually we leave an empty line to preserve line numbers).
11868 if test "x$srcdir" = x.; then
11869 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11870 h
11871 s///
11872 s/^/:/
11873 s/[ ]*$/:/
11874 s/:\$(srcdir):/:/g
11875 s/:\${srcdir}:/:/g
11876 s/:@srcdir@:/:/g
11877 s/^:*//
11878 s/:*$//
11879 x
11880 s/\(=[ ]*\).*/\1/
11881 G
11882 s/\n//
11883 s/^[^=]*=[ ]*$//
11884 }'
11885 fi
11886
11887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11888 fi # test -n "$CONFIG_FILES"
11889
11890 # Set up the scripts for CONFIG_HEADERS section.
11891 # No need to generate them if there are no CONFIG_HEADERS.
11892 # This happens for instance with `./config.status Makefile'.
11893 if test -n "$CONFIG_HEADERS"; then
11894 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11895 BEGIN {
11896 _ACEOF
11897
11898 # Transform confdefs.h into an awk script `defines.awk', embedded as
11899 # here-document in config.status, that substitutes the proper values into
11900 # config.h.in to produce config.h.
11901
11902 # Create a delimiter string that does not exist in confdefs.h, to ease
11903 # handling of long lines.
11904 ac_delim='%!_!# '
11905 for ac_last_try in false false :; do
11906 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11907 if test -z "$ac_tt"; then
11908 break
11909 elif $ac_last_try; then
11910 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11911 else
11912 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11913 fi
11914 done
11915
11916 # For the awk script, D is an array of macro values keyed by name,
11917 # likewise P contains macro parameters if any. Preserve backslash
11918 # newline sequences.
11919
11920 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11921 sed -n '
11922 s/.\{148\}/&'"$ac_delim"'/g
11923 t rset
11924 :rset
11925 s/^[ ]*#[ ]*define[ ][ ]*/ /
11926 t def
11927 d
11928 :def
11929 s/\\$//
11930 t bsnl
11931 s/["\\]/\\&/g
11932 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11933 D["\1"]=" \3"/p
11934 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11935 d
11936 :bsnl
11937 s/["\\]/\\&/g
11938 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11939 D["\1"]=" \3\\\\\\n"\\/p
11940 t cont
11941 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11942 t cont
11943 d
11944 :cont
11945 n
11946 s/.\{148\}/&'"$ac_delim"'/g
11947 t clear
11948 :clear
11949 s/\\$//
11950 t bsnlc
11951 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11952 d
11953 :bsnlc
11954 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11955 b cont
11956 ' <confdefs.h | sed '
11957 s/'"$ac_delim"'/"\\\
11958 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11959
11960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11961 for (key in D) D_is_set[key] = 1
11962 FS = ""
11963 }
11964 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11965 line = \$ 0
11966 split(line, arg, " ")
11967 if (arg[1] == "#") {
11968 defundef = arg[2]
11969 mac1 = arg[3]
11970 } else {
11971 defundef = substr(arg[1], 2)
11972 mac1 = arg[2]
11973 }
11974 split(mac1, mac2, "(") #)
11975 macro = mac2[1]
11976 prefix = substr(line, 1, index(line, defundef) - 1)
11977 if (D_is_set[macro]) {
11978 # Preserve the white space surrounding the "#".
11979 print prefix "define", macro P[macro] D[macro]
11980 next
11981 } else {
11982 # Replace #undef with comments. This is necessary, for example,
11983 # in the case of _POSIX_SOURCE, which is predefined and required
11984 # on some systems where configure will not decide to define it.
11985 if (defundef == "undef") {
11986 print "/*", prefix defundef, macro, "*/"
11987 next
11988 }
11989 }
11990 }
11991 { print }
11992 _ACAWK
11993 _ACEOF
11994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11995 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11996 fi # test -n "$CONFIG_HEADERS"
11997
11998
11999 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12000 shift
12001 for ac_tag
12002 do
12003 case $ac_tag in
12004 :[FHLC]) ac_mode=$ac_tag; continue;;
12005 esac
12006 case $ac_mode$ac_tag in
12007 :[FHL]*:*);;
12008 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12009 :[FH]-) ac_tag=-:-;;
12010 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12011 esac
12012 ac_save_IFS=$IFS
12013 IFS=:
12014 set x $ac_tag
12015 IFS=$ac_save_IFS
12016 shift
12017 ac_file=$1
12018 shift
12019
12020 case $ac_mode in
12021 :L) ac_source=$1;;
12022 :[FH])
12023 ac_file_inputs=
12024 for ac_f
12025 do
12026 case $ac_f in
12027 -) ac_f="$ac_tmp/stdin";;
12028 *) # Look for the file first in the build tree, then in the source tree
12029 # (if the path is not absolute). The absolute path cannot be DOS-style,
12030 # because $ac_f cannot contain `:'.
12031 test -f "$ac_f" ||
12032 case $ac_f in
12033 [\\/$]*) false;;
12034 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12035 esac ||
12036 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12037 esac
12038 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12039 as_fn_append ac_file_inputs " '$ac_f'"
12040 done
12041
12042 # Let's still pretend it is `configure' which instantiates (i.e., don't
12043 # use $as_me), people would be surprised to read:
12044 # /* config.h. Generated by config.status. */
12045 configure_input='Generated from '`
12046 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12047 `' by configure.'
12048 if test x"$ac_file" != x-; then
12049 configure_input="$ac_file. $configure_input"
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12051 $as_echo "$as_me: creating $ac_file" >&6;}
12052 fi
12053 # Neutralize special characters interpreted by sed in replacement strings.
12054 case $configure_input in #(
12055 *\&* | *\|* | *\\* )
12056 ac_sed_conf_input=`$as_echo "$configure_input" |
12057 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12058 *) ac_sed_conf_input=$configure_input;;
12059 esac
12060
12061 case $ac_tag in
12062 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12063 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12064 esac
12065 ;;
12066 esac
12067
12068 ac_dir=`$as_dirname -- "$ac_file" ||
12069 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12070 X"$ac_file" : 'X\(//\)[^/]' \| \
12071 X"$ac_file" : 'X\(//\)$' \| \
12072 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12073 $as_echo X"$ac_file" |
12074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12075 s//\1/
12076 q
12077 }
12078 /^X\(\/\/\)[^/].*/{
12079 s//\1/
12080 q
12081 }
12082 /^X\(\/\/\)$/{
12083 s//\1/
12084 q
12085 }
12086 /^X\(\/\).*/{
12087 s//\1/
12088 q
12089 }
12090 s/.*/./; q'`
12091 as_dir="$ac_dir"; as_fn_mkdir_p
12092 ac_builddir=.
12093
12094 case "$ac_dir" in
12095 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12096 *)
12097 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12098 # A ".." for each directory in $ac_dir_suffix.
12099 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12100 case $ac_top_builddir_sub in
12101 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12102 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12103 esac ;;
12104 esac
12105 ac_abs_top_builddir=$ac_pwd
12106 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12107 # for backward compatibility:
12108 ac_top_builddir=$ac_top_build_prefix
12109
12110 case $srcdir in
12111 .) # We are building in place.
12112 ac_srcdir=.
12113 ac_top_srcdir=$ac_top_builddir_sub
12114 ac_abs_top_srcdir=$ac_pwd ;;
12115 [\\/]* | ?:[\\/]* ) # Absolute name.
12116 ac_srcdir=$srcdir$ac_dir_suffix;
12117 ac_top_srcdir=$srcdir
12118 ac_abs_top_srcdir=$srcdir ;;
12119 *) # Relative name.
12120 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12121 ac_top_srcdir=$ac_top_build_prefix$srcdir
12122 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12123 esac
12124 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12125
12126
12127 case $ac_mode in
12128 :F)
12129 #
12130 # CONFIG_FILE
12131 #
12132
12133 case $INSTALL in
12134 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12135 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12136 esac
12137 ac_MKDIR_P=$MKDIR_P
12138 case $MKDIR_P in
12139 [\\/$]* | ?:[\\/]* ) ;;
12140 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12141 esac
12142 _ACEOF
12143
12144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12145 # If the template does not know about datarootdir, expand it.
12146 # FIXME: This hack should be removed a few years after 2.60.
12147 ac_datarootdir_hack=; ac_datarootdir_seen=
12148 ac_sed_dataroot='
12149 /datarootdir/ {
12150 p
12151 q
12152 }
12153 /@datadir@/p
12154 /@docdir@/p
12155 /@infodir@/p
12156 /@localedir@/p
12157 /@mandir@/p'
12158 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12159 *datarootdir*) ac_datarootdir_seen=yes;;
12160 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12162 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12163 _ACEOF
12164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12165 ac_datarootdir_hack='
12166 s&@datadir@&$datadir&g
12167 s&@docdir@&$docdir&g
12168 s&@infodir@&$infodir&g
12169 s&@localedir@&$localedir&g
12170 s&@mandir@&$mandir&g
12171 s&\\\${datarootdir}&$datarootdir&g' ;;
12172 esac
12173 _ACEOF
12174
12175 # Neutralize VPATH when `$srcdir' = `.'.
12176 # Shell code in configure.ac might set extrasub.
12177 # FIXME: do we really want to maintain this feature?
12178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12179 ac_sed_extra="$ac_vpsub
12180 $extrasub
12181 _ACEOF
12182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12183 :t
12184 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12185 s|@configure_input@|$ac_sed_conf_input|;t t
12186 s&@top_builddir@&$ac_top_builddir_sub&;t t
12187 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12188 s&@srcdir@&$ac_srcdir&;t t
12189 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12190 s&@top_srcdir@&$ac_top_srcdir&;t t
12191 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12192 s&@builddir@&$ac_builddir&;t t
12193 s&@abs_builddir@&$ac_abs_builddir&;t t
12194 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12195 s&@INSTALL@&$ac_INSTALL&;t t
12196 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12197 $ac_datarootdir_hack
12198 "
12199 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12200 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12201
12202 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12203 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12204 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12205 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12207 which seems to be undefined. Please make sure it is defined" >&5
12208 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12209 which seems to be undefined. Please make sure it is defined" >&2;}
12210
12211 rm -f "$ac_tmp/stdin"
12212 case $ac_file in
12213 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12214 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12215 esac \
12216 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12217 ;;
12218 :H)
12219 #
12220 # CONFIG_HEADER
12221 #
12222 if test x"$ac_file" != x-; then
12223 {
12224 $as_echo "/* $configure_input */" \
12225 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12226 } >"$ac_tmp/config.h" \
12227 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12228 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12230 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12231 else
12232 rm -f "$ac_file"
12233 mv "$ac_tmp/config.h" "$ac_file" \
12234 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12235 fi
12236 else
12237 $as_echo "/* $configure_input */" \
12238 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12239 || as_fn_error $? "could not create -" "$LINENO" 5
12240 fi
12241 # Compute "$ac_file"'s index in $config_headers.
12242 _am_arg="$ac_file"
12243 _am_stamp_count=1
12244 for _am_header in $config_headers :; do
12245 case $_am_header in
12246 $_am_arg | $_am_arg:* )
12247 break ;;
12248 * )
12249 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12250 esac
12251 done
12252 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12253 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12254 X"$_am_arg" : 'X\(//\)[^/]' \| \
12255 X"$_am_arg" : 'X\(//\)$' \| \
12256 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12257 $as_echo X"$_am_arg" |
12258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12259 s//\1/
12260 q
12261 }
12262 /^X\(\/\/\)[^/].*/{
12263 s//\1/
12264 q
12265 }
12266 /^X\(\/\/\)$/{
12267 s//\1/
12268 q
12269 }
12270 /^X\(\/\).*/{
12271 s//\1/
12272 q
12273 }
12274 s/.*/./; q'`/stamp-h$_am_stamp_count
12275 ;;
12276
12277 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12278 $as_echo "$as_me: executing $ac_file commands" >&6;}
12279 ;;
12280 esac
12281
12282
12283 case $ac_file$ac_mode in
12284 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12285 # Older Autoconf quotes --file arguments for eval, but not when files
12286 # are listed without --file. Let's play safe and only enable the eval
12287 # if we detect the quoting.
12288 # TODO: see whether this extra hack can be removed once we start
12289 # requiring Autoconf 2.70 or later.
12290 case $CONFIG_FILES in #(
12291 *\'*) :
12292 eval set x "$CONFIG_FILES" ;; #(
12293 *) :
12294 set x $CONFIG_FILES ;; #(
12295 *) :
12296 ;;
12297 esac
12298 shift
12299 # Used to flag and report bootstrapping failures.
12300 am_rc=0
12301 for am_mf
12302 do
12303 # Strip MF so we end up with the name of the file.
12304 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
12305 # Check whether this is an Automake generated Makefile which includes
12306 # dependency-tracking related rules and includes.
12307 # Grep'ing the whole file directly is not great: AIX grep has a line
12308 # limit of 2048, but all sed's we know have understand at least 4000.
12309 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12310 || continue
12311 am_dirpart=`$as_dirname -- "$am_mf" ||
12312 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12313 X"$am_mf" : 'X\(//\)[^/]' \| \
12314 X"$am_mf" : 'X\(//\)$' \| \
12315 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12316 $as_echo X"$am_mf" |
12317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12318 s//\1/
12319 q
12320 }
12321 /^X\(\/\/\)[^/].*/{
12322 s//\1/
12323 q
12324 }
12325 /^X\(\/\/\)$/{
12326 s//\1/
12327 q
12328 }
12329 /^X\(\/\).*/{
12330 s//\1/
12331 q
12332 }
12333 s/.*/./; q'`
12334 am_filepart=`$as_basename -- "$am_mf" ||
12335 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12336 X"$am_mf" : 'X\(//\)$' \| \
12337 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12338 $as_echo X/"$am_mf" |
12339 sed '/^.*\/\([^/][^/]*\)\/*$/{
12340 s//\1/
12341 q
12342 }
12343 /^X\/\(\/\/\)$/{
12344 s//\1/
12345 q
12346 }
12347 /^X\/\(\/\).*/{
12348 s//\1/
12349 q
12350 }
12351 s/.*/./; q'`
12352 { echo "$as_me:$LINENO: cd "$am_dirpart" \
12353 && sed -e '/# am--include-marker/d' "$am_filepart" \
12354 | $MAKE -f - am--depfiles" >&5
12355 (cd "$am_dirpart" \
12356 && sed -e '/# am--include-marker/d' "$am_filepart" \
12357 | $MAKE -f - am--depfiles) >&5 2>&5
12358 ac_status=$?
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } || am_rc=$?
12361 done
12362 if test $am_rc -ne 0; then
12363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12365 as_fn_error $? "Something went wrong bootstrapping makefile fragments
12366 for automatic dependency tracking. Try re-running configure with the
12367 '--disable-dependency-tracking' option to at least be able to build
12368 the package (albeit without support for automatic dependency tracking).
12369 See \`config.log' for more details" "$LINENO" 5; }
12370 fi
12371 { am_dirpart=; unset am_dirpart;}
12372 { am_filepart=; unset am_filepart;}
12373 { am_mf=; unset am_mf;}
12374 { am_rc=; unset am_rc;}
12375 rm -f conftest-deps.mk
12376 }
12377 ;;
12378
12379 esac
12380 done # for ac_tag
12381
12382
12383 as_fn_exit 0
12384 _ACEOF
12385 ac_clean_files=$ac_clean_files_save
12386
12387 test $ac_write_fail = 0 ||
12388 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12389
12390
12391 # configure is writing to config.log, and then calls config.status.
12392 # config.status does its own redirection, appending to config.log.
12393 # Unfortunately, on DOS this fails, as config.log is still kept open
12394 # by configure, so config.status won't be able to write to it; its
12395 # output is simply discarded. So we exec the FD to /dev/null,
12396 # effectively closing config.log, so it can be properly (re)opened and
12397 # appended to by config.status. When coming back to configure, we
12398 # need to make the FD available again.
12399 if test "$no_create" != yes; then
12400 ac_cs_success=:
12401 ac_config_status_args=
12402 test "$silent" = yes &&
12403 ac_config_status_args="$ac_config_status_args --quiet"
12404 exec 5>/dev/null
12405 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12406 exec 5>>config.log
12407 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12408 # would make configure fail if this is the last instruction.
12409 $ac_cs_success || as_fn_exit 1
12410 fi
12411 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12413 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12414 fi
12415
12416