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.71 for xkbutils 1.0.5.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbutils/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev/null
188 then :
189 as_have_required=yes
190 else $as_nop
191 as_have_required=no
192 fi
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
195
196 else $as_nop
197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 as_found=false
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 do
201 IFS=$as_save_IFS
202 case $as_dir in #(((
203 '') as_dir=./ ;;
204 */) ;;
205 *) as_dir=$as_dir/ ;;
206 esac
207 as_found=:
208 case $as_dir in #(
209 /*)
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
212 as_shell=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215 then :
216 CONFIG_SHELL=$as_shell as_have_required=yes
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218 then :
219 break 2
220 fi
221 fi
222 done;;
223 esac
224 as_found=false
225 done
226 IFS=$as_save_IFS
227 if $as_found
228 then :
229
230 else $as_nop
231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi
236 fi
237
238
239 if test "x$CONFIG_SHELL" != x
240 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno
263 then :
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
271 $0: https://gitlab.freedesktop.org/xorg/app/xkbutils/issues
272 $0: about your system, including any error possibly output
273 $0: before this message. Then install a modern shell, or
274 $0: manually run the script under such a shell if you do
275 $0: have one."
276 fi
277 exit 1
278 fi
279 fi
280 fi
281 SHELL=${CONFIG_SHELL-/bin/sh}
282 export SHELL
283 # Unset more variables known to interfere with behavior of common tools.
284 CLICOLOR_FORCE= GREP_OPTIONS=
285 unset CLICOLOR_FORCE GREP_OPTIONS
286
287 ## --------------------- ##
288 ## M4sh Shell Functions. ##
289 ## --------------------- ##
290 # as_fn_unset VAR
291 # ---------------
292 # Portably unset VAR.
293 as_fn_unset ()
294 {
295 { eval $1=; unset $1;}
296 }
297 as_unset=as_fn_unset
298
299
300 # as_fn_set_status STATUS
301 # -----------------------
302 # Set $? to STATUS, without forking.
303 as_fn_set_status ()
304 {
305 return $1
306 } # as_fn_set_status
307
308 # as_fn_exit STATUS
309 # -----------------
310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311 as_fn_exit ()
312 {
313 set +e
314 as_fn_set_status $1
315 exit $1
316 } # as_fn_exit
317 # as_fn_nop
318 # ---------
319 # Do nothing but, unlike ":", preserve the value of $?.
320 as_fn_nop ()
321 {
322 return $?
323 }
324 as_nop=as_fn_nop
325
326 # as_fn_mkdir_p
327 # -------------
328 # Create "$as_dir" as a directory, including parents if necessary.
329 as_fn_mkdir_p ()
330 {
331
332 case $as_dir in #(
333 -*) as_dir=./$as_dir;;
334 esac
335 test -d "$as_dir" || eval $as_mkdir_p || {
336 as_dirs=
337 while :; do
338 case $as_dir in #(
339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 *) as_qdir=$as_dir;;
341 esac
342 as_dirs="'$as_qdir' $as_dirs"
343 as_dir=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)[^/].*/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\).*/{
362 s//\1/
363 q
364 }
365 s/.*/./; q'`
366 test -d "$as_dir" && break
367 done
368 test -z "$as_dirs" || eval "mkdir $as_dirs"
369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372 } # as_fn_mkdir_p
373
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p ()
378 {
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
386 # implementations.
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else $as_nop
394 as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 }
398 fi # as_fn_append
399
400 # as_fn_arith ARG...
401 # ------------------
402 # Perform arithmetic evaluation on the ARGs, and store the result in the
403 # global $as_val. Take advantage of shells that can avoid forks. The arguments
404 # must be portable across $(()) and expr.
405 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
406 then :
407 eval 'as_fn_arith ()
408 {
409 as_val=$(( $* ))
410 }'
411 else $as_nop
412 as_fn_arith ()
413 {
414 as_val=`expr "$@" || test $? -eq 1`
415 }
416 fi # as_fn_arith
417
418 # as_fn_nop
419 # ---------
420 # Do nothing but, unlike ":", preserve the value of $?.
421 as_fn_nop ()
422 {
423 return $?
424 }
425 as_nop=as_fn_nop
426
427 # as_fn_error STATUS ERROR [LINENO LOG_FD]
428 # ----------------------------------------
429 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
430 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
431 # script with STATUS, using 1 if that was 0.
432 as_fn_error ()
433 {
434 as_status=$1; test $as_status -eq 0 && as_status=1
435 if test "$4"; then
436 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438 fi
439 printf "%s\n" "$as_me: error: $2" >&2
440 as_fn_exit $as_status
441 } # as_fn_error
442
443 if expr a : '\(a\)' >/dev/null 2>&1 &&
444 test "X`expr 00001 : '.*\(...\)'`" = X001; then
445 as_expr=expr
446 else
447 as_expr=false
448 fi
449
450 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
451 as_basename=basename
452 else
453 as_basename=false
454 fi
455
456 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
457 as_dirname=dirname
458 else
459 as_dirname=false
460 fi
461
462 as_me=`$as_basename -- "$0" ||
463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
464 X"$0" : 'X\(//\)$' \| \
465 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
466 printf "%s\n" X/"$0" |
467 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 s//\1/
469 q
470 }
471 /^X\/\(\/\/\)$/{
472 s//\1/
473 q
474 }
475 /^X\/\(\/\).*/{
476 s//\1/
477 q
478 }
479 s/.*/./; q'`
480
481 # Avoid depending upon Character Ranges.
482 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
483 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
484 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
485 as_cr_digits='0123456789'
486 as_cr_alnum=$as_cr_Letters$as_cr_digits
487
488
489 as_lineno_1=$LINENO as_lineno_1a=$LINENO
490 as_lineno_2=$LINENO as_lineno_2a=$LINENO
491 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
492 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
493 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
494 sed -n '
495 p
496 /[$]LINENO/=
497 ' <$as_myself |
498 sed '
499 s/[$]LINENO.*/&-/
500 t lineno
501 b
502 :lineno
503 N
504 :loop
505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506 t loop
507 s/-\n.*//
508 ' >$as_me.lineno &&
509 chmod +x "$as_me.lineno" ||
510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513 # already done that, so ensure we don't try to do so again and fall
514 # in an infinite loop. This has already happened in practice.
515 _as_can_reexec=no; export _as_can_reexec
516 # Don't try to exec as it changes $[0], causing all sort of problems
517 # (the dirname of $[0] is not the place where we might find the
518 # original and so on. Autoconf is especially sensitive to this).
519 . "./$as_me.lineno"
520 # Exit status is that of the last command.
521 exit
522 }
523
524
525 # Determine whether it's possible to make 'echo' print without a newline.
526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527 # for compatibility with existing Makefiles.
528 ECHO_C= ECHO_N= ECHO_T=
529 case `echo -n x` in #(((((
530 -n*)
531 case `echo 'xy\c'` in
532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
533 xy) ECHO_C='\c';;
534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
535 ECHO_T=' ';;
536 esac;;
537 *)
538 ECHO_N='-n';;
539 esac
540
541 # For backward compatibility with old third-party macros, we provide
542 # the shell variables $as_echo and $as_echo_n. New code should use
543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544 as_echo='printf %s\n'
545 as_echo_n='printf %s'
546
547
548 rm -f conf$$ conf$$.exe conf$$.file
549 if test -d conf$$.dir; then
550 rm -f conf$$.dir/conf$$.file
551 else
552 rm -f conf$$.dir
553 mkdir conf$$.dir 2>/dev/null
554 fi
555 if (echo >conf$$.file) 2>/dev/null; then
556 if ln -s conf$$.file conf$$ 2>/dev/null; then
557 as_ln_s='ln -s'
558 # ... but there are two gotchas:
559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
561 # In both cases, we have to default to `cp -pR'.
562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
563 as_ln_s='cp -pR'
564 elif ln conf$$.file conf$$ 2>/dev/null; then
565 as_ln_s=ln
566 else
567 as_ln_s='cp -pR'
568 fi
569 else
570 as_ln_s='cp -pR'
571 fi
572 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
573 rmdir conf$$.dir 2>/dev/null
574
575 if mkdir -p . 2>/dev/null; then
576 as_mkdir_p='mkdir -p "$as_dir"'
577 else
578 test -d ./-p && rmdir ./-p
579 as_mkdir_p=false
580 fi
581
582 as_test_x='test -x'
583 as_executable_p=as_fn_executable_p
584
585 # Sed expression to map a string onto a valid CPP name.
586 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587
588 # Sed expression to map a string onto a valid variable name.
589 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590
591
592 test -n "$DJDIR" || exec 7<&0 </dev/null
593 exec 6>&1
594
595 # Name of the host.
596 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
597 # so uname gets run too.
598 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
599
600 #
601 # Initializations.
602 #
603 ac_default_prefix=/usr/local
604 ac_clean_files=
605 ac_config_libobj_dir=.
606 LIBOBJS=
607 cross_compiling=no
608 subdirs=
609 MFLAGS=
610 MAKEFLAGS=
611
612 # Identity of this package.
613 PACKAGE_NAME='xkbutils'
614 PACKAGE_TARNAME='xkbutils'
615 PACKAGE_VERSION='1.0.5'
616 PACKAGE_STRING='xkbutils 1.0.5'
617 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xkbutils/issues'
618 PACKAGE_URL=''
619
620 ac_unique_file="Makefile.am"
621 # Factoring default headers for most tests.
622 ac_includes_default="\
623 #include <stddef.h>
624 #ifdef HAVE_STDIO_H
625 # include <stdio.h>
626 #endif
627 #ifdef HAVE_STDLIB_H
628 # include <stdlib.h>
629 #endif
630 #ifdef HAVE_STRING_H
631 # include <string.h>
632 #endif
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
635 #endif
636 #ifdef HAVE_STDINT_H
637 # include <stdint.h>
638 #endif
639 #ifdef HAVE_STRINGS_H
640 # include <strings.h>
641 #endif
642 #ifdef HAVE_SYS_TYPES_H
643 # include <sys/types.h>
644 #endif
645 #ifdef HAVE_SYS_STAT_H
646 # include <sys/stat.h>
647 #endif
648 #ifdef HAVE_UNISTD_H
649 # include <unistd.h>
650 #endif"
651
652 ac_header_c_list=
653 ac_subst_vars='am__EXEEXT_FALSE
654 am__EXEEXT_TRUE
655 LTLIBOBJS
656 LIBOBJS
657 XKBWATCH_LIBS
658 XKBWATCH_CFLAGS
659 XKBBELL_LIBS
660 XKBBELL_CFLAGS
661 XKBVLEDS_LIBS
662 XKBVLEDS_CFLAGS
663 MAN_SUBSTS
664 XORG_MAN_PAGE
665 ADMIN_MAN_DIR
666 DRIVER_MAN_DIR
667 MISC_MAN_DIR
668 FILE_MAN_DIR
669 LIB_MAN_DIR
670 APP_MAN_DIR
671 ADMIN_MAN_SUFFIX
672 DRIVER_MAN_SUFFIX
673 MISC_MAN_SUFFIX
674 FILE_MAN_SUFFIX
675 LIB_MAN_SUFFIX
676 APP_MAN_SUFFIX
677 SED
678 host_os
679 host_vendor
680 host_cpu
681 host
682 build_os
683 build_vendor
684 build_cpu
685 build
686 INSTALL_CMD
687 PKG_CONFIG_LIBDIR
688 PKG_CONFIG_PATH
689 PKG_CONFIG
690 CHANGELOG_CMD
691 STRICT_CFLAGS
692 CWARNFLAGS
693 BASE_CFLAGS
694 am__fastdepCC_FALSE
695 am__fastdepCC_TRUE
696 CCDEPMODE
697 am__nodep
698 AMDEPBACKSLASH
699 AMDEP_FALSE
700 AMDEP_TRUE
701 am__include
702 DEPDIR
703 OBJEXT
704 EXEEXT
705 ac_ct_CC
706 CPPFLAGS
707 LDFLAGS
708 CFLAGS
709 CC
710 AM_BACKSLASH
711 AM_DEFAULT_VERBOSITY
712 AM_DEFAULT_V
713 AM_V
714 CSCOPE
715 ETAGS
716 CTAGS
717 am__untar
718 am__tar
719 AMTAR
720 am__leading_dot
721 SET_MAKE
722 AWK
723 mkdir_p
724 MKDIR_P
725 INSTALL_STRIP_PROGRAM
726 STRIP
727 install_sh
728 MAKEINFO
729 AUTOHEADER
730 AUTOMAKE
731 AUTOCONF
732 ACLOCAL
733 VERSION
734 PACKAGE
735 CYGPATH_W
736 am__isrc
737 INSTALL_DATA
738 INSTALL_SCRIPT
739 INSTALL_PROGRAM
740 target_alias
741 host_alias
742 build_alias
743 LIBS
744 ECHO_T
745 ECHO_N
746 ECHO_C
747 DEFS
748 mandir
749 localedir
750 libdir
751 psdir
752 pdfdir
753 dvidir
754 htmldir
755 infodir
756 docdir
757 oldincludedir
758 includedir
759 runstatedir
760 localstatedir
761 sharedstatedir
762 sysconfdir
763 datadir
764 datarootdir
765 libexecdir
766 sbindir
767 bindir
768 program_transform_name
769 prefix
770 exec_prefix
771 PACKAGE_URL
772 PACKAGE_BUGREPORT
773 PACKAGE_STRING
774 PACKAGE_VERSION
775 PACKAGE_TARNAME
776 PACKAGE_NAME
777 PATH_SEPARATOR
778 SHELL
779 am__quote'
780 ac_subst_files=''
781 ac_user_opts='
782 enable_option_checking
783 enable_silent_rules
784 enable_dependency_tracking
785 enable_selective_werror
786 enable_strict_compilation
787 '
788 ac_precious_vars='build_alias
789 host_alias
790 target_alias
791 CC
792 CFLAGS
793 LDFLAGS
794 LIBS
795 CPPFLAGS
796 PKG_CONFIG
797 PKG_CONFIG_PATH
798 PKG_CONFIG_LIBDIR
799 XKBVLEDS_CFLAGS
800 XKBVLEDS_LIBS
801 XKBBELL_CFLAGS
802 XKBBELL_LIBS
803 XKBWATCH_CFLAGS
804 XKBWATCH_LIBS'
805
806
807 # Initialize some variables set by options.
808 ac_init_help=
809 ac_init_version=false
810 ac_unrecognized_opts=
811 ac_unrecognized_sep=
812 # The variables have the same names as the options, with
813 # dashes changed to underlines.
814 cache_file=/dev/null
815 exec_prefix=NONE
816 no_create=
817 no_recursion=
818 prefix=NONE
819 program_prefix=NONE
820 program_suffix=NONE
821 program_transform_name=s,x,x,
822 silent=
823 site=
824 srcdir=
825 verbose=
826 x_includes=NONE
827 x_libraries=NONE
828
829 # Installation directory options.
830 # These are left unexpanded so users can "make install exec_prefix=/foo"
831 # and all the variables that are supposed to be based on exec_prefix
832 # by default will actually change.
833 # Use braces instead of parens because sh, perl, etc. also accept them.
834 # (The list follows the same order as the GNU Coding Standards.)
835 bindir='${exec_prefix}/bin'
836 sbindir='${exec_prefix}/sbin'
837 libexecdir='${exec_prefix}/libexec'
838 datarootdir='${prefix}/share'
839 datadir='${datarootdir}'
840 sysconfdir='${prefix}/etc'
841 sharedstatedir='${prefix}/com'
842 localstatedir='${prefix}/var'
843 runstatedir='${localstatedir}/run'
844 includedir='${prefix}/include'
845 oldincludedir='/usr/include'
846 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
847 infodir='${datarootdir}/info'
848 htmldir='${docdir}'
849 dvidir='${docdir}'
850 pdfdir='${docdir}'
851 psdir='${docdir}'
852 libdir='${exec_prefix}/lib'
853 localedir='${datarootdir}/locale'
854 mandir='${datarootdir}/man'
855
856 ac_prev=
857 ac_dashdash=
858 for ac_option
859 do
860 # If the previous option needs an argument, assign it.
861 if test -n "$ac_prev"; then
862 eval $ac_prev=\$ac_option
863 ac_prev=
864 continue
865 fi
866
867 case $ac_option in
868 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
869 *=) ac_optarg= ;;
870 *) ac_optarg=yes ;;
871 esac
872
873 case $ac_dashdash$ac_option in
874 --)
875 ac_dashdash=yes ;;
876
877 -bindir | --bindir | --bindi | --bind | --bin | --bi)
878 ac_prev=bindir ;;
879 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
880 bindir=$ac_optarg ;;
881
882 -build | --build | --buil | --bui | --bu)
883 ac_prev=build_alias ;;
884 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
885 build_alias=$ac_optarg ;;
886
887 -cache-file | --cache-file | --cache-fil | --cache-fi \
888 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
889 ac_prev=cache_file ;;
890 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
891 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
892 cache_file=$ac_optarg ;;
893
894 --config-cache | -C)
895 cache_file=config.cache ;;
896
897 -datadir | --datadir | --datadi | --datad)
898 ac_prev=datadir ;;
899 -datadir=* | --datadir=* | --datadi=* | --datad=*)
900 datadir=$ac_optarg ;;
901
902 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
903 | --dataroo | --dataro | --datar)
904 ac_prev=datarootdir ;;
905 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
906 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
907 datarootdir=$ac_optarg ;;
908
909 -disable-* | --disable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error $? "invalid feature name: \`$ac_useropt'"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
917 *"
918 "enable_$ac_useropt"
919 "*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=no ;;
924
925 -docdir | --docdir | --docdi | --doc | --do)
926 ac_prev=docdir ;;
927 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928 docdir=$ac_optarg ;;
929
930 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931 ac_prev=dvidir ;;
932 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933 dvidir=$ac_optarg ;;
934
935 -enable-* | --enable-*)
936 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 as_fn_error $? "invalid feature name: \`$ac_useropt'"
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
943 *"
944 "enable_$ac_useropt"
945 "*) ;;
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
948 esac
949 eval enable_$ac_useropt=\$ac_optarg ;;
950
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
959
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
962 with_gas=yes ;;
963
964 -help | --help | --hel | --he | -h)
965 ac_init_help=long ;;
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
970
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
975
976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 ac_prev=htmldir ;;
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 | --ht=*)
980 htmldir=$ac_optarg ;;
981
982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
988
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 ac_prev=infodir ;;
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
993
994 -libdir | --libdir | --libdi | --libd)
995 ac_prev=libdir ;;
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 libdir=$ac_optarg ;;
998
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1005
1006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1010
1011 -localstatedir | --localstatedir | --localstatedi | --localstated \
1012 | --localstate | --localstat | --localsta | --localst | --locals)
1013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016 localstatedir=$ac_optarg ;;
1017
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 ac_prev=mandir ;;
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1022
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1025 with_fp=no ;;
1026
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1029 no_create=yes ;;
1030
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 no_recursion=yes ;;
1034
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1043
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 ac_prev=prefix ;;
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1048
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1055
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1062
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1079
1080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 ac_prev=pdfdir ;;
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1084
1085 -psdir | --psdir | --psdi | --psd | --ps)
1086 ac_prev=psdir ;;
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 psdir=$ac_optarg ;;
1089
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1092 silent=yes ;;
1093
1094 -runstatedir | --runstatedir | --runstatedi | --runstated \
1095 | --runstate | --runstat | --runsta | --runst | --runs \
1096 | --run | --ru | --r)
1097 ac_prev=runstatedir ;;
1098 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1099 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1100 | --run=* | --ru=* | --r=*)
1101 runstatedir=$ac_optarg ;;
1102
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 ac_prev=sbindir ;;
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 | --sbi=* | --sb=*)
1107 sbindir=$ac_optarg ;;
1108
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1112 | --sha | --sh)
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 | --sha=* | --sh=*)
1118 sharedstatedir=$ac_optarg ;;
1119
1120 -site | --site | --sit)
1121 ac_prev=site ;;
1122 -site=* | --site=* | --sit=*)
1123 site=$ac_optarg ;;
1124
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 ac_prev=srcdir ;;
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1129
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1136
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1141
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 verbose=yes ;;
1144
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1147
1148 -with-* | --with-*)
1149 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 as_fn_error $? "invalid package name: \`$ac_useropt'"
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1156 *"
1157 "with_$ac_useropt"
1158 "*) ;;
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1161 esac
1162 eval with_$ac_useropt=\$ac_optarg ;;
1163
1164 -without-* | --without-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error $? "invalid package name: \`$ac_useropt'"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1172 *"
1173 "with_$ac_useropt"
1174 "*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1177 esac
1178 eval with_$ac_useropt=no ;;
1179
1180 --x)
1181 # Obsolete; use --with-x.
1182 with_x=yes ;;
1183
1184 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1185 | --x-incl | --x-inc | --x-in | --x-i)
1186 ac_prev=x_includes ;;
1187 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1188 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1189 x_includes=$ac_optarg ;;
1190
1191 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1192 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1193 ac_prev=x_libraries ;;
1194 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1195 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1196 x_libraries=$ac_optarg ;;
1197
1198 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1199 Try \`$0 --help' for more information"
1200 ;;
1201
1202 *=*)
1203 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1204 # Reject names that are not valid shell variable names.
1205 case $ac_envvar in #(
1206 '' | [0-9]* | *[!_$as_cr_alnum]* )
1207 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1208 esac
1209 eval $ac_envvar=\$ac_optarg
1210 export $ac_envvar ;;
1211
1212 *)
1213 # FIXME: should be removed in autoconf 3.0.
1214 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1215 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1217 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1218 ;;
1219
1220 esac
1221 done
1222
1223 if test -n "$ac_prev"; then
1224 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1225 as_fn_error $? "missing argument to $ac_option"
1226 fi
1227
1228 if test -n "$ac_unrecognized_opts"; then
1229 case $enable_option_checking in
1230 no) ;;
1231 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1232 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1233 esac
1234 fi
1235
1236 # Check all directory arguments for consistency.
1237 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1238 datadir sysconfdir sharedstatedir localstatedir includedir \
1239 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1240 libdir localedir mandir runstatedir
1241 do
1242 eval ac_val=\$$ac_var
1243 # Remove trailing slashes.
1244 case $ac_val in
1245 */ )
1246 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1247 eval $ac_var=\$ac_val;;
1248 esac
1249 # Be sure to have absolute directory names.
1250 case $ac_val in
1251 [\\/$]* | ?:[\\/]* ) continue;;
1252 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1253 esac
1254 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1255 done
1256
1257 # There might be people who depend on the old broken behavior: `$host'
1258 # used to hold the argument of --host etc.
1259 # FIXME: To remove some day.
1260 build=$build_alias
1261 host=$host_alias
1262 target=$target_alias
1263
1264 # FIXME: To remove some day.
1265 if test "x$host_alias" != x; then
1266 if test "x$build_alias" = x; then
1267 cross_compiling=maybe
1268 elif test "x$build_alias" != "x$host_alias"; then
1269 cross_compiling=yes
1270 fi
1271 fi
1272
1273 ac_tool_prefix=
1274 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1275
1276 test "$silent" = yes && exec 6>/dev/null
1277
1278
1279 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1280 ac_ls_di=`ls -di .` &&
1281 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1282 as_fn_error $? "working directory cannot be determined"
1283 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1284 as_fn_error $? "pwd does not report name of working directory"
1285
1286
1287 # Find the source files, if location was not specified.
1288 if test -z "$srcdir"; then
1289 ac_srcdir_defaulted=yes
1290 # Try the directory containing this script, then the parent directory.
1291 ac_confdir=`$as_dirname -- "$as_myself" ||
1292 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1293 X"$as_myself" : 'X\(//\)[^/]' \| \
1294 X"$as_myself" : 'X\(//\)$' \| \
1295 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1296 printf "%s\n" X"$as_myself" |
1297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\/\)[^/].*/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\/\)$/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\).*/{
1310 s//\1/
1311 q
1312 }
1313 s/.*/./; q'`
1314 srcdir=$ac_confdir
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316 srcdir=..
1317 fi
1318 else
1319 ac_srcdir_defaulted=no
1320 fi
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1323 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1324 fi
1325 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1326 ac_abs_confdir=`(
1327 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1328 pwd)`
1329 # When building in place, set srcdir=.
1330 if test "$ac_abs_confdir" = "$ac_pwd"; then
1331 srcdir=.
1332 fi
1333 # Remove unnecessary trailing slashes from srcdir.
1334 # Double slashes in file names in object file debugging info
1335 # mess up M-x gdb in Emacs.
1336 case $srcdir in
1337 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1338 esac
1339 for ac_var in $ac_precious_vars; do
1340 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_env_${ac_var}_value=\$${ac_var}
1342 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1344 done
1345
1346 #
1347 # Report the --help message.
1348 #
1349 if test "$ac_init_help" = "long"; then
1350 # Omit some internal or obsolete options to make the list less imposing.
1351 # This message is too long to be a string in the A/UX 3.1 sh.
1352 cat <<_ACEOF
1353 \`configure' configures xkbutils 1.0.5 to adapt to many kinds of systems.
1354
1355 Usage: $0 [OPTION]... [VAR=VALUE]...
1356
1357 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1358 VAR=VALUE. See below for descriptions of some of the useful variables.
1359
1360 Defaults for the options are specified in brackets.
1361
1362 Configuration:
1363 -h, --help display this help and exit
1364 --help=short display options specific to this package
1365 --help=recursive display the short help of all the included packages
1366 -V, --version display version information and exit
1367 -q, --quiet, --silent do not print \`checking ...' messages
1368 --cache-file=FILE cache test results in FILE [disabled]
1369 -C, --config-cache alias for \`--cache-file=config.cache'
1370 -n, --no-create do not create output files
1371 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1372
1373 Installation directories:
1374 --prefix=PREFIX install architecture-independent files in PREFIX
1375 [$ac_default_prefix]
1376 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1377 [PREFIX]
1378
1379 By default, \`make install' will install all the files in
1380 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1381 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1382 for instance \`--prefix=\$HOME'.
1383
1384 For better control, use the options below.
1385
1386 Fine tuning of the installation directories:
1387 --bindir=DIR user executables [EPREFIX/bin]
1388 --sbindir=DIR system admin executables [EPREFIX/sbin]
1389 --libexecdir=DIR program executables [EPREFIX/libexec]
1390 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1391 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1392 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1393 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1394 --libdir=DIR object code libraries [EPREFIX/lib]
1395 --includedir=DIR C header files [PREFIX/include]
1396 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1397 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1398 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1399 --infodir=DIR info documentation [DATAROOTDIR/info]
1400 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1401 --mandir=DIR man documentation [DATAROOTDIR/man]
1402 --docdir=DIR documentation root [DATAROOTDIR/doc/xkbutils]
1403 --htmldir=DIR html documentation [DOCDIR]
1404 --dvidir=DIR dvi documentation [DOCDIR]
1405 --pdfdir=DIR pdf documentation [DOCDIR]
1406 --psdir=DIR ps documentation [DOCDIR]
1407 _ACEOF
1408
1409 cat <<\_ACEOF
1410
1411 Program names:
1412 --program-prefix=PREFIX prepend PREFIX to installed program names
1413 --program-suffix=SUFFIX append SUFFIX to installed program names
1414 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1415
1416 System types:
1417 --build=BUILD configure for building on BUILD [guessed]
1418 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1419 _ACEOF
1420 fi
1421
1422 if test -n "$ac_init_help"; then
1423 case $ac_init_help in
1424 short | recursive ) echo "Configuration of xkbutils 1.0.5:";;
1425 esac
1426 cat <<\_ACEOF
1427
1428 Optional Features:
1429 --disable-option-checking ignore unrecognized --enable/--with options
1430 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1431 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1432 --enable-silent-rules less verbose build output (undo: "make V=1")
1433 --disable-silent-rules verbose build output (undo: "make V=0")
1434 --enable-dependency-tracking
1435 do not reject slow dependency extractors
1436 --disable-dependency-tracking
1437 speeds up one-time build
1438 --disable-selective-werror
1439 Turn off selective compiler errors. (default:
1440 enabled)
1441 --enable-strict-compilation
1442 Enable all warnings from compiler and make them
1443 errors (default: disabled)
1444
1445 Some influential environment variables:
1446 CC C compiler command
1447 CFLAGS C compiler flags
1448 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1449 nonstandard directory <lib dir>
1450 LIBS libraries to pass to the linker, e.g. -l<library>
1451 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1452 you have headers in a nonstandard directory <include dir>
1453 PKG_CONFIG path to pkg-config utility
1454 PKG_CONFIG_PATH
1455 directories to add to pkg-config's search path
1456 PKG_CONFIG_LIBDIR
1457 path overriding pkg-config's built-in search path
1458 XKBVLEDS_CFLAGS
1459 C compiler flags for XKBVLEDS, overriding pkg-config
1460 XKBVLEDS_LIBS
1461 linker flags for XKBVLEDS, overriding pkg-config
1462 XKBBELL_CFLAGS
1463 C compiler flags for XKBBELL, overriding pkg-config
1464 XKBBELL_LIBS
1465 linker flags for XKBBELL, overriding pkg-config
1466 XKBWATCH_CFLAGS
1467 C compiler flags for XKBWATCH, overriding pkg-config
1468 XKBWATCH_LIBS
1469 linker flags for XKBWATCH, overriding pkg-config
1470
1471 Use these variables to override the choices made by `configure' or to help
1472 it to find libraries and programs with nonstandard names/locations.
1473
1474 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbutils/issues>.
1475 _ACEOF
1476 ac_status=$?
1477 fi
1478
1479 if test "$ac_init_help" = "recursive"; then
1480 # If there are subdirs, report their specific --help.
1481 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1482 test -d "$ac_dir" ||
1483 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1484 continue
1485 ac_builddir=.
1486
1487 case "$ac_dir" in
1488 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 *)
1490 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1491 # A ".." for each directory in $ac_dir_suffix.
1492 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1493 case $ac_top_builddir_sub in
1494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496 esac ;;
1497 esac
1498 ac_abs_top_builddir=$ac_pwd
1499 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500 # for backward compatibility:
1501 ac_top_builddir=$ac_top_build_prefix
1502
1503 case $srcdir in
1504 .) # We are building in place.
1505 ac_srcdir=.
1506 ac_top_srcdir=$ac_top_builddir_sub
1507 ac_abs_top_srcdir=$ac_pwd ;;
1508 [\\/]* | ?:[\\/]* ) # Absolute name.
1509 ac_srcdir=$srcdir$ac_dir_suffix;
1510 ac_top_srcdir=$srcdir
1511 ac_abs_top_srcdir=$srcdir ;;
1512 *) # Relative name.
1513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514 ac_top_srcdir=$ac_top_build_prefix$srcdir
1515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 esac
1517 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518
1519 cd "$ac_dir" || { ac_status=$?; continue; }
1520 # Check for configure.gnu first; this name is used for a wrapper for
1521 # Metaconfig's "Configure" on case-insensitive file systems.
1522 if test -f "$ac_srcdir/configure.gnu"; then
1523 echo &&
1524 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525 elif test -f "$ac_srcdir/configure"; then
1526 echo &&
1527 $SHELL "$ac_srcdir/configure" --help=recursive
1528 else
1529 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530 fi || ac_status=$?
1531 cd "$ac_pwd" || { ac_status=$?; break; }
1532 done
1533 fi
1534
1535 test -n "$ac_init_help" && exit $ac_status
1536 if $ac_init_version; then
1537 cat <<\_ACEOF
1538 xkbutils configure 1.0.5
1539 generated by GNU Autoconf 2.71
1540
1541 Copyright (C) 2021 Free Software Foundation, Inc.
1542 This configure script is free software; the Free Software Foundation
1543 gives unlimited permission to copy, distribute and modify it.
1544 _ACEOF
1545 exit
1546 fi
1547
1548 ## ------------------------ ##
1549 ## Autoconf initialization. ##
1550 ## ------------------------ ##
1551
1552 # ac_fn_c_try_compile LINENO
1553 # --------------------------
1554 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1555 ac_fn_c_try_compile ()
1556 {
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 rm -f conftest.$ac_objext conftest.beam
1559 if { { ac_try="$ac_compile"
1560 case "(($ac_try" in
1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562 *) ac_try_echo=$ac_try;;
1563 esac
1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565 printf "%s\n" "$ac_try_echo"; } >&5
1566 (eval "$ac_compile") 2>conftest.err
1567 ac_status=$?
1568 if test -s conftest.err; then
1569 grep -v '^ *+' conftest.err >conftest.er1
1570 cat conftest.er1 >&5
1571 mv -f conftest.er1 conftest.err
1572 fi
1573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574 test $ac_status = 0; } && {
1575 test -z "$ac_c_werror_flag" ||
1576 test ! -s conftest.err
1577 } && test -s conftest.$ac_objext
1578 then :
1579 ac_retval=0
1580 else $as_nop
1581 printf "%s\n" "$as_me: failed program was:" >&5
1582 sed 's/^/| /' conftest.$ac_ext >&5
1583
1584 ac_retval=1
1585 fi
1586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587 as_fn_set_status $ac_retval
1588
1589 } # ac_fn_c_try_compile
1590
1591 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1592 # ------------------------------------------------------------------
1593 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1594 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1595 ac_fn_check_decl ()
1596 {
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 as_decl_name=`echo $2|sed 's/ *(.*//'`
1599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1600 printf %s "checking whether $as_decl_name is declared... " >&6; }
1601 if eval test \${$3+y}
1602 then :
1603 printf %s "(cached) " >&6
1604 else $as_nop
1605 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1606 eval ac_save_FLAGS=\$$6
1607 as_fn_append $6 " $5"
1608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1609 /* end confdefs.h. */
1610 $4
1611 int
1612 main (void)
1613 {
1614 #ifndef $as_decl_name
1615 #ifdef __cplusplus
1616 (void) $as_decl_use;
1617 #else
1618 (void) $as_decl_name;
1619 #endif
1620 #endif
1621
1622 ;
1623 return 0;
1624 }
1625 _ACEOF
1626 if ac_fn_c_try_compile "$LINENO"
1627 then :
1628 eval "$3=yes"
1629 else $as_nop
1630 eval "$3=no"
1631 fi
1632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1633 eval $6=\$ac_save_FLAGS
1634
1635 fi
1636 eval ac_res=\$$3
1637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638 printf "%s\n" "$ac_res" >&6; }
1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640
1641 } # ac_fn_check_decl
1642
1643 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1644 # -------------------------------------------------------
1645 # Tests whether HEADER exists and can be compiled using the include files in
1646 # INCLUDES, setting the cache variable VAR accordingly.
1647 ac_fn_c_check_header_compile ()
1648 {
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1651 printf %s "checking for $2... " >&6; }
1652 if eval test \${$3+y}
1653 then :
1654 printf %s "(cached) " >&6
1655 else $as_nop
1656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657 /* end confdefs.h. */
1658 $4
1659 #include <$2>
1660 _ACEOF
1661 if ac_fn_c_try_compile "$LINENO"
1662 then :
1663 eval "$3=yes"
1664 else $as_nop
1665 eval "$3=no"
1666 fi
1667 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1668 fi
1669 eval ac_res=\$$3
1670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1671 printf "%s\n" "$ac_res" >&6; }
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673
1674 } # ac_fn_c_check_header_compile
1675
1676 # ac_fn_c_try_link LINENO
1677 # -----------------------
1678 # Try to link conftest.$ac_ext, and return whether this succeeded.
1679 ac_fn_c_try_link ()
1680 {
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1683 if { { ac_try="$ac_link"
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 printf "%s\n" "$ac_try_echo"; } >&5
1690 (eval "$ac_link") 2>conftest.err
1691 ac_status=$?
1692 if test -s conftest.err; then
1693 grep -v '^ *+' conftest.err >conftest.er1
1694 cat conftest.er1 >&5
1695 mv -f conftest.er1 conftest.err
1696 fi
1697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698 test $ac_status = 0; } && {
1699 test -z "$ac_c_werror_flag" ||
1700 test ! -s conftest.err
1701 } && test -s conftest$ac_exeext && {
1702 test "$cross_compiling" = yes ||
1703 test -x conftest$ac_exeext
1704 }
1705 then :
1706 ac_retval=0
1707 else $as_nop
1708 printf "%s\n" "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1710
1711 ac_retval=1
1712 fi
1713 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1714 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1715 # interfere with the next link command; also delete a directory that is
1716 # left behind by Apple's compiler. We do this before executing the actions.
1717 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 as_fn_set_status $ac_retval
1720
1721 } # ac_fn_c_try_link
1722
1723 # ac_fn_c_check_func LINENO FUNC VAR
1724 # ----------------------------------
1725 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1726 ac_fn_c_check_func ()
1727 {
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730 printf %s "checking for $2... " >&6; }
1731 if eval test \${$3+y}
1732 then :
1733 printf %s "(cached) " >&6
1734 else $as_nop
1735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736 /* end confdefs.h. */
1737 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1739 #define $2 innocuous_$2
1740
1741 /* System header to define __stub macros and hopefully few prototypes,
1742 which can conflict with char $2 (); below. */
1743
1744 #include <limits.h>
1745 #undef $2
1746
1747 /* Override any GCC internal prototype to avoid an error.
1748 Use char because int might match the return type of a GCC
1749 builtin and then its argument prototype would still apply. */
1750 #ifdef __cplusplus
1751 extern "C"
1752 #endif
1753 char $2 ();
1754 /* The GNU C library defines this for functions which it implements
1755 to always fail with ENOSYS. Some functions are actually named
1756 something starting with __ and the normal name is an alias. */
1757 #if defined __stub_$2 || defined __stub___$2
1758 choke me
1759 #endif
1760
1761 int
1762 main (void)
1763 {
1764 return $2 ();
1765 ;
1766 return 0;
1767 }
1768 _ACEOF
1769 if ac_fn_c_try_link "$LINENO"
1770 then :
1771 eval "$3=yes"
1772 else $as_nop
1773 eval "$3=no"
1774 fi
1775 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1776 conftest$ac_exeext conftest.$ac_ext
1777 fi
1778 eval ac_res=\$$3
1779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780 printf "%s\n" "$ac_res" >&6; }
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782
1783 } # ac_fn_c_check_func
1784 ac_configure_args_raw=
1785 for ac_arg
1786 do
1787 case $ac_arg in
1788 *\'*)
1789 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1790 esac
1791 as_fn_append ac_configure_args_raw " '$ac_arg'"
1792 done
1793
1794 case $ac_configure_args_raw in
1795 *$as_nl*)
1796 ac_safe_unquote= ;;
1797 *)
1798 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1799 ac_unsafe_a="$ac_unsafe_z#~"
1800 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1801 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1802 esac
1803
1804 cat >config.log <<_ACEOF
1805 This file contains any messages produced by compilers while
1806 running configure, to aid debugging if configure makes a mistake.
1807
1808 It was created by xkbutils $as_me 1.0.5, which was
1809 generated by GNU Autoconf 2.71. Invocation command line was
1810
1811 $ $0$ac_configure_args_raw
1812
1813 _ACEOF
1814 exec 5>>config.log
1815 {
1816 cat <<_ASUNAME
1817 ## --------- ##
1818 ## Platform. ##
1819 ## --------- ##
1820
1821 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1822 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1823 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1824 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1825 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1826
1827 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1828 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1829
1830 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1831 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1832 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1833 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1834 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1835 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1836 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1837
1838 _ASUNAME
1839
1840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1841 for as_dir in $PATH
1842 do
1843 IFS=$as_save_IFS
1844 case $as_dir in #(((
1845 '') as_dir=./ ;;
1846 */) ;;
1847 *) as_dir=$as_dir/ ;;
1848 esac
1849 printf "%s\n" "PATH: $as_dir"
1850 done
1851 IFS=$as_save_IFS
1852
1853 } >&5
1854
1855 cat >&5 <<_ACEOF
1856
1857
1858 ## ----------- ##
1859 ## Core tests. ##
1860 ## ----------- ##
1861
1862 _ACEOF
1863
1864
1865 # Keep a trace of the command line.
1866 # Strip out --no-create and --no-recursion so they do not pile up.
1867 # Strip out --silent because we don't want to record it for future runs.
1868 # Also quote any args containing shell meta-characters.
1869 # Make two passes to allow for proper duplicate-argument suppression.
1870 ac_configure_args=
1871 ac_configure_args0=
1872 ac_configure_args1=
1873 ac_must_keep_next=false
1874 for ac_pass in 1 2
1875 do
1876 for ac_arg
1877 do
1878 case $ac_arg in
1879 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1880 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1881 | -silent | --silent | --silen | --sile | --sil)
1882 continue ;;
1883 *\'*)
1884 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1885 esac
1886 case $ac_pass in
1887 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1888 2)
1889 as_fn_append ac_configure_args1 " '$ac_arg'"
1890 if test $ac_must_keep_next = true; then
1891 ac_must_keep_next=false # Got value, back to normal.
1892 else
1893 case $ac_arg in
1894 *=* | --config-cache | -C | -disable-* | --disable-* \
1895 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1896 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1897 | -with-* | --with-* | -without-* | --without-* | --x)
1898 case "$ac_configure_args0 " in
1899 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1900 esac
1901 ;;
1902 -* ) ac_must_keep_next=true ;;
1903 esac
1904 fi
1905 as_fn_append ac_configure_args " '$ac_arg'"
1906 ;;
1907 esac
1908 done
1909 done
1910 { ac_configure_args0=; unset ac_configure_args0;}
1911 { ac_configure_args1=; unset ac_configure_args1;}
1912
1913 # When interrupted or exit'd, cleanup temporary files, and complete
1914 # config.log. We remove comments because anyway the quotes in there
1915 # would cause problems or look ugly.
1916 # WARNING: Use '\'' to represent an apostrophe within the trap.
1917 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1918 trap 'exit_status=$?
1919 # Sanitize IFS.
1920 IFS=" "" $as_nl"
1921 # Save into config.log some information that might help in debugging.
1922 {
1923 echo
1924
1925 printf "%s\n" "## ---------------- ##
1926 ## Cache variables. ##
1927 ## ---------------- ##"
1928 echo
1929 # The following way of writing the cache mishandles newlines in values,
1930 (
1931 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1932 eval ac_val=\$$ac_var
1933 case $ac_val in #(
1934 *${as_nl}*)
1935 case $ac_var in #(
1936 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1937 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1938 esac
1939 case $ac_var in #(
1940 _ | IFS | as_nl) ;; #(
1941 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1942 *) { eval $ac_var=; unset $ac_var;} ;;
1943 esac ;;
1944 esac
1945 done
1946 (set) 2>&1 |
1947 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1948 *${as_nl}ac_space=\ *)
1949 sed -n \
1950 "s/'\''/'\''\\\\'\'''\''/g;
1951 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1952 ;; #(
1953 *)
1954 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1955 ;;
1956 esac |
1957 sort
1958 )
1959 echo
1960
1961 printf "%s\n" "## ----------------- ##
1962 ## Output variables. ##
1963 ## ----------------- ##"
1964 echo
1965 for ac_var in $ac_subst_vars
1966 do
1967 eval ac_val=\$$ac_var
1968 case $ac_val in
1969 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1970 esac
1971 printf "%s\n" "$ac_var='\''$ac_val'\''"
1972 done | sort
1973 echo
1974
1975 if test -n "$ac_subst_files"; then
1976 printf "%s\n" "## ------------------- ##
1977 ## File substitutions. ##
1978 ## ------------------- ##"
1979 echo
1980 for ac_var in $ac_subst_files
1981 do
1982 eval ac_val=\$$ac_var
1983 case $ac_val in
1984 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1985 esac
1986 printf "%s\n" "$ac_var='\''$ac_val'\''"
1987 done | sort
1988 echo
1989 fi
1990
1991 if test -s confdefs.h; then
1992 printf "%s\n" "## ----------- ##
1993 ## confdefs.h. ##
1994 ## ----------- ##"
1995 echo
1996 cat confdefs.h
1997 echo
1998 fi
1999 test "$ac_signal" != 0 &&
2000 printf "%s\n" "$as_me: caught signal $ac_signal"
2001 printf "%s\n" "$as_me: exit $exit_status"
2002 } >&5
2003 rm -f core *.core core.conftest.* &&
2004 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2005 exit $exit_status
2006 ' 0
2007 for ac_signal in 1 2 13 15; do
2008 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2009 done
2010 ac_signal=0
2011
2012 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2013 rm -f -r conftest* confdefs.h
2014
2015 printf "%s\n" "/* confdefs.h */" > confdefs.h
2016
2017 # Predefined preprocessor variables.
2018
2019 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2020
2021 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2022
2023 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2024
2025 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2026
2027 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2028
2029 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2030
2031
2032 # Let the site file select an alternate cache file if it wants to.
2033 # Prefer an explicitly selected file to automatically selected ones.
2034 if test -n "$CONFIG_SITE"; then
2035 ac_site_files="$CONFIG_SITE"
2036 elif test "x$prefix" != xNONE; then
2037 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2038 else
2039 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2040 fi
2041
2042 for ac_site_file in $ac_site_files
2043 do
2044 case $ac_site_file in #(
2045 */*) :
2046 ;; #(
2047 *) :
2048 ac_site_file=./$ac_site_file ;;
2049 esac
2050 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2052 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2053 sed 's/^/| /' "$ac_site_file" >&5
2054 . "$ac_site_file" \
2055 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2056 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2057 as_fn_error $? "failed to load site script $ac_site_file
2058 See \`config.log' for more details" "$LINENO" 5; }
2059 fi
2060 done
2061
2062 if test -r "$cache_file"; then
2063 # Some versions of bash will fail to source /dev/null (special files
2064 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2065 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2067 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2068 case $cache_file in
2069 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2070 *) . "./$cache_file";;
2071 esac
2072 fi
2073 else
2074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2075 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2076 >$cache_file
2077 fi
2078
2079 # Test code for whether the C compiler supports C89 (global declarations)
2080 ac_c_conftest_c89_globals='
2081 /* Does the compiler advertise C89 conformance?
2082 Do not test the value of __STDC__, because some compilers set it to 0
2083 while being otherwise adequately conformant. */
2084 #if !defined __STDC__
2085 # error "Compiler does not advertise C89 conformance"
2086 #endif
2087
2088 #include <stddef.h>
2089 #include <stdarg.h>
2090 struct stat;
2091 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2092 struct buf { int x; };
2093 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2094 static char *e (p, i)
2095 char **p;
2096 int i;
2097 {
2098 return p[i];
2099 }
2100 static char *f (char * (*g) (char **, int), char **p, ...)
2101 {
2102 char *s;
2103 va_list v;
2104 va_start (v,p);
2105 s = g (p, va_arg (v,int));
2106 va_end (v);
2107 return s;
2108 }
2109
2110 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2111 function prototypes and stuff, but not \xHH hex character constants.
2112 These do not provoke an error unfortunately, instead are silently treated
2113 as an "x". The following induces an error, until -std is added to get
2114 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2115 array size at least. It is necessary to write \x00 == 0 to get something
2116 that is true only with -std. */
2117 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2118
2119 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2120 inside strings and character constants. */
2121 #define FOO(x) '\''x'\''
2122 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2123
2124 int test (int i, double x);
2125 struct s1 {int (*f) (int a);};
2126 struct s2 {int (*f) (double a);};
2127 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2128 int, int);'
2129
2130 # Test code for whether the C compiler supports C89 (body of main).
2131 ac_c_conftest_c89_main='
2132 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2133 '
2134
2135 # Test code for whether the C compiler supports C99 (global declarations)
2136 ac_c_conftest_c99_globals='
2137 // Does the compiler advertise C99 conformance?
2138 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2139 # error "Compiler does not advertise C99 conformance"
2140 #endif
2141
2142 #include <stdbool.h>
2143 extern int puts (const char *);
2144 extern int printf (const char *, ...);
2145 extern int dprintf (int, const char *, ...);
2146 extern void *malloc (size_t);
2147
2148 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2149 // dprintf is used instead of fprintf to avoid needing to declare
2150 // FILE and stderr.
2151 #define debug(...) dprintf (2, __VA_ARGS__)
2152 #define showlist(...) puts (#__VA_ARGS__)
2153 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2154 static void
2155 test_varargs_macros (void)
2156 {
2157 int x = 1234;
2158 int y = 5678;
2159 debug ("Flag");
2160 debug ("X = %d\n", x);
2161 showlist (The first, second, and third items.);
2162 report (x>y, "x is %d but y is %d", x, y);
2163 }
2164
2165 // Check long long types.
2166 #define BIG64 18446744073709551615ull
2167 #define BIG32 4294967295ul
2168 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2169 #if !BIG_OK
2170 #error "your preprocessor is broken"
2171 #endif
2172 #if BIG_OK
2173 #else
2174 #error "your preprocessor is broken"
2175 #endif
2176 static long long int bignum = -9223372036854775807LL;
2177 static unsigned long long int ubignum = BIG64;
2178
2179 struct incomplete_array
2180 {
2181 int datasize;
2182 double data[];
2183 };
2184
2185 struct named_init {
2186 int number;
2187 const wchar_t *name;
2188 double average;
2189 };
2190
2191 typedef const char *ccp;
2192
2193 static inline int
2194 test_restrict (ccp restrict text)
2195 {
2196 // See if C++-style comments work.
2197 // Iterate through items via the restricted pointer.
2198 // Also check for declarations in for loops.
2199 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2200 continue;
2201 return 0;
2202 }
2203
2204 // Check varargs and va_copy.
2205 static bool
2206 test_varargs (const char *format, ...)
2207 {
2208 va_list args;
2209 va_start (args, format);
2210 va_list args_copy;
2211 va_copy (args_copy, args);
2212
2213 const char *str = "";
2214 int number = 0;
2215 float fnumber = 0;
2216
2217 while (*format)
2218 {
2219 switch (*format++)
2220 {
2221 case '\''s'\'': // string
2222 str = va_arg (args_copy, const char *);
2223 break;
2224 case '\''d'\'': // int
2225 number = va_arg (args_copy, int);
2226 break;
2227 case '\''f'\'': // float
2228 fnumber = va_arg (args_copy, double);
2229 break;
2230 default:
2231 break;
2232 }
2233 }
2234 va_end (args_copy);
2235 va_end (args);
2236
2237 return *str && number && fnumber;
2238 }
2239 '
2240
2241 # Test code for whether the C compiler supports C99 (body of main).
2242 ac_c_conftest_c99_main='
2243 // Check bool.
2244 _Bool success = false;
2245 success |= (argc != 0);
2246
2247 // Check restrict.
2248 if (test_restrict ("String literal") == 0)
2249 success = true;
2250 char *restrict newvar = "Another string";
2251
2252 // Check varargs.
2253 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2254 test_varargs_macros ();
2255
2256 // Check flexible array members.
2257 struct incomplete_array *ia =
2258 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2259 ia->datasize = 10;
2260 for (int i = 0; i < ia->datasize; ++i)
2261 ia->data[i] = i * 1.234;
2262
2263 // Check named initializers.
2264 struct named_init ni = {
2265 .number = 34,
2266 .name = L"Test wide string",
2267 .average = 543.34343,
2268 };
2269
2270 ni.number = 58;
2271
2272 int dynamic_array[ni.number];
2273 dynamic_array[0] = argv[0][0];
2274 dynamic_array[ni.number - 1] = 543;
2275
2276 // work around unused variable warnings
2277 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2278 || dynamic_array[ni.number - 1] != 543);
2279 '
2280
2281 # Test code for whether the C compiler supports C11 (global declarations)
2282 ac_c_conftest_c11_globals='
2283 // Does the compiler advertise C11 conformance?
2284 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2285 # error "Compiler does not advertise C11 conformance"
2286 #endif
2287
2288 // Check _Alignas.
2289 char _Alignas (double) aligned_as_double;
2290 char _Alignas (0) no_special_alignment;
2291 extern char aligned_as_int;
2292 char _Alignas (0) _Alignas (int) aligned_as_int;
2293
2294 // Check _Alignof.
2295 enum
2296 {
2297 int_alignment = _Alignof (int),
2298 int_array_alignment = _Alignof (int[100]),
2299 char_alignment = _Alignof (char)
2300 };
2301 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2302
2303 // Check _Noreturn.
2304 int _Noreturn does_not_return (void) { for (;;) continue; }
2305
2306 // Check _Static_assert.
2307 struct test_static_assert
2308 {
2309 int x;
2310 _Static_assert (sizeof (int) <= sizeof (long int),
2311 "_Static_assert does not work in struct");
2312 long int y;
2313 };
2314
2315 // Check UTF-8 literals.
2316 #define u8 syntax error!
2317 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2318
2319 // Check duplicate typedefs.
2320 typedef long *long_ptr;
2321 typedef long int *long_ptr;
2322 typedef long_ptr long_ptr;
2323
2324 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2325 struct anonymous
2326 {
2327 union {
2328 struct { int i; int j; };
2329 struct { int k; long int l; } w;
2330 };
2331 int m;
2332 } v1;
2333 '
2334
2335 # Test code for whether the C compiler supports C11 (body of main).
2336 ac_c_conftest_c11_main='
2337 _Static_assert ((offsetof (struct anonymous, i)
2338 == offsetof (struct anonymous, w.k)),
2339 "Anonymous union alignment botch");
2340 v1.i = 2;
2341 v1.w.k = 5;
2342 ok |= v1.i != 5;
2343 '
2344
2345 # Test code for whether the C compiler supports C11 (complete).
2346 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2347 ${ac_c_conftest_c99_globals}
2348 ${ac_c_conftest_c11_globals}
2349
2350 int
2351 main (int argc, char **argv)
2352 {
2353 int ok = 0;
2354 ${ac_c_conftest_c89_main}
2355 ${ac_c_conftest_c99_main}
2356 ${ac_c_conftest_c11_main}
2357 return ok;
2358 }
2359 "
2360
2361 # Test code for whether the C compiler supports C99 (complete).
2362 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2363 ${ac_c_conftest_c99_globals}
2364
2365 int
2366 main (int argc, char **argv)
2367 {
2368 int ok = 0;
2369 ${ac_c_conftest_c89_main}
2370 ${ac_c_conftest_c99_main}
2371 return ok;
2372 }
2373 "
2374
2375 # Test code for whether the C compiler supports C89 (complete).
2376 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2377
2378 int
2379 main (int argc, char **argv)
2380 {
2381 int ok = 0;
2382 ${ac_c_conftest_c89_main}
2383 return ok;
2384 }
2385 "
2386
2387 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2388 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2389 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2390 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2391 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2392 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2393 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2394 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2395 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2396
2397 # Auxiliary files required by this configure script.
2398 ac_aux_files="config.guess config.sub compile missing install-sh"
2399
2400 # Locations in which to look for auxiliary files.
2401 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2402
2403 # Search for a directory containing all of the required auxiliary files,
2404 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2405 # If we don't find one directory that contains all the files we need,
2406 # we report the set of missing files from the *first* directory in
2407 # $ac_aux_dir_candidates and give up.
2408 ac_missing_aux_files=""
2409 ac_first_candidate=:
2410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 as_found=false
2413 for as_dir in $ac_aux_dir_candidates
2414 do
2415 IFS=$as_save_IFS
2416 case $as_dir in #(((
2417 '') as_dir=./ ;;
2418 */) ;;
2419 *) as_dir=$as_dir/ ;;
2420 esac
2421 as_found=:
2422
2423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2424 ac_aux_dir_found=yes
2425 ac_install_sh=
2426 for ac_aux in $ac_aux_files
2427 do
2428 # As a special case, if "install-sh" is required, that requirement
2429 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2430 # and $ac_install_sh is set appropriately for whichever one is found.
2431 if test x"$ac_aux" = x"install-sh"
2432 then
2433 if test -f "${as_dir}install-sh"; then
2434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2435 ac_install_sh="${as_dir}install-sh -c"
2436 elif test -f "${as_dir}install.sh"; then
2437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2438 ac_install_sh="${as_dir}install.sh -c"
2439 elif test -f "${as_dir}shtool"; then
2440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2441 ac_install_sh="${as_dir}shtool install -c"
2442 else
2443 ac_aux_dir_found=no
2444 if $ac_first_candidate; then
2445 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2446 else
2447 break
2448 fi
2449 fi
2450 else
2451 if test -f "${as_dir}${ac_aux}"; then
2452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2453 else
2454 ac_aux_dir_found=no
2455 if $ac_first_candidate; then
2456 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2457 else
2458 break
2459 fi
2460 fi
2461 fi
2462 done
2463 if test "$ac_aux_dir_found" = yes; then
2464 ac_aux_dir="$as_dir"
2465 break
2466 fi
2467 ac_first_candidate=false
2468
2469 as_found=false
2470 done
2471 IFS=$as_save_IFS
2472 if $as_found
2473 then :
2474
2475 else $as_nop
2476 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2477 fi
2478
2479
2480 # These three variables are undocumented and unsupported,
2481 # and are intended to be withdrawn in a future Autoconf release.
2482 # They can cause serious problems if a builder's source tree is in a directory
2483 # whose full name contains unusual characters.
2484 if test -f "${ac_aux_dir}config.guess"; then
2485 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2486 fi
2487 if test -f "${ac_aux_dir}config.sub"; then
2488 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2489 fi
2490 if test -f "$ac_aux_dir/configure"; then
2491 ac_configure="$SHELL ${ac_aux_dir}configure"
2492 fi
2493
2494 # Check that the precious variables saved in the cache have kept the same
2495 # value.
2496 ac_cache_corrupted=false
2497 for ac_var in $ac_precious_vars; do
2498 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2499 eval ac_new_set=\$ac_env_${ac_var}_set
2500 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2501 eval ac_new_val=\$ac_env_${ac_var}_value
2502 case $ac_old_set,$ac_new_set in
2503 set,)
2504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2505 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2506 ac_cache_corrupted=: ;;
2507 ,set)
2508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2509 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2510 ac_cache_corrupted=: ;;
2511 ,);;
2512 *)
2513 if test "x$ac_old_val" != "x$ac_new_val"; then
2514 # differences in whitespace do not lead to failure.
2515 ac_old_val_w=`echo x $ac_old_val`
2516 ac_new_val_w=`echo x $ac_new_val`
2517 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2519 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2520 ac_cache_corrupted=:
2521 else
2522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2523 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2524 eval $ac_var=\$ac_old_val
2525 fi
2526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2527 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2529 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2530 fi;;
2531 esac
2532 # Pass precious variables to config.status.
2533 if test "$ac_new_set" = set; then
2534 case $ac_new_val in
2535 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2536 *) ac_arg=$ac_var=$ac_new_val ;;
2537 esac
2538 case " $ac_configure_args " in
2539 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2540 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2541 esac
2542 fi
2543 done
2544 if $ac_cache_corrupted; then
2545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2546 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2548 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2549 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2550 and start over" "$LINENO" 5
2551 fi
2552 ## -------------------- ##
2553 ## Main body of script. ##
2554 ## -------------------- ##
2555
2556 ac_ext=c
2557 ac_cpp='$CPP $CPPFLAGS'
2558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2561
2562
2563
2564 ac_config_headers="$ac_config_headers config.h"
2565
2566
2567 # Initialize Automake
2568 am__api_version='1.16'
2569
2570
2571
2572 # Find a good install program. We prefer a C program (faster),
2573 # so one script is as good as another. But avoid the broken or
2574 # incompatible versions:
2575 # SysV /etc/install, /usr/sbin/install
2576 # SunOS /usr/etc/install
2577 # IRIX /sbin/install
2578 # AIX /bin/install
2579 # AmigaOS /C/install, which installs bootblocks on floppy discs
2580 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2581 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2582 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2583 # OS/2's system install, which has a completely different semantic
2584 # ./install, which can be erroneously created by make from ./install.sh.
2585 # Reject install programs that cannot install multiple files.
2586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2587 printf %s "checking for a BSD-compatible install... " >&6; }
2588 if test -z "$INSTALL"; then
2589 if test ${ac_cv_path_install+y}
2590 then :
2591 printf %s "(cached) " >&6
2592 else $as_nop
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 for as_dir in $PATH
2595 do
2596 IFS=$as_save_IFS
2597 case $as_dir in #(((
2598 '') as_dir=./ ;;
2599 */) ;;
2600 *) as_dir=$as_dir/ ;;
2601 esac
2602 # Account for fact that we put trailing slashes in our PATH walk.
2603 case $as_dir in #((
2604 ./ | /[cC]/* | \
2605 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2606 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2607 /usr/ucb/* ) ;;
2608 *)
2609 # OSF1 and SCO ODT 3.0 have their own names for install.
2610 # Don't use installbsd from OSF since it installs stuff as root
2611 # by default.
2612 for ac_prog in ginstall scoinst install; do
2613 for ac_exec_ext in '' $ac_executable_extensions; do
2614 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2615 if test $ac_prog = install &&
2616 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2617 # AIX install. It has an incompatible calling convention.
2618 :
2619 elif test $ac_prog = install &&
2620 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2621 # program-specific install script used by HP pwplus--don't use.
2622 :
2623 else
2624 rm -rf conftest.one conftest.two conftest.dir
2625 echo one > conftest.one
2626 echo two > conftest.two
2627 mkdir conftest.dir
2628 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2629 test -s conftest.one && test -s conftest.two &&
2630 test -s conftest.dir/conftest.one &&
2631 test -s conftest.dir/conftest.two
2632 then
2633 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2634 break 3
2635 fi
2636 fi
2637 fi
2638 done
2639 done
2640 ;;
2641 esac
2642
2643 done
2644 IFS=$as_save_IFS
2645
2646 rm -rf conftest.one conftest.two conftest.dir
2647
2648 fi
2649 if test ${ac_cv_path_install+y}; then
2650 INSTALL=$ac_cv_path_install
2651 else
2652 # As a last resort, use the slow shell script. Don't cache a
2653 # value for INSTALL within a source directory, because that will
2654 # break other packages using the cache if that directory is
2655 # removed, or if the value is a relative name.
2656 INSTALL=$ac_install_sh
2657 fi
2658 fi
2659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2660 printf "%s\n" "$INSTALL" >&6; }
2661
2662 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2663 # It thinks the first close brace ends the variable substitution.
2664 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2665
2666 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2667
2668 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2669
2670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2671 printf %s "checking whether build environment is sane... " >&6; }
2672 # Reject unsafe characters in $srcdir or the absolute working directory
2673 # name. Accept space and tab only in the latter.
2674 am_lf='
2675 '
2676 case `pwd` in
2677 *[\\\"\#\$\&\'\`$am_lf]*)
2678 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2679 esac
2680 case $srcdir in
2681 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2682 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2683 esac
2684
2685 # Do 'set' in a subshell so we don't clobber the current shell's
2686 # arguments. Must try -L first in case configure is actually a
2687 # symlink; some systems play weird games with the mod time of symlinks
2688 # (eg FreeBSD returns the mod time of the symlink's containing
2689 # directory).
2690 if (
2691 am_has_slept=no
2692 for am_try in 1 2; do
2693 echo "timestamp, slept: $am_has_slept" > conftest.file
2694 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2695 if test "$*" = "X"; then
2696 # -L didn't work.
2697 set X `ls -t "$srcdir/configure" conftest.file`
2698 fi
2699 if test "$*" != "X $srcdir/configure conftest.file" \
2700 && test "$*" != "X conftest.file $srcdir/configure"; then
2701
2702 # If neither matched, then we have a broken ls. This can happen
2703 # if, for instance, CONFIG_SHELL is bash and it inherits a
2704 # broken ls alias from the environment. This has actually
2705 # happened. Such a system could not be considered "sane".
2706 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2707 alias in your environment" "$LINENO" 5
2708 fi
2709 if test "$2" = conftest.file || test $am_try -eq 2; then
2710 break
2711 fi
2712 # Just in case.
2713 sleep 1
2714 am_has_slept=yes
2715 done
2716 test "$2" = conftest.file
2717 )
2718 then
2719 # Ok.
2720 :
2721 else
2722 as_fn_error $? "newly created file is older than distributed files!
2723 Check your system clock" "$LINENO" 5
2724 fi
2725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2726 printf "%s\n" "yes" >&6; }
2727 # If we didn't sleep, we still need to ensure time stamps of config.status and
2728 # generated files are strictly newer.
2729 am_sleep_pid=
2730 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2731 ( sleep 1 ) &
2732 am_sleep_pid=$!
2733 fi
2734
2735 rm -f conftest.file
2736
2737 test "$program_prefix" != NONE &&
2738 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2739 # Use a double $ so make ignores it.
2740 test "$program_suffix" != NONE &&
2741 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2742 # Double any \ or $.
2743 # By default was `s,x,x', remove it if useless.
2744 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2745 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2746
2747
2748 # Expand $ac_aux_dir to an absolute path.
2749 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2750
2751
2752 if test x"${MISSING+set}" != xset; then
2753 MISSING="\${SHELL} '$am_aux_dir/missing'"
2754 fi
2755 # Use eval to expand $SHELL
2756 if eval "$MISSING --is-lightweight"; then
2757 am_missing_run="$MISSING "
2758 else
2759 am_missing_run=
2760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2761 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2762 fi
2763
2764 if test x"${install_sh+set}" != xset; then
2765 case $am_aux_dir in
2766 *\ * | *\ *)
2767 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2768 *)
2769 install_sh="\${SHELL} $am_aux_dir/install-sh"
2770 esac
2771 fi
2772
2773 # Installed binaries are usually stripped using 'strip' when the user
2774 # run "make install-strip". However 'strip' might not be the right
2775 # tool to use in cross-compilation environments, therefore Automake
2776 # will honor the 'STRIP' environment variable to overrule this program.
2777 if test "$cross_compiling" != no; then
2778 if test -n "$ac_tool_prefix"; then
2779 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2780 set dummy ${ac_tool_prefix}strip; ac_word=$2
2781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2782 printf %s "checking for $ac_word... " >&6; }
2783 if test ${ac_cv_prog_STRIP+y}
2784 then :
2785 printf %s "(cached) " >&6
2786 else $as_nop
2787 if test -n "$STRIP"; then
2788 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2789 else
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2792 do
2793 IFS=$as_save_IFS
2794 case $as_dir in #(((
2795 '') as_dir=./ ;;
2796 */) ;;
2797 *) as_dir=$as_dir/ ;;
2798 esac
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2801 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2803 break 2
2804 fi
2805 done
2806 done
2807 IFS=$as_save_IFS
2808
2809 fi
2810 fi
2811 STRIP=$ac_cv_prog_STRIP
2812 if test -n "$STRIP"; then
2813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2814 printf "%s\n" "$STRIP" >&6; }
2815 else
2816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2817 printf "%s\n" "no" >&6; }
2818 fi
2819
2820
2821 fi
2822 if test -z "$ac_cv_prog_STRIP"; then
2823 ac_ct_STRIP=$STRIP
2824 # Extract the first word of "strip", so it can be a program name with args.
2825 set dummy strip; ac_word=$2
2826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827 printf %s "checking for $ac_word... " >&6; }
2828 if test ${ac_cv_prog_ac_ct_STRIP+y}
2829 then :
2830 printf %s "(cached) " >&6
2831 else $as_nop
2832 if test -n "$ac_ct_STRIP"; then
2833 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2834 else
2835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 for as_dir in $PATH
2837 do
2838 IFS=$as_save_IFS
2839 case $as_dir in #(((
2840 '') as_dir=./ ;;
2841 */) ;;
2842 *) as_dir=$as_dir/ ;;
2843 esac
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2846 ac_cv_prog_ac_ct_STRIP="strip"
2847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2848 break 2
2849 fi
2850 done
2851 done
2852 IFS=$as_save_IFS
2853
2854 fi
2855 fi
2856 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2857 if test -n "$ac_ct_STRIP"; then
2858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2859 printf "%s\n" "$ac_ct_STRIP" >&6; }
2860 else
2861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862 printf "%s\n" "no" >&6; }
2863 fi
2864
2865 if test "x$ac_ct_STRIP" = x; then
2866 STRIP=":"
2867 else
2868 case $cross_compiling:$ac_tool_warned in
2869 yes:)
2870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2871 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2872 ac_tool_warned=yes ;;
2873 esac
2874 STRIP=$ac_ct_STRIP
2875 fi
2876 else
2877 STRIP="$ac_cv_prog_STRIP"
2878 fi
2879
2880 fi
2881 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2882
2883
2884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2885 printf %s "checking for a race-free mkdir -p... " >&6; }
2886 if test -z "$MKDIR_P"; then
2887 if test ${ac_cv_path_mkdir+y}
2888 then :
2889 printf %s "(cached) " >&6
2890 else $as_nop
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2893 do
2894 IFS=$as_save_IFS
2895 case $as_dir in #(((
2896 '') as_dir=./ ;;
2897 */) ;;
2898 *) as_dir=$as_dir/ ;;
2899 esac
2900 for ac_prog in mkdir gmkdir; do
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2903 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2904 'mkdir ('*'coreutils) '* | \
2905 'BusyBox '* | \
2906 'mkdir (fileutils) '4.1*)
2907 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2908 break 3;;
2909 esac
2910 done
2911 done
2912 done
2913 IFS=$as_save_IFS
2914
2915 fi
2916
2917 test -d ./--version && rmdir ./--version
2918 if test ${ac_cv_path_mkdir+y}; then
2919 MKDIR_P="$ac_cv_path_mkdir -p"
2920 else
2921 # As a last resort, use the slow shell script. Don't cache a
2922 # value for MKDIR_P within a source directory, because that will
2923 # break other packages using the cache if that directory is
2924 # removed, or if the value is a relative name.
2925 MKDIR_P="$ac_install_sh -d"
2926 fi
2927 fi
2928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2929 printf "%s\n" "$MKDIR_P" >&6; }
2930
2931 for ac_prog in gawk mawk nawk awk
2932 do
2933 # Extract the first word of "$ac_prog", so it can be a program name with args.
2934 set dummy $ac_prog; ac_word=$2
2935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936 printf %s "checking for $ac_word... " >&6; }
2937 if test ${ac_cv_prog_AWK+y}
2938 then :
2939 printf %s "(cached) " >&6
2940 else $as_nop
2941 if test -n "$AWK"; then
2942 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2943 else
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 for as_dir in $PATH
2946 do
2947 IFS=$as_save_IFS
2948 case $as_dir in #(((
2949 '') as_dir=./ ;;
2950 */) ;;
2951 *) as_dir=$as_dir/ ;;
2952 esac
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2955 ac_cv_prog_AWK="$ac_prog"
2956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2957 break 2
2958 fi
2959 done
2960 done
2961 IFS=$as_save_IFS
2962
2963 fi
2964 fi
2965 AWK=$ac_cv_prog_AWK
2966 if test -n "$AWK"; then
2967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2968 printf "%s\n" "$AWK" >&6; }
2969 else
2970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971 printf "%s\n" "no" >&6; }
2972 fi
2973
2974
2975 test -n "$AWK" && break
2976 done
2977
2978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2979 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2980 set x ${MAKE-make}
2981 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2982 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2983 then :
2984 printf %s "(cached) " >&6
2985 else $as_nop
2986 cat >conftest.make <<\_ACEOF
2987 SHELL = /bin/sh
2988 all:
2989 @echo '@@@%%%=$(MAKE)=@@@%%%'
2990 _ACEOF
2991 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2992 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2993 *@@@%%%=?*=@@@%%%*)
2994 eval ac_cv_prog_make_${ac_make}_set=yes;;
2995 *)
2996 eval ac_cv_prog_make_${ac_make}_set=no;;
2997 esac
2998 rm -f conftest.make
2999 fi
3000 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3002 printf "%s\n" "yes" >&6; }
3003 SET_MAKE=
3004 else
3005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 printf "%s\n" "no" >&6; }
3007 SET_MAKE="MAKE=${MAKE-make}"
3008 fi
3009
3010 rm -rf .tst 2>/dev/null
3011 mkdir .tst 2>/dev/null
3012 if test -d .tst; then
3013 am__leading_dot=.
3014 else
3015 am__leading_dot=_
3016 fi
3017 rmdir .tst 2>/dev/null
3018
3019 # Check whether --enable-silent-rules was given.
3020 if test ${enable_silent_rules+y}
3021 then :
3022 enableval=$enable_silent_rules;
3023 fi
3024
3025 case $enable_silent_rules in # (((
3026 yes) AM_DEFAULT_VERBOSITY=0;;
3027 no) AM_DEFAULT_VERBOSITY=1;;
3028 *) AM_DEFAULT_VERBOSITY=1;;
3029 esac
3030 am_make=${MAKE-make}
3031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3032 printf %s "checking whether $am_make supports nested variables... " >&6; }
3033 if test ${am_cv_make_support_nested_variables+y}
3034 then :
3035 printf %s "(cached) " >&6
3036 else $as_nop
3037 if printf "%s\n" 'TRUE=$(BAR$(V))
3038 BAR0=false
3039 BAR1=true
3040 V=1
3041 am__doit:
3042 @$(TRUE)
3043 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3044 am_cv_make_support_nested_variables=yes
3045 else
3046 am_cv_make_support_nested_variables=no
3047 fi
3048 fi
3049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3050 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3051 if test $am_cv_make_support_nested_variables = yes; then
3052 AM_V='$(V)'
3053 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3054 else
3055 AM_V=$AM_DEFAULT_VERBOSITY
3056 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3057 fi
3058 AM_BACKSLASH='\'
3059
3060 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3061 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3062 # is not polluted with repeated "-I."
3063 am__isrc=' -I$(srcdir)'
3064 # test to see if srcdir already configured
3065 if test -f $srcdir/config.status; then
3066 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3067 fi
3068 fi
3069
3070 # test whether we have cygpath
3071 if test -z "$CYGPATH_W"; then
3072 if (cygpath --version) >/dev/null 2>/dev/null; then
3073 CYGPATH_W='cygpath -w'
3074 else
3075 CYGPATH_W=echo
3076 fi
3077 fi
3078
3079
3080 # Define the identity of the package.
3081 PACKAGE='xkbutils'
3082 VERSION='1.0.5'
3083
3084
3085 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3086
3087
3088 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3089
3090 # Some tools Automake needs.
3091
3092 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3093
3094
3095 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3096
3097
3098 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3099
3100
3101 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3102
3103
3104 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3105
3106 # For better backward compatibility. To be removed once Automake 1.9.x
3107 # dies out for good. For more background, see:
3108 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3109 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3110 mkdir_p='$(MKDIR_P)'
3111
3112 # We need awk for the "check" target (and possibly the TAP driver). The
3113 # system "awk" is bad on some platforms.
3114 # Always define AMTAR for backward compatibility. Yes, it's still used
3115 # in the wild :-( We should find a proper way to deprecate it ...
3116 AMTAR='$${TAR-tar}'
3117
3118
3119 # We'll loop over all known methods to create a tar archive until one works.
3120 _am_tools='gnutar pax cpio none'
3121
3122 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3123
3124
3125
3126
3127
3128 # Variables for tags utilities; see am/tags.am
3129 if test -z "$CTAGS"; then
3130 CTAGS=ctags
3131 fi
3132
3133 if test -z "$ETAGS"; then
3134 ETAGS=etags
3135 fi
3136
3137 if test -z "$CSCOPE"; then
3138 CSCOPE=cscope
3139 fi
3140
3141
3142
3143 # POSIX will say in a future version that running "rm -f" with no argument
3144 # is OK; and we want to be able to make that assumption in our Makefile
3145 # recipes. So use an aggressive probe to check that the usage we want is
3146 # actually supported "in the wild" to an acceptable degree.
3147 # See automake bug#10828.
3148 # To make any issue more visible, cause the running configure to be aborted
3149 # by default if the 'rm' program in use doesn't match our expectations; the
3150 # user can still override this though.
3151 if rm -f && rm -fr && rm -rf; then : OK; else
3152 cat >&2 <<'END'
3153 Oops!
3154
3155 Your 'rm' program seems unable to run without file operands specified
3156 on the command line, even when the '-f' option is present. This is contrary
3157 to the behaviour of most rm programs out there, and not conforming with
3158 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3159
3160 Please tell bug-automake@gnu.org about your system, including the value
3161 of your $PATH and any error possibly output before this message. This
3162 can help us improve future automake versions.
3163
3164 END
3165 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3166 echo 'Configuration will proceed anyway, since you have set the' >&2
3167 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3168 echo >&2
3169 else
3170 cat >&2 <<'END'
3171 Aborting the configuration process, to ensure you take notice of the issue.
3172
3173 You can download and install GNU coreutils to get an 'rm' implementation
3174 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3175
3176 If you want to complete the configuration process using your problematic
3177 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3178 to "yes", and re-run configure.
3179
3180 END
3181 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3182 fi
3183 fi
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194 DEPDIR="${am__leading_dot}deps"
3195
3196 ac_config_commands="$ac_config_commands depfiles"
3197
3198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3199 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3200 cat > confinc.mk << 'END'
3201 am__doit:
3202 @echo this is the am__doit target >confinc.out
3203 .PHONY: am__doit
3204 END
3205 am__include="#"
3206 am__quote=
3207 # BSD make does it like this.
3208 echo '.include "confinc.mk" # ignored' > confmf.BSD
3209 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3210 echo 'include confinc.mk # ignored' > confmf.GNU
3211 _am_result=no
3212 for s in GNU BSD; do
3213 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3214 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3215 ac_status=$?
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); }
3218 case $?:`cat confinc.out 2>/dev/null` in #(
3219 '0:this is the am__doit target') :
3220 case $s in #(
3221 BSD) :
3222 am__include='.include' am__quote='"' ;; #(
3223 *) :
3224 am__include='include' am__quote='' ;;
3225 esac ;; #(
3226 *) :
3227 ;;
3228 esac
3229 if test "$am__include" != "#"; then
3230 _am_result="yes ($s style)"
3231 break
3232 fi
3233 done
3234 rm -f confinc.* confmf.*
3235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3236 printf "%s\n" "${_am_result}" >&6; }
3237
3238 # Check whether --enable-dependency-tracking was given.
3239 if test ${enable_dependency_tracking+y}
3240 then :
3241 enableval=$enable_dependency_tracking;
3242 fi
3243
3244 if test "x$enable_dependency_tracking" != xno; then
3245 am_depcomp="$ac_aux_dir/depcomp"
3246 AMDEPBACKSLASH='\'
3247 am__nodep='_no'
3248 fi
3249 if test "x$enable_dependency_tracking" != xno; then
3250 AMDEP_TRUE=
3251 AMDEP_FALSE='#'
3252 else
3253 AMDEP_TRUE='#'
3254 AMDEP_FALSE=
3255 fi
3256
3257
3258 ac_ext=c
3259 ac_cpp='$CPP $CPPFLAGS'
3260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3263 if test -n "$ac_tool_prefix"; then
3264 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3265 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267 printf %s "checking for $ac_word... " >&6; }
3268 if test ${ac_cv_prog_CC+y}
3269 then :
3270 printf %s "(cached) " >&6
3271 else $as_nop
3272 if test -n "$CC"; then
3273 ac_cv_prog_CC="$CC" # Let the user override the test.
3274 else
3275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276 for as_dir in $PATH
3277 do
3278 IFS=$as_save_IFS
3279 case $as_dir in #(((
3280 '') as_dir=./ ;;
3281 */) ;;
3282 *) as_dir=$as_dir/ ;;
3283 esac
3284 for ac_exec_ext in '' $ac_executable_extensions; do
3285 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3286 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3287 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3288 break 2
3289 fi
3290 done
3291 done
3292 IFS=$as_save_IFS
3293
3294 fi
3295 fi
3296 CC=$ac_cv_prog_CC
3297 if test -n "$CC"; then
3298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3299 printf "%s\n" "$CC" >&6; }
3300 else
3301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302 printf "%s\n" "no" >&6; }
3303 fi
3304
3305
3306 fi
3307 if test -z "$ac_cv_prog_CC"; then
3308 ac_ct_CC=$CC
3309 # Extract the first word of "gcc", so it can be a program name with args.
3310 set dummy gcc; ac_word=$2
3311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312 printf %s "checking for $ac_word... " >&6; }
3313 if test ${ac_cv_prog_ac_ct_CC+y}
3314 then :
3315 printf %s "(cached) " >&6
3316 else $as_nop
3317 if test -n "$ac_ct_CC"; then
3318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3319 else
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 for as_dir in $PATH
3322 do
3323 IFS=$as_save_IFS
3324 case $as_dir in #(((
3325 '') as_dir=./ ;;
3326 */) ;;
3327 *) as_dir=$as_dir/ ;;
3328 esac
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3331 ac_cv_prog_ac_ct_CC="gcc"
3332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3333 break 2
3334 fi
3335 done
3336 done
3337 IFS=$as_save_IFS
3338
3339 fi
3340 fi
3341 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3342 if test -n "$ac_ct_CC"; then
3343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3344 printf "%s\n" "$ac_ct_CC" >&6; }
3345 else
3346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3347 printf "%s\n" "no" >&6; }
3348 fi
3349
3350 if test "x$ac_ct_CC" = x; then
3351 CC=""
3352 else
3353 case $cross_compiling:$ac_tool_warned in
3354 yes:)
3355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3356 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3357 ac_tool_warned=yes ;;
3358 esac
3359 CC=$ac_ct_CC
3360 fi
3361 else
3362 CC="$ac_cv_prog_CC"
3363 fi
3364
3365 if test -z "$CC"; then
3366 if test -n "$ac_tool_prefix"; then
3367 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3368 set dummy ${ac_tool_prefix}cc; ac_word=$2
3369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 printf %s "checking for $ac_word... " >&6; }
3371 if test ${ac_cv_prog_CC+y}
3372 then :
3373 printf %s "(cached) " >&6
3374 else $as_nop
3375 if test -n "$CC"; then
3376 ac_cv_prog_CC="$CC" # Let the user override the test.
3377 else
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 for as_dir in $PATH
3380 do
3381 IFS=$as_save_IFS
3382 case $as_dir in #(((
3383 '') as_dir=./ ;;
3384 */) ;;
3385 *) as_dir=$as_dir/ ;;
3386 esac
3387 for ac_exec_ext in '' $ac_executable_extensions; do
3388 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3389 ac_cv_prog_CC="${ac_tool_prefix}cc"
3390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3391 break 2
3392 fi
3393 done
3394 done
3395 IFS=$as_save_IFS
3396
3397 fi
3398 fi
3399 CC=$ac_cv_prog_CC
3400 if test -n "$CC"; then
3401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3402 printf "%s\n" "$CC" >&6; }
3403 else
3404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 printf "%s\n" "no" >&6; }
3406 fi
3407
3408
3409 fi
3410 fi
3411 if test -z "$CC"; then
3412 # Extract the first word of "cc", so it can be a program name with args.
3413 set dummy cc; ac_word=$2
3414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3415 printf %s "checking for $ac_word... " >&6; }
3416 if test ${ac_cv_prog_CC+y}
3417 then :
3418 printf %s "(cached) " >&6
3419 else $as_nop
3420 if test -n "$CC"; then
3421 ac_cv_prog_CC="$CC" # Let the user override the test.
3422 else
3423 ac_prog_rejected=no
3424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425 for as_dir in $PATH
3426 do
3427 IFS=$as_save_IFS
3428 case $as_dir in #(((
3429 '') as_dir=./ ;;
3430 */) ;;
3431 *) as_dir=$as_dir/ ;;
3432 esac
3433 for ac_exec_ext in '' $ac_executable_extensions; do
3434 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3435 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3436 ac_prog_rejected=yes
3437 continue
3438 fi
3439 ac_cv_prog_CC="cc"
3440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3441 break 2
3442 fi
3443 done
3444 done
3445 IFS=$as_save_IFS
3446
3447 if test $ac_prog_rejected = yes; then
3448 # We found a bogon in the path, so make sure we never use it.
3449 set dummy $ac_cv_prog_CC
3450 shift
3451 if test $# != 0; then
3452 # We chose a different compiler from the bogus one.
3453 # However, it has the same basename, so the bogon will be chosen
3454 # first if we set CC to just the basename; use the full file name.
3455 shift
3456 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3457 fi
3458 fi
3459 fi
3460 fi
3461 CC=$ac_cv_prog_CC
3462 if test -n "$CC"; then
3463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3464 printf "%s\n" "$CC" >&6; }
3465 else
3466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467 printf "%s\n" "no" >&6; }
3468 fi
3469
3470
3471 fi
3472 if test -z "$CC"; then
3473 if test -n "$ac_tool_prefix"; then
3474 for ac_prog in cl.exe
3475 do
3476 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3477 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3479 printf %s "checking for $ac_word... " >&6; }
3480 if test ${ac_cv_prog_CC+y}
3481 then :
3482 printf %s "(cached) " >&6
3483 else $as_nop
3484 if test -n "$CC"; then
3485 ac_cv_prog_CC="$CC" # Let the user override the test.
3486 else
3487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488 for as_dir in $PATH
3489 do
3490 IFS=$as_save_IFS
3491 case $as_dir in #(((
3492 '') as_dir=./ ;;
3493 */) ;;
3494 *) as_dir=$as_dir/ ;;
3495 esac
3496 for ac_exec_ext in '' $ac_executable_extensions; do
3497 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3498 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3500 break 2
3501 fi
3502 done
3503 done
3504 IFS=$as_save_IFS
3505
3506 fi
3507 fi
3508 CC=$ac_cv_prog_CC
3509 if test -n "$CC"; then
3510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3511 printf "%s\n" "$CC" >&6; }
3512 else
3513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3514 printf "%s\n" "no" >&6; }
3515 fi
3516
3517
3518 test -n "$CC" && break
3519 done
3520 fi
3521 if test -z "$CC"; then
3522 ac_ct_CC=$CC
3523 for ac_prog in cl.exe
3524 do
3525 # Extract the first word of "$ac_prog", so it can be a program name with args.
3526 set dummy $ac_prog; ac_word=$2
3527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3528 printf %s "checking for $ac_word... " >&6; }
3529 if test ${ac_cv_prog_ac_ct_CC+y}
3530 then :
3531 printf %s "(cached) " >&6
3532 else $as_nop
3533 if test -n "$ac_ct_CC"; then
3534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3535 else
3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537 for as_dir in $PATH
3538 do
3539 IFS=$as_save_IFS
3540 case $as_dir in #(((
3541 '') as_dir=./ ;;
3542 */) ;;
3543 *) as_dir=$as_dir/ ;;
3544 esac
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3547 ac_cv_prog_ac_ct_CC="$ac_prog"
3548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3549 break 2
3550 fi
3551 done
3552 done
3553 IFS=$as_save_IFS
3554
3555 fi
3556 fi
3557 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3558 if test -n "$ac_ct_CC"; then
3559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3560 printf "%s\n" "$ac_ct_CC" >&6; }
3561 else
3562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563 printf "%s\n" "no" >&6; }
3564 fi
3565
3566
3567 test -n "$ac_ct_CC" && break
3568 done
3569
3570 if test "x$ac_ct_CC" = x; then
3571 CC=""
3572 else
3573 case $cross_compiling:$ac_tool_warned in
3574 yes:)
3575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3576 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3577 ac_tool_warned=yes ;;
3578 esac
3579 CC=$ac_ct_CC
3580 fi
3581 fi
3582
3583 fi
3584 if test -z "$CC"; then
3585 if test -n "$ac_tool_prefix"; then
3586 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3587 set dummy ${ac_tool_prefix}clang; ac_word=$2
3588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589 printf %s "checking for $ac_word... " >&6; }
3590 if test ${ac_cv_prog_CC+y}
3591 then :
3592 printf %s "(cached) " >&6
3593 else $as_nop
3594 if test -n "$CC"; then
3595 ac_cv_prog_CC="$CC" # Let the user override the test.
3596 else
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 for as_dir in $PATH
3599 do
3600 IFS=$as_save_IFS
3601 case $as_dir in #(((
3602 '') as_dir=./ ;;
3603 */) ;;
3604 *) as_dir=$as_dir/ ;;
3605 esac
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3608 ac_cv_prog_CC="${ac_tool_prefix}clang"
3609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3610 break 2
3611 fi
3612 done
3613 done
3614 IFS=$as_save_IFS
3615
3616 fi
3617 fi
3618 CC=$ac_cv_prog_CC
3619 if test -n "$CC"; then
3620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3621 printf "%s\n" "$CC" >&6; }
3622 else
3623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624 printf "%s\n" "no" >&6; }
3625 fi
3626
3627
3628 fi
3629 if test -z "$ac_cv_prog_CC"; then
3630 ac_ct_CC=$CC
3631 # Extract the first word of "clang", so it can be a program name with args.
3632 set dummy clang; ac_word=$2
3633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634 printf %s "checking for $ac_word... " >&6; }
3635 if test ${ac_cv_prog_ac_ct_CC+y}
3636 then :
3637 printf %s "(cached) " >&6
3638 else $as_nop
3639 if test -n "$ac_ct_CC"; then
3640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3641 else
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 for as_dir in $PATH
3644 do
3645 IFS=$as_save_IFS
3646 case $as_dir in #(((
3647 '') as_dir=./ ;;
3648 */) ;;
3649 *) as_dir=$as_dir/ ;;
3650 esac
3651 for ac_exec_ext in '' $ac_executable_extensions; do
3652 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3653 ac_cv_prog_ac_ct_CC="clang"
3654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3655 break 2
3656 fi
3657 done
3658 done
3659 IFS=$as_save_IFS
3660
3661 fi
3662 fi
3663 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3664 if test -n "$ac_ct_CC"; then
3665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3666 printf "%s\n" "$ac_ct_CC" >&6; }
3667 else
3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669 printf "%s\n" "no" >&6; }
3670 fi
3671
3672 if test "x$ac_ct_CC" = x; then
3673 CC=""
3674 else
3675 case $cross_compiling:$ac_tool_warned in
3676 yes:)
3677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3678 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3679 ac_tool_warned=yes ;;
3680 esac
3681 CC=$ac_ct_CC
3682 fi
3683 else
3684 CC="$ac_cv_prog_CC"
3685 fi
3686
3687 fi
3688
3689
3690 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3691 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3692 as_fn_error $? "no acceptable C compiler found in \$PATH
3693 See \`config.log' for more details" "$LINENO" 5; }
3694
3695 # Provide some information about the compiler.
3696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3697 set X $ac_compile
3698 ac_compiler=$2
3699 for ac_option in --version -v -V -qversion -version; do
3700 { { ac_try="$ac_compiler $ac_option >&5"
3701 case "(($ac_try" in
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3704 esac
3705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3706 printf "%s\n" "$ac_try_echo"; } >&5
3707 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3708 ac_status=$?
3709 if test -s conftest.err; then
3710 sed '10a\
3711 ... rest of stderr output deleted ...
3712 10q' conftest.err >conftest.er1
3713 cat conftest.er1 >&5
3714 fi
3715 rm -f conftest.er1 conftest.err
3716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717 test $ac_status = 0; }
3718 done
3719
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3722
3723 int
3724 main (void)
3725 {
3726
3727 ;
3728 return 0;
3729 }
3730 _ACEOF
3731 ac_clean_files_save=$ac_clean_files
3732 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3733 # Try to create an executable without -o first, disregard a.out.
3734 # It will help us diagnose broken compilers, and finding out an intuition
3735 # of exeext.
3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3737 printf %s "checking whether the C compiler works... " >&6; }
3738 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3739
3740 # The possible output files:
3741 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3742
3743 ac_rmfiles=
3744 for ac_file in $ac_files
3745 do
3746 case $ac_file in
3747 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3748 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3749 esac
3750 done
3751 rm -f $ac_rmfiles
3752
3753 if { { ac_try="$ac_link_default"
3754 case "(($ac_try" in
3755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756 *) ac_try_echo=$ac_try;;
3757 esac
3758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3759 printf "%s\n" "$ac_try_echo"; } >&5
3760 (eval "$ac_link_default") 2>&5
3761 ac_status=$?
3762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3763 test $ac_status = 0; }
3764 then :
3765 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3766 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3767 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3768 # so that the user can short-circuit this test for compilers unknown to
3769 # Autoconf.
3770 for ac_file in $ac_files ''
3771 do
3772 test -f "$ac_file" || continue
3773 case $ac_file in
3774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3775 ;;
3776 [ab].out )
3777 # We found the default executable, but exeext='' is most
3778 # certainly right.
3779 break;;
3780 *.* )
3781 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3782 then :; else
3783 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3784 fi
3785 # We set ac_cv_exeext here because the later test for it is not
3786 # safe: cross compilers may not add the suffix if given an `-o'
3787 # argument, so we may need to know it at that point already.
3788 # Even if this section looks crufty: it has the advantage of
3789 # actually working.
3790 break;;
3791 * )
3792 break;;
3793 esac
3794 done
3795 test "$ac_cv_exeext" = no && ac_cv_exeext=
3796
3797 else $as_nop
3798 ac_file=''
3799 fi
3800 if test -z "$ac_file"
3801 then :
3802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3803 printf "%s\n" "no" >&6; }
3804 printf "%s\n" "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.$ac_ext >&5
3806
3807 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3808 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3809 as_fn_error 77 "C compiler cannot create executables
3810 See \`config.log' for more details" "$LINENO" 5; }
3811 else $as_nop
3812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3813 printf "%s\n" "yes" >&6; }
3814 fi
3815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3816 printf %s "checking for C compiler default output file name... " >&6; }
3817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3818 printf "%s\n" "$ac_file" >&6; }
3819 ac_exeext=$ac_cv_exeext
3820
3821 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3822 ac_clean_files=$ac_clean_files_save
3823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3824 printf %s "checking for suffix of executables... " >&6; }
3825 if { { ac_try="$ac_link"
3826 case "(($ac_try" in
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3829 esac
3830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3831 printf "%s\n" "$ac_try_echo"; } >&5
3832 (eval "$ac_link") 2>&5
3833 ac_status=$?
3834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3835 test $ac_status = 0; }
3836 then :
3837 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3838 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3839 # work properly (i.e., refer to `conftest.exe'), while it won't with
3840 # `rm'.
3841 for ac_file in conftest.exe conftest conftest.*; do
3842 test -f "$ac_file" || continue
3843 case $ac_file in
3844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3845 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3846 break;;
3847 * ) break;;
3848 esac
3849 done
3850 else $as_nop
3851 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3852 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3853 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3854 See \`config.log' for more details" "$LINENO" 5; }
3855 fi
3856 rm -f conftest conftest$ac_cv_exeext
3857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3858 printf "%s\n" "$ac_cv_exeext" >&6; }
3859
3860 rm -f conftest.$ac_ext
3861 EXEEXT=$ac_cv_exeext
3862 ac_exeext=$EXEEXT
3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864 /* end confdefs.h. */
3865 #include <stdio.h>
3866 int
3867 main (void)
3868 {
3869 FILE *f = fopen ("conftest.out", "w");
3870 return ferror (f) || fclose (f) != 0;
3871
3872 ;
3873 return 0;
3874 }
3875 _ACEOF
3876 ac_clean_files="$ac_clean_files conftest.out"
3877 # Check that the compiler produces executables we can run. If not, either
3878 # the compiler is broken, or we cross compile.
3879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3880 printf %s "checking whether we are cross compiling... " >&6; }
3881 if test "$cross_compiling" != yes; then
3882 { { ac_try="$ac_link"
3883 case "(($ac_try" in
3884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3885 *) ac_try_echo=$ac_try;;
3886 esac
3887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3888 printf "%s\n" "$ac_try_echo"; } >&5
3889 (eval "$ac_link") 2>&5
3890 ac_status=$?
3891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3892 test $ac_status = 0; }
3893 if { ac_try='./conftest$ac_cv_exeext'
3894 { { case "(($ac_try" in
3895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896 *) ac_try_echo=$ac_try;;
3897 esac
3898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3899 printf "%s\n" "$ac_try_echo"; } >&5
3900 (eval "$ac_try") 2>&5
3901 ac_status=$?
3902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3903 test $ac_status = 0; }; }; then
3904 cross_compiling=no
3905 else
3906 if test "$cross_compiling" = maybe; then
3907 cross_compiling=yes
3908 else
3909 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3910 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3911 as_fn_error 77 "cannot run C compiled programs.
3912 If you meant to cross compile, use \`--host'.
3913 See \`config.log' for more details" "$LINENO" 5; }
3914 fi
3915 fi
3916 fi
3917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3918 printf "%s\n" "$cross_compiling" >&6; }
3919
3920 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3921 ac_clean_files=$ac_clean_files_save
3922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3923 printf %s "checking for suffix of object files... " >&6; }
3924 if test ${ac_cv_objext+y}
3925 then :
3926 printf %s "(cached) " >&6
3927 else $as_nop
3928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929 /* end confdefs.h. */
3930
3931 int
3932 main (void)
3933 {
3934
3935 ;
3936 return 0;
3937 }
3938 _ACEOF
3939 rm -f conftest.o conftest.obj
3940 if { { ac_try="$ac_compile"
3941 case "(($ac_try" in
3942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3944 esac
3945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3946 printf "%s\n" "$ac_try_echo"; } >&5
3947 (eval "$ac_compile") 2>&5
3948 ac_status=$?
3949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3950 test $ac_status = 0; }
3951 then :
3952 for ac_file in conftest.o conftest.obj conftest.*; do
3953 test -f "$ac_file" || continue;
3954 case $ac_file in
3955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3956 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3957 break;;
3958 esac
3959 done
3960 else $as_nop
3961 printf "%s\n" "$as_me: failed program was:" >&5
3962 sed 's/^/| /' conftest.$ac_ext >&5
3963
3964 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3965 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3966 as_fn_error $? "cannot compute suffix of object files: cannot compile
3967 See \`config.log' for more details" "$LINENO" 5; }
3968 fi
3969 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3970 fi
3971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3972 printf "%s\n" "$ac_cv_objext" >&6; }
3973 OBJEXT=$ac_cv_objext
3974 ac_objext=$OBJEXT
3975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3976 printf %s "checking whether the compiler supports GNU C... " >&6; }
3977 if test ${ac_cv_c_compiler_gnu+y}
3978 then :
3979 printf %s "(cached) " >&6
3980 else $as_nop
3981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982 /* end confdefs.h. */
3983
3984 int
3985 main (void)
3986 {
3987 #ifndef __GNUC__
3988 choke me
3989 #endif
3990
3991 ;
3992 return 0;
3993 }
3994 _ACEOF
3995 if ac_fn_c_try_compile "$LINENO"
3996 then :
3997 ac_compiler_gnu=yes
3998 else $as_nop
3999 ac_compiler_gnu=no
4000 fi
4001 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4002 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4003
4004 fi
4005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4006 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4008
4009 if test $ac_compiler_gnu = yes; then
4010 GCC=yes
4011 else
4012 GCC=
4013 fi
4014 ac_test_CFLAGS=${CFLAGS+y}
4015 ac_save_CFLAGS=$CFLAGS
4016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4017 printf %s "checking whether $CC accepts -g... " >&6; }
4018 if test ${ac_cv_prog_cc_g+y}
4019 then :
4020 printf %s "(cached) " >&6
4021 else $as_nop
4022 ac_save_c_werror_flag=$ac_c_werror_flag
4023 ac_c_werror_flag=yes
4024 ac_cv_prog_cc_g=no
4025 CFLAGS="-g"
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4028
4029 int
4030 main (void)
4031 {
4032
4033 ;
4034 return 0;
4035 }
4036 _ACEOF
4037 if ac_fn_c_try_compile "$LINENO"
4038 then :
4039 ac_cv_prog_cc_g=yes
4040 else $as_nop
4041 CFLAGS=""
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043 /* end confdefs.h. */
4044
4045 int
4046 main (void)
4047 {
4048
4049 ;
4050 return 0;
4051 }
4052 _ACEOF
4053 if ac_fn_c_try_compile "$LINENO"
4054 then :
4055
4056 else $as_nop
4057 ac_c_werror_flag=$ac_save_c_werror_flag
4058 CFLAGS="-g"
4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4061
4062 int
4063 main (void)
4064 {
4065
4066 ;
4067 return 0;
4068 }
4069 _ACEOF
4070 if ac_fn_c_try_compile "$LINENO"
4071 then :
4072 ac_cv_prog_cc_g=yes
4073 fi
4074 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4075 fi
4076 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4077 fi
4078 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4079 ac_c_werror_flag=$ac_save_c_werror_flag
4080 fi
4081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4082 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4083 if test $ac_test_CFLAGS; then
4084 CFLAGS=$ac_save_CFLAGS
4085 elif test $ac_cv_prog_cc_g = yes; then
4086 if test "$GCC" = yes; then
4087 CFLAGS="-g -O2"
4088 else
4089 CFLAGS="-g"
4090 fi
4091 else
4092 if test "$GCC" = yes; then
4093 CFLAGS="-O2"
4094 else
4095 CFLAGS=
4096 fi
4097 fi
4098 ac_prog_cc_stdc=no
4099 if test x$ac_prog_cc_stdc = xno
4100 then :
4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4102 printf %s "checking for $CC option to enable C11 features... " >&6; }
4103 if test ${ac_cv_prog_cc_c11+y}
4104 then :
4105 printf %s "(cached) " >&6
4106 else $as_nop
4107 ac_cv_prog_cc_c11=no
4108 ac_save_CC=$CC
4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4111 $ac_c_conftest_c11_program
4112 _ACEOF
4113 for ac_arg in '' -std=gnu11
4114 do
4115 CC="$ac_save_CC $ac_arg"
4116 if ac_fn_c_try_compile "$LINENO"
4117 then :
4118 ac_cv_prog_cc_c11=$ac_arg
4119 fi
4120 rm -f core conftest.err conftest.$ac_objext conftest.beam
4121 test "x$ac_cv_prog_cc_c11" != "xno" && break
4122 done
4123 rm -f conftest.$ac_ext
4124 CC=$ac_save_CC
4125 fi
4126
4127 if test "x$ac_cv_prog_cc_c11" = xno
4128 then :
4129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4130 printf "%s\n" "unsupported" >&6; }
4131 else $as_nop
4132 if test "x$ac_cv_prog_cc_c11" = x
4133 then :
4134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4135 printf "%s\n" "none needed" >&6; }
4136 else $as_nop
4137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4138 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4139 CC="$CC $ac_cv_prog_cc_c11"
4140 fi
4141 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4142 ac_prog_cc_stdc=c11
4143 fi
4144 fi
4145 if test x$ac_prog_cc_stdc = xno
4146 then :
4147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4148 printf %s "checking for $CC option to enable C99 features... " >&6; }
4149 if test ${ac_cv_prog_cc_c99+y}
4150 then :
4151 printf %s "(cached) " >&6
4152 else $as_nop
4153 ac_cv_prog_cc_c99=no
4154 ac_save_CC=$CC
4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156 /* end confdefs.h. */
4157 $ac_c_conftest_c99_program
4158 _ACEOF
4159 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4160 do
4161 CC="$ac_save_CC $ac_arg"
4162 if ac_fn_c_try_compile "$LINENO"
4163 then :
4164 ac_cv_prog_cc_c99=$ac_arg
4165 fi
4166 rm -f core conftest.err conftest.$ac_objext conftest.beam
4167 test "x$ac_cv_prog_cc_c99" != "xno" && break
4168 done
4169 rm -f conftest.$ac_ext
4170 CC=$ac_save_CC
4171 fi
4172
4173 if test "x$ac_cv_prog_cc_c99" = xno
4174 then :
4175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4176 printf "%s\n" "unsupported" >&6; }
4177 else $as_nop
4178 if test "x$ac_cv_prog_cc_c99" = x
4179 then :
4180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4181 printf "%s\n" "none needed" >&6; }
4182 else $as_nop
4183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4184 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4185 CC="$CC $ac_cv_prog_cc_c99"
4186 fi
4187 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4188 ac_prog_cc_stdc=c99
4189 fi
4190 fi
4191 if test x$ac_prog_cc_stdc = xno
4192 then :
4193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4194 printf %s "checking for $CC option to enable C89 features... " >&6; }
4195 if test ${ac_cv_prog_cc_c89+y}
4196 then :
4197 printf %s "(cached) " >&6
4198 else $as_nop
4199 ac_cv_prog_cc_c89=no
4200 ac_save_CC=$CC
4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202 /* end confdefs.h. */
4203 $ac_c_conftest_c89_program
4204 _ACEOF
4205 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4206 do
4207 CC="$ac_save_CC $ac_arg"
4208 if ac_fn_c_try_compile "$LINENO"
4209 then :
4210 ac_cv_prog_cc_c89=$ac_arg
4211 fi
4212 rm -f core conftest.err conftest.$ac_objext conftest.beam
4213 test "x$ac_cv_prog_cc_c89" != "xno" && break
4214 done
4215 rm -f conftest.$ac_ext
4216 CC=$ac_save_CC
4217 fi
4218
4219 if test "x$ac_cv_prog_cc_c89" = xno
4220 then :
4221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4222 printf "%s\n" "unsupported" >&6; }
4223 else $as_nop
4224 if test "x$ac_cv_prog_cc_c89" = x
4225 then :
4226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4227 printf "%s\n" "none needed" >&6; }
4228 else $as_nop
4229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4230 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4231 CC="$CC $ac_cv_prog_cc_c89"
4232 fi
4233 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4234 ac_prog_cc_stdc=c89
4235 fi
4236 fi
4237
4238 ac_ext=c
4239 ac_cpp='$CPP $CPPFLAGS'
4240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4243
4244
4245 ac_ext=c
4246 ac_cpp='$CPP $CPPFLAGS'
4247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4251 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4252 if test ${am_cv_prog_cc_c_o+y}
4253 then :
4254 printf %s "(cached) " >&6
4255 else $as_nop
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4258
4259 int
4260 main (void)
4261 {
4262
4263 ;
4264 return 0;
4265 }
4266 _ACEOF
4267 # Make sure it works both with $CC and with simple cc.
4268 # Following AC_PROG_CC_C_O, we do the test twice because some
4269 # compilers refuse to overwrite an existing .o file with -o,
4270 # though they will create one.
4271 am_cv_prog_cc_c_o=yes
4272 for am_i in 1 2; do
4273 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4274 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4275 ac_status=$?
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); } \
4278 && test -f conftest2.$ac_objext; then
4279 : OK
4280 else
4281 am_cv_prog_cc_c_o=no
4282 break
4283 fi
4284 done
4285 rm -f core conftest*
4286 unset am_i
4287 fi
4288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4289 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4290 if test "$am_cv_prog_cc_c_o" != yes; then
4291 # Losing compiler, so override with the script.
4292 # FIXME: It is wrong to rewrite CC.
4293 # But if we don't then we get into trouble of one sort or another.
4294 # A longer-term fix would be to have automake use am__CC in this case,
4295 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4296 CC="$am_aux_dir/compile $CC"
4297 fi
4298 ac_ext=c
4299 ac_cpp='$CPP $CPPFLAGS'
4300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4303
4304
4305 depcc="$CC" am_compiler_list=
4306
4307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4308 printf %s "checking dependency style of $depcc... " >&6; }
4309 if test ${am_cv_CC_dependencies_compiler_type+y}
4310 then :
4311 printf %s "(cached) " >&6
4312 else $as_nop
4313 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4314 # We make a subdir and do the tests there. Otherwise we can end up
4315 # making bogus files that we don't know about and never remove. For
4316 # instance it was reported that on HP-UX the gcc test will end up
4317 # making a dummy file named 'D' -- because '-MD' means "put the output
4318 # in D".
4319 rm -rf conftest.dir
4320 mkdir conftest.dir
4321 # Copy depcomp to subdir because otherwise we won't find it if we're
4322 # using a relative directory.
4323 cp "$am_depcomp" conftest.dir
4324 cd conftest.dir
4325 # We will build objects and dependencies in a subdirectory because
4326 # it helps to detect inapplicable dependency modes. For instance
4327 # both Tru64's cc and ICC support -MD to output dependencies as a
4328 # side effect of compilation, but ICC will put the dependencies in
4329 # the current directory while Tru64 will put them in the object
4330 # directory.
4331 mkdir sub
4332
4333 am_cv_CC_dependencies_compiler_type=none
4334 if test "$am_compiler_list" = ""; then
4335 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4336 fi
4337 am__universal=false
4338 case " $depcc " in #(
4339 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4340 esac
4341
4342 for depmode in $am_compiler_list; do
4343 # Setup a source with many dependencies, because some compilers
4344 # like to wrap large dependency lists on column 80 (with \), and
4345 # we should not choose a depcomp mode which is confused by this.
4346 #
4347 # We need to recreate these files for each test, as the compiler may
4348 # overwrite some of them when testing with obscure command lines.
4349 # This happens at least with the AIX C compiler.
4350 : > sub/conftest.c
4351 for i in 1 2 3 4 5 6; do
4352 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4353 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4354 # Solaris 10 /bin/sh.
4355 echo '/* dummy */' > sub/conftst$i.h
4356 done
4357 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4358
4359 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4360 # mode. It turns out that the SunPro C++ compiler does not properly
4361 # handle '-M -o', and we need to detect this. Also, some Intel
4362 # versions had trouble with output in subdirs.
4363 am__obj=sub/conftest.${OBJEXT-o}
4364 am__minus_obj="-o $am__obj"
4365 case $depmode in
4366 gcc)
4367 # This depmode causes a compiler race in universal mode.
4368 test "$am__universal" = false || continue
4369 ;;
4370 nosideeffect)
4371 # After this tag, mechanisms are not by side-effect, so they'll
4372 # only be used when explicitly requested.
4373 if test "x$enable_dependency_tracking" = xyes; then
4374 continue
4375 else
4376 break
4377 fi
4378 ;;
4379 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4380 # This compiler won't grok '-c -o', but also, the minuso test has
4381 # not run yet. These depmodes are late enough in the game, and
4382 # so weak that their functioning should not be impacted.
4383 am__obj=conftest.${OBJEXT-o}
4384 am__minus_obj=
4385 ;;
4386 none) break ;;
4387 esac
4388 if depmode=$depmode \
4389 source=sub/conftest.c object=$am__obj \
4390 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4391 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4392 >/dev/null 2>conftest.err &&
4393 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4394 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4395 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4396 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4397 # icc doesn't choke on unknown options, it will just issue warnings
4398 # or remarks (even with -Werror). So we grep stderr for any message
4399 # that says an option was ignored or not supported.
4400 # When given -MP, icc 7.0 and 7.1 complain thusly:
4401 # icc: Command line warning: ignoring option '-M'; no argument required
4402 # The diagnosis changed in icc 8.0:
4403 # icc: Command line remark: option '-MP' not supported
4404 if (grep 'ignoring option' conftest.err ||
4405 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4406 am_cv_CC_dependencies_compiler_type=$depmode
4407 break
4408 fi
4409 fi
4410 done
4411
4412 cd ..
4413 rm -rf conftest.dir
4414 else
4415 am_cv_CC_dependencies_compiler_type=none
4416 fi
4417
4418 fi
4419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4420 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4421 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4422
4423 if
4424 test "x$enable_dependency_tracking" != xno \
4425 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4426 am__fastdepCC_TRUE=
4427 am__fastdepCC_FALSE='#'
4428 else
4429 am__fastdepCC_TRUE='#'
4430 am__fastdepCC_FALSE=
4431 fi
4432
4433
4434
4435
4436 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4451 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4452 if test ${ac_cv_c_undeclared_builtin_options+y}
4453 then :
4454 printf %s "(cached) " >&6
4455 else $as_nop
4456 ac_save_CFLAGS=$CFLAGS
4457 ac_cv_c_undeclared_builtin_options='cannot detect'
4458 for ac_arg in '' -fno-builtin; do
4459 CFLAGS="$ac_save_CFLAGS $ac_arg"
4460 # This test program should *not* compile successfully.
4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462 /* end confdefs.h. */
4463
4464 int
4465 main (void)
4466 {
4467 (void) strchr;
4468 ;
4469 return 0;
4470 }
4471 _ACEOF
4472 if ac_fn_c_try_compile "$LINENO"
4473 then :
4474
4475 else $as_nop
4476 # This test program should compile successfully.
4477 # No library function is consistently available on
4478 # freestanding implementations, so test against a dummy
4479 # declaration. Include always-available headers on the
4480 # off chance that they somehow elicit warnings.
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4483 #include <float.h>
4484 #include <limits.h>
4485 #include <stdarg.h>
4486 #include <stddef.h>
4487 extern void ac_decl (int, char *);
4488
4489 int
4490 main (void)
4491 {
4492 (void) ac_decl (0, (char *) 0);
4493 (void) ac_decl;
4494
4495 ;
4496 return 0;
4497 }
4498 _ACEOF
4499 if ac_fn_c_try_compile "$LINENO"
4500 then :
4501 if test x"$ac_arg" = x
4502 then :
4503 ac_cv_c_undeclared_builtin_options='none needed'
4504 else $as_nop
4505 ac_cv_c_undeclared_builtin_options=$ac_arg
4506 fi
4507 break
4508 fi
4509 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4510 fi
4511 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4512 done
4513 CFLAGS=$ac_save_CFLAGS
4514
4515 fi
4516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4517 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4518 case $ac_cv_c_undeclared_builtin_options in #(
4519 'cannot detect') :
4520 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4521 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4522 as_fn_error $? "cannot make $CC report undeclared builtins
4523 See \`config.log' for more details" "$LINENO" 5; } ;; #(
4524 'none needed') :
4525 ac_c_undeclared_builtin_options='' ;; #(
4526 *) :
4527 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4528 esac
4529
4530 ac_header= ac_cache=
4531 for ac_item in $ac_header_c_list
4532 do
4533 if test $ac_cache; then
4534 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4535 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4536 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4537 fi
4538 ac_header= ac_cache=
4539 elif test $ac_header; then
4540 ac_cache=$ac_item
4541 else
4542 ac_header=$ac_item
4543 fi
4544 done
4545
4546
4547
4548
4549
4550
4551
4552
4553 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4554 then :
4555
4556 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4557
4558 fi
4559
4560
4561
4562
4563 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4564 if test "x$ac_cv_have_decl___clang__" = xyes
4565 then :
4566 CLANGCC="yes"
4567 else $as_nop
4568 CLANGCC="no"
4569 fi
4570 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4571 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4572 then :
4573 INTELCC="yes"
4574 else $as_nop
4575 INTELCC="no"
4576 fi
4577 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4578 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4579 then :
4580 SUNCC="yes"
4581 else $as_nop
4582 SUNCC="no"
4583 fi
4584
4585
4586
4587
4588
4589
4590
4591
4592 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4593 if test -n "$ac_tool_prefix"; then
4594 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4595 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597 printf %s "checking for $ac_word... " >&6; }
4598 if test ${ac_cv_path_PKG_CONFIG+y}
4599 then :
4600 printf %s "(cached) " >&6
4601 else $as_nop
4602 case $PKG_CONFIG in
4603 [\\/]* | ?:[\\/]*)
4604 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4605 ;;
4606 *)
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH
4609 do
4610 IFS=$as_save_IFS
4611 case $as_dir in #(((
4612 '') as_dir=./ ;;
4613 */) ;;
4614 *) as_dir=$as_dir/ ;;
4615 esac
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4618 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4620 break 2
4621 fi
4622 done
4623 done
4624 IFS=$as_save_IFS
4625
4626 ;;
4627 esac
4628 fi
4629 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4630 if test -n "$PKG_CONFIG"; then
4631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4632 printf "%s\n" "$PKG_CONFIG" >&6; }
4633 else
4634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635 printf "%s\n" "no" >&6; }
4636 fi
4637
4638
4639 fi
4640 if test -z "$ac_cv_path_PKG_CONFIG"; then
4641 ac_pt_PKG_CONFIG=$PKG_CONFIG
4642 # Extract the first word of "pkg-config", so it can be a program name with args.
4643 set dummy pkg-config; ac_word=$2
4644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645 printf %s "checking for $ac_word... " >&6; }
4646 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4647 then :
4648 printf %s "(cached) " >&6
4649 else $as_nop
4650 case $ac_pt_PKG_CONFIG in
4651 [\\/]* | ?:[\\/]*)
4652 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4653 ;;
4654 *)
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH
4657 do
4658 IFS=$as_save_IFS
4659 case $as_dir in #(((
4660 '') as_dir=./ ;;
4661 */) ;;
4662 *) as_dir=$as_dir/ ;;
4663 esac
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4666 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4668 break 2
4669 fi
4670 done
4671 done
4672 IFS=$as_save_IFS
4673
4674 ;;
4675 esac
4676 fi
4677 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4678 if test -n "$ac_pt_PKG_CONFIG"; then
4679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4680 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4681 else
4682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4683 printf "%s\n" "no" >&6; }
4684 fi
4685
4686 if test "x$ac_pt_PKG_CONFIG" = x; then
4687 PKG_CONFIG=""
4688 else
4689 case $cross_compiling:$ac_tool_warned in
4690 yes:)
4691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4692 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4693 ac_tool_warned=yes ;;
4694 esac
4695 PKG_CONFIG=$ac_pt_PKG_CONFIG
4696 fi
4697 else
4698 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4699 fi
4700
4701 fi
4702 if test -n "$PKG_CONFIG"; then
4703 _pkg_min_version=0.9.0
4704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4705 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4706 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4708 printf "%s\n" "yes" >&6; }
4709 else
4710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4711 printf "%s\n" "no" >&6; }
4712 PKG_CONFIG=""
4713 fi
4714 fi
4715
4716
4717 # Make sure we can run config.sub.
4718 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4719 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4720
4721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4722 printf %s "checking build system type... " >&6; }
4723 if test ${ac_cv_build+y}
4724 then :
4725 printf %s "(cached) " >&6
4726 else $as_nop
4727 ac_build_alias=$build_alias
4728 test "x$ac_build_alias" = x &&
4729 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4730 test "x$ac_build_alias" = x &&
4731 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4732 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4733 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4734
4735 fi
4736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4737 printf "%s\n" "$ac_cv_build" >&6; }
4738 case $ac_cv_build in
4739 *-*-*) ;;
4740 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4741 esac
4742 build=$ac_cv_build
4743 ac_save_IFS=$IFS; IFS='-'
4744 set x $ac_cv_build
4745 shift
4746 build_cpu=$1
4747 build_vendor=$2
4748 shift; shift
4749 # Remember, the first character of IFS is used to create $*,
4750 # except with old shells:
4751 build_os=$*
4752 IFS=$ac_save_IFS
4753 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4754
4755
4756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4757 printf %s "checking host system type... " >&6; }
4758 if test ${ac_cv_host+y}
4759 then :
4760 printf %s "(cached) " >&6
4761 else $as_nop
4762 if test "x$host_alias" = x; then
4763 ac_cv_host=$ac_cv_build
4764 else
4765 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4766 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4767 fi
4768
4769 fi
4770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4771 printf "%s\n" "$ac_cv_host" >&6; }
4772 case $ac_cv_host in
4773 *-*-*) ;;
4774 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4775 esac
4776 host=$ac_cv_host
4777 ac_save_IFS=$IFS; IFS='-'
4778 set x $ac_cv_host
4779 shift
4780 host_cpu=$1
4781 host_vendor=$2
4782 shift; shift
4783 # Remember, the first character of IFS is used to create $*,
4784 # except with old shells:
4785 host_os=$*
4786 IFS=$ac_save_IFS
4787 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4788
4789
4790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4791 printf %s "checking for a sed that does not truncate output... " >&6; }
4792 if test ${ac_cv_path_SED+y}
4793 then :
4794 printf %s "(cached) " >&6
4795 else $as_nop
4796 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4797 for ac_i in 1 2 3 4 5 6 7; do
4798 ac_script="$ac_script$as_nl$ac_script"
4799 done
4800 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4801 { ac_script=; unset ac_script;}
4802 if test -z "$SED"; then
4803 ac_path_SED_found=false
4804 # Loop through the user's path and test for each of PROGNAME-LIST
4805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806 for as_dir in $PATH
4807 do
4808 IFS=$as_save_IFS
4809 case $as_dir in #(((
4810 '') as_dir=./ ;;
4811 */) ;;
4812 *) as_dir=$as_dir/ ;;
4813 esac
4814 for ac_prog in sed gsed
4815 do
4816 for ac_exec_ext in '' $ac_executable_extensions; do
4817 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4818 as_fn_executable_p "$ac_path_SED" || continue
4819 # Check for GNU ac_path_SED and select it if it is found.
4820 # Check for GNU $ac_path_SED
4821 case `"$ac_path_SED" --version 2>&1` in
4822 *GNU*)
4823 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4824 *)
4825 ac_count=0
4826 printf %s 0123456789 >"conftest.in"
4827 while :
4828 do
4829 cat "conftest.in" "conftest.in" >"conftest.tmp"
4830 mv "conftest.tmp" "conftest.in"
4831 cp "conftest.in" "conftest.nl"
4832 printf "%s\n" '' >> "conftest.nl"
4833 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4834 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4835 as_fn_arith $ac_count + 1 && ac_count=$as_val
4836 if test $ac_count -gt ${ac_path_SED_max-0}; then
4837 # Best one so far, save it but keep looking for a better one
4838 ac_cv_path_SED="$ac_path_SED"
4839 ac_path_SED_max=$ac_count
4840 fi
4841 # 10*(2^10) chars as input seems more than enough
4842 test $ac_count -gt 10 && break
4843 done
4844 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4845 esac
4846
4847 $ac_path_SED_found && break 3
4848 done
4849 done
4850 done
4851 IFS=$as_save_IFS
4852 if test -z "$ac_cv_path_SED"; then
4853 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4854 fi
4855 else
4856 ac_cv_path_SED=$SED
4857 fi
4858
4859 fi
4860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4861 printf "%s\n" "$ac_cv_path_SED" >&6; }
4862 SED="$ac_cv_path_SED"
4863 rm -f conftest.sed
4864
4865
4866
4867
4868
4869
4870 # Check whether --enable-selective-werror was given.
4871 if test ${enable_selective_werror+y}
4872 then :
4873 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4874 else $as_nop
4875 SELECTIVE_WERROR=yes
4876 fi
4877
4878
4879
4880
4881
4882 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4883 if test "x$SUNCC" = "xyes"; then
4884 BASE_CFLAGS="-v"
4885 else
4886 BASE_CFLAGS=""
4887 fi
4888
4889 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903 xorg_testset_save_CFLAGS="$CFLAGS"
4904
4905 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4906 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4908 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4909 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4910 then :
4911 printf %s "(cached) " >&6
4912 else $as_nop
4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h. */
4915 int i;
4916 _ACEOF
4917 if ac_fn_c_try_compile "$LINENO"
4918 then :
4919 xorg_cv_cc_flag_unknown_warning_option=yes
4920 else $as_nop
4921 xorg_cv_cc_flag_unknown_warning_option=no
4922 fi
4923 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4924 fi
4925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4926 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4927 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4928 CFLAGS="$xorg_testset_save_CFLAGS"
4929 fi
4930
4931 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4934 fi
4935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4937 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4938 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4939 then :
4940 printf %s "(cached) " >&6
4941 else $as_nop
4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4944 int i;
4945 _ACEOF
4946 if ac_fn_c_try_compile "$LINENO"
4947 then :
4948 xorg_cv_cc_flag_unused_command_line_argument=yes
4949 else $as_nop
4950 xorg_cv_cc_flag_unused_command_line_argument=no
4951 fi
4952 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4953 fi
4954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4955 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4956 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4957 CFLAGS="$xorg_testset_save_CFLAGS"
4958 fi
4959
4960 found="no"
4961
4962 if test $found = "no" ; then
4963 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4964 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4965 fi
4966
4967 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4969 fi
4970
4971 CFLAGS="$CFLAGS -Wall"
4972
4973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4974 printf %s "checking if $CC supports -Wall... " >&6; }
4975 cacheid=xorg_cv_cc_flag__Wall
4976 if eval test \${$cacheid+y}
4977 then :
4978 printf %s "(cached) " >&6
4979 else $as_nop
4980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4981 /* end confdefs.h. */
4982 int i;
4983 int
4984 main (void)
4985 {
4986
4987 ;
4988 return 0;
4989 }
4990 _ACEOF
4991 if ac_fn_c_try_link "$LINENO"
4992 then :
4993 eval $cacheid=yes
4994 else $as_nop
4995 eval $cacheid=no
4996 fi
4997 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4998 conftest$ac_exeext conftest.$ac_ext
4999 fi
5000
5001
5002 CFLAGS="$xorg_testset_save_CFLAGS"
5003
5004 eval supported=\$$cacheid
5005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5006 printf "%s\n" "$supported" >&6; }
5007 if test "$supported" = "yes" ; then
5008 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5009 found="yes"
5010 fi
5011 fi
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027 xorg_testset_save_CFLAGS="$CFLAGS"
5028
5029 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5030 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5032 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5033 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5034 then :
5035 printf %s "(cached) " >&6
5036 else $as_nop
5037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5038 /* end confdefs.h. */
5039 int i;
5040 _ACEOF
5041 if ac_fn_c_try_compile "$LINENO"
5042 then :
5043 xorg_cv_cc_flag_unknown_warning_option=yes
5044 else $as_nop
5045 xorg_cv_cc_flag_unknown_warning_option=no
5046 fi
5047 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5048 fi
5049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5050 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5051 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5052 CFLAGS="$xorg_testset_save_CFLAGS"
5053 fi
5054
5055 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5058 fi
5059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5061 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5062 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5063 then :
5064 printf %s "(cached) " >&6
5065 else $as_nop
5066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5067 /* end confdefs.h. */
5068 int i;
5069 _ACEOF
5070 if ac_fn_c_try_compile "$LINENO"
5071 then :
5072 xorg_cv_cc_flag_unused_command_line_argument=yes
5073 else $as_nop
5074 xorg_cv_cc_flag_unused_command_line_argument=no
5075 fi
5076 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5077 fi
5078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5079 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5080 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5081 CFLAGS="$xorg_testset_save_CFLAGS"
5082 fi
5083
5084 found="no"
5085
5086 if test $found = "no" ; then
5087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5088 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5089 fi
5090
5091 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5093 fi
5094
5095 CFLAGS="$CFLAGS -Wpointer-arith"
5096
5097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5098 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5099 cacheid=xorg_cv_cc_flag__Wpointer_arith
5100 if eval test \${$cacheid+y}
5101 then :
5102 printf %s "(cached) " >&6
5103 else $as_nop
5104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5105 /* end confdefs.h. */
5106 int i;
5107 int
5108 main (void)
5109 {
5110
5111 ;
5112 return 0;
5113 }
5114 _ACEOF
5115 if ac_fn_c_try_link "$LINENO"
5116 then :
5117 eval $cacheid=yes
5118 else $as_nop
5119 eval $cacheid=no
5120 fi
5121 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5122 conftest$ac_exeext conftest.$ac_ext
5123 fi
5124
5125
5126 CFLAGS="$xorg_testset_save_CFLAGS"
5127
5128 eval supported=\$$cacheid
5129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5130 printf "%s\n" "$supported" >&6; }
5131 if test "$supported" = "yes" ; then
5132 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5133 found="yes"
5134 fi
5135 fi
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151 xorg_testset_save_CFLAGS="$CFLAGS"
5152
5153 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5154 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5156 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5157 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5158 then :
5159 printf %s "(cached) " >&6
5160 else $as_nop
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5163 int i;
5164 _ACEOF
5165 if ac_fn_c_try_compile "$LINENO"
5166 then :
5167 xorg_cv_cc_flag_unknown_warning_option=yes
5168 else $as_nop
5169 xorg_cv_cc_flag_unknown_warning_option=no
5170 fi
5171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5172 fi
5173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5174 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5175 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5176 CFLAGS="$xorg_testset_save_CFLAGS"
5177 fi
5178
5179 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5181 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5182 fi
5183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5185 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5186 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5187 then :
5188 printf %s "(cached) " >&6
5189 else $as_nop
5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h. */
5192 int i;
5193 _ACEOF
5194 if ac_fn_c_try_compile "$LINENO"
5195 then :
5196 xorg_cv_cc_flag_unused_command_line_argument=yes
5197 else $as_nop
5198 xorg_cv_cc_flag_unused_command_line_argument=no
5199 fi
5200 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5201 fi
5202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5203 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5204 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5205 CFLAGS="$xorg_testset_save_CFLAGS"
5206 fi
5207
5208 found="no"
5209
5210 if test $found = "no" ; then
5211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5213 fi
5214
5215 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5217 fi
5218
5219 CFLAGS="$CFLAGS -Wmissing-declarations"
5220
5221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5222 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5223 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5224 if eval test \${$cacheid+y}
5225 then :
5226 printf %s "(cached) " >&6
5227 else $as_nop
5228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5229 /* end confdefs.h. */
5230 int i;
5231 int
5232 main (void)
5233 {
5234
5235 ;
5236 return 0;
5237 }
5238 _ACEOF
5239 if ac_fn_c_try_link "$LINENO"
5240 then :
5241 eval $cacheid=yes
5242 else $as_nop
5243 eval $cacheid=no
5244 fi
5245 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5246 conftest$ac_exeext conftest.$ac_ext
5247 fi
5248
5249
5250 CFLAGS="$xorg_testset_save_CFLAGS"
5251
5252 eval supported=\$$cacheid
5253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5254 printf "%s\n" "$supported" >&6; }
5255 if test "$supported" = "yes" ; then
5256 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5257 found="yes"
5258 fi
5259 fi
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275 xorg_testset_save_CFLAGS="$CFLAGS"
5276
5277 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5280 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5281 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5282 then :
5283 printf %s "(cached) " >&6
5284 else $as_nop
5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5287 int i;
5288 _ACEOF
5289 if ac_fn_c_try_compile "$LINENO"
5290 then :
5291 xorg_cv_cc_flag_unknown_warning_option=yes
5292 else $as_nop
5293 xorg_cv_cc_flag_unknown_warning_option=no
5294 fi
5295 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5296 fi
5297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5298 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5299 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5300 CFLAGS="$xorg_testset_save_CFLAGS"
5301 fi
5302
5303 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5306 fi
5307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5309 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5310 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5311 then :
5312 printf %s "(cached) " >&6
5313 else $as_nop
5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5316 int i;
5317 _ACEOF
5318 if ac_fn_c_try_compile "$LINENO"
5319 then :
5320 xorg_cv_cc_flag_unused_command_line_argument=yes
5321 else $as_nop
5322 xorg_cv_cc_flag_unused_command_line_argument=no
5323 fi
5324 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5325 fi
5326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5327 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5328 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5329 CFLAGS="$xorg_testset_save_CFLAGS"
5330 fi
5331
5332 found="no"
5333
5334 if test $found = "no" ; then
5335 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5336 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5337 fi
5338
5339 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5341 fi
5342
5343 CFLAGS="$CFLAGS -Wformat=2"
5344
5345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5346 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5347 cacheid=xorg_cv_cc_flag__Wformat_2
5348 if eval test \${$cacheid+y}
5349 then :
5350 printf %s "(cached) " >&6
5351 else $as_nop
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5354 int i;
5355 int
5356 main (void)
5357 {
5358
5359 ;
5360 return 0;
5361 }
5362 _ACEOF
5363 if ac_fn_c_try_link "$LINENO"
5364 then :
5365 eval $cacheid=yes
5366 else $as_nop
5367 eval $cacheid=no
5368 fi
5369 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5370 conftest$ac_exeext conftest.$ac_ext
5371 fi
5372
5373
5374 CFLAGS="$xorg_testset_save_CFLAGS"
5375
5376 eval supported=\$$cacheid
5377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5378 printf "%s\n" "$supported" >&6; }
5379 if test "$supported" = "yes" ; then
5380 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5381 found="yes"
5382 fi
5383 fi
5384
5385 if test $found = "no" ; then
5386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5388 fi
5389
5390 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5392 fi
5393
5394 CFLAGS="$CFLAGS -Wformat"
5395
5396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5397 printf %s "checking if $CC supports -Wformat... " >&6; }
5398 cacheid=xorg_cv_cc_flag__Wformat
5399 if eval test \${$cacheid+y}
5400 then :
5401 printf %s "(cached) " >&6
5402 else $as_nop
5403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5404 /* end confdefs.h. */
5405 int i;
5406 int
5407 main (void)
5408 {
5409
5410 ;
5411 return 0;
5412 }
5413 _ACEOF
5414 if ac_fn_c_try_link "$LINENO"
5415 then :
5416 eval $cacheid=yes
5417 else $as_nop
5418 eval $cacheid=no
5419 fi
5420 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5421 conftest$ac_exeext conftest.$ac_ext
5422 fi
5423
5424
5425 CFLAGS="$xorg_testset_save_CFLAGS"
5426
5427 eval supported=\$$cacheid
5428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5429 printf "%s\n" "$supported" >&6; }
5430 if test "$supported" = "yes" ; then
5431 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5432 found="yes"
5433 fi
5434 fi
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452 xorg_testset_save_CFLAGS="$CFLAGS"
5453
5454 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5457 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5458 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5459 then :
5460 printf %s "(cached) " >&6
5461 else $as_nop
5462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5463 /* end confdefs.h. */
5464 int i;
5465 _ACEOF
5466 if ac_fn_c_try_compile "$LINENO"
5467 then :
5468 xorg_cv_cc_flag_unknown_warning_option=yes
5469 else $as_nop
5470 xorg_cv_cc_flag_unknown_warning_option=no
5471 fi
5472 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5473 fi
5474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5475 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5476 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5477 CFLAGS="$xorg_testset_save_CFLAGS"
5478 fi
5479
5480 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5482 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5483 fi
5484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5486 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5487 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5488 then :
5489 printf %s "(cached) " >&6
5490 else $as_nop
5491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492 /* end confdefs.h. */
5493 int i;
5494 _ACEOF
5495 if ac_fn_c_try_compile "$LINENO"
5496 then :
5497 xorg_cv_cc_flag_unused_command_line_argument=yes
5498 else $as_nop
5499 xorg_cv_cc_flag_unused_command_line_argument=no
5500 fi
5501 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5502 fi
5503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5504 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5505 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5506 CFLAGS="$xorg_testset_save_CFLAGS"
5507 fi
5508
5509 found="no"
5510
5511 if test $found = "no" ; then
5512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5514 fi
5515
5516 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5518 fi
5519
5520 CFLAGS="$CFLAGS -Wstrict-prototypes"
5521
5522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5523 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5524 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5525 if eval test \${$cacheid+y}
5526 then :
5527 printf %s "(cached) " >&6
5528 else $as_nop
5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530 /* end confdefs.h. */
5531 int i;
5532 int
5533 main (void)
5534 {
5535
5536 ;
5537 return 0;
5538 }
5539 _ACEOF
5540 if ac_fn_c_try_link "$LINENO"
5541 then :
5542 eval $cacheid=yes
5543 else $as_nop
5544 eval $cacheid=no
5545 fi
5546 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5547 conftest$ac_exeext conftest.$ac_ext
5548 fi
5549
5550
5551 CFLAGS="$xorg_testset_save_CFLAGS"
5552
5553 eval supported=\$$cacheid
5554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5555 printf "%s\n" "$supported" >&6; }
5556 if test "$supported" = "yes" ; then
5557 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5558 found="yes"
5559 fi
5560 fi
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576 xorg_testset_save_CFLAGS="$CFLAGS"
5577
5578 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5581 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5582 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5583 then :
5584 printf %s "(cached) " >&6
5585 else $as_nop
5586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587 /* end confdefs.h. */
5588 int i;
5589 _ACEOF
5590 if ac_fn_c_try_compile "$LINENO"
5591 then :
5592 xorg_cv_cc_flag_unknown_warning_option=yes
5593 else $as_nop
5594 xorg_cv_cc_flag_unknown_warning_option=no
5595 fi
5596 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5597 fi
5598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5599 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5600 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5601 CFLAGS="$xorg_testset_save_CFLAGS"
5602 fi
5603
5604 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5607 fi
5608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5610 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5611 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5612 then :
5613 printf %s "(cached) " >&6
5614 else $as_nop
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h. */
5617 int i;
5618 _ACEOF
5619 if ac_fn_c_try_compile "$LINENO"
5620 then :
5621 xorg_cv_cc_flag_unused_command_line_argument=yes
5622 else $as_nop
5623 xorg_cv_cc_flag_unused_command_line_argument=no
5624 fi
5625 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5626 fi
5627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5628 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5629 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5630 CFLAGS="$xorg_testset_save_CFLAGS"
5631 fi
5632
5633 found="no"
5634
5635 if test $found = "no" ; then
5636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5637 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5638 fi
5639
5640 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5642 fi
5643
5644 CFLAGS="$CFLAGS -Wmissing-prototypes"
5645
5646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5647 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5648 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5649 if eval test \${$cacheid+y}
5650 then :
5651 printf %s "(cached) " >&6
5652 else $as_nop
5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654 /* end confdefs.h. */
5655 int i;
5656 int
5657 main (void)
5658 {
5659
5660 ;
5661 return 0;
5662 }
5663 _ACEOF
5664 if ac_fn_c_try_link "$LINENO"
5665 then :
5666 eval $cacheid=yes
5667 else $as_nop
5668 eval $cacheid=no
5669 fi
5670 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5671 conftest$ac_exeext conftest.$ac_ext
5672 fi
5673
5674
5675 CFLAGS="$xorg_testset_save_CFLAGS"
5676
5677 eval supported=\$$cacheid
5678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5679 printf "%s\n" "$supported" >&6; }
5680 if test "$supported" = "yes" ; then
5681 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5682 found="yes"
5683 fi
5684 fi
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700 xorg_testset_save_CFLAGS="$CFLAGS"
5701
5702 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5705 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5706 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5707 then :
5708 printf %s "(cached) " >&6
5709 else $as_nop
5710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5711 /* end confdefs.h. */
5712 int i;
5713 _ACEOF
5714 if ac_fn_c_try_compile "$LINENO"
5715 then :
5716 xorg_cv_cc_flag_unknown_warning_option=yes
5717 else $as_nop
5718 xorg_cv_cc_flag_unknown_warning_option=no
5719 fi
5720 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5721 fi
5722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5723 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5724 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5725 CFLAGS="$xorg_testset_save_CFLAGS"
5726 fi
5727
5728 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5731 fi
5732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5734 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5735 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5736 then :
5737 printf %s "(cached) " >&6
5738 else $as_nop
5739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5740 /* end confdefs.h. */
5741 int i;
5742 _ACEOF
5743 if ac_fn_c_try_compile "$LINENO"
5744 then :
5745 xorg_cv_cc_flag_unused_command_line_argument=yes
5746 else $as_nop
5747 xorg_cv_cc_flag_unused_command_line_argument=no
5748 fi
5749 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5750 fi
5751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5752 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5753 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5754 CFLAGS="$xorg_testset_save_CFLAGS"
5755 fi
5756
5757 found="no"
5758
5759 if test $found = "no" ; then
5760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5762 fi
5763
5764 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5766 fi
5767
5768 CFLAGS="$CFLAGS -Wnested-externs"
5769
5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5771 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5772 cacheid=xorg_cv_cc_flag__Wnested_externs
5773 if eval test \${$cacheid+y}
5774 then :
5775 printf %s "(cached) " >&6
5776 else $as_nop
5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5779 int i;
5780 int
5781 main (void)
5782 {
5783
5784 ;
5785 return 0;
5786 }
5787 _ACEOF
5788 if ac_fn_c_try_link "$LINENO"
5789 then :
5790 eval $cacheid=yes
5791 else $as_nop
5792 eval $cacheid=no
5793 fi
5794 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5795 conftest$ac_exeext conftest.$ac_ext
5796 fi
5797
5798
5799 CFLAGS="$xorg_testset_save_CFLAGS"
5800
5801 eval supported=\$$cacheid
5802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5803 printf "%s\n" "$supported" >&6; }
5804 if test "$supported" = "yes" ; then
5805 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5806 found="yes"
5807 fi
5808 fi
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824 xorg_testset_save_CFLAGS="$CFLAGS"
5825
5826 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5829 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5830 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5831 then :
5832 printf %s "(cached) " >&6
5833 else $as_nop
5834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835 /* end confdefs.h. */
5836 int i;
5837 _ACEOF
5838 if ac_fn_c_try_compile "$LINENO"
5839 then :
5840 xorg_cv_cc_flag_unknown_warning_option=yes
5841 else $as_nop
5842 xorg_cv_cc_flag_unknown_warning_option=no
5843 fi
5844 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5845 fi
5846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5847 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5848 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5849 CFLAGS="$xorg_testset_save_CFLAGS"
5850 fi
5851
5852 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5855 fi
5856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5858 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5859 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5860 then :
5861 printf %s "(cached) " >&6
5862 else $as_nop
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h. */
5865 int i;
5866 _ACEOF
5867 if ac_fn_c_try_compile "$LINENO"
5868 then :
5869 xorg_cv_cc_flag_unused_command_line_argument=yes
5870 else $as_nop
5871 xorg_cv_cc_flag_unused_command_line_argument=no
5872 fi
5873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5874 fi
5875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5876 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5877 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5878 CFLAGS="$xorg_testset_save_CFLAGS"
5879 fi
5880
5881 found="no"
5882
5883 if test $found = "no" ; then
5884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5886 fi
5887
5888 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5890 fi
5891
5892 CFLAGS="$CFLAGS -Wbad-function-cast"
5893
5894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5895 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5896 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5897 if eval test \${$cacheid+y}
5898 then :
5899 printf %s "(cached) " >&6
5900 else $as_nop
5901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5902 /* end confdefs.h. */
5903 int i;
5904 int
5905 main (void)
5906 {
5907
5908 ;
5909 return 0;
5910 }
5911 _ACEOF
5912 if ac_fn_c_try_link "$LINENO"
5913 then :
5914 eval $cacheid=yes
5915 else $as_nop
5916 eval $cacheid=no
5917 fi
5918 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5919 conftest$ac_exeext conftest.$ac_ext
5920 fi
5921
5922
5923 CFLAGS="$xorg_testset_save_CFLAGS"
5924
5925 eval supported=\$$cacheid
5926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5927 printf "%s\n" "$supported" >&6; }
5928 if test "$supported" = "yes" ; then
5929 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5930 found="yes"
5931 fi
5932 fi
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948 xorg_testset_save_CFLAGS="$CFLAGS"
5949
5950 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5951 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5953 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5954 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5955 then :
5956 printf %s "(cached) " >&6
5957 else $as_nop
5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959 /* end confdefs.h. */
5960 int i;
5961 _ACEOF
5962 if ac_fn_c_try_compile "$LINENO"
5963 then :
5964 xorg_cv_cc_flag_unknown_warning_option=yes
5965 else $as_nop
5966 xorg_cv_cc_flag_unknown_warning_option=no
5967 fi
5968 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5969 fi
5970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5971 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5972 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5973 CFLAGS="$xorg_testset_save_CFLAGS"
5974 fi
5975
5976 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5979 fi
5980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5982 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5983 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5984 then :
5985 printf %s "(cached) " >&6
5986 else $as_nop
5987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5988 /* end confdefs.h. */
5989 int i;
5990 _ACEOF
5991 if ac_fn_c_try_compile "$LINENO"
5992 then :
5993 xorg_cv_cc_flag_unused_command_line_argument=yes
5994 else $as_nop
5995 xorg_cv_cc_flag_unused_command_line_argument=no
5996 fi
5997 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5998 fi
5999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6000 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6001 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6002 CFLAGS="$xorg_testset_save_CFLAGS"
6003 fi
6004
6005 found="no"
6006
6007 if test $found = "no" ; then
6008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6010 fi
6011
6012 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6014 fi
6015
6016 CFLAGS="$CFLAGS -Wold-style-definition"
6017
6018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6019 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6020 cacheid=xorg_cv_cc_flag__Wold_style_definition
6021 if eval test \${$cacheid+y}
6022 then :
6023 printf %s "(cached) " >&6
6024 else $as_nop
6025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6026 /* end confdefs.h. */
6027 int i;
6028 int
6029 main (void)
6030 {
6031
6032 ;
6033 return 0;
6034 }
6035 _ACEOF
6036 if ac_fn_c_try_link "$LINENO"
6037 then :
6038 eval $cacheid=yes
6039 else $as_nop
6040 eval $cacheid=no
6041 fi
6042 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6043 conftest$ac_exeext conftest.$ac_ext
6044 fi
6045
6046
6047 CFLAGS="$xorg_testset_save_CFLAGS"
6048
6049 eval supported=\$$cacheid
6050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6051 printf "%s\n" "$supported" >&6; }
6052 if test "$supported" = "yes" ; then
6053 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6054 found="yes"
6055 fi
6056 fi
6057
6058 if test $found = "no" ; then
6059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6061 fi
6062
6063 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6065 fi
6066
6067 CFLAGS="$CFLAGS -fd"
6068
6069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6070 printf %s "checking if $CC supports -fd... " >&6; }
6071 cacheid=xorg_cv_cc_flag__fd
6072 if eval test \${$cacheid+y}
6073 then :
6074 printf %s "(cached) " >&6
6075 else $as_nop
6076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6077 /* end confdefs.h. */
6078 int i;
6079 int
6080 main (void)
6081 {
6082
6083 ;
6084 return 0;
6085 }
6086 _ACEOF
6087 if ac_fn_c_try_link "$LINENO"
6088 then :
6089 eval $cacheid=yes
6090 else $as_nop
6091 eval $cacheid=no
6092 fi
6093 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6094 conftest$ac_exeext conftest.$ac_ext
6095 fi
6096
6097
6098 CFLAGS="$xorg_testset_save_CFLAGS"
6099
6100 eval supported=\$$cacheid
6101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6102 printf "%s\n" "$supported" >&6; }
6103 if test "$supported" = "yes" ; then
6104 BASE_CFLAGS="$BASE_CFLAGS -fd"
6105 found="yes"
6106 fi
6107 fi
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123 xorg_testset_save_CFLAGS="$CFLAGS"
6124
6125 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6128 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6129 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6130 then :
6131 printf %s "(cached) " >&6
6132 else $as_nop
6133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134 /* end confdefs.h. */
6135 int i;
6136 _ACEOF
6137 if ac_fn_c_try_compile "$LINENO"
6138 then :
6139 xorg_cv_cc_flag_unknown_warning_option=yes
6140 else $as_nop
6141 xorg_cv_cc_flag_unknown_warning_option=no
6142 fi
6143 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6144 fi
6145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6146 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6148 CFLAGS="$xorg_testset_save_CFLAGS"
6149 fi
6150
6151 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6154 fi
6155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6157 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6158 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6159 then :
6160 printf %s "(cached) " >&6
6161 else $as_nop
6162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163 /* end confdefs.h. */
6164 int i;
6165 _ACEOF
6166 if ac_fn_c_try_compile "$LINENO"
6167 then :
6168 xorg_cv_cc_flag_unused_command_line_argument=yes
6169 else $as_nop
6170 xorg_cv_cc_flag_unused_command_line_argument=no
6171 fi
6172 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6173 fi
6174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6175 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6176 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6177 CFLAGS="$xorg_testset_save_CFLAGS"
6178 fi
6179
6180 found="no"
6181
6182 if test $found = "no" ; then
6183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6185 fi
6186
6187 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6189 fi
6190
6191 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6192
6193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6194 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6195 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6196 if eval test \${$cacheid+y}
6197 then :
6198 printf %s "(cached) " >&6
6199 else $as_nop
6200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6201 /* end confdefs.h. */
6202 int i;
6203 int
6204 main (void)
6205 {
6206
6207 ;
6208 return 0;
6209 }
6210 _ACEOF
6211 if ac_fn_c_try_link "$LINENO"
6212 then :
6213 eval $cacheid=yes
6214 else $as_nop
6215 eval $cacheid=no
6216 fi
6217 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6218 conftest$ac_exeext conftest.$ac_ext
6219 fi
6220
6221
6222 CFLAGS="$xorg_testset_save_CFLAGS"
6223
6224 eval supported=\$$cacheid
6225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6226 printf "%s\n" "$supported" >&6; }
6227 if test "$supported" = "yes" ; then
6228 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6229 found="yes"
6230 fi
6231 fi
6232
6233
6234
6235
6236
6237 # This chunk adds additional warnings that could catch undesired effects.
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251 xorg_testset_save_CFLAGS="$CFLAGS"
6252
6253 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6256 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6257 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6258 then :
6259 printf %s "(cached) " >&6
6260 else $as_nop
6261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6262 /* end confdefs.h. */
6263 int i;
6264 _ACEOF
6265 if ac_fn_c_try_compile "$LINENO"
6266 then :
6267 xorg_cv_cc_flag_unknown_warning_option=yes
6268 else $as_nop
6269 xorg_cv_cc_flag_unknown_warning_option=no
6270 fi
6271 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6272 fi
6273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6274 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6275 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6276 CFLAGS="$xorg_testset_save_CFLAGS"
6277 fi
6278
6279 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6281 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6282 fi
6283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6285 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6286 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6287 then :
6288 printf %s "(cached) " >&6
6289 else $as_nop
6290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291 /* end confdefs.h. */
6292 int i;
6293 _ACEOF
6294 if ac_fn_c_try_compile "$LINENO"
6295 then :
6296 xorg_cv_cc_flag_unused_command_line_argument=yes
6297 else $as_nop
6298 xorg_cv_cc_flag_unused_command_line_argument=no
6299 fi
6300 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6301 fi
6302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6303 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6304 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6305 CFLAGS="$xorg_testset_save_CFLAGS"
6306 fi
6307
6308 found="no"
6309
6310 if test $found = "no" ; then
6311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6313 fi
6314
6315 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6317 fi
6318
6319 CFLAGS="$CFLAGS -Wunused"
6320
6321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6322 printf %s "checking if $CC supports -Wunused... " >&6; }
6323 cacheid=xorg_cv_cc_flag__Wunused
6324 if eval test \${$cacheid+y}
6325 then :
6326 printf %s "(cached) " >&6
6327 else $as_nop
6328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329 /* end confdefs.h. */
6330 int i;
6331 int
6332 main (void)
6333 {
6334
6335 ;
6336 return 0;
6337 }
6338 _ACEOF
6339 if ac_fn_c_try_link "$LINENO"
6340 then :
6341 eval $cacheid=yes
6342 else $as_nop
6343 eval $cacheid=no
6344 fi
6345 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6346 conftest$ac_exeext conftest.$ac_ext
6347 fi
6348
6349
6350 CFLAGS="$xorg_testset_save_CFLAGS"
6351
6352 eval supported=\$$cacheid
6353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6354 printf "%s\n" "$supported" >&6; }
6355 if test "$supported" = "yes" ; then
6356 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6357 found="yes"
6358 fi
6359 fi
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375 xorg_testset_save_CFLAGS="$CFLAGS"
6376
6377 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6380 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6381 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6382 then :
6383 printf %s "(cached) " >&6
6384 else $as_nop
6385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386 /* end confdefs.h. */
6387 int i;
6388 _ACEOF
6389 if ac_fn_c_try_compile "$LINENO"
6390 then :
6391 xorg_cv_cc_flag_unknown_warning_option=yes
6392 else $as_nop
6393 xorg_cv_cc_flag_unknown_warning_option=no
6394 fi
6395 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6396 fi
6397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6398 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6399 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6400 CFLAGS="$xorg_testset_save_CFLAGS"
6401 fi
6402
6403 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6406 fi
6407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6409 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6410 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6411 then :
6412 printf %s "(cached) " >&6
6413 else $as_nop
6414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6415 /* end confdefs.h. */
6416 int i;
6417 _ACEOF
6418 if ac_fn_c_try_compile "$LINENO"
6419 then :
6420 xorg_cv_cc_flag_unused_command_line_argument=yes
6421 else $as_nop
6422 xorg_cv_cc_flag_unused_command_line_argument=no
6423 fi
6424 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6425 fi
6426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6427 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6428 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6429 CFLAGS="$xorg_testset_save_CFLAGS"
6430 fi
6431
6432 found="no"
6433
6434 if test $found = "no" ; then
6435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6437 fi
6438
6439 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6441 fi
6442
6443 CFLAGS="$CFLAGS -Wuninitialized"
6444
6445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6446 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6447 cacheid=xorg_cv_cc_flag__Wuninitialized
6448 if eval test \${$cacheid+y}
6449 then :
6450 printf %s "(cached) " >&6
6451 else $as_nop
6452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453 /* end confdefs.h. */
6454 int i;
6455 int
6456 main (void)
6457 {
6458
6459 ;
6460 return 0;
6461 }
6462 _ACEOF
6463 if ac_fn_c_try_link "$LINENO"
6464 then :
6465 eval $cacheid=yes
6466 else $as_nop
6467 eval $cacheid=no
6468 fi
6469 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6470 conftest$ac_exeext conftest.$ac_ext
6471 fi
6472
6473
6474 CFLAGS="$xorg_testset_save_CFLAGS"
6475
6476 eval supported=\$$cacheid
6477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6478 printf "%s\n" "$supported" >&6; }
6479 if test "$supported" = "yes" ; then
6480 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6481 found="yes"
6482 fi
6483 fi
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499 xorg_testset_save_CFLAGS="$CFLAGS"
6500
6501 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6504 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6505 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6506 then :
6507 printf %s "(cached) " >&6
6508 else $as_nop
6509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6510 /* end confdefs.h. */
6511 int i;
6512 _ACEOF
6513 if ac_fn_c_try_compile "$LINENO"
6514 then :
6515 xorg_cv_cc_flag_unknown_warning_option=yes
6516 else $as_nop
6517 xorg_cv_cc_flag_unknown_warning_option=no
6518 fi
6519 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6520 fi
6521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6522 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6523 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6524 CFLAGS="$xorg_testset_save_CFLAGS"
6525 fi
6526
6527 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6530 fi
6531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6533 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6534 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6535 then :
6536 printf %s "(cached) " >&6
6537 else $as_nop
6538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6539 /* end confdefs.h. */
6540 int i;
6541 _ACEOF
6542 if ac_fn_c_try_compile "$LINENO"
6543 then :
6544 xorg_cv_cc_flag_unused_command_line_argument=yes
6545 else $as_nop
6546 xorg_cv_cc_flag_unused_command_line_argument=no
6547 fi
6548 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6549 fi
6550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6551 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6553 CFLAGS="$xorg_testset_save_CFLAGS"
6554 fi
6555
6556 found="no"
6557
6558 if test $found = "no" ; then
6559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6561 fi
6562
6563 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6565 fi
6566
6567 CFLAGS="$CFLAGS -Wshadow"
6568
6569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6570 printf %s "checking if $CC supports -Wshadow... " >&6; }
6571 cacheid=xorg_cv_cc_flag__Wshadow
6572 if eval test \${$cacheid+y}
6573 then :
6574 printf %s "(cached) " >&6
6575 else $as_nop
6576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6577 /* end confdefs.h. */
6578 int i;
6579 int
6580 main (void)
6581 {
6582
6583 ;
6584 return 0;
6585 }
6586 _ACEOF
6587 if ac_fn_c_try_link "$LINENO"
6588 then :
6589 eval $cacheid=yes
6590 else $as_nop
6591 eval $cacheid=no
6592 fi
6593 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6594 conftest$ac_exeext conftest.$ac_ext
6595 fi
6596
6597
6598 CFLAGS="$xorg_testset_save_CFLAGS"
6599
6600 eval supported=\$$cacheid
6601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6602 printf "%s\n" "$supported" >&6; }
6603 if test "$supported" = "yes" ; then
6604 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6605 found="yes"
6606 fi
6607 fi
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623 xorg_testset_save_CFLAGS="$CFLAGS"
6624
6625 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6628 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6629 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6630 then :
6631 printf %s "(cached) " >&6
6632 else $as_nop
6633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6634 /* end confdefs.h. */
6635 int i;
6636 _ACEOF
6637 if ac_fn_c_try_compile "$LINENO"
6638 then :
6639 xorg_cv_cc_flag_unknown_warning_option=yes
6640 else $as_nop
6641 xorg_cv_cc_flag_unknown_warning_option=no
6642 fi
6643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6644 fi
6645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6646 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6647 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6648 CFLAGS="$xorg_testset_save_CFLAGS"
6649 fi
6650
6651 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6653 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6654 fi
6655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6657 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6658 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6659 then :
6660 printf %s "(cached) " >&6
6661 else $as_nop
6662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6663 /* end confdefs.h. */
6664 int i;
6665 _ACEOF
6666 if ac_fn_c_try_compile "$LINENO"
6667 then :
6668 xorg_cv_cc_flag_unused_command_line_argument=yes
6669 else $as_nop
6670 xorg_cv_cc_flag_unused_command_line_argument=no
6671 fi
6672 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6673 fi
6674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6675 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6676 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6677 CFLAGS="$xorg_testset_save_CFLAGS"
6678 fi
6679
6680 found="no"
6681
6682 if test $found = "no" ; then
6683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6684 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6685 fi
6686
6687 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6689 fi
6690
6691 CFLAGS="$CFLAGS -Wmissing-noreturn"
6692
6693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6694 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6695 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6696 if eval test \${$cacheid+y}
6697 then :
6698 printf %s "(cached) " >&6
6699 else $as_nop
6700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701 /* end confdefs.h. */
6702 int i;
6703 int
6704 main (void)
6705 {
6706
6707 ;
6708 return 0;
6709 }
6710 _ACEOF
6711 if ac_fn_c_try_link "$LINENO"
6712 then :
6713 eval $cacheid=yes
6714 else $as_nop
6715 eval $cacheid=no
6716 fi
6717 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6718 conftest$ac_exeext conftest.$ac_ext
6719 fi
6720
6721
6722 CFLAGS="$xorg_testset_save_CFLAGS"
6723
6724 eval supported=\$$cacheid
6725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6726 printf "%s\n" "$supported" >&6; }
6727 if test "$supported" = "yes" ; then
6728 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6729 found="yes"
6730 fi
6731 fi
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747 xorg_testset_save_CFLAGS="$CFLAGS"
6748
6749 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6752 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6753 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6754 then :
6755 printf %s "(cached) " >&6
6756 else $as_nop
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"
6762 then :
6763 xorg_cv_cc_flag_unknown_warning_option=yes
6764 else $as_nop
6765 xorg_cv_cc_flag_unknown_warning_option=no
6766 fi
6767 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6768 fi
6769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6770 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6771 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6772 CFLAGS="$xorg_testset_save_CFLAGS"
6773 fi
6774
6775 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6778 fi
6779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6781 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6782 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6783 then :
6784 printf %s "(cached) " >&6
6785 else $as_nop
6786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6787 /* end confdefs.h. */
6788 int i;
6789 _ACEOF
6790 if ac_fn_c_try_compile "$LINENO"
6791 then :
6792 xorg_cv_cc_flag_unused_command_line_argument=yes
6793 else $as_nop
6794 xorg_cv_cc_flag_unused_command_line_argument=no
6795 fi
6796 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6797 fi
6798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6799 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6800 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6801 CFLAGS="$xorg_testset_save_CFLAGS"
6802 fi
6803
6804 found="no"
6805
6806 if test $found = "no" ; then
6807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6809 fi
6810
6811 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6813 fi
6814
6815 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6816
6817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6818 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6819 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6820 if eval test \${$cacheid+y}
6821 then :
6822 printf %s "(cached) " >&6
6823 else $as_nop
6824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6825 /* end confdefs.h. */
6826 int i;
6827 int
6828 main (void)
6829 {
6830
6831 ;
6832 return 0;
6833 }
6834 _ACEOF
6835 if ac_fn_c_try_link "$LINENO"
6836 then :
6837 eval $cacheid=yes
6838 else $as_nop
6839 eval $cacheid=no
6840 fi
6841 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6842 conftest$ac_exeext conftest.$ac_ext
6843 fi
6844
6845
6846 CFLAGS="$xorg_testset_save_CFLAGS"
6847
6848 eval supported=\$$cacheid
6849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6850 printf "%s\n" "$supported" >&6; }
6851 if test "$supported" = "yes" ; then
6852 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6853 found="yes"
6854 fi
6855 fi
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871 xorg_testset_save_CFLAGS="$CFLAGS"
6872
6873 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6876 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6877 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6878 then :
6879 printf %s "(cached) " >&6
6880 else $as_nop
6881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6882 /* end confdefs.h. */
6883 int i;
6884 _ACEOF
6885 if ac_fn_c_try_compile "$LINENO"
6886 then :
6887 xorg_cv_cc_flag_unknown_warning_option=yes
6888 else $as_nop
6889 xorg_cv_cc_flag_unknown_warning_option=no
6890 fi
6891 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6892 fi
6893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6894 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6895 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6896 CFLAGS="$xorg_testset_save_CFLAGS"
6897 fi
6898
6899 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6902 fi
6903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6905 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6906 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6907 then :
6908 printf %s "(cached) " >&6
6909 else $as_nop
6910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6911 /* end confdefs.h. */
6912 int i;
6913 _ACEOF
6914 if ac_fn_c_try_compile "$LINENO"
6915 then :
6916 xorg_cv_cc_flag_unused_command_line_argument=yes
6917 else $as_nop
6918 xorg_cv_cc_flag_unused_command_line_argument=no
6919 fi
6920 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6921 fi
6922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6923 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6924 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6925 CFLAGS="$xorg_testset_save_CFLAGS"
6926 fi
6927
6928 found="no"
6929
6930 if test $found = "no" ; then
6931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6932 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6933 fi
6934
6935 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6937 fi
6938
6939 CFLAGS="$CFLAGS -Wredundant-decls"
6940
6941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6942 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6943 cacheid=xorg_cv_cc_flag__Wredundant_decls
6944 if eval test \${$cacheid+y}
6945 then :
6946 printf %s "(cached) " >&6
6947 else $as_nop
6948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949 /* end confdefs.h. */
6950 int i;
6951 int
6952 main (void)
6953 {
6954
6955 ;
6956 return 0;
6957 }
6958 _ACEOF
6959 if ac_fn_c_try_link "$LINENO"
6960 then :
6961 eval $cacheid=yes
6962 else $as_nop
6963 eval $cacheid=no
6964 fi
6965 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6966 conftest$ac_exeext conftest.$ac_ext
6967 fi
6968
6969
6970 CFLAGS="$xorg_testset_save_CFLAGS"
6971
6972 eval supported=\$$cacheid
6973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6974 printf "%s\n" "$supported" >&6; }
6975 if test "$supported" = "yes" ; then
6976 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6977 found="yes"
6978 fi
6979 fi
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995 xorg_testset_save_CFLAGS="$CFLAGS"
6996
6997 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6998 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7000 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7001 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7002 then :
7003 printf %s "(cached) " >&6
7004 else $as_nop
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"
7010 then :
7011 xorg_cv_cc_flag_unknown_warning_option=yes
7012 else $as_nop
7013 xorg_cv_cc_flag_unknown_warning_option=no
7014 fi
7015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7016 fi
7017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7018 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7019 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7020 CFLAGS="$xorg_testset_save_CFLAGS"
7021 fi
7022
7023 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7026 fi
7027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7029 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7030 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7031 then :
7032 printf %s "(cached) " >&6
7033 else $as_nop
7034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035 /* end confdefs.h. */
7036 int i;
7037 _ACEOF
7038 if ac_fn_c_try_compile "$LINENO"
7039 then :
7040 xorg_cv_cc_flag_unused_command_line_argument=yes
7041 else $as_nop
7042 xorg_cv_cc_flag_unused_command_line_argument=no
7043 fi
7044 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7045 fi
7046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7047 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7048 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7049 CFLAGS="$xorg_testset_save_CFLAGS"
7050 fi
7051
7052 found="no"
7053
7054 if test $found = "no" ; then
7055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7057 fi
7058
7059 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7061 fi
7062
7063 CFLAGS="$CFLAGS -Wlogical-op"
7064
7065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7066 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7067 cacheid=xorg_cv_cc_flag__Wlogical_op
7068 if eval test \${$cacheid+y}
7069 then :
7070 printf %s "(cached) " >&6
7071 else $as_nop
7072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7073 /* end confdefs.h. */
7074 int i;
7075 int
7076 main (void)
7077 {
7078
7079 ;
7080 return 0;
7081 }
7082 _ACEOF
7083 if ac_fn_c_try_link "$LINENO"
7084 then :
7085 eval $cacheid=yes
7086 else $as_nop
7087 eval $cacheid=no
7088 fi
7089 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7090 conftest$ac_exeext conftest.$ac_ext
7091 fi
7092
7093
7094 CFLAGS="$xorg_testset_save_CFLAGS"
7095
7096 eval supported=\$$cacheid
7097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7098 printf "%s\n" "$supported" >&6; }
7099 if test "$supported" = "yes" ; then
7100 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7101 found="yes"
7102 fi
7103 fi
7104
7105
7106
7107 # These are currently disabled because they are noisy. They will be enabled
7108 # in the future once the codebase is sufficiently modernized to silence
7109 # them. For now, I don't want them to drown out the other warnings.
7110 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7111 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7112 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7113
7114 # Turn some warnings into errors, so we don't accidently get successful builds
7115 # when there are problems that should be fixed.
7116
7117 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131 xorg_testset_save_CFLAGS="$CFLAGS"
7132
7133 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7136 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7137 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7138 then :
7139 printf %s "(cached) " >&6
7140 else $as_nop
7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h. */
7143 int i;
7144 _ACEOF
7145 if ac_fn_c_try_compile "$LINENO"
7146 then :
7147 xorg_cv_cc_flag_unknown_warning_option=yes
7148 else $as_nop
7149 xorg_cv_cc_flag_unknown_warning_option=no
7150 fi
7151 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7152 fi
7153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7154 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7155 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7156 CFLAGS="$xorg_testset_save_CFLAGS"
7157 fi
7158
7159 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7162 fi
7163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7165 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7166 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7167 then :
7168 printf %s "(cached) " >&6
7169 else $as_nop
7170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171 /* end confdefs.h. */
7172 int i;
7173 _ACEOF
7174 if ac_fn_c_try_compile "$LINENO"
7175 then :
7176 xorg_cv_cc_flag_unused_command_line_argument=yes
7177 else $as_nop
7178 xorg_cv_cc_flag_unused_command_line_argument=no
7179 fi
7180 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7181 fi
7182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7183 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7184 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7185 CFLAGS="$xorg_testset_save_CFLAGS"
7186 fi
7187
7188 found="no"
7189
7190 if test $found = "no" ; then
7191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7192 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7193 fi
7194
7195 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7197 fi
7198
7199 CFLAGS="$CFLAGS -Werror=implicit"
7200
7201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7202 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7203 cacheid=xorg_cv_cc_flag__Werror_implicit
7204 if eval test \${$cacheid+y}
7205 then :
7206 printf %s "(cached) " >&6
7207 else $as_nop
7208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7209 /* end confdefs.h. */
7210 int i;
7211 int
7212 main (void)
7213 {
7214
7215 ;
7216 return 0;
7217 }
7218 _ACEOF
7219 if ac_fn_c_try_link "$LINENO"
7220 then :
7221 eval $cacheid=yes
7222 else $as_nop
7223 eval $cacheid=no
7224 fi
7225 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7226 conftest$ac_exeext conftest.$ac_ext
7227 fi
7228
7229
7230 CFLAGS="$xorg_testset_save_CFLAGS"
7231
7232 eval supported=\$$cacheid
7233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7234 printf "%s\n" "$supported" >&6; }
7235 if test "$supported" = "yes" ; then
7236 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7237 found="yes"
7238 fi
7239 fi
7240
7241 if test $found = "no" ; then
7242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7243 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7244 fi
7245
7246 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7248 fi
7249
7250 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7251
7252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7253 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7254 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7255 if eval test \${$cacheid+y}
7256 then :
7257 printf %s "(cached) " >&6
7258 else $as_nop
7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260 /* end confdefs.h. */
7261 int i;
7262 int
7263 main (void)
7264 {
7265
7266 ;
7267 return 0;
7268 }
7269 _ACEOF
7270 if ac_fn_c_try_link "$LINENO"
7271 then :
7272 eval $cacheid=yes
7273 else $as_nop
7274 eval $cacheid=no
7275 fi
7276 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7277 conftest$ac_exeext conftest.$ac_ext
7278 fi
7279
7280
7281 CFLAGS="$xorg_testset_save_CFLAGS"
7282
7283 eval supported=\$$cacheid
7284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7285 printf "%s\n" "$supported" >&6; }
7286 if test "$supported" = "yes" ; then
7287 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7288 found="yes"
7289 fi
7290 fi
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306 xorg_testset_save_CFLAGS="$CFLAGS"
7307
7308 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7309 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7311 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7312 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7313 then :
7314 printf %s "(cached) " >&6
7315 else $as_nop
7316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317 /* end confdefs.h. */
7318 int i;
7319 _ACEOF
7320 if ac_fn_c_try_compile "$LINENO"
7321 then :
7322 xorg_cv_cc_flag_unknown_warning_option=yes
7323 else $as_nop
7324 xorg_cv_cc_flag_unknown_warning_option=no
7325 fi
7326 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7327 fi
7328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7329 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7330 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7331 CFLAGS="$xorg_testset_save_CFLAGS"
7332 fi
7333
7334 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7335 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7336 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7337 fi
7338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7340 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7341 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7342 then :
7343 printf %s "(cached) " >&6
7344 else $as_nop
7345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346 /* end confdefs.h. */
7347 int i;
7348 _ACEOF
7349 if ac_fn_c_try_compile "$LINENO"
7350 then :
7351 xorg_cv_cc_flag_unused_command_line_argument=yes
7352 else $as_nop
7353 xorg_cv_cc_flag_unused_command_line_argument=no
7354 fi
7355 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7356 fi
7357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7358 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7359 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7360 CFLAGS="$xorg_testset_save_CFLAGS"
7361 fi
7362
7363 found="no"
7364
7365 if test $found = "no" ; then
7366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7368 fi
7369
7370 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7372 fi
7373
7374 CFLAGS="$CFLAGS -Werror=nonnull"
7375
7376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7377 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7378 cacheid=xorg_cv_cc_flag__Werror_nonnull
7379 if eval test \${$cacheid+y}
7380 then :
7381 printf %s "(cached) " >&6
7382 else $as_nop
7383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384 /* end confdefs.h. */
7385 int i;
7386 int
7387 main (void)
7388 {
7389
7390 ;
7391 return 0;
7392 }
7393 _ACEOF
7394 if ac_fn_c_try_link "$LINENO"
7395 then :
7396 eval $cacheid=yes
7397 else $as_nop
7398 eval $cacheid=no
7399 fi
7400 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7401 conftest$ac_exeext conftest.$ac_ext
7402 fi
7403
7404
7405 CFLAGS="$xorg_testset_save_CFLAGS"
7406
7407 eval supported=\$$cacheid
7408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7409 printf "%s\n" "$supported" >&6; }
7410 if test "$supported" = "yes" ; then
7411 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7412 found="yes"
7413 fi
7414 fi
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430 xorg_testset_save_CFLAGS="$CFLAGS"
7431
7432 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7435 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7436 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7437 then :
7438 printf %s "(cached) " >&6
7439 else $as_nop
7440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441 /* end confdefs.h. */
7442 int i;
7443 _ACEOF
7444 if ac_fn_c_try_compile "$LINENO"
7445 then :
7446 xorg_cv_cc_flag_unknown_warning_option=yes
7447 else $as_nop
7448 xorg_cv_cc_flag_unknown_warning_option=no
7449 fi
7450 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7451 fi
7452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7453 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7454 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7455 CFLAGS="$xorg_testset_save_CFLAGS"
7456 fi
7457
7458 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7460 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7461 fi
7462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7464 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7465 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7466 then :
7467 printf %s "(cached) " >&6
7468 else $as_nop
7469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7470 /* end confdefs.h. */
7471 int i;
7472 _ACEOF
7473 if ac_fn_c_try_compile "$LINENO"
7474 then :
7475 xorg_cv_cc_flag_unused_command_line_argument=yes
7476 else $as_nop
7477 xorg_cv_cc_flag_unused_command_line_argument=no
7478 fi
7479 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7480 fi
7481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7482 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7483 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7484 CFLAGS="$xorg_testset_save_CFLAGS"
7485 fi
7486
7487 found="no"
7488
7489 if test $found = "no" ; then
7490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7492 fi
7493
7494 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7496 fi
7497
7498 CFLAGS="$CFLAGS -Werror=init-self"
7499
7500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7501 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7502 cacheid=xorg_cv_cc_flag__Werror_init_self
7503 if eval test \${$cacheid+y}
7504 then :
7505 printf %s "(cached) " >&6
7506 else $as_nop
7507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508 /* end confdefs.h. */
7509 int i;
7510 int
7511 main (void)
7512 {
7513
7514 ;
7515 return 0;
7516 }
7517 _ACEOF
7518 if ac_fn_c_try_link "$LINENO"
7519 then :
7520 eval $cacheid=yes
7521 else $as_nop
7522 eval $cacheid=no
7523 fi
7524 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7525 conftest$ac_exeext conftest.$ac_ext
7526 fi
7527
7528
7529 CFLAGS="$xorg_testset_save_CFLAGS"
7530
7531 eval supported=\$$cacheid
7532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7533 printf "%s\n" "$supported" >&6; }
7534 if test "$supported" = "yes" ; then
7535 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7536 found="yes"
7537 fi
7538 fi
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554 xorg_testset_save_CFLAGS="$CFLAGS"
7555
7556 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7559 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7560 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7561 then :
7562 printf %s "(cached) " >&6
7563 else $as_nop
7564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565 /* end confdefs.h. */
7566 int i;
7567 _ACEOF
7568 if ac_fn_c_try_compile "$LINENO"
7569 then :
7570 xorg_cv_cc_flag_unknown_warning_option=yes
7571 else $as_nop
7572 xorg_cv_cc_flag_unknown_warning_option=no
7573 fi
7574 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7575 fi
7576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7577 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7578 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7579 CFLAGS="$xorg_testset_save_CFLAGS"
7580 fi
7581
7582 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7585 fi
7586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7588 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7589 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7590 then :
7591 printf %s "(cached) " >&6
7592 else $as_nop
7593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594 /* end confdefs.h. */
7595 int i;
7596 _ACEOF
7597 if ac_fn_c_try_compile "$LINENO"
7598 then :
7599 xorg_cv_cc_flag_unused_command_line_argument=yes
7600 else $as_nop
7601 xorg_cv_cc_flag_unused_command_line_argument=no
7602 fi
7603 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7604 fi
7605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7606 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7607 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7608 CFLAGS="$xorg_testset_save_CFLAGS"
7609 fi
7610
7611 found="no"
7612
7613 if test $found = "no" ; then
7614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7615 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7616 fi
7617
7618 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7620 fi
7621
7622 CFLAGS="$CFLAGS -Werror=main"
7623
7624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7625 printf %s "checking if $CC supports -Werror=main... " >&6; }
7626 cacheid=xorg_cv_cc_flag__Werror_main
7627 if eval test \${$cacheid+y}
7628 then :
7629 printf %s "(cached) " >&6
7630 else $as_nop
7631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7632 /* end confdefs.h. */
7633 int i;
7634 int
7635 main (void)
7636 {
7637
7638 ;
7639 return 0;
7640 }
7641 _ACEOF
7642 if ac_fn_c_try_link "$LINENO"
7643 then :
7644 eval $cacheid=yes
7645 else $as_nop
7646 eval $cacheid=no
7647 fi
7648 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7649 conftest$ac_exeext conftest.$ac_ext
7650 fi
7651
7652
7653 CFLAGS="$xorg_testset_save_CFLAGS"
7654
7655 eval supported=\$$cacheid
7656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7657 printf "%s\n" "$supported" >&6; }
7658 if test "$supported" = "yes" ; then
7659 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7660 found="yes"
7661 fi
7662 fi
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678 xorg_testset_save_CFLAGS="$CFLAGS"
7679
7680 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7683 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7684 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7685 then :
7686 printf %s "(cached) " >&6
7687 else $as_nop
7688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h. */
7690 int i;
7691 _ACEOF
7692 if ac_fn_c_try_compile "$LINENO"
7693 then :
7694 xorg_cv_cc_flag_unknown_warning_option=yes
7695 else $as_nop
7696 xorg_cv_cc_flag_unknown_warning_option=no
7697 fi
7698 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7699 fi
7700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7701 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7703 CFLAGS="$xorg_testset_save_CFLAGS"
7704 fi
7705
7706 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7708 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7709 fi
7710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7712 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7713 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7714 then :
7715 printf %s "(cached) " >&6
7716 else $as_nop
7717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718 /* end confdefs.h. */
7719 int i;
7720 _ACEOF
7721 if ac_fn_c_try_compile "$LINENO"
7722 then :
7723 xorg_cv_cc_flag_unused_command_line_argument=yes
7724 else $as_nop
7725 xorg_cv_cc_flag_unused_command_line_argument=no
7726 fi
7727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7728 fi
7729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7730 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7731 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7732 CFLAGS="$xorg_testset_save_CFLAGS"
7733 fi
7734
7735 found="no"
7736
7737 if test $found = "no" ; then
7738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7740 fi
7741
7742 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7744 fi
7745
7746 CFLAGS="$CFLAGS -Werror=missing-braces"
7747
7748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7749 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7750 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7751 if eval test \${$cacheid+y}
7752 then :
7753 printf %s "(cached) " >&6
7754 else $as_nop
7755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756 /* end confdefs.h. */
7757 int i;
7758 int
7759 main (void)
7760 {
7761
7762 ;
7763 return 0;
7764 }
7765 _ACEOF
7766 if ac_fn_c_try_link "$LINENO"
7767 then :
7768 eval $cacheid=yes
7769 else $as_nop
7770 eval $cacheid=no
7771 fi
7772 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7773 conftest$ac_exeext conftest.$ac_ext
7774 fi
7775
7776
7777 CFLAGS="$xorg_testset_save_CFLAGS"
7778
7779 eval supported=\$$cacheid
7780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7781 printf "%s\n" "$supported" >&6; }
7782 if test "$supported" = "yes" ; then
7783 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7784 found="yes"
7785 fi
7786 fi
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802 xorg_testset_save_CFLAGS="$CFLAGS"
7803
7804 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7805 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7807 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7808 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7809 then :
7810 printf %s "(cached) " >&6
7811 else $as_nop
7812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813 /* end confdefs.h. */
7814 int i;
7815 _ACEOF
7816 if ac_fn_c_try_compile "$LINENO"
7817 then :
7818 xorg_cv_cc_flag_unknown_warning_option=yes
7819 else $as_nop
7820 xorg_cv_cc_flag_unknown_warning_option=no
7821 fi
7822 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7823 fi
7824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7825 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7826 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7827 CFLAGS="$xorg_testset_save_CFLAGS"
7828 fi
7829
7830 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7833 fi
7834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7836 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7837 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7838 then :
7839 printf %s "(cached) " >&6
7840 else $as_nop
7841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842 /* end confdefs.h. */
7843 int i;
7844 _ACEOF
7845 if ac_fn_c_try_compile "$LINENO"
7846 then :
7847 xorg_cv_cc_flag_unused_command_line_argument=yes
7848 else $as_nop
7849 xorg_cv_cc_flag_unused_command_line_argument=no
7850 fi
7851 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7852 fi
7853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7854 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7855 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7856 CFLAGS="$xorg_testset_save_CFLAGS"
7857 fi
7858
7859 found="no"
7860
7861 if test $found = "no" ; then
7862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7864 fi
7865
7866 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7868 fi
7869
7870 CFLAGS="$CFLAGS -Werror=sequence-point"
7871
7872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7873 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7874 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7875 if eval test \${$cacheid+y}
7876 then :
7877 printf %s "(cached) " >&6
7878 else $as_nop
7879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7880 /* end confdefs.h. */
7881 int i;
7882 int
7883 main (void)
7884 {
7885
7886 ;
7887 return 0;
7888 }
7889 _ACEOF
7890 if ac_fn_c_try_link "$LINENO"
7891 then :
7892 eval $cacheid=yes
7893 else $as_nop
7894 eval $cacheid=no
7895 fi
7896 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7897 conftest$ac_exeext conftest.$ac_ext
7898 fi
7899
7900
7901 CFLAGS="$xorg_testset_save_CFLAGS"
7902
7903 eval supported=\$$cacheid
7904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7905 printf "%s\n" "$supported" >&6; }
7906 if test "$supported" = "yes" ; then
7907 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7908 found="yes"
7909 fi
7910 fi
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926 xorg_testset_save_CFLAGS="$CFLAGS"
7927
7928 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7931 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7932 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7933 then :
7934 printf %s "(cached) " >&6
7935 else $as_nop
7936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7937 /* end confdefs.h. */
7938 int i;
7939 _ACEOF
7940 if ac_fn_c_try_compile "$LINENO"
7941 then :
7942 xorg_cv_cc_flag_unknown_warning_option=yes
7943 else $as_nop
7944 xorg_cv_cc_flag_unknown_warning_option=no
7945 fi
7946 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7947 fi
7948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7949 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7950 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7951 CFLAGS="$xorg_testset_save_CFLAGS"
7952 fi
7953
7954 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7957 fi
7958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7960 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7961 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7962 then :
7963 printf %s "(cached) " >&6
7964 else $as_nop
7965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7966 /* end confdefs.h. */
7967 int i;
7968 _ACEOF
7969 if ac_fn_c_try_compile "$LINENO"
7970 then :
7971 xorg_cv_cc_flag_unused_command_line_argument=yes
7972 else $as_nop
7973 xorg_cv_cc_flag_unused_command_line_argument=no
7974 fi
7975 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7976 fi
7977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7978 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7979 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7980 CFLAGS="$xorg_testset_save_CFLAGS"
7981 fi
7982
7983 found="no"
7984
7985 if test $found = "no" ; then
7986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7988 fi
7989
7990 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7992 fi
7993
7994 CFLAGS="$CFLAGS -Werror=return-type"
7995
7996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7997 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
7998 cacheid=xorg_cv_cc_flag__Werror_return_type
7999 if eval test \${$cacheid+y}
8000 then :
8001 printf %s "(cached) " >&6
8002 else $as_nop
8003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8004 /* end confdefs.h. */
8005 int i;
8006 int
8007 main (void)
8008 {
8009
8010 ;
8011 return 0;
8012 }
8013 _ACEOF
8014 if ac_fn_c_try_link "$LINENO"
8015 then :
8016 eval $cacheid=yes
8017 else $as_nop
8018 eval $cacheid=no
8019 fi
8020 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8021 conftest$ac_exeext conftest.$ac_ext
8022 fi
8023
8024
8025 CFLAGS="$xorg_testset_save_CFLAGS"
8026
8027 eval supported=\$$cacheid
8028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8029 printf "%s\n" "$supported" >&6; }
8030 if test "$supported" = "yes" ; then
8031 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8032 found="yes"
8033 fi
8034 fi
8035
8036 if test $found = "no" ; then
8037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8039 fi
8040
8041 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8043 fi
8044
8045 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8046
8047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8048 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8049 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8050 if eval test \${$cacheid+y}
8051 then :
8052 printf %s "(cached) " >&6
8053 else $as_nop
8054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8055 /* end confdefs.h. */
8056 int i;
8057 int
8058 main (void)
8059 {
8060
8061 ;
8062 return 0;
8063 }
8064 _ACEOF
8065 if ac_fn_c_try_link "$LINENO"
8066 then :
8067 eval $cacheid=yes
8068 else $as_nop
8069 eval $cacheid=no
8070 fi
8071 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8072 conftest$ac_exeext conftest.$ac_ext
8073 fi
8074
8075
8076 CFLAGS="$xorg_testset_save_CFLAGS"
8077
8078 eval supported=\$$cacheid
8079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8080 printf "%s\n" "$supported" >&6; }
8081 if test "$supported" = "yes" ; then
8082 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8083 found="yes"
8084 fi
8085 fi
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101 xorg_testset_save_CFLAGS="$CFLAGS"
8102
8103 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8106 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8107 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8108 then :
8109 printf %s "(cached) " >&6
8110 else $as_nop
8111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8112 /* end confdefs.h. */
8113 int i;
8114 _ACEOF
8115 if ac_fn_c_try_compile "$LINENO"
8116 then :
8117 xorg_cv_cc_flag_unknown_warning_option=yes
8118 else $as_nop
8119 xorg_cv_cc_flag_unknown_warning_option=no
8120 fi
8121 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8122 fi
8123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8124 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8125 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8126 CFLAGS="$xorg_testset_save_CFLAGS"
8127 fi
8128
8129 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8131 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8132 fi
8133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8135 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8136 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8137 then :
8138 printf %s "(cached) " >&6
8139 else $as_nop
8140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8141 /* end confdefs.h. */
8142 int i;
8143 _ACEOF
8144 if ac_fn_c_try_compile "$LINENO"
8145 then :
8146 xorg_cv_cc_flag_unused_command_line_argument=yes
8147 else $as_nop
8148 xorg_cv_cc_flag_unused_command_line_argument=no
8149 fi
8150 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8151 fi
8152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8153 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8154 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8155 CFLAGS="$xorg_testset_save_CFLAGS"
8156 fi
8157
8158 found="no"
8159
8160 if test $found = "no" ; then
8161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8162 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8163 fi
8164
8165 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8167 fi
8168
8169 CFLAGS="$CFLAGS -Werror=trigraphs"
8170
8171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8172 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8173 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8174 if eval test \${$cacheid+y}
8175 then :
8176 printf %s "(cached) " >&6
8177 else $as_nop
8178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8179 /* end confdefs.h. */
8180 int i;
8181 int
8182 main (void)
8183 {
8184
8185 ;
8186 return 0;
8187 }
8188 _ACEOF
8189 if ac_fn_c_try_link "$LINENO"
8190 then :
8191 eval $cacheid=yes
8192 else $as_nop
8193 eval $cacheid=no
8194 fi
8195 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8196 conftest$ac_exeext conftest.$ac_ext
8197 fi
8198
8199
8200 CFLAGS="$xorg_testset_save_CFLAGS"
8201
8202 eval supported=\$$cacheid
8203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8204 printf "%s\n" "$supported" >&6; }
8205 if test "$supported" = "yes" ; then
8206 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8207 found="yes"
8208 fi
8209 fi
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225 xorg_testset_save_CFLAGS="$CFLAGS"
8226
8227 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8230 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8231 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8232 then :
8233 printf %s "(cached) " >&6
8234 else $as_nop
8235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8236 /* end confdefs.h. */
8237 int i;
8238 _ACEOF
8239 if ac_fn_c_try_compile "$LINENO"
8240 then :
8241 xorg_cv_cc_flag_unknown_warning_option=yes
8242 else $as_nop
8243 xorg_cv_cc_flag_unknown_warning_option=no
8244 fi
8245 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8246 fi
8247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8248 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8249 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8250 CFLAGS="$xorg_testset_save_CFLAGS"
8251 fi
8252
8253 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8256 fi
8257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8259 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8260 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8261 then :
8262 printf %s "(cached) " >&6
8263 else $as_nop
8264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8265 /* end confdefs.h. */
8266 int i;
8267 _ACEOF
8268 if ac_fn_c_try_compile "$LINENO"
8269 then :
8270 xorg_cv_cc_flag_unused_command_line_argument=yes
8271 else $as_nop
8272 xorg_cv_cc_flag_unused_command_line_argument=no
8273 fi
8274 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8275 fi
8276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8277 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8278 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8279 CFLAGS="$xorg_testset_save_CFLAGS"
8280 fi
8281
8282 found="no"
8283
8284 if test $found = "no" ; then
8285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8286 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8287 fi
8288
8289 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8291 fi
8292
8293 CFLAGS="$CFLAGS -Werror=array-bounds"
8294
8295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8296 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8297 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8298 if eval test \${$cacheid+y}
8299 then :
8300 printf %s "(cached) " >&6
8301 else $as_nop
8302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8303 /* end confdefs.h. */
8304 int i;
8305 int
8306 main (void)
8307 {
8308
8309 ;
8310 return 0;
8311 }
8312 _ACEOF
8313 if ac_fn_c_try_link "$LINENO"
8314 then :
8315 eval $cacheid=yes
8316 else $as_nop
8317 eval $cacheid=no
8318 fi
8319 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8320 conftest$ac_exeext conftest.$ac_ext
8321 fi
8322
8323
8324 CFLAGS="$xorg_testset_save_CFLAGS"
8325
8326 eval supported=\$$cacheid
8327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8328 printf "%s\n" "$supported" >&6; }
8329 if test "$supported" = "yes" ; then
8330 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8331 found="yes"
8332 fi
8333 fi
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349 xorg_testset_save_CFLAGS="$CFLAGS"
8350
8351 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8352 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8354 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8355 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8356 then :
8357 printf %s "(cached) " >&6
8358 else $as_nop
8359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8360 /* end confdefs.h. */
8361 int i;
8362 _ACEOF
8363 if ac_fn_c_try_compile "$LINENO"
8364 then :
8365 xorg_cv_cc_flag_unknown_warning_option=yes
8366 else $as_nop
8367 xorg_cv_cc_flag_unknown_warning_option=no
8368 fi
8369 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8370 fi
8371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8372 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8373 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8374 CFLAGS="$xorg_testset_save_CFLAGS"
8375 fi
8376
8377 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8380 fi
8381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8383 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8384 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8385 then :
8386 printf %s "(cached) " >&6
8387 else $as_nop
8388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389 /* end confdefs.h. */
8390 int i;
8391 _ACEOF
8392 if ac_fn_c_try_compile "$LINENO"
8393 then :
8394 xorg_cv_cc_flag_unused_command_line_argument=yes
8395 else $as_nop
8396 xorg_cv_cc_flag_unused_command_line_argument=no
8397 fi
8398 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8399 fi
8400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8401 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8402 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8403 CFLAGS="$xorg_testset_save_CFLAGS"
8404 fi
8405
8406 found="no"
8407
8408 if test $found = "no" ; then
8409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8411 fi
8412
8413 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8415 fi
8416
8417 CFLAGS="$CFLAGS -Werror=write-strings"
8418
8419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8420 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8421 cacheid=xorg_cv_cc_flag__Werror_write_strings
8422 if eval test \${$cacheid+y}
8423 then :
8424 printf %s "(cached) " >&6
8425 else $as_nop
8426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427 /* end confdefs.h. */
8428 int i;
8429 int
8430 main (void)
8431 {
8432
8433 ;
8434 return 0;
8435 }
8436 _ACEOF
8437 if ac_fn_c_try_link "$LINENO"
8438 then :
8439 eval $cacheid=yes
8440 else $as_nop
8441 eval $cacheid=no
8442 fi
8443 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8444 conftest$ac_exeext conftest.$ac_ext
8445 fi
8446
8447
8448 CFLAGS="$xorg_testset_save_CFLAGS"
8449
8450 eval supported=\$$cacheid
8451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8452 printf "%s\n" "$supported" >&6; }
8453 if test "$supported" = "yes" ; then
8454 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8455 found="yes"
8456 fi
8457 fi
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473 xorg_testset_save_CFLAGS="$CFLAGS"
8474
8475 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8478 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8479 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8480 then :
8481 printf %s "(cached) " >&6
8482 else $as_nop
8483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484 /* end confdefs.h. */
8485 int i;
8486 _ACEOF
8487 if ac_fn_c_try_compile "$LINENO"
8488 then :
8489 xorg_cv_cc_flag_unknown_warning_option=yes
8490 else $as_nop
8491 xorg_cv_cc_flag_unknown_warning_option=no
8492 fi
8493 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8494 fi
8495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8496 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8497 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8498 CFLAGS="$xorg_testset_save_CFLAGS"
8499 fi
8500
8501 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8504 fi
8505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8507 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8508 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8509 then :
8510 printf %s "(cached) " >&6
8511 else $as_nop
8512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513 /* end confdefs.h. */
8514 int i;
8515 _ACEOF
8516 if ac_fn_c_try_compile "$LINENO"
8517 then :
8518 xorg_cv_cc_flag_unused_command_line_argument=yes
8519 else $as_nop
8520 xorg_cv_cc_flag_unused_command_line_argument=no
8521 fi
8522 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8523 fi
8524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8525 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8526 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8527 CFLAGS="$xorg_testset_save_CFLAGS"
8528 fi
8529
8530 found="no"
8531
8532 if test $found = "no" ; then
8533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8535 fi
8536
8537 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8539 fi
8540
8541 CFLAGS="$CFLAGS -Werror=address"
8542
8543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8544 printf %s "checking if $CC supports -Werror=address... " >&6; }
8545 cacheid=xorg_cv_cc_flag__Werror_address
8546 if eval test \${$cacheid+y}
8547 then :
8548 printf %s "(cached) " >&6
8549 else $as_nop
8550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8551 /* end confdefs.h. */
8552 int i;
8553 int
8554 main (void)
8555 {
8556
8557 ;
8558 return 0;
8559 }
8560 _ACEOF
8561 if ac_fn_c_try_link "$LINENO"
8562 then :
8563 eval $cacheid=yes
8564 else $as_nop
8565 eval $cacheid=no
8566 fi
8567 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8568 conftest$ac_exeext conftest.$ac_ext
8569 fi
8570
8571
8572 CFLAGS="$xorg_testset_save_CFLAGS"
8573
8574 eval supported=\$$cacheid
8575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8576 printf "%s\n" "$supported" >&6; }
8577 if test "$supported" = "yes" ; then
8578 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8579 found="yes"
8580 fi
8581 fi
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597 xorg_testset_save_CFLAGS="$CFLAGS"
8598
8599 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8600 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8602 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8603 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8604 then :
8605 printf %s "(cached) " >&6
8606 else $as_nop
8607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8608 /* end confdefs.h. */
8609 int i;
8610 _ACEOF
8611 if ac_fn_c_try_compile "$LINENO"
8612 then :
8613 xorg_cv_cc_flag_unknown_warning_option=yes
8614 else $as_nop
8615 xorg_cv_cc_flag_unknown_warning_option=no
8616 fi
8617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8618 fi
8619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8620 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8621 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8622 CFLAGS="$xorg_testset_save_CFLAGS"
8623 fi
8624
8625 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8628 fi
8629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8631 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8632 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8633 then :
8634 printf %s "(cached) " >&6
8635 else $as_nop
8636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637 /* end confdefs.h. */
8638 int i;
8639 _ACEOF
8640 if ac_fn_c_try_compile "$LINENO"
8641 then :
8642 xorg_cv_cc_flag_unused_command_line_argument=yes
8643 else $as_nop
8644 xorg_cv_cc_flag_unused_command_line_argument=no
8645 fi
8646 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8647 fi
8648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8649 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8650 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8651 CFLAGS="$xorg_testset_save_CFLAGS"
8652 fi
8653
8654 found="no"
8655
8656 if test $found = "no" ; then
8657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8659 fi
8660
8661 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8663 fi
8664
8665 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8666
8667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8668 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8669 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8670 if eval test \${$cacheid+y}
8671 then :
8672 printf %s "(cached) " >&6
8673 else $as_nop
8674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8675 /* end confdefs.h. */
8676 int i;
8677 int
8678 main (void)
8679 {
8680
8681 ;
8682 return 0;
8683 }
8684 _ACEOF
8685 if ac_fn_c_try_link "$LINENO"
8686 then :
8687 eval $cacheid=yes
8688 else $as_nop
8689 eval $cacheid=no
8690 fi
8691 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8692 conftest$ac_exeext conftest.$ac_ext
8693 fi
8694
8695
8696 CFLAGS="$xorg_testset_save_CFLAGS"
8697
8698 eval supported=\$$cacheid
8699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8700 printf "%s\n" "$supported" >&6; }
8701 if test "$supported" = "yes" ; then
8702 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8703 found="yes"
8704 fi
8705 fi
8706
8707 if test $found = "no" ; then
8708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8710 fi
8711
8712 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8714 fi
8715
8716 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8717
8718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8719 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8720 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8721 if eval test \${$cacheid+y}
8722 then :
8723 printf %s "(cached) " >&6
8724 else $as_nop
8725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8726 /* end confdefs.h. */
8727 int i;
8728 int
8729 main (void)
8730 {
8731
8732 ;
8733 return 0;
8734 }
8735 _ACEOF
8736 if ac_fn_c_try_link "$LINENO"
8737 then :
8738 eval $cacheid=yes
8739 else $as_nop
8740 eval $cacheid=no
8741 fi
8742 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8743 conftest$ac_exeext conftest.$ac_ext
8744 fi
8745
8746
8747 CFLAGS="$xorg_testset_save_CFLAGS"
8748
8749 eval supported=\$$cacheid
8750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8751 printf "%s\n" "$supported" >&6; }
8752 if test "$supported" = "yes" ; then
8753 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8754 found="yes"
8755 fi
8756 fi
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772 xorg_testset_save_CFLAGS="$CFLAGS"
8773
8774 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8775 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8777 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8778 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8779 then :
8780 printf %s "(cached) " >&6
8781 else $as_nop
8782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8783 /* end confdefs.h. */
8784 int i;
8785 _ACEOF
8786 if ac_fn_c_try_compile "$LINENO"
8787 then :
8788 xorg_cv_cc_flag_unknown_warning_option=yes
8789 else $as_nop
8790 xorg_cv_cc_flag_unknown_warning_option=no
8791 fi
8792 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8793 fi
8794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8795 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8796 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8797 CFLAGS="$xorg_testset_save_CFLAGS"
8798 fi
8799
8800 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8802 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8803 fi
8804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8806 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8807 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8808 then :
8809 printf %s "(cached) " >&6
8810 else $as_nop
8811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8812 /* end confdefs.h. */
8813 int i;
8814 _ACEOF
8815 if ac_fn_c_try_compile "$LINENO"
8816 then :
8817 xorg_cv_cc_flag_unused_command_line_argument=yes
8818 else $as_nop
8819 xorg_cv_cc_flag_unused_command_line_argument=no
8820 fi
8821 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8822 fi
8823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8824 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8825 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8826 CFLAGS="$xorg_testset_save_CFLAGS"
8827 fi
8828
8829 found="no"
8830
8831 if test $found = "no" ; then
8832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8833 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8834 fi
8835
8836 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8838 fi
8839
8840 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8841
8842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8843 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8844 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8845 if eval test \${$cacheid+y}
8846 then :
8847 printf %s "(cached) " >&6
8848 else $as_nop
8849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8850 /* end confdefs.h. */
8851 int i;
8852 int
8853 main (void)
8854 {
8855
8856 ;
8857 return 0;
8858 }
8859 _ACEOF
8860 if ac_fn_c_try_link "$LINENO"
8861 then :
8862 eval $cacheid=yes
8863 else $as_nop
8864 eval $cacheid=no
8865 fi
8866 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8867 conftest$ac_exeext conftest.$ac_ext
8868 fi
8869
8870
8871 CFLAGS="$xorg_testset_save_CFLAGS"
8872
8873 eval supported=\$$cacheid
8874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8875 printf "%s\n" "$supported" >&6; }
8876 if test "$supported" = "yes" ; then
8877 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8878 found="yes"
8879 fi
8880 fi
8881
8882 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8883 else
8884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
8885 printf "%s\n" "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899 xorg_testset_save_CFLAGS="$CFLAGS"
8900
8901 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8902 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8904 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8905 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8906 then :
8907 printf %s "(cached) " >&6
8908 else $as_nop
8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h. */
8911 int i;
8912 _ACEOF
8913 if ac_fn_c_try_compile "$LINENO"
8914 then :
8915 xorg_cv_cc_flag_unknown_warning_option=yes
8916 else $as_nop
8917 xorg_cv_cc_flag_unknown_warning_option=no
8918 fi
8919 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8920 fi
8921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8922 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8923 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8924 CFLAGS="$xorg_testset_save_CFLAGS"
8925 fi
8926
8927 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8930 fi
8931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8933 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8934 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8935 then :
8936 printf %s "(cached) " >&6
8937 else $as_nop
8938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8939 /* end confdefs.h. */
8940 int i;
8941 _ACEOF
8942 if ac_fn_c_try_compile "$LINENO"
8943 then :
8944 xorg_cv_cc_flag_unused_command_line_argument=yes
8945 else $as_nop
8946 xorg_cv_cc_flag_unused_command_line_argument=no
8947 fi
8948 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8949 fi
8950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8951 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8952 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8953 CFLAGS="$xorg_testset_save_CFLAGS"
8954 fi
8955
8956 found="no"
8957
8958 if test $found = "no" ; then
8959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8961 fi
8962
8963 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8965 fi
8966
8967 CFLAGS="$CFLAGS -Wimplicit"
8968
8969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8970 printf %s "checking if $CC supports -Wimplicit... " >&6; }
8971 cacheid=xorg_cv_cc_flag__Wimplicit
8972 if eval test \${$cacheid+y}
8973 then :
8974 printf %s "(cached) " >&6
8975 else $as_nop
8976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977 /* end confdefs.h. */
8978 int i;
8979 int
8980 main (void)
8981 {
8982
8983 ;
8984 return 0;
8985 }
8986 _ACEOF
8987 if ac_fn_c_try_link "$LINENO"
8988 then :
8989 eval $cacheid=yes
8990 else $as_nop
8991 eval $cacheid=no
8992 fi
8993 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8994 conftest$ac_exeext conftest.$ac_ext
8995 fi
8996
8997
8998 CFLAGS="$xorg_testset_save_CFLAGS"
8999
9000 eval supported=\$$cacheid
9001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9002 printf "%s\n" "$supported" >&6; }
9003 if test "$supported" = "yes" ; then
9004 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9005 found="yes"
9006 fi
9007 fi
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023 xorg_testset_save_CFLAGS="$CFLAGS"
9024
9025 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9028 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9029 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9030 then :
9031 printf %s "(cached) " >&6
9032 else $as_nop
9033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9034 /* end confdefs.h. */
9035 int i;
9036 _ACEOF
9037 if ac_fn_c_try_compile "$LINENO"
9038 then :
9039 xorg_cv_cc_flag_unknown_warning_option=yes
9040 else $as_nop
9041 xorg_cv_cc_flag_unknown_warning_option=no
9042 fi
9043 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9044 fi
9045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9046 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9047 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9048 CFLAGS="$xorg_testset_save_CFLAGS"
9049 fi
9050
9051 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9053 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9054 fi
9055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9057 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9058 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9059 then :
9060 printf %s "(cached) " >&6
9061 else $as_nop
9062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9063 /* end confdefs.h. */
9064 int i;
9065 _ACEOF
9066 if ac_fn_c_try_compile "$LINENO"
9067 then :
9068 xorg_cv_cc_flag_unused_command_line_argument=yes
9069 else $as_nop
9070 xorg_cv_cc_flag_unused_command_line_argument=no
9071 fi
9072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9073 fi
9074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9075 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9076 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9077 CFLAGS="$xorg_testset_save_CFLAGS"
9078 fi
9079
9080 found="no"
9081
9082 if test $found = "no" ; then
9083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9085 fi
9086
9087 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9089 fi
9090
9091 CFLAGS="$CFLAGS -Wnonnull"
9092
9093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9094 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9095 cacheid=xorg_cv_cc_flag__Wnonnull
9096 if eval test \${$cacheid+y}
9097 then :
9098 printf %s "(cached) " >&6
9099 else $as_nop
9100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9101 /* end confdefs.h. */
9102 int i;
9103 int
9104 main (void)
9105 {
9106
9107 ;
9108 return 0;
9109 }
9110 _ACEOF
9111 if ac_fn_c_try_link "$LINENO"
9112 then :
9113 eval $cacheid=yes
9114 else $as_nop
9115 eval $cacheid=no
9116 fi
9117 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9118 conftest$ac_exeext conftest.$ac_ext
9119 fi
9120
9121
9122 CFLAGS="$xorg_testset_save_CFLAGS"
9123
9124 eval supported=\$$cacheid
9125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9126 printf "%s\n" "$supported" >&6; }
9127 if test "$supported" = "yes" ; then
9128 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9129 found="yes"
9130 fi
9131 fi
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147 xorg_testset_save_CFLAGS="$CFLAGS"
9148
9149 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9150 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9152 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9153 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9154 then :
9155 printf %s "(cached) " >&6
9156 else $as_nop
9157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9158 /* end confdefs.h. */
9159 int i;
9160 _ACEOF
9161 if ac_fn_c_try_compile "$LINENO"
9162 then :
9163 xorg_cv_cc_flag_unknown_warning_option=yes
9164 else $as_nop
9165 xorg_cv_cc_flag_unknown_warning_option=no
9166 fi
9167 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9168 fi
9169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9170 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9171 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9172 CFLAGS="$xorg_testset_save_CFLAGS"
9173 fi
9174
9175 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9178 fi
9179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9181 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9182 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9183 then :
9184 printf %s "(cached) " >&6
9185 else $as_nop
9186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9187 /* end confdefs.h. */
9188 int i;
9189 _ACEOF
9190 if ac_fn_c_try_compile "$LINENO"
9191 then :
9192 xorg_cv_cc_flag_unused_command_line_argument=yes
9193 else $as_nop
9194 xorg_cv_cc_flag_unused_command_line_argument=no
9195 fi
9196 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9197 fi
9198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9199 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9200 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9201 CFLAGS="$xorg_testset_save_CFLAGS"
9202 fi
9203
9204 found="no"
9205
9206 if test $found = "no" ; then
9207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9209 fi
9210
9211 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9213 fi
9214
9215 CFLAGS="$CFLAGS -Winit-self"
9216
9217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9218 printf %s "checking if $CC supports -Winit-self... " >&6; }
9219 cacheid=xorg_cv_cc_flag__Winit_self
9220 if eval test \${$cacheid+y}
9221 then :
9222 printf %s "(cached) " >&6
9223 else $as_nop
9224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225 /* end confdefs.h. */
9226 int i;
9227 int
9228 main (void)
9229 {
9230
9231 ;
9232 return 0;
9233 }
9234 _ACEOF
9235 if ac_fn_c_try_link "$LINENO"
9236 then :
9237 eval $cacheid=yes
9238 else $as_nop
9239 eval $cacheid=no
9240 fi
9241 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9242 conftest$ac_exeext conftest.$ac_ext
9243 fi
9244
9245
9246 CFLAGS="$xorg_testset_save_CFLAGS"
9247
9248 eval supported=\$$cacheid
9249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9250 printf "%s\n" "$supported" >&6; }
9251 if test "$supported" = "yes" ; then
9252 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9253 found="yes"
9254 fi
9255 fi
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271 xorg_testset_save_CFLAGS="$CFLAGS"
9272
9273 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9274 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9276 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9277 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9278 then :
9279 printf %s "(cached) " >&6
9280 else $as_nop
9281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282 /* end confdefs.h. */
9283 int i;
9284 _ACEOF
9285 if ac_fn_c_try_compile "$LINENO"
9286 then :
9287 xorg_cv_cc_flag_unknown_warning_option=yes
9288 else $as_nop
9289 xorg_cv_cc_flag_unknown_warning_option=no
9290 fi
9291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9292 fi
9293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9294 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9295 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9296 CFLAGS="$xorg_testset_save_CFLAGS"
9297 fi
9298
9299 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9301 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9302 fi
9303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9305 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9306 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9307 then :
9308 printf %s "(cached) " >&6
9309 else $as_nop
9310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9311 /* end confdefs.h. */
9312 int i;
9313 _ACEOF
9314 if ac_fn_c_try_compile "$LINENO"
9315 then :
9316 xorg_cv_cc_flag_unused_command_line_argument=yes
9317 else $as_nop
9318 xorg_cv_cc_flag_unused_command_line_argument=no
9319 fi
9320 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9321 fi
9322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9323 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9324 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9325 CFLAGS="$xorg_testset_save_CFLAGS"
9326 fi
9327
9328 found="no"
9329
9330 if test $found = "no" ; then
9331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9333 fi
9334
9335 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9337 fi
9338
9339 CFLAGS="$CFLAGS -Wmain"
9340
9341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9342 printf %s "checking if $CC supports -Wmain... " >&6; }
9343 cacheid=xorg_cv_cc_flag__Wmain
9344 if eval test \${$cacheid+y}
9345 then :
9346 printf %s "(cached) " >&6
9347 else $as_nop
9348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9349 /* end confdefs.h. */
9350 int i;
9351 int
9352 main (void)
9353 {
9354
9355 ;
9356 return 0;
9357 }
9358 _ACEOF
9359 if ac_fn_c_try_link "$LINENO"
9360 then :
9361 eval $cacheid=yes
9362 else $as_nop
9363 eval $cacheid=no
9364 fi
9365 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9366 conftest$ac_exeext conftest.$ac_ext
9367 fi
9368
9369
9370 CFLAGS="$xorg_testset_save_CFLAGS"
9371
9372 eval supported=\$$cacheid
9373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9374 printf "%s\n" "$supported" >&6; }
9375 if test "$supported" = "yes" ; then
9376 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9377 found="yes"
9378 fi
9379 fi
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395 xorg_testset_save_CFLAGS="$CFLAGS"
9396
9397 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9400 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9401 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9402 then :
9403 printf %s "(cached) " >&6
9404 else $as_nop
9405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9406 /* end confdefs.h. */
9407 int i;
9408 _ACEOF
9409 if ac_fn_c_try_compile "$LINENO"
9410 then :
9411 xorg_cv_cc_flag_unknown_warning_option=yes
9412 else $as_nop
9413 xorg_cv_cc_flag_unknown_warning_option=no
9414 fi
9415 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9416 fi
9417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9418 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9419 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9420 CFLAGS="$xorg_testset_save_CFLAGS"
9421 fi
9422
9423 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9424 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9425 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9426 fi
9427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9429 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9430 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9431 then :
9432 printf %s "(cached) " >&6
9433 else $as_nop
9434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9435 /* end confdefs.h. */
9436 int i;
9437 _ACEOF
9438 if ac_fn_c_try_compile "$LINENO"
9439 then :
9440 xorg_cv_cc_flag_unused_command_line_argument=yes
9441 else $as_nop
9442 xorg_cv_cc_flag_unused_command_line_argument=no
9443 fi
9444 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9445 fi
9446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9447 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9448 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9449 CFLAGS="$xorg_testset_save_CFLAGS"
9450 fi
9451
9452 found="no"
9453
9454 if test $found = "no" ; then
9455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9457 fi
9458
9459 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9461 fi
9462
9463 CFLAGS="$CFLAGS -Wmissing-braces"
9464
9465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9466 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9467 cacheid=xorg_cv_cc_flag__Wmissing_braces
9468 if eval test \${$cacheid+y}
9469 then :
9470 printf %s "(cached) " >&6
9471 else $as_nop
9472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9473 /* end confdefs.h. */
9474 int i;
9475 int
9476 main (void)
9477 {
9478
9479 ;
9480 return 0;
9481 }
9482 _ACEOF
9483 if ac_fn_c_try_link "$LINENO"
9484 then :
9485 eval $cacheid=yes
9486 else $as_nop
9487 eval $cacheid=no
9488 fi
9489 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9490 conftest$ac_exeext conftest.$ac_ext
9491 fi
9492
9493
9494 CFLAGS="$xorg_testset_save_CFLAGS"
9495
9496 eval supported=\$$cacheid
9497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9498 printf "%s\n" "$supported" >&6; }
9499 if test "$supported" = "yes" ; then
9500 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9501 found="yes"
9502 fi
9503 fi
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519 xorg_testset_save_CFLAGS="$CFLAGS"
9520
9521 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9522 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9524 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9525 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9526 then :
9527 printf %s "(cached) " >&6
9528 else $as_nop
9529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9530 /* end confdefs.h. */
9531 int i;
9532 _ACEOF
9533 if ac_fn_c_try_compile "$LINENO"
9534 then :
9535 xorg_cv_cc_flag_unknown_warning_option=yes
9536 else $as_nop
9537 xorg_cv_cc_flag_unknown_warning_option=no
9538 fi
9539 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9540 fi
9541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9542 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9543 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9544 CFLAGS="$xorg_testset_save_CFLAGS"
9545 fi
9546
9547 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9549 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9550 fi
9551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9553 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9554 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9555 then :
9556 printf %s "(cached) " >&6
9557 else $as_nop
9558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9559 /* end confdefs.h. */
9560 int i;
9561 _ACEOF
9562 if ac_fn_c_try_compile "$LINENO"
9563 then :
9564 xorg_cv_cc_flag_unused_command_line_argument=yes
9565 else $as_nop
9566 xorg_cv_cc_flag_unused_command_line_argument=no
9567 fi
9568 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9569 fi
9570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9571 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9572 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9573 CFLAGS="$xorg_testset_save_CFLAGS"
9574 fi
9575
9576 found="no"
9577
9578 if test $found = "no" ; then
9579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9581 fi
9582
9583 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9585 fi
9586
9587 CFLAGS="$CFLAGS -Wsequence-point"
9588
9589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9590 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9591 cacheid=xorg_cv_cc_flag__Wsequence_point
9592 if eval test \${$cacheid+y}
9593 then :
9594 printf %s "(cached) " >&6
9595 else $as_nop
9596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9597 /* end confdefs.h. */
9598 int i;
9599 int
9600 main (void)
9601 {
9602
9603 ;
9604 return 0;
9605 }
9606 _ACEOF
9607 if ac_fn_c_try_link "$LINENO"
9608 then :
9609 eval $cacheid=yes
9610 else $as_nop
9611 eval $cacheid=no
9612 fi
9613 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9614 conftest$ac_exeext conftest.$ac_ext
9615 fi
9616
9617
9618 CFLAGS="$xorg_testset_save_CFLAGS"
9619
9620 eval supported=\$$cacheid
9621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9622 printf "%s\n" "$supported" >&6; }
9623 if test "$supported" = "yes" ; then
9624 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9625 found="yes"
9626 fi
9627 fi
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643 xorg_testset_save_CFLAGS="$CFLAGS"
9644
9645 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9646 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9648 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9649 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9650 then :
9651 printf %s "(cached) " >&6
9652 else $as_nop
9653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9654 /* end confdefs.h. */
9655 int i;
9656 _ACEOF
9657 if ac_fn_c_try_compile "$LINENO"
9658 then :
9659 xorg_cv_cc_flag_unknown_warning_option=yes
9660 else $as_nop
9661 xorg_cv_cc_flag_unknown_warning_option=no
9662 fi
9663 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9664 fi
9665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9666 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9667 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9668 CFLAGS="$xorg_testset_save_CFLAGS"
9669 fi
9670
9671 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9674 fi
9675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9677 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9678 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9679 then :
9680 printf %s "(cached) " >&6
9681 else $as_nop
9682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9683 /* end confdefs.h. */
9684 int i;
9685 _ACEOF
9686 if ac_fn_c_try_compile "$LINENO"
9687 then :
9688 xorg_cv_cc_flag_unused_command_line_argument=yes
9689 else $as_nop
9690 xorg_cv_cc_flag_unused_command_line_argument=no
9691 fi
9692 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9693 fi
9694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9695 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9696 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9697 CFLAGS="$xorg_testset_save_CFLAGS"
9698 fi
9699
9700 found="no"
9701
9702 if test $found = "no" ; then
9703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9704 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9705 fi
9706
9707 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9709 fi
9710
9711 CFLAGS="$CFLAGS -Wreturn-type"
9712
9713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9714 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9715 cacheid=xorg_cv_cc_flag__Wreturn_type
9716 if eval test \${$cacheid+y}
9717 then :
9718 printf %s "(cached) " >&6
9719 else $as_nop
9720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9721 /* end confdefs.h. */
9722 int i;
9723 int
9724 main (void)
9725 {
9726
9727 ;
9728 return 0;
9729 }
9730 _ACEOF
9731 if ac_fn_c_try_link "$LINENO"
9732 then :
9733 eval $cacheid=yes
9734 else $as_nop
9735 eval $cacheid=no
9736 fi
9737 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9738 conftest$ac_exeext conftest.$ac_ext
9739 fi
9740
9741
9742 CFLAGS="$xorg_testset_save_CFLAGS"
9743
9744 eval supported=\$$cacheid
9745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9746 printf "%s\n" "$supported" >&6; }
9747 if test "$supported" = "yes" ; then
9748 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9749 found="yes"
9750 fi
9751 fi
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767 xorg_testset_save_CFLAGS="$CFLAGS"
9768
9769 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9772 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9773 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9774 then :
9775 printf %s "(cached) " >&6
9776 else $as_nop
9777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9778 /* end confdefs.h. */
9779 int i;
9780 _ACEOF
9781 if ac_fn_c_try_compile "$LINENO"
9782 then :
9783 xorg_cv_cc_flag_unknown_warning_option=yes
9784 else $as_nop
9785 xorg_cv_cc_flag_unknown_warning_option=no
9786 fi
9787 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9788 fi
9789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9790 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9791 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9792 CFLAGS="$xorg_testset_save_CFLAGS"
9793 fi
9794
9795 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9796 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9797 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9798 fi
9799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9801 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9802 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9803 then :
9804 printf %s "(cached) " >&6
9805 else $as_nop
9806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9807 /* end confdefs.h. */
9808 int i;
9809 _ACEOF
9810 if ac_fn_c_try_compile "$LINENO"
9811 then :
9812 xorg_cv_cc_flag_unused_command_line_argument=yes
9813 else $as_nop
9814 xorg_cv_cc_flag_unused_command_line_argument=no
9815 fi
9816 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9817 fi
9818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9819 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9820 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9821 CFLAGS="$xorg_testset_save_CFLAGS"
9822 fi
9823
9824 found="no"
9825
9826 if test $found = "no" ; then
9827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9829 fi
9830
9831 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9833 fi
9834
9835 CFLAGS="$CFLAGS -Wtrigraphs"
9836
9837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9838 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9839 cacheid=xorg_cv_cc_flag__Wtrigraphs
9840 if eval test \${$cacheid+y}
9841 then :
9842 printf %s "(cached) " >&6
9843 else $as_nop
9844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9845 /* end confdefs.h. */
9846 int i;
9847 int
9848 main (void)
9849 {
9850
9851 ;
9852 return 0;
9853 }
9854 _ACEOF
9855 if ac_fn_c_try_link "$LINENO"
9856 then :
9857 eval $cacheid=yes
9858 else $as_nop
9859 eval $cacheid=no
9860 fi
9861 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9862 conftest$ac_exeext conftest.$ac_ext
9863 fi
9864
9865
9866 CFLAGS="$xorg_testset_save_CFLAGS"
9867
9868 eval supported=\$$cacheid
9869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9870 printf "%s\n" "$supported" >&6; }
9871 if test "$supported" = "yes" ; then
9872 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9873 found="yes"
9874 fi
9875 fi
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891 xorg_testset_save_CFLAGS="$CFLAGS"
9892
9893 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9896 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9897 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9898 then :
9899 printf %s "(cached) " >&6
9900 else $as_nop
9901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9902 /* end confdefs.h. */
9903 int i;
9904 _ACEOF
9905 if ac_fn_c_try_compile "$LINENO"
9906 then :
9907 xorg_cv_cc_flag_unknown_warning_option=yes
9908 else $as_nop
9909 xorg_cv_cc_flag_unknown_warning_option=no
9910 fi
9911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9912 fi
9913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9914 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9915 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9916 CFLAGS="$xorg_testset_save_CFLAGS"
9917 fi
9918
9919 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9922 fi
9923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9925 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9926 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9927 then :
9928 printf %s "(cached) " >&6
9929 else $as_nop
9930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9931 /* end confdefs.h. */
9932 int i;
9933 _ACEOF
9934 if ac_fn_c_try_compile "$LINENO"
9935 then :
9936 xorg_cv_cc_flag_unused_command_line_argument=yes
9937 else $as_nop
9938 xorg_cv_cc_flag_unused_command_line_argument=no
9939 fi
9940 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9941 fi
9942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9943 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9944 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9945 CFLAGS="$xorg_testset_save_CFLAGS"
9946 fi
9947
9948 found="no"
9949
9950 if test $found = "no" ; then
9951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9953 fi
9954
9955 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9957 fi
9958
9959 CFLAGS="$CFLAGS -Warray-bounds"
9960
9961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9962 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
9963 cacheid=xorg_cv_cc_flag__Warray_bounds
9964 if eval test \${$cacheid+y}
9965 then :
9966 printf %s "(cached) " >&6
9967 else $as_nop
9968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9969 /* end confdefs.h. */
9970 int i;
9971 int
9972 main (void)
9973 {
9974
9975 ;
9976 return 0;
9977 }
9978 _ACEOF
9979 if ac_fn_c_try_link "$LINENO"
9980 then :
9981 eval $cacheid=yes
9982 else $as_nop
9983 eval $cacheid=no
9984 fi
9985 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9986 conftest$ac_exeext conftest.$ac_ext
9987 fi
9988
9989
9990 CFLAGS="$xorg_testset_save_CFLAGS"
9991
9992 eval supported=\$$cacheid
9993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9994 printf "%s\n" "$supported" >&6; }
9995 if test "$supported" = "yes" ; then
9996 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9997 found="yes"
9998 fi
9999 fi
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015 xorg_testset_save_CFLAGS="$CFLAGS"
10016
10017 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10020 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10021 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10022 then :
10023 printf %s "(cached) " >&6
10024 else $as_nop
10025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10026 /* end confdefs.h. */
10027 int i;
10028 _ACEOF
10029 if ac_fn_c_try_compile "$LINENO"
10030 then :
10031 xorg_cv_cc_flag_unknown_warning_option=yes
10032 else $as_nop
10033 xorg_cv_cc_flag_unknown_warning_option=no
10034 fi
10035 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10036 fi
10037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10038 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10039 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10040 CFLAGS="$xorg_testset_save_CFLAGS"
10041 fi
10042
10043 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10046 fi
10047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10049 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10050 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10051 then :
10052 printf %s "(cached) " >&6
10053 else $as_nop
10054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10055 /* end confdefs.h. */
10056 int i;
10057 _ACEOF
10058 if ac_fn_c_try_compile "$LINENO"
10059 then :
10060 xorg_cv_cc_flag_unused_command_line_argument=yes
10061 else $as_nop
10062 xorg_cv_cc_flag_unused_command_line_argument=no
10063 fi
10064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10065 fi
10066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10067 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10068 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10069 CFLAGS="$xorg_testset_save_CFLAGS"
10070 fi
10071
10072 found="no"
10073
10074 if test $found = "no" ; then
10075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10077 fi
10078
10079 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10081 fi
10082
10083 CFLAGS="$CFLAGS -Wwrite-strings"
10084
10085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10086 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10087 cacheid=xorg_cv_cc_flag__Wwrite_strings
10088 if eval test \${$cacheid+y}
10089 then :
10090 printf %s "(cached) " >&6
10091 else $as_nop
10092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10093 /* end confdefs.h. */
10094 int i;
10095 int
10096 main (void)
10097 {
10098
10099 ;
10100 return 0;
10101 }
10102 _ACEOF
10103 if ac_fn_c_try_link "$LINENO"
10104 then :
10105 eval $cacheid=yes
10106 else $as_nop
10107 eval $cacheid=no
10108 fi
10109 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10110 conftest$ac_exeext conftest.$ac_ext
10111 fi
10112
10113
10114 CFLAGS="$xorg_testset_save_CFLAGS"
10115
10116 eval supported=\$$cacheid
10117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10118 printf "%s\n" "$supported" >&6; }
10119 if test "$supported" = "yes" ; then
10120 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10121 found="yes"
10122 fi
10123 fi
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139 xorg_testset_save_CFLAGS="$CFLAGS"
10140
10141 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10144 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10145 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10146 then :
10147 printf %s "(cached) " >&6
10148 else $as_nop
10149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10150 /* end confdefs.h. */
10151 int i;
10152 _ACEOF
10153 if ac_fn_c_try_compile "$LINENO"
10154 then :
10155 xorg_cv_cc_flag_unknown_warning_option=yes
10156 else $as_nop
10157 xorg_cv_cc_flag_unknown_warning_option=no
10158 fi
10159 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10160 fi
10161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10162 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10163 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10164 CFLAGS="$xorg_testset_save_CFLAGS"
10165 fi
10166
10167 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10170 fi
10171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10173 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10174 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10175 then :
10176 printf %s "(cached) " >&6
10177 else $as_nop
10178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10179 /* end confdefs.h. */
10180 int i;
10181 _ACEOF
10182 if ac_fn_c_try_compile "$LINENO"
10183 then :
10184 xorg_cv_cc_flag_unused_command_line_argument=yes
10185 else $as_nop
10186 xorg_cv_cc_flag_unused_command_line_argument=no
10187 fi
10188 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10189 fi
10190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10191 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10192 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10193 CFLAGS="$xorg_testset_save_CFLAGS"
10194 fi
10195
10196 found="no"
10197
10198 if test $found = "no" ; then
10199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10201 fi
10202
10203 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10205 fi
10206
10207 CFLAGS="$CFLAGS -Waddress"
10208
10209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10210 printf %s "checking if $CC supports -Waddress... " >&6; }
10211 cacheid=xorg_cv_cc_flag__Waddress
10212 if eval test \${$cacheid+y}
10213 then :
10214 printf %s "(cached) " >&6
10215 else $as_nop
10216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217 /* end confdefs.h. */
10218 int i;
10219 int
10220 main (void)
10221 {
10222
10223 ;
10224 return 0;
10225 }
10226 _ACEOF
10227 if ac_fn_c_try_link "$LINENO"
10228 then :
10229 eval $cacheid=yes
10230 else $as_nop
10231 eval $cacheid=no
10232 fi
10233 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10234 conftest$ac_exeext conftest.$ac_ext
10235 fi
10236
10237
10238 CFLAGS="$xorg_testset_save_CFLAGS"
10239
10240 eval supported=\$$cacheid
10241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10242 printf "%s\n" "$supported" >&6; }
10243 if test "$supported" = "yes" ; then
10244 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10245 found="yes"
10246 fi
10247 fi
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263 xorg_testset_save_CFLAGS="$CFLAGS"
10264
10265 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10268 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10269 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10270 then :
10271 printf %s "(cached) " >&6
10272 else $as_nop
10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274 /* end confdefs.h. */
10275 int i;
10276 _ACEOF
10277 if ac_fn_c_try_compile "$LINENO"
10278 then :
10279 xorg_cv_cc_flag_unknown_warning_option=yes
10280 else $as_nop
10281 xorg_cv_cc_flag_unknown_warning_option=no
10282 fi
10283 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10284 fi
10285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10286 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10287 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10288 CFLAGS="$xorg_testset_save_CFLAGS"
10289 fi
10290
10291 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10294 fi
10295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10297 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10298 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10299 then :
10300 printf %s "(cached) " >&6
10301 else $as_nop
10302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10303 /* end confdefs.h. */
10304 int i;
10305 _ACEOF
10306 if ac_fn_c_try_compile "$LINENO"
10307 then :
10308 xorg_cv_cc_flag_unused_command_line_argument=yes
10309 else $as_nop
10310 xorg_cv_cc_flag_unused_command_line_argument=no
10311 fi
10312 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10313 fi
10314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10315 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10316 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10317 CFLAGS="$xorg_testset_save_CFLAGS"
10318 fi
10319
10320 found="no"
10321
10322 if test $found = "no" ; then
10323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10325 fi
10326
10327 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10329 fi
10330
10331 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10332
10333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10334 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10335 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10336 if eval test \${$cacheid+y}
10337 then :
10338 printf %s "(cached) " >&6
10339 else $as_nop
10340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10341 /* end confdefs.h. */
10342 int i;
10343 int
10344 main (void)
10345 {
10346
10347 ;
10348 return 0;
10349 }
10350 _ACEOF
10351 if ac_fn_c_try_link "$LINENO"
10352 then :
10353 eval $cacheid=yes
10354 else $as_nop
10355 eval $cacheid=no
10356 fi
10357 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10358 conftest$ac_exeext conftest.$ac_ext
10359 fi
10360
10361
10362 CFLAGS="$xorg_testset_save_CFLAGS"
10363
10364 eval supported=\$$cacheid
10365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10366 printf "%s\n" "$supported" >&6; }
10367 if test "$supported" = "yes" ; then
10368 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10369 found="yes"
10370 fi
10371 fi
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387 xorg_testset_save_CFLAGS="$CFLAGS"
10388
10389 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10392 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10393 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10394 then :
10395 printf %s "(cached) " >&6
10396 else $as_nop
10397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10398 /* end confdefs.h. */
10399 int i;
10400 _ACEOF
10401 if ac_fn_c_try_compile "$LINENO"
10402 then :
10403 xorg_cv_cc_flag_unknown_warning_option=yes
10404 else $as_nop
10405 xorg_cv_cc_flag_unknown_warning_option=no
10406 fi
10407 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10408 fi
10409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10410 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10411 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10412 CFLAGS="$xorg_testset_save_CFLAGS"
10413 fi
10414
10415 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10418 fi
10419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10421 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10422 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10423 then :
10424 printf %s "(cached) " >&6
10425 else $as_nop
10426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10427 /* end confdefs.h. */
10428 int i;
10429 _ACEOF
10430 if ac_fn_c_try_compile "$LINENO"
10431 then :
10432 xorg_cv_cc_flag_unused_command_line_argument=yes
10433 else $as_nop
10434 xorg_cv_cc_flag_unused_command_line_argument=no
10435 fi
10436 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10437 fi
10438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10439 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10440 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10441 CFLAGS="$xorg_testset_save_CFLAGS"
10442 fi
10443
10444 found="no"
10445
10446 if test $found = "no" ; then
10447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10448 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10449 fi
10450
10451 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10453 fi
10454
10455 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10456
10457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10458 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10459 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10460 if eval test \${$cacheid+y}
10461 then :
10462 printf %s "(cached) " >&6
10463 else $as_nop
10464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10465 /* end confdefs.h. */
10466 int i;
10467 int
10468 main (void)
10469 {
10470
10471 ;
10472 return 0;
10473 }
10474 _ACEOF
10475 if ac_fn_c_try_link "$LINENO"
10476 then :
10477 eval $cacheid=yes
10478 else $as_nop
10479 eval $cacheid=no
10480 fi
10481 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10482 conftest$ac_exeext conftest.$ac_ext
10483 fi
10484
10485
10486 CFLAGS="$xorg_testset_save_CFLAGS"
10487
10488 eval supported=\$$cacheid
10489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10490 printf "%s\n" "$supported" >&6; }
10491 if test "$supported" = "yes" ; then
10492 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10493 found="yes"
10494 fi
10495 fi
10496
10497
10498 fi
10499
10500
10501
10502
10503
10504
10505
10506 CWARNFLAGS="$BASE_CFLAGS"
10507 if test "x$GCC" = xyes ; then
10508 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10509 fi
10510
10511
10512
10513
10514
10515
10516
10517
10518 # Check whether --enable-strict-compilation was given.
10519 if test ${enable_strict_compilation+y}
10520 then :
10521 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10522 else $as_nop
10523 STRICT_COMPILE=no
10524 fi
10525
10526
10527
10528
10529
10530
10531 STRICT_CFLAGS=""
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545 xorg_testset_save_CFLAGS="$CFLAGS"
10546
10547 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10550 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10551 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10552 then :
10553 printf %s "(cached) " >&6
10554 else $as_nop
10555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10556 /* end confdefs.h. */
10557 int i;
10558 _ACEOF
10559 if ac_fn_c_try_compile "$LINENO"
10560 then :
10561 xorg_cv_cc_flag_unknown_warning_option=yes
10562 else $as_nop
10563 xorg_cv_cc_flag_unknown_warning_option=no
10564 fi
10565 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10566 fi
10567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10568 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10569 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10570 CFLAGS="$xorg_testset_save_CFLAGS"
10571 fi
10572
10573 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10576 fi
10577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10579 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10580 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10581 then :
10582 printf %s "(cached) " >&6
10583 else $as_nop
10584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10585 /* end confdefs.h. */
10586 int i;
10587 _ACEOF
10588 if ac_fn_c_try_compile "$LINENO"
10589 then :
10590 xorg_cv_cc_flag_unused_command_line_argument=yes
10591 else $as_nop
10592 xorg_cv_cc_flag_unused_command_line_argument=no
10593 fi
10594 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10595 fi
10596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10597 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10598 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10599 CFLAGS="$xorg_testset_save_CFLAGS"
10600 fi
10601
10602 found="no"
10603
10604 if test $found = "no" ; then
10605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10607 fi
10608
10609 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10611 fi
10612
10613 CFLAGS="$CFLAGS -pedantic"
10614
10615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10616 printf %s "checking if $CC supports -pedantic... " >&6; }
10617 cacheid=xorg_cv_cc_flag__pedantic
10618 if eval test \${$cacheid+y}
10619 then :
10620 printf %s "(cached) " >&6
10621 else $as_nop
10622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623 /* end confdefs.h. */
10624 int i;
10625 int
10626 main (void)
10627 {
10628
10629 ;
10630 return 0;
10631 }
10632 _ACEOF
10633 if ac_fn_c_try_link "$LINENO"
10634 then :
10635 eval $cacheid=yes
10636 else $as_nop
10637 eval $cacheid=no
10638 fi
10639 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10640 conftest$ac_exeext conftest.$ac_ext
10641 fi
10642
10643
10644 CFLAGS="$xorg_testset_save_CFLAGS"
10645
10646 eval supported=\$$cacheid
10647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10648 printf "%s\n" "$supported" >&6; }
10649 if test "$supported" = "yes" ; then
10650 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10651 found="yes"
10652 fi
10653 fi
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669 xorg_testset_save_CFLAGS="$CFLAGS"
10670
10671 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10674 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10675 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10676 then :
10677 printf %s "(cached) " >&6
10678 else $as_nop
10679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10680 /* end confdefs.h. */
10681 int i;
10682 _ACEOF
10683 if ac_fn_c_try_compile "$LINENO"
10684 then :
10685 xorg_cv_cc_flag_unknown_warning_option=yes
10686 else $as_nop
10687 xorg_cv_cc_flag_unknown_warning_option=no
10688 fi
10689 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10690 fi
10691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10692 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10693 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10694 CFLAGS="$xorg_testset_save_CFLAGS"
10695 fi
10696
10697 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10700 fi
10701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10703 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10704 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10705 then :
10706 printf %s "(cached) " >&6
10707 else $as_nop
10708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h. */
10710 int i;
10711 _ACEOF
10712 if ac_fn_c_try_compile "$LINENO"
10713 then :
10714 xorg_cv_cc_flag_unused_command_line_argument=yes
10715 else $as_nop
10716 xorg_cv_cc_flag_unused_command_line_argument=no
10717 fi
10718 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10719 fi
10720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10721 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10722 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10723 CFLAGS="$xorg_testset_save_CFLAGS"
10724 fi
10725
10726 found="no"
10727
10728 if test $found = "no" ; then
10729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10731 fi
10732
10733 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10735 fi
10736
10737 CFLAGS="$CFLAGS -Werror"
10738
10739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10740 printf %s "checking if $CC supports -Werror... " >&6; }
10741 cacheid=xorg_cv_cc_flag__Werror
10742 if eval test \${$cacheid+y}
10743 then :
10744 printf %s "(cached) " >&6
10745 else $as_nop
10746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10747 /* end confdefs.h. */
10748 int i;
10749 int
10750 main (void)
10751 {
10752
10753 ;
10754 return 0;
10755 }
10756 _ACEOF
10757 if ac_fn_c_try_link "$LINENO"
10758 then :
10759 eval $cacheid=yes
10760 else $as_nop
10761 eval $cacheid=no
10762 fi
10763 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10764 conftest$ac_exeext conftest.$ac_ext
10765 fi
10766
10767
10768 CFLAGS="$xorg_testset_save_CFLAGS"
10769
10770 eval supported=\$$cacheid
10771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10772 printf "%s\n" "$supported" >&6; }
10773 if test "$supported" = "yes" ; then
10774 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10775 found="yes"
10776 fi
10777 fi
10778
10779 if test $found = "no" ; then
10780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10782 fi
10783
10784 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10786 fi
10787
10788 CFLAGS="$CFLAGS -errwarn"
10789
10790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10791 printf %s "checking if $CC supports -errwarn... " >&6; }
10792 cacheid=xorg_cv_cc_flag__errwarn
10793 if eval test \${$cacheid+y}
10794 then :
10795 printf %s "(cached) " >&6
10796 else $as_nop
10797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10798 /* end confdefs.h. */
10799 int i;
10800 int
10801 main (void)
10802 {
10803
10804 ;
10805 return 0;
10806 }
10807 _ACEOF
10808 if ac_fn_c_try_link "$LINENO"
10809 then :
10810 eval $cacheid=yes
10811 else $as_nop
10812 eval $cacheid=no
10813 fi
10814 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10815 conftest$ac_exeext conftest.$ac_ext
10816 fi
10817
10818
10819 CFLAGS="$xorg_testset_save_CFLAGS"
10820
10821 eval supported=\$$cacheid
10822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10823 printf "%s\n" "$supported" >&6; }
10824 if test "$supported" = "yes" ; then
10825 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10826 found="yes"
10827 fi
10828 fi
10829
10830
10831
10832 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10833 # activate it with -Werror, so we add it here explicitly.
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847 xorg_testset_save_CFLAGS="$CFLAGS"
10848
10849 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10852 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10853 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10854 then :
10855 printf %s "(cached) " >&6
10856 else $as_nop
10857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10858 /* end confdefs.h. */
10859 int i;
10860 _ACEOF
10861 if ac_fn_c_try_compile "$LINENO"
10862 then :
10863 xorg_cv_cc_flag_unknown_warning_option=yes
10864 else $as_nop
10865 xorg_cv_cc_flag_unknown_warning_option=no
10866 fi
10867 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10868 fi
10869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10870 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10871 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10872 CFLAGS="$xorg_testset_save_CFLAGS"
10873 fi
10874
10875 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10878 fi
10879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10881 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10882 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10883 then :
10884 printf %s "(cached) " >&6
10885 else $as_nop
10886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10887 /* end confdefs.h. */
10888 int i;
10889 _ACEOF
10890 if ac_fn_c_try_compile "$LINENO"
10891 then :
10892 xorg_cv_cc_flag_unused_command_line_argument=yes
10893 else $as_nop
10894 xorg_cv_cc_flag_unused_command_line_argument=no
10895 fi
10896 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10897 fi
10898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10899 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10900 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10901 CFLAGS="$xorg_testset_save_CFLAGS"
10902 fi
10903
10904 found="no"
10905
10906 if test $found = "no" ; then
10907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10909 fi
10910
10911 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10913 fi
10914
10915 CFLAGS="$CFLAGS -Werror=attributes"
10916
10917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10918 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10919 cacheid=xorg_cv_cc_flag__Werror_attributes
10920 if eval test \${$cacheid+y}
10921 then :
10922 printf %s "(cached) " >&6
10923 else $as_nop
10924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10925 /* end confdefs.h. */
10926 int i;
10927 int
10928 main (void)
10929 {
10930
10931 ;
10932 return 0;
10933 }
10934 _ACEOF
10935 if ac_fn_c_try_link "$LINENO"
10936 then :
10937 eval $cacheid=yes
10938 else $as_nop
10939 eval $cacheid=no
10940 fi
10941 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10942 conftest$ac_exeext conftest.$ac_ext
10943 fi
10944
10945
10946 CFLAGS="$xorg_testset_save_CFLAGS"
10947
10948 eval supported=\$$cacheid
10949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10950 printf "%s\n" "$supported" >&6; }
10951 if test "$supported" = "yes" ; then
10952 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10953 found="yes"
10954 fi
10955 fi
10956
10957
10958
10959 if test "x$STRICT_COMPILE" = "xyes"; then
10960 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10961 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10962 fi
10963
10964
10965
10966
10967
10968
10969 cat >>confdefs.h <<_ACEOF
10970 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10971 _ACEOF
10972
10973 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10974 if test "x$PVM" = "x"; then
10975 PVM="0"
10976 fi
10977
10978 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10979
10980 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10981 if test "x$PVP" = "x"; then
10982 PVP="0"
10983 fi
10984
10985 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10986
10987
10988
10989 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10990 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10991 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10992 touch \$(top_srcdir)/ChangeLog; \
10993 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10994
10995
10996
10997
10998 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10999 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11000 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11001 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11002 touch \$(top_srcdir)/INSTALL; \
11003 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11004
11005
11006
11007
11008
11009
11010 case $host_os in
11011 solaris*)
11012 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11013 # check for a man page file found in later versions that use
11014 # traditional section numbers instead
11015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11016 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11017 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11018 then :
11019 printf %s "(cached) " >&6
11020 else $as_nop
11021 test "$cross_compiling" = yes &&
11022 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11023 if test -r "/usr/share/man/man7/attributes.7"; then
11024 ac_cv_file__usr_share_man_man7_attributes_7=yes
11025 else
11026 ac_cv_file__usr_share_man_man7_attributes_7=no
11027 fi
11028 fi
11029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11030 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11031 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11032 then :
11033 SYSV_MAN_SECTIONS=false
11034 else $as_nop
11035 SYSV_MAN_SECTIONS=true
11036 fi
11037
11038 ;;
11039 *) SYSV_MAN_SECTIONS=false ;;
11040 esac
11041
11042 if test x$APP_MAN_SUFFIX = x ; then
11043 APP_MAN_SUFFIX=1
11044 fi
11045 if test x$APP_MAN_DIR = x ; then
11046 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11047 fi
11048
11049 if test x$LIB_MAN_SUFFIX = x ; then
11050 LIB_MAN_SUFFIX=3
11051 fi
11052 if test x$LIB_MAN_DIR = x ; then
11053 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11054 fi
11055
11056 if test x$FILE_MAN_SUFFIX = x ; then
11057 case $SYSV_MAN_SECTIONS in
11058 true) FILE_MAN_SUFFIX=4 ;;
11059 *) FILE_MAN_SUFFIX=5 ;;
11060 esac
11061 fi
11062 if test x$FILE_MAN_DIR = x ; then
11063 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11064 fi
11065
11066 if test x$MISC_MAN_SUFFIX = x ; then
11067 case $SYSV_MAN_SECTIONS in
11068 true) MISC_MAN_SUFFIX=5 ;;
11069 *) MISC_MAN_SUFFIX=7 ;;
11070 esac
11071 fi
11072 if test x$MISC_MAN_DIR = x ; then
11073 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11074 fi
11075
11076 if test x$DRIVER_MAN_SUFFIX = x ; then
11077 case $SYSV_MAN_SECTIONS in
11078 true) DRIVER_MAN_SUFFIX=7 ;;
11079 *) DRIVER_MAN_SUFFIX=4 ;;
11080 esac
11081 fi
11082 if test x$DRIVER_MAN_DIR = x ; then
11083 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11084 fi
11085
11086 if test x$ADMIN_MAN_SUFFIX = x ; then
11087 case $SYSV_MAN_SECTIONS in
11088 true) ADMIN_MAN_SUFFIX=1m ;;
11089 *) ADMIN_MAN_SUFFIX=8 ;;
11090 esac
11091 fi
11092 if test x$ADMIN_MAN_DIR = x ; then
11093 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11094 fi
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110 XORG_MAN_PAGE="X Version 11"
11111
11112 MAN_SUBSTS="\
11113 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11114 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11115 -e 's|__xservername__|Xorg|g' \
11116 -e 's|__xconfigfile__|xorg.conf|g' \
11117 -e 's|__projectroot__|\$(prefix)|g' \
11118 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11119 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11120 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11121 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11122 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11123 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11124 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11125
11126
11127
11128 # Check whether --enable-silent-rules was given.
11129 if test ${enable_silent_rules+y}
11130 then :
11131 enableval=$enable_silent_rules;
11132 fi
11133
11134 case $enable_silent_rules in # (((
11135 yes) AM_DEFAULT_VERBOSITY=0;;
11136 no) AM_DEFAULT_VERBOSITY=1;;
11137 *) AM_DEFAULT_VERBOSITY=0;;
11138 esac
11139 am_make=${MAKE-make}
11140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11141 printf %s "checking whether $am_make supports nested variables... " >&6; }
11142 if test ${am_cv_make_support_nested_variables+y}
11143 then :
11144 printf %s "(cached) " >&6
11145 else $as_nop
11146 if printf "%s\n" 'TRUE=$(BAR$(V))
11147 BAR0=false
11148 BAR1=true
11149 V=1
11150 am__doit:
11151 @$(TRUE)
11152 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11153 am_cv_make_support_nested_variables=yes
11154 else
11155 am_cv_make_support_nested_variables=no
11156 fi
11157 fi
11158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11159 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11160 if test $am_cv_make_support_nested_variables = yes; then
11161 AM_V='$(V)'
11162 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11163 else
11164 AM_V=$AM_DEFAULT_VERBOSITY
11165 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11166 fi
11167 AM_BACKSLASH='\'
11168
11169
11170
11171 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
11172 if test "x$ac_cv_func_strcasecmp" = xyes
11173 then :
11174 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
11175
11176 fi
11177
11178
11179 # xkbvleds checks
11180
11181 pkg_failed=no
11182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XKBVLEDS" >&5
11183 printf %s "checking for XKBVLEDS... " >&6; }
11184
11185 if test -n "$XKBVLEDS_CFLAGS"; then
11186 pkg_cv_XKBVLEDS_CFLAGS="$XKBVLEDS_CFLAGS"
11187 elif test -n "$PKG_CONFIG"; then
11188 if test -n "$PKG_CONFIG" && \
11189 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xaw7 xt x11\""; } >&5
11190 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xaw7 xt x11") 2>&5
11191 ac_status=$?
11192 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11193 test $ac_status = 0; }; then
11194 pkg_cv_XKBVLEDS_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 xaw7 xt x11" 2>/dev/null`
11195 test "x$?" != "x0" && pkg_failed=yes
11196 else
11197 pkg_failed=yes
11198 fi
11199 else
11200 pkg_failed=untried
11201 fi
11202 if test -n "$XKBVLEDS_LIBS"; then
11203 pkg_cv_XKBVLEDS_LIBS="$XKBVLEDS_LIBS"
11204 elif test -n "$PKG_CONFIG"; then
11205 if test -n "$PKG_CONFIG" && \
11206 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xaw7 xt x11\""; } >&5
11207 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xaw7 xt x11") 2>&5
11208 ac_status=$?
11209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11210 test $ac_status = 0; }; then
11211 pkg_cv_XKBVLEDS_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 xaw7 xt x11" 2>/dev/null`
11212 test "x$?" != "x0" && pkg_failed=yes
11213 else
11214 pkg_failed=yes
11215 fi
11216 else
11217 pkg_failed=untried
11218 fi
11219
11220
11221
11222 if test $pkg_failed = yes; then
11223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11224 printf "%s\n" "no" >&6; }
11225
11226 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11227 _pkg_short_errors_supported=yes
11228 else
11229 _pkg_short_errors_supported=no
11230 fi
11231 if test $_pkg_short_errors_supported = yes; then
11232 XKBVLEDS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.17 xaw7 xt x11" 2>&1`
11233 else
11234 XKBVLEDS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.17 xaw7 xt x11" 2>&1`
11235 fi
11236 # Put the nasty error message in config.log where it belongs
11237 echo "$XKBVLEDS_PKG_ERRORS" >&5
11238
11239 as_fn_error $? "Package requirements (xproto >= 7.0.17 xaw7 xt x11) were not met:
11240
11241 $XKBVLEDS_PKG_ERRORS
11242
11243 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11244 installed software in a non-standard prefix.
11245
11246 Alternatively, you may set the environment variables XKBVLEDS_CFLAGS
11247 and XKBVLEDS_LIBS to avoid the need to call pkg-config.
11248 See the pkg-config man page for more details." "$LINENO" 5
11249 elif test $pkg_failed = untried; then
11250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11251 printf "%s\n" "no" >&6; }
11252 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11253 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11254 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11255 is in your PATH or set the PKG_CONFIG environment variable to the full
11256 path to pkg-config.
11257
11258 Alternatively, you may set the environment variables XKBVLEDS_CFLAGS
11259 and XKBVLEDS_LIBS to avoid the need to call pkg-config.
11260 See the pkg-config man page for more details.
11261
11262 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11263 See \`config.log' for more details" "$LINENO" 5; }
11264 else
11265 XKBVLEDS_CFLAGS=$pkg_cv_XKBVLEDS_CFLAGS
11266 XKBVLEDS_LIBS=$pkg_cv_XKBVLEDS_LIBS
11267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11268 printf "%s\n" "yes" >&6; }
11269
11270 fi
11271
11272 # xkbbell checks
11273
11274 pkg_failed=no
11275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XKBBELL" >&5
11276 printf %s "checking for XKBBELL... " >&6; }
11277
11278 if test -n "$XKBBELL_CFLAGS"; then
11279 pkg_cv_XKBBELL_CFLAGS="$XKBBELL_CFLAGS"
11280 elif test -n "$PKG_CONFIG"; then
11281 if test -n "$PKG_CONFIG" && \
11282 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto inputproto x11\""; } >&5
11283 ($PKG_CONFIG --exists --print-errors "xproto inputproto x11") 2>&5
11284 ac_status=$?
11285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11286 test $ac_status = 0; }; then
11287 pkg_cv_XKBBELL_CFLAGS=`$PKG_CONFIG --cflags "xproto inputproto x11" 2>/dev/null`
11288 test "x$?" != "x0" && pkg_failed=yes
11289 else
11290 pkg_failed=yes
11291 fi
11292 else
11293 pkg_failed=untried
11294 fi
11295 if test -n "$XKBBELL_LIBS"; then
11296 pkg_cv_XKBBELL_LIBS="$XKBBELL_LIBS"
11297 elif test -n "$PKG_CONFIG"; then
11298 if test -n "$PKG_CONFIG" && \
11299 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto inputproto x11\""; } >&5
11300 ($PKG_CONFIG --exists --print-errors "xproto inputproto x11") 2>&5
11301 ac_status=$?
11302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11303 test $ac_status = 0; }; then
11304 pkg_cv_XKBBELL_LIBS=`$PKG_CONFIG --libs "xproto inputproto x11" 2>/dev/null`
11305 test "x$?" != "x0" && pkg_failed=yes
11306 else
11307 pkg_failed=yes
11308 fi
11309 else
11310 pkg_failed=untried
11311 fi
11312
11313
11314
11315 if test $pkg_failed = yes; then
11316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11317 printf "%s\n" "no" >&6; }
11318
11319 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11320 _pkg_short_errors_supported=yes
11321 else
11322 _pkg_short_errors_supported=no
11323 fi
11324 if test $_pkg_short_errors_supported = yes; then
11325 XKBBELL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto inputproto x11" 2>&1`
11326 else
11327 XKBBELL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto inputproto x11" 2>&1`
11328 fi
11329 # Put the nasty error message in config.log where it belongs
11330 echo "$XKBBELL_PKG_ERRORS" >&5
11331
11332 as_fn_error $? "Package requirements (xproto inputproto x11) were not met:
11333
11334 $XKBBELL_PKG_ERRORS
11335
11336 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11337 installed software in a non-standard prefix.
11338
11339 Alternatively, you may set the environment variables XKBBELL_CFLAGS
11340 and XKBBELL_LIBS to avoid the need to call pkg-config.
11341 See the pkg-config man page for more details." "$LINENO" 5
11342 elif test $pkg_failed = untried; then
11343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11344 printf "%s\n" "no" >&6; }
11345 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11346 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11347 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11348 is in your PATH or set the PKG_CONFIG environment variable to the full
11349 path to pkg-config.
11350
11351 Alternatively, you may set the environment variables XKBBELL_CFLAGS
11352 and XKBBELL_LIBS to avoid the need to call pkg-config.
11353 See the pkg-config man page for more details.
11354
11355 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11356 See \`config.log' for more details" "$LINENO" 5; }
11357 else
11358 XKBBELL_CFLAGS=$pkg_cv_XKBBELL_CFLAGS
11359 XKBBELL_LIBS=$pkg_cv_XKBBELL_LIBS
11360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11361 printf "%s\n" "yes" >&6; }
11362
11363 fi
11364
11365 # xkbwatch checks
11366
11367 pkg_failed=no
11368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XKBWATCH" >&5
11369 printf %s "checking for XKBWATCH... " >&6; }
11370
11371 if test -n "$XKBWATCH_CFLAGS"; then
11372 pkg_cv_XKBWATCH_CFLAGS="$XKBWATCH_CFLAGS"
11373 elif test -n "$PKG_CONFIG"; then
11374 if test -n "$PKG_CONFIG" && \
11375 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xaw7 xt x11\""; } >&5
11376 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xaw7 xt x11") 2>&5
11377 ac_status=$?
11378 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11379 test $ac_status = 0; }; then
11380 pkg_cv_XKBWATCH_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 xaw7 xt x11" 2>/dev/null`
11381 test "x$?" != "x0" && pkg_failed=yes
11382 else
11383 pkg_failed=yes
11384 fi
11385 else
11386 pkg_failed=untried
11387 fi
11388 if test -n "$XKBWATCH_LIBS"; then
11389 pkg_cv_XKBWATCH_LIBS="$XKBWATCH_LIBS"
11390 elif test -n "$PKG_CONFIG"; then
11391 if test -n "$PKG_CONFIG" && \
11392 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xaw7 xt x11\""; } >&5
11393 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xaw7 xt x11") 2>&5
11394 ac_status=$?
11395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11396 test $ac_status = 0; }; then
11397 pkg_cv_XKBWATCH_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 xaw7 xt x11" 2>/dev/null`
11398 test "x$?" != "x0" && pkg_failed=yes
11399 else
11400 pkg_failed=yes
11401 fi
11402 else
11403 pkg_failed=untried
11404 fi
11405
11406
11407
11408 if test $pkg_failed = yes; then
11409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11410 printf "%s\n" "no" >&6; }
11411
11412 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11413 _pkg_short_errors_supported=yes
11414 else
11415 _pkg_short_errors_supported=no
11416 fi
11417 if test $_pkg_short_errors_supported = yes; then
11418 XKBWATCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.17 xaw7 xt x11" 2>&1`
11419 else
11420 XKBWATCH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.17 xaw7 xt x11" 2>&1`
11421 fi
11422 # Put the nasty error message in config.log where it belongs
11423 echo "$XKBWATCH_PKG_ERRORS" >&5
11424
11425 as_fn_error $? "Package requirements (xproto >= 7.0.17 xaw7 xt x11) were not met:
11426
11427 $XKBWATCH_PKG_ERRORS
11428
11429 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11430 installed software in a non-standard prefix.
11431
11432 Alternatively, you may set the environment variables XKBWATCH_CFLAGS
11433 and XKBWATCH_LIBS to avoid the need to call pkg-config.
11434 See the pkg-config man page for more details." "$LINENO" 5
11435 elif test $pkg_failed = untried; then
11436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11437 printf "%s\n" "no" >&6; }
11438 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11439 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11440 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11441 is in your PATH or set the PKG_CONFIG environment variable to the full
11442 path to pkg-config.
11443
11444 Alternatively, you may set the environment variables XKBWATCH_CFLAGS
11445 and XKBWATCH_LIBS to avoid the need to call pkg-config.
11446 See the pkg-config man page for more details.
11447
11448 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11449 See \`config.log' for more details" "$LINENO" 5; }
11450 else
11451 XKBWATCH_CFLAGS=$pkg_cv_XKBWATCH_CFLAGS
11452 XKBWATCH_LIBS=$pkg_cv_XKBWATCH_LIBS
11453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11454 printf "%s\n" "yes" >&6; }
11455
11456 fi
11457
11458 ac_config_files="$ac_config_files Makefile man/Makefile"
11459
11460 cat >confcache <<\_ACEOF
11461 # This file is a shell script that caches the results of configure
11462 # tests run on this system so they can be shared between configure
11463 # scripts and configure runs, see configure's option --config-cache.
11464 # It is not useful on other systems. If it contains results you don't
11465 # want to keep, you may remove or edit it.
11466 #
11467 # config.status only pays attention to the cache file if you give it
11468 # the --recheck option to rerun configure.
11469 #
11470 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11471 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11472 # following values.
11473
11474 _ACEOF
11475
11476 # The following way of writing the cache mishandles newlines in values,
11477 # but we know of no workaround that is simple, portable, and efficient.
11478 # So, we kill variables containing newlines.
11479 # Ultrix sh set writes to stderr and can't be redirected directly,
11480 # and sets the high bit in the cache file unless we assign to the vars.
11481 (
11482 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11483 eval ac_val=\$$ac_var
11484 case $ac_val in #(
11485 *${as_nl}*)
11486 case $ac_var in #(
11487 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11488 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11489 esac
11490 case $ac_var in #(
11491 _ | IFS | as_nl) ;; #(
11492 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11493 *) { eval $ac_var=; unset $ac_var;} ;;
11494 esac ;;
11495 esac
11496 done
11497
11498 (set) 2>&1 |
11499 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11500 *${as_nl}ac_space=\ *)
11501 # `set' does not quote correctly, so add quotes: double-quote
11502 # substitution turns \\\\ into \\, and sed turns \\ into \.
11503 sed -n \
11504 "s/'/'\\\\''/g;
11505 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11506 ;; #(
11507 *)
11508 # `set' quotes correctly as required by POSIX, so do not add quotes.
11509 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11510 ;;
11511 esac |
11512 sort
11513 ) |
11514 sed '
11515 /^ac_cv_env_/b end
11516 t clear
11517 :clear
11518 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11519 t end
11520 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11521 :end' >>confcache
11522 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11523 if test -w "$cache_file"; then
11524 if test "x$cache_file" != "x/dev/null"; then
11525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11526 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11527 if test ! -f "$cache_file" || test -h "$cache_file"; then
11528 cat confcache >"$cache_file"
11529 else
11530 case $cache_file in #(
11531 */* | ?:*)
11532 mv -f confcache "$cache_file"$$ &&
11533 mv -f "$cache_file"$$ "$cache_file" ;; #(
11534 *)
11535 mv -f confcache "$cache_file" ;;
11536 esac
11537 fi
11538 fi
11539 else
11540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11541 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11542 fi
11543 fi
11544 rm -f confcache
11545
11546 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11547 # Let make expand exec_prefix.
11548 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11549
11550 DEFS=-DHAVE_CONFIG_H
11551
11552 ac_libobjs=
11553 ac_ltlibobjs=
11554 U=
11555 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11556 # 1. Remove the extension, and $U if already installed.
11557 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11558 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11559 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11560 # will be set to the directory where LIBOBJS objects are built.
11561 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11562 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11563 done
11564 LIBOBJS=$ac_libobjs
11565
11566 LTLIBOBJS=$ac_ltlibobjs
11567
11568
11569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11570 printf %s "checking that generated files are newer than configure... " >&6; }
11571 if test -n "$am_sleep_pid"; then
11572 # Hide warnings about reused PIDs.
11573 wait $am_sleep_pid 2>/dev/null
11574 fi
11575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11576 printf "%s\n" "done" >&6; }
11577 if test -n "$EXEEXT"; then
11578 am__EXEEXT_TRUE=
11579 am__EXEEXT_FALSE='#'
11580 else
11581 am__EXEEXT_TRUE='#'
11582 am__EXEEXT_FALSE=
11583 fi
11584
11585 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11586 as_fn_error $? "conditional \"AMDEP\" was never defined.
11587 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11588 fi
11589 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11590 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11591 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11592 fi
11593
11594 : "${CONFIG_STATUS=./config.status}"
11595 ac_write_fail=0
11596 ac_clean_files_save=$ac_clean_files
11597 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11599 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11600 as_write_fail=0
11601 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11602 #! $SHELL
11603 # Generated by $as_me.
11604 # Run this file to recreate the current configuration.
11605 # Compiler output produced by configure, useful for debugging
11606 # configure, is in config.log if it exists.
11607
11608 debug=false
11609 ac_cs_recheck=false
11610 ac_cs_silent=false
11611
11612 SHELL=\${CONFIG_SHELL-$SHELL}
11613 export SHELL
11614 _ASEOF
11615 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11616 ## -------------------- ##
11617 ## M4sh Initialization. ##
11618 ## -------------------- ##
11619
11620 # Be more Bourne compatible
11621 DUALCASE=1; export DUALCASE # for MKS sh
11622 as_nop=:
11623 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11624 then :
11625 emulate sh
11626 NULLCMD=:
11627 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11628 # is contrary to our usage. Disable this feature.
11629 alias -g '${1+"$@"}'='"$@"'
11630 setopt NO_GLOB_SUBST
11631 else $as_nop
11632 case `(set -o) 2>/dev/null` in #(
11633 *posix*) :
11634 set -o posix ;; #(
11635 *) :
11636 ;;
11637 esac
11638 fi
11639
11640
11641
11642 # Reset variables that may have inherited troublesome values from
11643 # the environment.
11644
11645 # IFS needs to be set, to space, tab, and newline, in precisely that order.
11646 # (If _AS_PATH_WALK were called with IFS unset, it would have the
11647 # side effect of setting IFS to empty, thus disabling word splitting.)
11648 # Quoting is to prevent editors from complaining about space-tab.
11649 as_nl='
11650 '
11651 export as_nl
11652 IFS=" "" $as_nl"
11653
11654 PS1='$ '
11655 PS2='> '
11656 PS4='+ '
11657
11658 # Ensure predictable behavior from utilities with locale-dependent output.
11659 LC_ALL=C
11660 export LC_ALL
11661 LANGUAGE=C
11662 export LANGUAGE
11663
11664 # We cannot yet rely on "unset" to work, but we need these variables
11665 # to be unset--not just set to an empty or harmless value--now, to
11666 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
11667 # also avoids known problems related to "unset" and subshell syntax
11668 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11669 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11670 do eval test \${$as_var+y} \
11671 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11672 done
11673
11674 # Ensure that fds 0, 1, and 2 are open.
11675 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11676 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11677 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
11678
11679 # The user is always right.
11680 if ${PATH_SEPARATOR+false} :; then
11681 PATH_SEPARATOR=:
11682 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11683 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11684 PATH_SEPARATOR=';'
11685 }
11686 fi
11687
11688
11689 # Find who we are. Look in the path if we contain no directory separator.
11690 as_myself=
11691 case $0 in #((
11692 *[\\/]* ) as_myself=$0 ;;
11693 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11694 for as_dir in $PATH
11695 do
11696 IFS=$as_save_IFS
11697 case $as_dir in #(((
11698 '') as_dir=./ ;;
11699 */) ;;
11700 *) as_dir=$as_dir/ ;;
11701 esac
11702 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11703 done
11704 IFS=$as_save_IFS
11705
11706 ;;
11707 esac
11708 # We did not find ourselves, most probably we were run as `sh COMMAND'
11709 # in which case we are not to be found in the path.
11710 if test "x$as_myself" = x; then
11711 as_myself=$0
11712 fi
11713 if test ! -f "$as_myself"; then
11714 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11715 exit 1
11716 fi
11717
11718
11719
11720 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11721 # ----------------------------------------
11722 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11723 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11724 # script with STATUS, using 1 if that was 0.
11725 as_fn_error ()
11726 {
11727 as_status=$1; test $as_status -eq 0 && as_status=1
11728 if test "$4"; then
11729 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11731 fi
11732 printf "%s\n" "$as_me: error: $2" >&2
11733 as_fn_exit $as_status
11734 } # as_fn_error
11735
11736
11737
11738 # as_fn_set_status STATUS
11739 # -----------------------
11740 # Set $? to STATUS, without forking.
11741 as_fn_set_status ()
11742 {
11743 return $1
11744 } # as_fn_set_status
11745
11746 # as_fn_exit STATUS
11747 # -----------------
11748 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11749 as_fn_exit ()
11750 {
11751 set +e
11752 as_fn_set_status $1
11753 exit $1
11754 } # as_fn_exit
11755
11756 # as_fn_unset VAR
11757 # ---------------
11758 # Portably unset VAR.
11759 as_fn_unset ()
11760 {
11761 { eval $1=; unset $1;}
11762 }
11763 as_unset=as_fn_unset
11764
11765 # as_fn_append VAR VALUE
11766 # ----------------------
11767 # Append the text in VALUE to the end of the definition contained in VAR. Take
11768 # advantage of any shell optimizations that allow amortized linear growth over
11769 # repeated appends, instead of the typical quadratic growth present in naive
11770 # implementations.
11771 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11772 then :
11773 eval 'as_fn_append ()
11774 {
11775 eval $1+=\$2
11776 }'
11777 else $as_nop
11778 as_fn_append ()
11779 {
11780 eval $1=\$$1\$2
11781 }
11782 fi # as_fn_append
11783
11784 # as_fn_arith ARG...
11785 # ------------------
11786 # Perform arithmetic evaluation on the ARGs, and store the result in the
11787 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11788 # must be portable across $(()) and expr.
11789 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11790 then :
11791 eval 'as_fn_arith ()
11792 {
11793 as_val=$(( $* ))
11794 }'
11795 else $as_nop
11796 as_fn_arith ()
11797 {
11798 as_val=`expr "$@" || test $? -eq 1`
11799 }
11800 fi # as_fn_arith
11801
11802
11803 if expr a : '\(a\)' >/dev/null 2>&1 &&
11804 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11805 as_expr=expr
11806 else
11807 as_expr=false
11808 fi
11809
11810 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11811 as_basename=basename
11812 else
11813 as_basename=false
11814 fi
11815
11816 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11817 as_dirname=dirname
11818 else
11819 as_dirname=false
11820 fi
11821
11822 as_me=`$as_basename -- "$0" ||
11823 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11824 X"$0" : 'X\(//\)$' \| \
11825 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11826 printf "%s\n" X/"$0" |
11827 sed '/^.*\/\([^/][^/]*\)\/*$/{
11828 s//\1/
11829 q
11830 }
11831 /^X\/\(\/\/\)$/{
11832 s//\1/
11833 q
11834 }
11835 /^X\/\(\/\).*/{
11836 s//\1/
11837 q
11838 }
11839 s/.*/./; q'`
11840
11841 # Avoid depending upon Character Ranges.
11842 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11843 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11844 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11845 as_cr_digits='0123456789'
11846 as_cr_alnum=$as_cr_Letters$as_cr_digits
11847
11848
11849 # Determine whether it's possible to make 'echo' print without a newline.
11850 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11851 # for compatibility with existing Makefiles.
11852 ECHO_C= ECHO_N= ECHO_T=
11853 case `echo -n x` in #(((((
11854 -n*)
11855 case `echo 'xy\c'` in
11856 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11857 xy) ECHO_C='\c';;
11858 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11859 ECHO_T=' ';;
11860 esac;;
11861 *)
11862 ECHO_N='-n';;
11863 esac
11864
11865 # For backward compatibility with old third-party macros, we provide
11866 # the shell variables $as_echo and $as_echo_n. New code should use
11867 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11868 as_echo='printf %s\n'
11869 as_echo_n='printf %s'
11870
11871 rm -f conf$$ conf$$.exe conf$$.file
11872 if test -d conf$$.dir; then
11873 rm -f conf$$.dir/conf$$.file
11874 else
11875 rm -f conf$$.dir
11876 mkdir conf$$.dir 2>/dev/null
11877 fi
11878 if (echo >conf$$.file) 2>/dev/null; then
11879 if ln -s conf$$.file conf$$ 2>/dev/null; then
11880 as_ln_s='ln -s'
11881 # ... but there are two gotchas:
11882 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11883 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11884 # In both cases, we have to default to `cp -pR'.
11885 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11886 as_ln_s='cp -pR'
11887 elif ln conf$$.file conf$$ 2>/dev/null; then
11888 as_ln_s=ln
11889 else
11890 as_ln_s='cp -pR'
11891 fi
11892 else
11893 as_ln_s='cp -pR'
11894 fi
11895 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11896 rmdir conf$$.dir 2>/dev/null
11897
11898
11899 # as_fn_mkdir_p
11900 # -------------
11901 # Create "$as_dir" as a directory, including parents if necessary.
11902 as_fn_mkdir_p ()
11903 {
11904
11905 case $as_dir in #(
11906 -*) as_dir=./$as_dir;;
11907 esac
11908 test -d "$as_dir" || eval $as_mkdir_p || {
11909 as_dirs=
11910 while :; do
11911 case $as_dir in #(
11912 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11913 *) as_qdir=$as_dir;;
11914 esac
11915 as_dirs="'$as_qdir' $as_dirs"
11916 as_dir=`$as_dirname -- "$as_dir" ||
11917 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11918 X"$as_dir" : 'X\(//\)[^/]' \| \
11919 X"$as_dir" : 'X\(//\)$' \| \
11920 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11921 printf "%s\n" X"$as_dir" |
11922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11923 s//\1/
11924 q
11925 }
11926 /^X\(\/\/\)[^/].*/{
11927 s//\1/
11928 q
11929 }
11930 /^X\(\/\/\)$/{
11931 s//\1/
11932 q
11933 }
11934 /^X\(\/\).*/{
11935 s//\1/
11936 q
11937 }
11938 s/.*/./; q'`
11939 test -d "$as_dir" && break
11940 done
11941 test -z "$as_dirs" || eval "mkdir $as_dirs"
11942 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11943
11944
11945 } # as_fn_mkdir_p
11946 if mkdir -p . 2>/dev/null; then
11947 as_mkdir_p='mkdir -p "$as_dir"'
11948 else
11949 test -d ./-p && rmdir ./-p
11950 as_mkdir_p=false
11951 fi
11952
11953
11954 # as_fn_executable_p FILE
11955 # -----------------------
11956 # Test if FILE is an executable regular file.
11957 as_fn_executable_p ()
11958 {
11959 test -f "$1" && test -x "$1"
11960 } # as_fn_executable_p
11961 as_test_x='test -x'
11962 as_executable_p=as_fn_executable_p
11963
11964 # Sed expression to map a string onto a valid CPP name.
11965 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11966
11967 # Sed expression to map a string onto a valid variable name.
11968 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11969
11970
11971 exec 6>&1
11972 ## ----------------------------------- ##
11973 ## Main body of $CONFIG_STATUS script. ##
11974 ## ----------------------------------- ##
11975 _ASEOF
11976 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11977
11978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11979 # Save the log message, to keep $0 and so on meaningful, and to
11980 # report actual input values of CONFIG_FILES etc. instead of their
11981 # values after options handling.
11982 ac_log="
11983 This file was extended by xkbutils $as_me 1.0.5, which was
11984 generated by GNU Autoconf 2.71. Invocation command line was
11985
11986 CONFIG_FILES = $CONFIG_FILES
11987 CONFIG_HEADERS = $CONFIG_HEADERS
11988 CONFIG_LINKS = $CONFIG_LINKS
11989 CONFIG_COMMANDS = $CONFIG_COMMANDS
11990 $ $0 $@
11991
11992 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11993 "
11994
11995 _ACEOF
11996
11997 case $ac_config_files in *"
11998 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11999 esac
12000
12001 case $ac_config_headers in *"
12002 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12003 esac
12004
12005
12006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12007 # Files that config.status was made for.
12008 config_files="$ac_config_files"
12009 config_headers="$ac_config_headers"
12010 config_commands="$ac_config_commands"
12011
12012 _ACEOF
12013
12014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12015 ac_cs_usage="\
12016 \`$as_me' instantiates files and other configuration actions
12017 from templates according to the current configuration. Unless the files
12018 and actions are specified as TAGs, all are instantiated by default.
12019
12020 Usage: $0 [OPTION]... [TAG]...
12021
12022 -h, --help print this help, then exit
12023 -V, --version print version number and configuration settings, then exit
12024 --config print configuration, then exit
12025 -q, --quiet, --silent
12026 do not print progress messages
12027 -d, --debug don't remove temporary files
12028 --recheck update $as_me by reconfiguring in the same conditions
12029 --file=FILE[:TEMPLATE]
12030 instantiate the configuration file FILE
12031 --header=FILE[:TEMPLATE]
12032 instantiate the configuration header FILE
12033
12034 Configuration files:
12035 $config_files
12036
12037 Configuration headers:
12038 $config_headers
12039
12040 Configuration commands:
12041 $config_commands
12042
12043 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbutils/issues>."
12044
12045 _ACEOF
12046 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12047 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12049 ac_cs_config='$ac_cs_config_escaped'
12050 ac_cs_version="\\
12051 xkbutils config.status 1.0.5
12052 configured by $0, generated by GNU Autoconf 2.71,
12053 with options \\"\$ac_cs_config\\"
12054
12055 Copyright (C) 2021 Free Software Foundation, Inc.
12056 This config.status script is free software; the Free Software Foundation
12057 gives unlimited permission to copy, distribute and modify it."
12058
12059 ac_pwd='$ac_pwd'
12060 srcdir='$srcdir'
12061 INSTALL='$INSTALL'
12062 MKDIR_P='$MKDIR_P'
12063 AWK='$AWK'
12064 test -n "\$AWK" || AWK=awk
12065 _ACEOF
12066
12067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12068 # The default lists apply if the user does not specify any file.
12069 ac_need_defaults=:
12070 while test $# != 0
12071 do
12072 case $1 in
12073 --*=?*)
12074 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12075 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12076 ac_shift=:
12077 ;;
12078 --*=)
12079 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12080 ac_optarg=
12081 ac_shift=:
12082 ;;
12083 *)
12084 ac_option=$1
12085 ac_optarg=$2
12086 ac_shift=shift
12087 ;;
12088 esac
12089
12090 case $ac_option in
12091 # Handling of the options.
12092 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12093 ac_cs_recheck=: ;;
12094 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12095 printf "%s\n" "$ac_cs_version"; exit ;;
12096 --config | --confi | --conf | --con | --co | --c )
12097 printf "%s\n" "$ac_cs_config"; exit ;;
12098 --debug | --debu | --deb | --de | --d | -d )
12099 debug=: ;;
12100 --file | --fil | --fi | --f )
12101 $ac_shift
12102 case $ac_optarg in
12103 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12104 '') as_fn_error $? "missing file argument" ;;
12105 esac
12106 as_fn_append CONFIG_FILES " '$ac_optarg'"
12107 ac_need_defaults=false;;
12108 --header | --heade | --head | --hea )
12109 $ac_shift
12110 case $ac_optarg in
12111 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12112 esac
12113 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12114 ac_need_defaults=false;;
12115 --he | --h)
12116 # Conflict between --help and --header
12117 as_fn_error $? "ambiguous option: \`$1'
12118 Try \`$0 --help' for more information.";;
12119 --help | --hel | -h )
12120 printf "%s\n" "$ac_cs_usage"; exit ;;
12121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12122 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12123 ac_cs_silent=: ;;
12124
12125 # This is an error.
12126 -*) as_fn_error $? "unrecognized option: \`$1'
12127 Try \`$0 --help' for more information." ;;
12128
12129 *) as_fn_append ac_config_targets " $1"
12130 ac_need_defaults=false ;;
12131
12132 esac
12133 shift
12134 done
12135
12136 ac_configure_extra_args=
12137
12138 if $ac_cs_silent; then
12139 exec 6>/dev/null
12140 ac_configure_extra_args="$ac_configure_extra_args --silent"
12141 fi
12142
12143 _ACEOF
12144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12145 if \$ac_cs_recheck; then
12146 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12147 shift
12148 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12149 CONFIG_SHELL='$SHELL'
12150 export CONFIG_SHELL
12151 exec "\$@"
12152 fi
12153
12154 _ACEOF
12155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12156 exec 5>>config.log
12157 {
12158 echo
12159 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12160 ## Running $as_me. ##
12161 _ASBOX
12162 printf "%s\n" "$ac_log"
12163 } >&5
12164
12165 _ACEOF
12166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12167 #
12168 # INIT-COMMANDS
12169 #
12170 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12171
12172 _ACEOF
12173
12174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12175
12176 # Handling of arguments.
12177 for ac_config_target in $ac_config_targets
12178 do
12179 case $ac_config_target in
12180 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12181 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12182 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12183 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12184
12185 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12186 esac
12187 done
12188
12189
12190 # If the user did not use the arguments to specify the items to instantiate,
12191 # then the envvar interface is used. Set only those that are not.
12192 # We use the long form for the default assignment because of an extremely
12193 # bizarre bug on SunOS 4.1.3.
12194 if $ac_need_defaults; then
12195 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12196 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12197 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12198 fi
12199
12200 # Have a temporary directory for convenience. Make it in the build tree
12201 # simply because there is no reason against having it here, and in addition,
12202 # creating and moving files from /tmp can sometimes cause problems.
12203 # Hook for its removal unless debugging.
12204 # Note that there is a small window in which the directory will not be cleaned:
12205 # after its creation but before its name has been assigned to `$tmp'.
12206 $debug ||
12207 {
12208 tmp= ac_tmp=
12209 trap 'exit_status=$?
12210 : "${ac_tmp:=$tmp}"
12211 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12212 ' 0
12213 trap 'as_fn_exit 1' 1 2 13 15
12214 }
12215 # Create a (secure) tmp directory for tmp files.
12216
12217 {
12218 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12219 test -d "$tmp"
12220 } ||
12221 {
12222 tmp=./conf$$-$RANDOM
12223 (umask 077 && mkdir "$tmp")
12224 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12225 ac_tmp=$tmp
12226
12227 # Set up the scripts for CONFIG_FILES section.
12228 # No need to generate them if there are no CONFIG_FILES.
12229 # This happens for instance with `./config.status config.h'.
12230 if test -n "$CONFIG_FILES"; then
12231
12232
12233 ac_cr=`echo X | tr X '\015'`
12234 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12235 # But we know of no other shell where ac_cr would be empty at this
12236 # point, so we can use a bashism as a fallback.
12237 if test "x$ac_cr" = x; then
12238 eval ac_cr=\$\'\\r\'
12239 fi
12240 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12241 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12242 ac_cs_awk_cr='\\r'
12243 else
12244 ac_cs_awk_cr=$ac_cr
12245 fi
12246
12247 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12248 _ACEOF
12249
12250
12251 {
12252 echo "cat >conf$$subs.awk <<_ACEOF" &&
12253 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12254 echo "_ACEOF"
12255 } >conf$$subs.sh ||
12256 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12257 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12258 ac_delim='%!_!# '
12259 for ac_last_try in false false false false false :; do
12260 . ./conf$$subs.sh ||
12261 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12262
12263 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12264 if test $ac_delim_n = $ac_delim_num; then
12265 break
12266 elif $ac_last_try; then
12267 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12268 else
12269 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12270 fi
12271 done
12272 rm -f conf$$subs.sh
12273
12274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12275 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12276 _ACEOF
12277 sed -n '
12278 h
12279 s/^/S["/; s/!.*/"]=/
12280 p
12281 g
12282 s/^[^!]*!//
12283 :repl
12284 t repl
12285 s/'"$ac_delim"'$//
12286 t delim
12287 :nl
12288 h
12289 s/\(.\{148\}\)..*/\1/
12290 t more1
12291 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12292 p
12293 n
12294 b repl
12295 :more1
12296 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12297 p
12298 g
12299 s/.\{148\}//
12300 t nl
12301 :delim
12302 h
12303 s/\(.\{148\}\)..*/\1/
12304 t more2
12305 s/["\\]/\\&/g; s/^/"/; s/$/"/
12306 p
12307 b
12308 :more2
12309 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12310 p
12311 g
12312 s/.\{148\}//
12313 t delim
12314 ' <conf$$subs.awk | sed '
12315 /^[^""]/{
12316 N
12317 s/\n//
12318 }
12319 ' >>$CONFIG_STATUS || ac_write_fail=1
12320 rm -f conf$$subs.awk
12321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12322 _ACAWK
12323 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12324 for (key in S) S_is_set[key] = 1
12325 FS = ""
12326
12327 }
12328 {
12329 line = $ 0
12330 nfields = split(line, field, "@")
12331 substed = 0
12332 len = length(field[1])
12333 for (i = 2; i < nfields; i++) {
12334 key = field[i]
12335 keylen = length(key)
12336 if (S_is_set[key]) {
12337 value = S[key]
12338 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12339 len += length(value) + length(field[++i])
12340 substed = 1
12341 } else
12342 len += 1 + keylen
12343 }
12344
12345 print line
12346 }
12347
12348 _ACAWK
12349 _ACEOF
12350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12351 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12352 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12353 else
12354 cat
12355 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12356 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12357 _ACEOF
12358
12359 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12360 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12361 # trailing colons and then remove the whole line if VPATH becomes empty
12362 # (actually we leave an empty line to preserve line numbers).
12363 if test "x$srcdir" = x.; then
12364 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12365 h
12366 s///
12367 s/^/:/
12368 s/[ ]*$/:/
12369 s/:\$(srcdir):/:/g
12370 s/:\${srcdir}:/:/g
12371 s/:@srcdir@:/:/g
12372 s/^:*//
12373 s/:*$//
12374 x
12375 s/\(=[ ]*\).*/\1/
12376 G
12377 s/\n//
12378 s/^[^=]*=[ ]*$//
12379 }'
12380 fi
12381
12382 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12383 fi # test -n "$CONFIG_FILES"
12384
12385 # Set up the scripts for CONFIG_HEADERS section.
12386 # No need to generate them if there are no CONFIG_HEADERS.
12387 # This happens for instance with `./config.status Makefile'.
12388 if test -n "$CONFIG_HEADERS"; then
12389 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12390 BEGIN {
12391 _ACEOF
12392
12393 # Transform confdefs.h into an awk script `defines.awk', embedded as
12394 # here-document in config.status, that substitutes the proper values into
12395 # config.h.in to produce config.h.
12396
12397 # Create a delimiter string that does not exist in confdefs.h, to ease
12398 # handling of long lines.
12399 ac_delim='%!_!# '
12400 for ac_last_try in false false :; do
12401 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12402 if test -z "$ac_tt"; then
12403 break
12404 elif $ac_last_try; then
12405 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12406 else
12407 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12408 fi
12409 done
12410
12411 # For the awk script, D is an array of macro values keyed by name,
12412 # likewise P contains macro parameters if any. Preserve backslash
12413 # newline sequences.
12414
12415 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12416 sed -n '
12417 s/.\{148\}/&'"$ac_delim"'/g
12418 t rset
12419 :rset
12420 s/^[ ]*#[ ]*define[ ][ ]*/ /
12421 t def
12422 d
12423 :def
12424 s/\\$//
12425 t bsnl
12426 s/["\\]/\\&/g
12427 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12428 D["\1"]=" \3"/p
12429 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12430 d
12431 :bsnl
12432 s/["\\]/\\&/g
12433 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12434 D["\1"]=" \3\\\\\\n"\\/p
12435 t cont
12436 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12437 t cont
12438 d
12439 :cont
12440 n
12441 s/.\{148\}/&'"$ac_delim"'/g
12442 t clear
12443 :clear
12444 s/\\$//
12445 t bsnlc
12446 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12447 d
12448 :bsnlc
12449 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12450 b cont
12451 ' <confdefs.h | sed '
12452 s/'"$ac_delim"'/"\\\
12453 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12454
12455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12456 for (key in D) D_is_set[key] = 1
12457 FS = ""
12458 }
12459 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12460 line = \$ 0
12461 split(line, arg, " ")
12462 if (arg[1] == "#") {
12463 defundef = arg[2]
12464 mac1 = arg[3]
12465 } else {
12466 defundef = substr(arg[1], 2)
12467 mac1 = arg[2]
12468 }
12469 split(mac1, mac2, "(") #)
12470 macro = mac2[1]
12471 prefix = substr(line, 1, index(line, defundef) - 1)
12472 if (D_is_set[macro]) {
12473 # Preserve the white space surrounding the "#".
12474 print prefix "define", macro P[macro] D[macro]
12475 next
12476 } else {
12477 # Replace #undef with comments. This is necessary, for example,
12478 # in the case of _POSIX_SOURCE, which is predefined and required
12479 # on some systems where configure will not decide to define it.
12480 if (defundef == "undef") {
12481 print "/*", prefix defundef, macro, "*/"
12482 next
12483 }
12484 }
12485 }
12486 { print }
12487 _ACAWK
12488 _ACEOF
12489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12490 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12491 fi # test -n "$CONFIG_HEADERS"
12492
12493
12494 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12495 shift
12496 for ac_tag
12497 do
12498 case $ac_tag in
12499 :[FHLC]) ac_mode=$ac_tag; continue;;
12500 esac
12501 case $ac_mode$ac_tag in
12502 :[FHL]*:*);;
12503 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12504 :[FH]-) ac_tag=-:-;;
12505 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12506 esac
12507 ac_save_IFS=$IFS
12508 IFS=:
12509 set x $ac_tag
12510 IFS=$ac_save_IFS
12511 shift
12512 ac_file=$1
12513 shift
12514
12515 case $ac_mode in
12516 :L) ac_source=$1;;
12517 :[FH])
12518 ac_file_inputs=
12519 for ac_f
12520 do
12521 case $ac_f in
12522 -) ac_f="$ac_tmp/stdin";;
12523 *) # Look for the file first in the build tree, then in the source tree
12524 # (if the path is not absolute). The absolute path cannot be DOS-style,
12525 # because $ac_f cannot contain `:'.
12526 test -f "$ac_f" ||
12527 case $ac_f in
12528 [\\/$]*) false;;
12529 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12530 esac ||
12531 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12532 esac
12533 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12534 as_fn_append ac_file_inputs " '$ac_f'"
12535 done
12536
12537 # Let's still pretend it is `configure' which instantiates (i.e., don't
12538 # use $as_me), people would be surprised to read:
12539 # /* config.h. Generated by config.status. */
12540 configure_input='Generated from '`
12541 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12542 `' by configure.'
12543 if test x"$ac_file" != x-; then
12544 configure_input="$ac_file. $configure_input"
12545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12546 printf "%s\n" "$as_me: creating $ac_file" >&6;}
12547 fi
12548 # Neutralize special characters interpreted by sed in replacement strings.
12549 case $configure_input in #(
12550 *\&* | *\|* | *\\* )
12551 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12552 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12553 *) ac_sed_conf_input=$configure_input;;
12554 esac
12555
12556 case $ac_tag in
12557 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12558 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12559 esac
12560 ;;
12561 esac
12562
12563 ac_dir=`$as_dirname -- "$ac_file" ||
12564 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12565 X"$ac_file" : 'X\(//\)[^/]' \| \
12566 X"$ac_file" : 'X\(//\)$' \| \
12567 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12568 printf "%s\n" X"$ac_file" |
12569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12570 s//\1/
12571 q
12572 }
12573 /^X\(\/\/\)[^/].*/{
12574 s//\1/
12575 q
12576 }
12577 /^X\(\/\/\)$/{
12578 s//\1/
12579 q
12580 }
12581 /^X\(\/\).*/{
12582 s//\1/
12583 q
12584 }
12585 s/.*/./; q'`
12586 as_dir="$ac_dir"; as_fn_mkdir_p
12587 ac_builddir=.
12588
12589 case "$ac_dir" in
12590 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12591 *)
12592 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12593 # A ".." for each directory in $ac_dir_suffix.
12594 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12595 case $ac_top_builddir_sub in
12596 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12597 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12598 esac ;;
12599 esac
12600 ac_abs_top_builddir=$ac_pwd
12601 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12602 # for backward compatibility:
12603 ac_top_builddir=$ac_top_build_prefix
12604
12605 case $srcdir in
12606 .) # We are building in place.
12607 ac_srcdir=.
12608 ac_top_srcdir=$ac_top_builddir_sub
12609 ac_abs_top_srcdir=$ac_pwd ;;
12610 [\\/]* | ?:[\\/]* ) # Absolute name.
12611 ac_srcdir=$srcdir$ac_dir_suffix;
12612 ac_top_srcdir=$srcdir
12613 ac_abs_top_srcdir=$srcdir ;;
12614 *) # Relative name.
12615 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12616 ac_top_srcdir=$ac_top_build_prefix$srcdir
12617 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12618 esac
12619 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12620
12621
12622 case $ac_mode in
12623 :F)
12624 #
12625 # CONFIG_FILE
12626 #
12627
12628 case $INSTALL in
12629 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12630 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12631 esac
12632 ac_MKDIR_P=$MKDIR_P
12633 case $MKDIR_P in
12634 [\\/$]* | ?:[\\/]* ) ;;
12635 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12636 esac
12637 _ACEOF
12638
12639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12640 # If the template does not know about datarootdir, expand it.
12641 # FIXME: This hack should be removed a few years after 2.60.
12642 ac_datarootdir_hack=; ac_datarootdir_seen=
12643 ac_sed_dataroot='
12644 /datarootdir/ {
12645 p
12646 q
12647 }
12648 /@datadir@/p
12649 /@docdir@/p
12650 /@infodir@/p
12651 /@localedir@/p
12652 /@mandir@/p'
12653 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12654 *datarootdir*) ac_datarootdir_seen=yes;;
12655 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12657 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12658 _ACEOF
12659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12660 ac_datarootdir_hack='
12661 s&@datadir@&$datadir&g
12662 s&@docdir@&$docdir&g
12663 s&@infodir@&$infodir&g
12664 s&@localedir@&$localedir&g
12665 s&@mandir@&$mandir&g
12666 s&\\\${datarootdir}&$datarootdir&g' ;;
12667 esac
12668 _ACEOF
12669
12670 # Neutralize VPATH when `$srcdir' = `.'.
12671 # Shell code in configure.ac might set extrasub.
12672 # FIXME: do we really want to maintain this feature?
12673 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12674 ac_sed_extra="$ac_vpsub
12675 $extrasub
12676 _ACEOF
12677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12678 :t
12679 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12680 s|@configure_input@|$ac_sed_conf_input|;t t
12681 s&@top_builddir@&$ac_top_builddir_sub&;t t
12682 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12683 s&@srcdir@&$ac_srcdir&;t t
12684 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12685 s&@top_srcdir@&$ac_top_srcdir&;t t
12686 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12687 s&@builddir@&$ac_builddir&;t t
12688 s&@abs_builddir@&$ac_abs_builddir&;t t
12689 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12690 s&@INSTALL@&$ac_INSTALL&;t t
12691 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12692 $ac_datarootdir_hack
12693 "
12694 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12695 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12696
12697 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12698 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12699 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12700 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12702 which seems to be undefined. Please make sure it is defined" >&5
12703 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12704 which seems to be undefined. Please make sure it is defined" >&2;}
12705
12706 rm -f "$ac_tmp/stdin"
12707 case $ac_file in
12708 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12709 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12710 esac \
12711 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12712 ;;
12713 :H)
12714 #
12715 # CONFIG_HEADER
12716 #
12717 if test x"$ac_file" != x-; then
12718 {
12719 printf "%s\n" "/* $configure_input */" >&1 \
12720 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12721 } >"$ac_tmp/config.h" \
12722 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12723 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12725 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12726 else
12727 rm -f "$ac_file"
12728 mv "$ac_tmp/config.h" "$ac_file" \
12729 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12730 fi
12731 else
12732 printf "%s\n" "/* $configure_input */" >&1 \
12733 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12734 || as_fn_error $? "could not create -" "$LINENO" 5
12735 fi
12736 # Compute "$ac_file"'s index in $config_headers.
12737 _am_arg="$ac_file"
12738 _am_stamp_count=1
12739 for _am_header in $config_headers :; do
12740 case $_am_header in
12741 $_am_arg | $_am_arg:* )
12742 break ;;
12743 * )
12744 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12745 esac
12746 done
12747 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12748 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12749 X"$_am_arg" : 'X\(//\)[^/]' \| \
12750 X"$_am_arg" : 'X\(//\)$' \| \
12751 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12752 printf "%s\n" X"$_am_arg" |
12753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12754 s//\1/
12755 q
12756 }
12757 /^X\(\/\/\)[^/].*/{
12758 s//\1/
12759 q
12760 }
12761 /^X\(\/\/\)$/{
12762 s//\1/
12763 q
12764 }
12765 /^X\(\/\).*/{
12766 s//\1/
12767 q
12768 }
12769 s/.*/./; q'`/stamp-h$_am_stamp_count
12770 ;;
12771
12772 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12773 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12774 ;;
12775 esac
12776
12777
12778 case $ac_file$ac_mode in
12779 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12780 # Older Autoconf quotes --file arguments for eval, but not when files
12781 # are listed without --file. Let's play safe and only enable the eval
12782 # if we detect the quoting.
12783 # TODO: see whether this extra hack can be removed once we start
12784 # requiring Autoconf 2.70 or later.
12785 case $CONFIG_FILES in #(
12786 *\'*) :
12787 eval set x "$CONFIG_FILES" ;; #(
12788 *) :
12789 set x $CONFIG_FILES ;; #(
12790 *) :
12791 ;;
12792 esac
12793 shift
12794 # Used to flag and report bootstrapping failures.
12795 am_rc=0
12796 for am_mf
12797 do
12798 # Strip MF so we end up with the name of the file.
12799 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12800 # Check whether this is an Automake generated Makefile which includes
12801 # dependency-tracking related rules and includes.
12802 # Grep'ing the whole file directly is not great: AIX grep has a line
12803 # limit of 2048, but all sed's we know have understand at least 4000.
12804 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12805 || continue
12806 am_dirpart=`$as_dirname -- "$am_mf" ||
12807 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12808 X"$am_mf" : 'X\(//\)[^/]' \| \
12809 X"$am_mf" : 'X\(//\)$' \| \
12810 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12811 printf "%s\n" X"$am_mf" |
12812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12813 s//\1/
12814 q
12815 }
12816 /^X\(\/\/\)[^/].*/{
12817 s//\1/
12818 q
12819 }
12820 /^X\(\/\/\)$/{
12821 s//\1/
12822 q
12823 }
12824 /^X\(\/\).*/{
12825 s//\1/
12826 q
12827 }
12828 s/.*/./; q'`
12829 am_filepart=`$as_basename -- "$am_mf" ||
12830 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12831 X"$am_mf" : 'X\(//\)$' \| \
12832 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12833 printf "%s\n" X/"$am_mf" |
12834 sed '/^.*\/\([^/][^/]*\)\/*$/{
12835 s//\1/
12836 q
12837 }
12838 /^X\/\(\/\/\)$/{
12839 s//\1/
12840 q
12841 }
12842 /^X\/\(\/\).*/{
12843 s//\1/
12844 q
12845 }
12846 s/.*/./; q'`
12847 { echo "$as_me:$LINENO: cd "$am_dirpart" \
12848 && sed -e '/# am--include-marker/d' "$am_filepart" \
12849 | $MAKE -f - am--depfiles" >&5
12850 (cd "$am_dirpart" \
12851 && sed -e '/# am--include-marker/d' "$am_filepart" \
12852 | $MAKE -f - am--depfiles) >&5 2>&5
12853 ac_status=$?
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); } || am_rc=$?
12856 done
12857 if test $am_rc -ne 0; then
12858 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12859 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12860 as_fn_error $? "Something went wrong bootstrapping makefile fragments
12861 for automatic dependency tracking. If GNU make was not used, consider
12862 re-running the configure script with MAKE=\"gmake\" (or whatever is
12863 necessary). You can also try re-running configure with the
12864 '--disable-dependency-tracking' option to at least be able to build
12865 the package (albeit without support for automatic dependency tracking).
12866 See \`config.log' for more details" "$LINENO" 5; }
12867 fi
12868 { am_dirpart=; unset am_dirpart;}
12869 { am_filepart=; unset am_filepart;}
12870 { am_mf=; unset am_mf;}
12871 { am_rc=; unset am_rc;}
12872 rm -f conftest-deps.mk
12873 }
12874 ;;
12875
12876 esac
12877 done # for ac_tag
12878
12879
12880 as_fn_exit 0
12881 _ACEOF
12882 ac_clean_files=$ac_clean_files_save
12883
12884 test $ac_write_fail = 0 ||
12885 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12886
12887
12888 # configure is writing to config.log, and then calls config.status.
12889 # config.status does its own redirection, appending to config.log.
12890 # Unfortunately, on DOS this fails, as config.log is still kept open
12891 # by configure, so config.status won't be able to write to it; its
12892 # output is simply discarded. So we exec the FD to /dev/null,
12893 # effectively closing config.log, so it can be properly (re)opened and
12894 # appended to by config.status. When coming back to configure, we
12895 # need to make the FD available again.
12896 if test "$no_create" != yes; then
12897 ac_cs_success=:
12898 ac_config_status_args=
12899 test "$silent" = yes &&
12900 ac_config_status_args="$ac_config_status_args --quiet"
12901 exec 5>/dev/null
12902 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12903 exec 5>>config.log
12904 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12905 # would make configure fail if this is the last instruction.
12906 $ac_cs_success || as_fn_exit 1
12907 fi
12908 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12910 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12911 fi
12912
12913
12914