configure revision 1.1.1.15.2.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for xkbcomp 1.5.0.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbcomp/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
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="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
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 case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1"
188 if (eval "$as_required") 2>/dev/null
189 then :
190 as_have_required=yes
191 else case e in #(
192 e) as_have_required=no ;;
193 esac
194 fi
195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196 then :
197
198 else case e in #(
199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200 as_found=false
201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202 do
203 IFS=$as_save_IFS
204 case $as_dir in #(((
205 '') as_dir=./ ;;
206 */) ;;
207 *) as_dir=$as_dir/ ;;
208 esac
209 as_found=:
210 case $as_dir in #(
211 /*)
212 for as_base in sh bash ksh sh5; do
213 # Try only shells that exist, to save several forks.
214 as_shell=$as_dir$as_base
215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217 then :
218 CONFIG_SHELL=$as_shell as_have_required=yes
219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220 then :
221 break 2
222 fi
223 fi
224 done;;
225 esac
226 as_found=false
227 done
228 IFS=$as_save_IFS
229 if $as_found
230 then :
231
232 else case e in #(
233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235 then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237 fi ;;
238 esac
239 fi
240
241
242 if test "x$CONFIG_SHELL" != x
243 then :
244 export CONFIG_SHELL
245 # We cannot yet assume a decent shell, so we have to provide a
246 # neutralization value for shells without unset; and this also
247 # works around shells that cannot unset nonexistent variables.
248 # Preserve -v and -x to the replacement shell.
249 BASH_ENV=/dev/null
250 ENV=/dev/null
251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252 case $- in # ((((
253 *v*x* | *x*v* ) as_opts=-vx ;;
254 *v* ) as_opts=-v ;;
255 *x* ) as_opts=-x ;;
256 * ) as_opts= ;;
257 esac
258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259 # Admittedly, this is quite paranoid, since all the known shells bail
260 # out after a failed 'exec'.
261 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262 exit 255
263 fi
264
265 if test x$as_have_required = xno
266 then :
267 printf "%s\n" "$0: This script requires a shell more modern than all"
268 printf "%s\n" "$0: the shells that I found on your system."
269 if test ${ZSH_VERSION+y} ; then
270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272 else
273 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
274 $0: https://gitlab.freedesktop.org/xorg/app/xkbcomp/-/issues
275 $0: about your system, including any error possibly output
276 $0: before this message. Then install a modern shell, or
277 $0: manually run the script under such a shell if you do
278 $0: have one."
279 fi
280 exit 1
281 fi ;;
282 esac
283 fi
284 fi
285 SHELL=${CONFIG_SHELL-/bin/sh}
286 export SHELL
287 # Unset more variables known to interfere with behavior of common tools.
288 CLICOLOR_FORCE= GREP_OPTIONS=
289 unset CLICOLOR_FORCE GREP_OPTIONS
290
291 ## --------------------- ##
292 ## M4sh Shell Functions. ##
293 ## --------------------- ##
294 # as_fn_unset VAR
295 # ---------------
296 # Portably unset VAR.
297 as_fn_unset ()
298 {
299 { eval $1=; unset $1;}
300 }
301 as_unset=as_fn_unset
302
303
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
308 {
309 return $1
310 } # as_fn_set_status
311
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
316 {
317 set +e
318 as_fn_set_status $1
319 exit $1
320 } # as_fn_exit
321
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
326 {
327
328 case $as_dir in #(
329 -*) as_dir=./$as_dir;;
330 esac
331 test -d "$as_dir" || eval $as_mkdir_p || {
332 as_dirs=
333 while :; do
334 case $as_dir in #(
335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 *) as_qdir=$as_dir;;
337 esac
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 printf "%s\n" X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\).*/{
358 s//\1/
359 q
360 }
361 s/.*/./; q'`
362 test -d "$as_dir" && break
363 done
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368 } # as_fn_mkdir_p
369
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
374 {
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
382 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384 then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else case e in #(
390 e) as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 } ;;
394 esac
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
403 then :
404 eval 'as_fn_arith ()
405 {
406 as_val=$(( $* ))
407 }'
408 else case e in #(
409 e) as_fn_arith ()
410 {
411 as_val=`expr "$@" || test $? -eq 1`
412 } ;;
413 esac
414 fi # as_fn_arith
415
416
417 # as_fn_error STATUS ERROR [LINENO LOG_FD]
418 # ----------------------------------------
419 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
420 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
421 # script with STATUS, using 1 if that was 0.
422 as_fn_error ()
423 {
424 as_status=$1; test $as_status -eq 0 && as_status=1
425 if test "$4"; then
426 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
428 fi
429 printf "%s\n" "$as_me: error: $2" >&2
430 as_fn_exit $as_status
431 } # as_fn_error
432
433 if expr a : '\(a\)' >/dev/null 2>&1 &&
434 test "X`expr 00001 : '.*\(...\)'`" = X001; then
435 as_expr=expr
436 else
437 as_expr=false
438 fi
439
440 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
441 as_basename=basename
442 else
443 as_basename=false
444 fi
445
446 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
447 as_dirname=dirname
448 else
449 as_dirname=false
450 fi
451
452 as_me=`$as_basename -- "$0" ||
453 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
454 X"$0" : 'X\(//\)$' \| \
455 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
456 printf "%s\n" X/"$0" |
457 sed '/^.*\/\([^/][^/]*\)\/*$/{
458 s//\1/
459 q
460 }
461 /^X\/\(\/\/\)$/{
462 s//\1/
463 q
464 }
465 /^X\/\(\/\).*/{
466 s//\1/
467 q
468 }
469 s/.*/./; q'`
470
471 # Avoid depending upon Character Ranges.
472 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
473 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
474 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
475 as_cr_digits='0123456789'
476 as_cr_alnum=$as_cr_Letters$as_cr_digits
477
478
479 as_lineno_1=$LINENO as_lineno_1a=$LINENO
480 as_lineno_2=$LINENO as_lineno_2a=$LINENO
481 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
482 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
483 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 sed -n '
485 p
486 /[$]LINENO/=
487 ' <$as_myself |
488 sed '
489 t clear
490 :clear
491 s/[$]LINENO.*/&-/
492 t lineno
493 b
494 :lineno
495 N
496 :loop
497 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
498 t loop
499 s/-\n.*//
500 ' >$as_me.lineno &&
501 chmod +x "$as_me.lineno" ||
502 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
503
504 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
505 # already done that, so ensure we don't try to do so again and fall
506 # in an infinite loop. This has already happened in practice.
507 _as_can_reexec=no; export _as_can_reexec
508 # Don't try to exec as it changes $[0], causing all sort of problems
509 # (the dirname of $[0] is not the place where we might find the
510 # original and so on. Autoconf is especially sensitive to this).
511 . "./$as_me.lineno"
512 # Exit status is that of the last command.
513 exit
514 }
515
516
517 # Determine whether it's possible to make 'echo' print without a newline.
518 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
519 # for compatibility with existing Makefiles.
520 ECHO_C= ECHO_N= ECHO_T=
521 case `echo -n x` in #(((((
522 -n*)
523 case `echo 'xy\c'` in
524 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
525 xy) ECHO_C='\c';;
526 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
527 ECHO_T=' ';;
528 esac;;
529 *)
530 ECHO_N='-n';;
531 esac
532
533 # For backward compatibility with old third-party macros, we provide
534 # the shell variables $as_echo and $as_echo_n. New code should use
535 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
536 as_echo='printf %s\n'
537 as_echo_n='printf %s'
538
539 rm -f conf$$ conf$$.exe conf$$.file
540 if test -d conf$$.dir; then
541 rm -f conf$$.dir/conf$$.file
542 else
543 rm -f conf$$.dir
544 mkdir conf$$.dir 2>/dev/null
545 fi
546 if (echo >conf$$.file) 2>/dev/null; then
547 if ln -s conf$$.file conf$$ 2>/dev/null; then
548 as_ln_s='ln -s'
549 # ... but there are two gotchas:
550 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
551 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
552 # In both cases, we have to default to 'cp -pR'.
553 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
554 as_ln_s='cp -pR'
555 elif ln conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s=ln
557 else
558 as_ln_s='cp -pR'
559 fi
560 else
561 as_ln_s='cp -pR'
562 fi
563 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
564 rmdir conf$$.dir 2>/dev/null
565
566 if mkdir -p . 2>/dev/null; then
567 as_mkdir_p='mkdir -p "$as_dir"'
568 else
569 test -d ./-p && rmdir ./-p
570 as_mkdir_p=false
571 fi
572
573 as_test_x='test -x'
574 as_executable_p=as_fn_executable_p
575
576 # Sed expression to map a string onto a valid CPP name.
577 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
578 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
579
580 # Sed expression to map a string onto a valid variable name.
581 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
582 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
583
584
585 test -n "$DJDIR" || exec 7<&0 </dev/null
586 exec 6>&1
587
588 # Name of the host.
589 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
590 # so uname gets run too.
591 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
592
593 #
594 # Initializations.
595 #
596 ac_default_prefix=/usr/local
597 ac_clean_files=
598 ac_config_libobj_dir=.
599 LIBOBJS=
600 cross_compiling=no
601 subdirs=
602 MFLAGS=
603 MAKEFLAGS=
604
605 # Identity of this package.
606 PACKAGE_NAME='xkbcomp'
607 PACKAGE_TARNAME='xkbcomp'
608 PACKAGE_VERSION='1.5.0'
609 PACKAGE_STRING='xkbcomp 1.5.0'
610 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xkbcomp/-/issues'
611 PACKAGE_URL=''
612
613 ac_unique_file="Makefile.am"
614 # Factoring default headers for most tests.
615 ac_includes_default="\
616 #include <stddef.h>
617 #ifdef HAVE_STDIO_H
618 # include <stdio.h>
619 #endif
620 #ifdef HAVE_STDLIB_H
621 # include <stdlib.h>
622 #endif
623 #ifdef HAVE_STRING_H
624 # include <string.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_STRINGS_H
633 # include <strings.h>
634 #endif
635 #ifdef HAVE_SYS_TYPES_H
636 # include <sys/types.h>
637 #endif
638 #ifdef HAVE_SYS_STAT_H
639 # include <sys/stat.h>
640 #endif
641 #ifdef HAVE_UNISTD_H
642 # include <unistd.h>
643 #endif"
644
645 ac_header_c_list=
646 enable_year2038=no
647 ac_subst_vars='am__EXEEXT_FALSE
648 am__EXEEXT_TRUE
649 LTLIBOBJS
650 LIBOBJS
651 XKBCONFIGROOT
652 XKBCOMP_LIBS
653 XKBCOMP_CFLAGS
654 XKBCOMP_EXTRA_DEPS
655 YACC_INST
656 YFLAGS
657 YACC
658 MAN_SUBSTS
659 XORG_MAN_PAGE
660 ADMIN_MAN_DIR
661 DRIVER_MAN_DIR
662 MISC_MAN_DIR
663 FILE_MAN_DIR
664 LIB_MAN_DIR
665 APP_MAN_DIR
666 ADMIN_MAN_SUFFIX
667 DRIVER_MAN_SUFFIX
668 MISC_MAN_SUFFIX
669 FILE_MAN_SUFFIX
670 LIB_MAN_SUFFIX
671 APP_MAN_SUFFIX
672 SED
673 host_os
674 host_vendor
675 host_cpu
676 host
677 build_os
678 build_vendor
679 build_cpu
680 build
681 INSTALL_CMD
682 PKG_CONFIG_LIBDIR
683 PKG_CONFIG_PATH
684 PKG_CONFIG
685 CHANGELOG_CMD
686 STRICT_CFLAGS
687 CWARNFLAGS
688 BASE_CFLAGS
689 am__xargs_n
690 am__rm_f_notfound
691 AM_BACKSLASH
692 AM_DEFAULT_VERBOSITY
693 AM_DEFAULT_V
694 AM_V
695 CSCOPE
696 ETAGS
697 CTAGS
698 am__fastdepCC_FALSE
699 am__fastdepCC_TRUE
700 CCDEPMODE
701 am__nodep
702 AMDEPBACKSLASH
703 AMDEP_FALSE
704 AMDEP_TRUE
705 am__include
706 DEPDIR
707 am__untar
708 am__tar
709 AMTAR
710 am__leading_dot
711 SET_MAKE
712 AWK
713 mkdir_p
714 MKDIR_P
715 INSTALL_STRIP_PROGRAM
716 STRIP
717 install_sh
718 MAKEINFO
719 AUTOHEADER
720 AUTOMAKE
721 AUTOCONF
722 ACLOCAL
723 VERSION
724 PACKAGE
725 CYGPATH_W
726 am__isrc
727 INSTALL_DATA
728 INSTALL_SCRIPT
729 INSTALL_PROGRAM
730 OBJEXT
731 EXEEXT
732 ac_ct_CC
733 CPPFLAGS
734 LDFLAGS
735 CFLAGS
736 CC
737 target_alias
738 host_alias
739 build_alias
740 LIBS
741 ECHO_T
742 ECHO_N
743 ECHO_C
744 DEFS
745 mandir
746 localedir
747 libdir
748 psdir
749 pdfdir
750 dvidir
751 htmldir
752 infodir
753 docdir
754 oldincludedir
755 includedir
756 runstatedir
757 localstatedir
758 sharedstatedir
759 sysconfdir
760 datadir
761 datarootdir
762 libexecdir
763 sbindir
764 bindir
765 program_transform_name
766 prefix
767 exec_prefix
768 PACKAGE_URL
769 PACKAGE_BUGREPORT
770 PACKAGE_STRING
771 PACKAGE_VERSION
772 PACKAGE_TARNAME
773 PACKAGE_NAME
774 PATH_SEPARATOR
775 SHELL
776 am__quote'
777 ac_subst_files=''
778 ac_user_opts='
779 enable_option_checking
780 enable_dependency_tracking
781 enable_silent_rules
782 enable_selective_werror
783 enable_strict_compilation
784 enable_largefile
785 with_xkb_config_root
786 enable_year2038
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 YACC
800 YFLAGS
801 XKBCOMP_CFLAGS
802 XKBCOMP_LIBS'
803
804
805 # Initialize some variables set by options.
806 ac_init_help=
807 ac_init_version=false
808 ac_unrecognized_opts=
809 ac_unrecognized_sep=
810 # The variables have the same names as the options, with
811 # dashes changed to underlines.
812 cache_file=/dev/null
813 exec_prefix=NONE
814 no_create=
815 no_recursion=
816 prefix=NONE
817 program_prefix=NONE
818 program_suffix=NONE
819 program_transform_name=s,x,x,
820 silent=
821 site=
822 srcdir=
823 verbose=
824 x_includes=NONE
825 x_libraries=NONE
826
827 # Installation directory options.
828 # These are left unexpanded so users can "make install exec_prefix=/foo"
829 # and all the variables that are supposed to be based on exec_prefix
830 # by default will actually change.
831 # Use braces instead of parens because sh, perl, etc. also accept them.
832 # (The list follows the same order as the GNU Coding Standards.)
833 bindir='${exec_prefix}/bin'
834 sbindir='${exec_prefix}/sbin'
835 libexecdir='${exec_prefix}/libexec'
836 datarootdir='${prefix}/share'
837 datadir='${datarootdir}'
838 sysconfdir='${prefix}/etc'
839 sharedstatedir='${prefix}/com'
840 localstatedir='${prefix}/var'
841 runstatedir='${localstatedir}/run'
842 includedir='${prefix}/include'
843 oldincludedir='/usr/include'
844 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
845 infodir='${datarootdir}/info'
846 htmldir='${docdir}'
847 dvidir='${docdir}'
848 pdfdir='${docdir}'
849 psdir='${docdir}'
850 libdir='${exec_prefix}/lib'
851 localedir='${datarootdir}/locale'
852 mandir='${datarootdir}/man'
853
854 ac_prev=
855 ac_dashdash=
856 for ac_option
857 do
858 # If the previous option needs an argument, assign it.
859 if test -n "$ac_prev"; then
860 eval $ac_prev=\$ac_option
861 ac_prev=
862 continue
863 fi
864
865 case $ac_option in
866 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
867 *=) ac_optarg= ;;
868 *) ac_optarg=yes ;;
869 esac
870
871 case $ac_dashdash$ac_option in
872 --)
873 ac_dashdash=yes ;;
874
875 -bindir | --bindir | --bindi | --bind | --bin | --bi)
876 ac_prev=bindir ;;
877 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
878 bindir=$ac_optarg ;;
879
880 -build | --build | --buil | --bui | --bu)
881 ac_prev=build_alias ;;
882 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
883 build_alias=$ac_optarg ;;
884
885 -cache-file | --cache-file | --cache-fil | --cache-fi \
886 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
887 ac_prev=cache_file ;;
888 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
889 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
890 cache_file=$ac_optarg ;;
891
892 --config-cache | -C)
893 cache_file=config.cache ;;
894
895 -datadir | --datadir | --datadi | --datad)
896 ac_prev=datadir ;;
897 -datadir=* | --datadir=* | --datadi=* | --datad=*)
898 datadir=$ac_optarg ;;
899
900 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
901 | --dataroo | --dataro | --datar)
902 ac_prev=datarootdir ;;
903 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
904 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
905 datarootdir=$ac_optarg ;;
906
907 -disable-* | --disable-*)
908 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
909 # Reject names that are not valid shell variable names.
910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911 as_fn_error $? "invalid feature name: '$ac_useropt'"
912 ac_useropt_orig=$ac_useropt
913 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
914 case $ac_user_opts in
915 *"
916 "enable_$ac_useropt"
917 "*) ;;
918 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
919 ac_unrecognized_sep=', ';;
920 esac
921 eval enable_$ac_useropt=no ;;
922
923 -docdir | --docdir | --docdi | --doc | --do)
924 ac_prev=docdir ;;
925 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
926 docdir=$ac_optarg ;;
927
928 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
929 ac_prev=dvidir ;;
930 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
931 dvidir=$ac_optarg ;;
932
933 -enable-* | --enable-*)
934 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937 as_fn_error $? "invalid feature name: '$ac_useropt'"
938 ac_useropt_orig=$ac_useropt
939 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
940 case $ac_user_opts in
941 *"
942 "enable_$ac_useropt"
943 "*) ;;
944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
945 ac_unrecognized_sep=', ';;
946 esac
947 eval enable_$ac_useropt=\$ac_optarg ;;
948
949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951 | --exec | --exe | --ex)
952 ac_prev=exec_prefix ;;
953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955 | --exec=* | --exe=* | --ex=*)
956 exec_prefix=$ac_optarg ;;
957
958 -gas | --gas | --ga | --g)
959 # Obsolete; use --with-gas.
960 with_gas=yes ;;
961
962 -help | --help | --hel | --he | -h)
963 ac_init_help=long ;;
964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965 ac_init_help=recursive ;;
966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967 ac_init_help=short ;;
968
969 -host | --host | --hos | --ho)
970 ac_prev=host_alias ;;
971 -host=* | --host=* | --hos=* | --ho=*)
972 host_alias=$ac_optarg ;;
973
974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975 ac_prev=htmldir ;;
976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977 | --ht=*)
978 htmldir=$ac_optarg ;;
979
980 -includedir | --includedir | --includedi | --included | --include \
981 | --includ | --inclu | --incl | --inc)
982 ac_prev=includedir ;;
983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984 | --includ=* | --inclu=* | --incl=* | --inc=*)
985 includedir=$ac_optarg ;;
986
987 -infodir | --infodir | --infodi | --infod | --info | --inf)
988 ac_prev=infodir ;;
989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990 infodir=$ac_optarg ;;
991
992 -libdir | --libdir | --libdi | --libd)
993 ac_prev=libdir ;;
994 -libdir=* | --libdir=* | --libdi=* | --libd=*)
995 libdir=$ac_optarg ;;
996
997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998 | --libexe | --libex | --libe)
999 ac_prev=libexecdir ;;
1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001 | --libexe=* | --libex=* | --libe=*)
1002 libexecdir=$ac_optarg ;;
1003
1004 -localedir | --localedir | --localedi | --localed | --locale)
1005 ac_prev=localedir ;;
1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007 localedir=$ac_optarg ;;
1008
1009 -localstatedir | --localstatedir | --localstatedi | --localstated \
1010 | --localstate | --localstat | --localsta | --localst | --locals)
1011 ac_prev=localstatedir ;;
1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014 localstatedir=$ac_optarg ;;
1015
1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017 ac_prev=mandir ;;
1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019 mandir=$ac_optarg ;;
1020
1021 -nfp | --nfp | --nf)
1022 # Obsolete; use --without-fp.
1023 with_fp=no ;;
1024
1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026 | --no-cr | --no-c | -n)
1027 no_create=yes ;;
1028
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031 no_recursion=yes ;;
1032
1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035 | --oldin | --oldi | --old | --ol | --o)
1036 ac_prev=oldincludedir ;;
1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040 oldincludedir=$ac_optarg ;;
1041
1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043 ac_prev=prefix ;;
1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045 prefix=$ac_optarg ;;
1046
1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048 | --program-pre | --program-pr | --program-p)
1049 ac_prev=program_prefix ;;
1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052 program_prefix=$ac_optarg ;;
1053
1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055 | --program-suf | --program-su | --program-s)
1056 ac_prev=program_suffix ;;
1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059 program_suffix=$ac_optarg ;;
1060
1061 -program-transform-name | --program-transform-name \
1062 | --program-transform-nam | --program-transform-na \
1063 | --program-transform-n | --program-transform- \
1064 | --program-transform | --program-transfor \
1065 | --program-transfo | --program-transf \
1066 | --program-trans | --program-tran \
1067 | --progr-tra | --program-tr | --program-t)
1068 ac_prev=program_transform_name ;;
1069 -program-transform-name=* | --program-transform-name=* \
1070 | --program-transform-nam=* | --program-transform-na=* \
1071 | --program-transform-n=* | --program-transform-=* \
1072 | --program-transform=* | --program-transfor=* \
1073 | --program-transfo=* | --program-transf=* \
1074 | --program-trans=* | --program-tran=* \
1075 | --progr-tra=* | --program-tr=* | --program-t=*)
1076 program_transform_name=$ac_optarg ;;
1077
1078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079 ac_prev=pdfdir ;;
1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081 pdfdir=$ac_optarg ;;
1082
1083 -psdir | --psdir | --psdi | --psd | --ps)
1084 ac_prev=psdir ;;
1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086 psdir=$ac_optarg ;;
1087
1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1090 silent=yes ;;
1091
1092 -runstatedir | --runstatedir | --runstatedi | --runstated \
1093 | --runstate | --runstat | --runsta | --runst | --runs \
1094 | --run | --ru | --r)
1095 ac_prev=runstatedir ;;
1096 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1097 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1098 | --run=* | --ru=* | --r=*)
1099 runstatedir=$ac_optarg ;;
1100
1101 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1102 ac_prev=sbindir ;;
1103 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1104 | --sbi=* | --sb=*)
1105 sbindir=$ac_optarg ;;
1106
1107 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1108 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1109 | --sharedst | --shareds | --shared | --share | --shar \
1110 | --sha | --sh)
1111 ac_prev=sharedstatedir ;;
1112 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1113 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1114 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1115 | --sha=* | --sh=*)
1116 sharedstatedir=$ac_optarg ;;
1117
1118 -site | --site | --sit)
1119 ac_prev=site ;;
1120 -site=* | --site=* | --sit=*)
1121 site=$ac_optarg ;;
1122
1123 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1124 ac_prev=srcdir ;;
1125 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1126 srcdir=$ac_optarg ;;
1127
1128 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1129 | --syscon | --sysco | --sysc | --sys | --sy)
1130 ac_prev=sysconfdir ;;
1131 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1132 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1133 sysconfdir=$ac_optarg ;;
1134
1135 -target | --target | --targe | --targ | --tar | --ta | --t)
1136 ac_prev=target_alias ;;
1137 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1138 target_alias=$ac_optarg ;;
1139
1140 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1141 verbose=yes ;;
1142
1143 -version | --version | --versio | --versi | --vers | -V)
1144 ac_init_version=: ;;
1145
1146 -with-* | --with-*)
1147 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150 as_fn_error $? "invalid package name: '$ac_useropt'"
1151 ac_useropt_orig=$ac_useropt
1152 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1154 *"
1155 "with_$ac_useropt"
1156 "*) ;;
1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1158 ac_unrecognized_sep=', ';;
1159 esac
1160 eval with_$ac_useropt=\$ac_optarg ;;
1161
1162 -without-* | --without-*)
1163 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 as_fn_error $? "invalid package name: '$ac_useropt'"
1167 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1170 *"
1171 "with_$ac_useropt"
1172 "*) ;;
1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1174 ac_unrecognized_sep=', ';;
1175 esac
1176 eval with_$ac_useropt=no ;;
1177
1178 --x)
1179 # Obsolete; use --with-x.
1180 with_x=yes ;;
1181
1182 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1183 | --x-incl | --x-inc | --x-in | --x-i)
1184 ac_prev=x_includes ;;
1185 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1186 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1187 x_includes=$ac_optarg ;;
1188
1189 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1190 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1191 ac_prev=x_libraries ;;
1192 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1193 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1194 x_libraries=$ac_optarg ;;
1195
1196 -*) as_fn_error $? "unrecognized option: '$ac_option'
1197 Try '$0 --help' for more information"
1198 ;;
1199
1200 *=*)
1201 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1202 # Reject names that are not valid shell variable names.
1203 case $ac_envvar in #(
1204 '' | [0-9]* | *[!_$as_cr_alnum]* )
1205 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1206 esac
1207 eval $ac_envvar=\$ac_optarg
1208 export $ac_envvar ;;
1209
1210 *)
1211 # FIXME: should be removed in autoconf 3.0.
1212 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1213 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1214 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1215 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1216 ;;
1217
1218 esac
1219 done
1220
1221 if test -n "$ac_prev"; then
1222 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1223 as_fn_error $? "missing argument to $ac_option"
1224 fi
1225
1226 if test -n "$ac_unrecognized_opts"; then
1227 case $enable_option_checking in
1228 no) ;;
1229 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1230 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1231 esac
1232 fi
1233
1234 # Check all directory arguments for consistency.
1235 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1236 datadir sysconfdir sharedstatedir localstatedir includedir \
1237 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1238 libdir localedir mandir runstatedir
1239 do
1240 eval ac_val=\$$ac_var
1241 # Remove trailing slashes.
1242 case $ac_val in
1243 */ )
1244 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1245 eval $ac_var=\$ac_val;;
1246 esac
1247 # Be sure to have absolute directory names.
1248 case $ac_val in
1249 [\\/$]* | ?:[\\/]* ) continue;;
1250 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1251 esac
1252 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1253 done
1254
1255 # There might be people who depend on the old broken behavior: '$host'
1256 # used to hold the argument of --host etc.
1257 # FIXME: To remove some day.
1258 build=$build_alias
1259 host=$host_alias
1260 target=$target_alias
1261
1262 # FIXME: To remove some day.
1263 if test "x$host_alias" != x; then
1264 if test "x$build_alias" = x; then
1265 cross_compiling=maybe
1266 elif test "x$build_alias" != "x$host_alias"; then
1267 cross_compiling=yes
1268 fi
1269 fi
1270
1271 ac_tool_prefix=
1272 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1273
1274 test "$silent" = yes && exec 6>/dev/null
1275
1276
1277 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1278 ac_ls_di=`ls -di .` &&
1279 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1280 as_fn_error $? "working directory cannot be determined"
1281 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1282 as_fn_error $? "pwd does not report name of working directory"
1283
1284
1285 # Find the source files, if location was not specified.
1286 if test -z "$srcdir"; then
1287 ac_srcdir_defaulted=yes
1288 # Try the directory containing this script, then the parent directory.
1289 ac_confdir=`$as_dirname -- "$as_myself" ||
1290 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1291 X"$as_myself" : 'X\(//\)[^/]' \| \
1292 X"$as_myself" : 'X\(//\)$' \| \
1293 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1294 printf "%s\n" X"$as_myself" |
1295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1296 s//\1/
1297 q
1298 }
1299 /^X\(\/\/\)[^/].*/{
1300 s//\1/
1301 q
1302 }
1303 /^X\(\/\/\)$/{
1304 s//\1/
1305 q
1306 }
1307 /^X\(\/\).*/{
1308 s//\1/
1309 q
1310 }
1311 s/.*/./; q'`
1312 srcdir=$ac_confdir
1313 if test ! -r "$srcdir/$ac_unique_file"; then
1314 srcdir=..
1315 fi
1316 else
1317 ac_srcdir_defaulted=no
1318 fi
1319 if test ! -r "$srcdir/$ac_unique_file"; then
1320 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1321 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1322 fi
1323 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1324 ac_abs_confdir=`(
1325 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1326 pwd)`
1327 # When building in place, set srcdir=.
1328 if test "$ac_abs_confdir" = "$ac_pwd"; then
1329 srcdir=.
1330 fi
1331 # Remove unnecessary trailing slashes from srcdir.
1332 # Double slashes in file names in object file debugging info
1333 # mess up M-x gdb in Emacs.
1334 case $srcdir in
1335 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1336 esac
1337 for ac_var in $ac_precious_vars; do
1338 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1339 eval ac_env_${ac_var}_value=\$${ac_var}
1340 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1342 done
1343
1344 #
1345 # Report the --help message.
1346 #
1347 if test "$ac_init_help" = "long"; then
1348 # Omit some internal or obsolete options to make the list less imposing.
1349 # This message is too long to be a string in the A/UX 3.1 sh.
1350 cat <<_ACEOF
1351 'configure' configures xkbcomp 1.5.0 to adapt to many kinds of systems.
1352
1353 Usage: $0 [OPTION]... [VAR=VALUE]...
1354
1355 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1356 VAR=VALUE. See below for descriptions of some of the useful variables.
1357
1358 Defaults for the options are specified in brackets.
1359
1360 Configuration:
1361 -h, --help display this help and exit
1362 --help=short display options specific to this package
1363 --help=recursive display the short help of all the included packages
1364 -V, --version display version information and exit
1365 -q, --quiet, --silent do not print 'checking ...' messages
1366 --cache-file=FILE cache test results in FILE [disabled]
1367 -C, --config-cache alias for '--cache-file=config.cache'
1368 -n, --no-create do not create output files
1369 --srcdir=DIR find the sources in DIR [configure dir or '..']
1370
1371 Installation directories:
1372 --prefix=PREFIX install architecture-independent files in PREFIX
1373 [$ac_default_prefix]
1374 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1375 [PREFIX]
1376
1377 By default, 'make install' will install all the files in
1378 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1379 an installation prefix other than '$ac_default_prefix' using '--prefix',
1380 for instance '--prefix=\$HOME'.
1381
1382 For better control, use the options below.
1383
1384 Fine tuning of the installation directories:
1385 --bindir=DIR user executables [EPREFIX/bin]
1386 --sbindir=DIR system admin executables [EPREFIX/sbin]
1387 --libexecdir=DIR program executables [EPREFIX/libexec]
1388 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1389 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1390 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1391 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1392 --libdir=DIR object code libraries [EPREFIX/lib]
1393 --includedir=DIR C header files [PREFIX/include]
1394 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1395 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1396 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1397 --infodir=DIR info documentation [DATAROOTDIR/info]
1398 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1399 --mandir=DIR man documentation [DATAROOTDIR/man]
1400 --docdir=DIR documentation root [DATAROOTDIR/doc/xkbcomp]
1401 --htmldir=DIR html documentation [DOCDIR]
1402 --dvidir=DIR dvi documentation [DOCDIR]
1403 --pdfdir=DIR pdf documentation [DOCDIR]
1404 --psdir=DIR ps documentation [DOCDIR]
1405 _ACEOF
1406
1407 cat <<\_ACEOF
1408
1409 Program names:
1410 --program-prefix=PREFIX prepend PREFIX to installed program names
1411 --program-suffix=SUFFIX append SUFFIX to installed program names
1412 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1413
1414 System types:
1415 --build=BUILD configure for building on BUILD [guessed]
1416 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1417 _ACEOF
1418 fi
1419
1420 if test -n "$ac_init_help"; then
1421 case $ac_init_help in
1422 short | recursive ) echo "Configuration of xkbcomp 1.5.0:";;
1423 esac
1424 cat <<\_ACEOF
1425
1426 Optional Features:
1427 --disable-option-checking ignore unrecognized --enable/--with options
1428 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1429 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1430 --enable-dependency-tracking
1431 do not reject slow dependency extractors
1432 --disable-dependency-tracking
1433 speeds up one-time build
1434 --enable-silent-rules less verbose build output (undo: "make V=1")
1435 --disable-silent-rules verbose build output (undo: "make V=0")
1436 --disable-selective-werror
1437 Turn off selective compiler errors. (default:
1438 enabled)
1439 --enable-strict-compilation
1440 Enable all warnings from compiler and make them
1441 errors (default: disabled)
1442 --disable-largefile omit support for large files
1443 --enable-year2038 support timestamps after 2038
1444
1445 Optional Packages:
1446 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1447 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1448 --with-xkb-config-root=<paths>
1449 Set default XKB config root (default:
1450 ${datadir}/X11/xkb)
1451
1452 Some influential environment variables:
1453 CC C compiler command
1454 CFLAGS C compiler flags
1455 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1456 nonstandard directory <lib dir>
1457 LIBS libraries to pass to the linker, e.g. -l<library>
1458 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1459 you have headers in a nonstandard directory <include dir>
1460 PKG_CONFIG path to pkg-config utility
1461 PKG_CONFIG_PATH
1462 directories to add to pkg-config's search path
1463 PKG_CONFIG_LIBDIR
1464 path overriding pkg-config's built-in search path
1465 YACC The 'Yet Another Compiler Compiler' implementation to use.
1466 Defaults to the first program found out of: 'bison -y', 'byacc',
1467 'yacc'.
1468 YFLAGS The list of arguments that will be passed by default to $YACC.
1469 This script will default YFLAGS to the empty string to avoid a
1470 default value of '-d' given by some make applications.
1471 XKBCOMP_CFLAGS
1472 C compiler flags for XKBCOMP, overriding pkg-config
1473 XKBCOMP_LIBS
1474 linker flags for XKBCOMP, overriding pkg-config
1475
1476 Use these variables to override the choices made by 'configure' or to help
1477 it to find libraries and programs with nonstandard names/locations.
1478
1479 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbcomp/-/issues>.
1480 _ACEOF
1481 ac_status=$?
1482 fi
1483
1484 if test "$ac_init_help" = "recursive"; then
1485 # If there are subdirs, report their specific --help.
1486 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1487 test -d "$ac_dir" ||
1488 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1489 continue
1490 ac_builddir=.
1491
1492 case "$ac_dir" in
1493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *)
1495 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1496 # A ".." for each directory in $ac_dir_suffix.
1497 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1498 case $ac_top_builddir_sub in
1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501 esac ;;
1502 esac
1503 ac_abs_top_builddir=$ac_pwd
1504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505 # for backward compatibility:
1506 ac_top_builddir=$ac_top_build_prefix
1507
1508 case $srcdir in
1509 .) # We are building in place.
1510 ac_srcdir=.
1511 ac_top_srcdir=$ac_top_builddir_sub
1512 ac_abs_top_srcdir=$ac_pwd ;;
1513 [\\/]* | ?:[\\/]* ) # Absolute name.
1514 ac_srcdir=$srcdir$ac_dir_suffix;
1515 ac_top_srcdir=$srcdir
1516 ac_abs_top_srcdir=$srcdir ;;
1517 *) # Relative name.
1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519 ac_top_srcdir=$ac_top_build_prefix$srcdir
1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521 esac
1522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523
1524 cd "$ac_dir" || { ac_status=$?; continue; }
1525 # Check for configure.gnu first; this name is used for a wrapper for
1526 # Metaconfig's "Configure" on case-insensitive file systems.
1527 if test -f "$ac_srcdir/configure.gnu"; then
1528 echo &&
1529 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1530 elif test -f "$ac_srcdir/configure"; then
1531 echo &&
1532 $SHELL "$ac_srcdir/configure" --help=recursive
1533 else
1534 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1535 fi || ac_status=$?
1536 cd "$ac_pwd" || { ac_status=$?; break; }
1537 done
1538 fi
1539
1540 test -n "$ac_init_help" && exit $ac_status
1541 if $ac_init_version; then
1542 cat <<\_ACEOF
1543 xkbcomp configure 1.5.0
1544 generated by GNU Autoconf 2.72
1545
1546 Copyright (C) 2023 Free Software Foundation, Inc.
1547 This configure script is free software; the Free Software Foundation
1548 gives unlimited permission to copy, distribute and modify it.
1549 _ACEOF
1550 exit
1551 fi
1552
1553 ## ------------------------ ##
1554 ## Autoconf initialization. ##
1555 ## ------------------------ ##
1556
1557 # ac_fn_c_try_compile LINENO
1558 # --------------------------
1559 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1560 ac_fn_c_try_compile ()
1561 {
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 rm -f conftest.$ac_objext conftest.beam
1564 if { { ac_try="$ac_compile"
1565 case "(($ac_try" in
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1568 esac
1569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570 printf "%s\n" "$ac_try_echo"; } >&5
1571 (eval "$ac_compile") 2>conftest.err
1572 ac_status=$?
1573 if test -s conftest.err; then
1574 grep -v '^ *+' conftest.err >conftest.er1
1575 cat conftest.er1 >&5
1576 mv -f conftest.er1 conftest.err
1577 fi
1578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; } && {
1580 test -z "$ac_c_werror_flag" ||
1581 test ! -s conftest.err
1582 } && test -s conftest.$ac_objext
1583 then :
1584 ac_retval=0
1585 else case e in #(
1586 e) printf "%s\n" "$as_me: failed program was:" >&5
1587 sed 's/^/| /' conftest.$ac_ext >&5
1588
1589 ac_retval=1 ;;
1590 esac
1591 fi
1592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593 as_fn_set_status $ac_retval
1594
1595 } # ac_fn_c_try_compile
1596
1597 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1598 # -------------------------------------------------------
1599 # Tests whether HEADER exists and can be compiled using the include files in
1600 # INCLUDES, setting the cache variable VAR accordingly.
1601 ac_fn_c_check_header_compile ()
1602 {
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1605 printf %s "checking for $2... " >&6; }
1606 if eval test \${$3+y}
1607 then :
1608 printf %s "(cached) " >&6
1609 else case e in #(
1610 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611 /* end confdefs.h. */
1612 $4
1613 #include <$2>
1614 _ACEOF
1615 if ac_fn_c_try_compile "$LINENO"
1616 then :
1617 eval "$3=yes"
1618 else case e in #(
1619 e) eval "$3=no" ;;
1620 esac
1621 fi
1622 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1623 esac
1624 fi
1625 eval ac_res=\$$3
1626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1627 printf "%s\n" "$ac_res" >&6; }
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629
1630 } # ac_fn_c_check_header_compile
1631
1632 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1633 # ------------------------------------------------------------------
1634 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1635 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1636 ac_fn_check_decl ()
1637 {
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 as_decl_name=`echo $2|sed 's/ *(.*//'`
1640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1641 printf %s "checking whether $as_decl_name is declared... " >&6; }
1642 if eval test \${$3+y}
1643 then :
1644 printf %s "(cached) " >&6
1645 else case e in #(
1646 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1647 eval ac_save_FLAGS=\$$6
1648 as_fn_append $6 " $5"
1649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1650 /* end confdefs.h. */
1651 $4
1652 int
1653 main (void)
1654 {
1655 #ifndef $as_decl_name
1656 #ifdef __cplusplus
1657 (void) $as_decl_use;
1658 #else
1659 (void) $as_decl_name;
1660 #endif
1661 #endif
1662
1663 ;
1664 return 0;
1665 }
1666 _ACEOF
1667 if ac_fn_c_try_compile "$LINENO"
1668 then :
1669 eval "$3=yes"
1670 else case e in #(
1671 e) eval "$3=no" ;;
1672 esac
1673 fi
1674 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1675 eval $6=\$ac_save_FLAGS
1676 ;;
1677 esac
1678 fi
1679 eval ac_res=\$$3
1680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681 printf "%s\n" "$ac_res" >&6; }
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683
1684 } # ac_fn_check_decl
1685
1686 # ac_fn_c_try_link LINENO
1687 # -----------------------
1688 # Try to link conftest.$ac_ext, and return whether this succeeded.
1689 ac_fn_c_try_link ()
1690 {
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1693 if { { ac_try="$ac_link"
1694 case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 printf "%s\n" "$ac_try_echo"; } >&5
1700 (eval "$ac_link") 2>conftest.err
1701 ac_status=$?
1702 if test -s conftest.err; then
1703 grep -v '^ *+' conftest.err >conftest.er1
1704 cat conftest.er1 >&5
1705 mv -f conftest.er1 conftest.err
1706 fi
1707 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && {
1709 test -z "$ac_c_werror_flag" ||
1710 test ! -s conftest.err
1711 } && test -s conftest$ac_exeext && {
1712 test "$cross_compiling" = yes ||
1713 test -x conftest$ac_exeext
1714 }
1715 then :
1716 ac_retval=0
1717 else case e in #(
1718 e) printf "%s\n" "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1720
1721 ac_retval=1 ;;
1722 esac
1723 fi
1724 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1725 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1726 # interfere with the next link command; also delete a directory that is
1727 # left behind by Apple's compiler. We do this before executing the actions.
1728 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730 as_fn_set_status $ac_retval
1731
1732 } # ac_fn_c_try_link
1733
1734 # ac_fn_c_check_func LINENO FUNC VAR
1735 # ----------------------------------
1736 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1737 ac_fn_c_check_func ()
1738 {
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 printf %s "checking for $2... " >&6; }
1742 if eval test \${$3+y}
1743 then :
1744 printf %s "(cached) " >&6
1745 else case e in #(
1746 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747 /* end confdefs.h. */
1748 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1750 #define $2 innocuous_$2
1751
1752 /* System header to define __stub macros and hopefully few prototypes,
1753 which can conflict with char $2 (void); below. */
1754
1755 #include <limits.h>
1756 #undef $2
1757
1758 /* Override any GCC internal prototype to avoid an error.
1759 Use char because int might match the return type of a GCC
1760 builtin and then its argument prototype would still apply. */
1761 #ifdef __cplusplus
1762 extern "C"
1763 #endif
1764 char $2 (void);
1765 /* The GNU C library defines this for functions which it implements
1766 to always fail with ENOSYS. Some functions are actually named
1767 something starting with __ and the normal name is an alias. */
1768 #if defined __stub_$2 || defined __stub___$2
1769 choke me
1770 #endif
1771
1772 int
1773 main (void)
1774 {
1775 return $2 ();
1776 ;
1777 return 0;
1778 }
1779 _ACEOF
1780 if ac_fn_c_try_link "$LINENO"
1781 then :
1782 eval "$3=yes"
1783 else case e in #(
1784 e) eval "$3=no" ;;
1785 esac
1786 fi
1787 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1788 conftest$ac_exeext conftest.$ac_ext ;;
1789 esac
1790 fi
1791 eval ac_res=\$$3
1792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793 printf "%s\n" "$ac_res" >&6; }
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795
1796 } # ac_fn_c_check_func
1797 ac_configure_args_raw=
1798 for ac_arg
1799 do
1800 case $ac_arg in
1801 *\'*)
1802 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1803 esac
1804 as_fn_append ac_configure_args_raw " '$ac_arg'"
1805 done
1806
1807 case $ac_configure_args_raw in
1808 *$as_nl*)
1809 ac_safe_unquote= ;;
1810 *)
1811 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1812 ac_unsafe_a="$ac_unsafe_z#~"
1813 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1814 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1815 esac
1816
1817 cat >config.log <<_ACEOF
1818 This file contains any messages produced by compilers while
1819 running configure, to aid debugging if configure makes a mistake.
1820
1821 It was created by xkbcomp $as_me 1.5.0, which was
1822 generated by GNU Autoconf 2.72. Invocation command line was
1823
1824 $ $0$ac_configure_args_raw
1825
1826 _ACEOF
1827 exec 5>>config.log
1828 {
1829 cat <<_ASUNAME
1830 ## --------- ##
1831 ## Platform. ##
1832 ## --------- ##
1833
1834 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1835 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1836 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1837 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1838 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1839
1840 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1841 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1842
1843 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1844 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1845 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1846 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1847 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1848 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1849 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1850
1851 _ASUNAME
1852
1853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854 for as_dir in $PATH
1855 do
1856 IFS=$as_save_IFS
1857 case $as_dir in #(((
1858 '') as_dir=./ ;;
1859 */) ;;
1860 *) as_dir=$as_dir/ ;;
1861 esac
1862 printf "%s\n" "PATH: $as_dir"
1863 done
1864 IFS=$as_save_IFS
1865
1866 } >&5
1867
1868 cat >&5 <<_ACEOF
1869
1870
1871 ## ----------- ##
1872 ## Core tests. ##
1873 ## ----------- ##
1874
1875 _ACEOF
1876
1877
1878 # Keep a trace of the command line.
1879 # Strip out --no-create and --no-recursion so they do not pile up.
1880 # Strip out --silent because we don't want to record it for future runs.
1881 # Also quote any args containing shell meta-characters.
1882 # Make two passes to allow for proper duplicate-argument suppression.
1883 ac_configure_args=
1884 ac_configure_args0=
1885 ac_configure_args1=
1886 ac_must_keep_next=false
1887 for ac_pass in 1 2
1888 do
1889 for ac_arg
1890 do
1891 case $ac_arg in
1892 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1893 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1894 | -silent | --silent | --silen | --sile | --sil)
1895 continue ;;
1896 *\'*)
1897 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1898 esac
1899 case $ac_pass in
1900 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1901 2)
1902 as_fn_append ac_configure_args1 " '$ac_arg'"
1903 if test $ac_must_keep_next = true; then
1904 ac_must_keep_next=false # Got value, back to normal.
1905 else
1906 case $ac_arg in
1907 *=* | --config-cache | -C | -disable-* | --disable-* \
1908 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1909 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1910 | -with-* | --with-* | -without-* | --without-* | --x)
1911 case "$ac_configure_args0 " in
1912 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1913 esac
1914 ;;
1915 -* ) ac_must_keep_next=true ;;
1916 esac
1917 fi
1918 as_fn_append ac_configure_args " '$ac_arg'"
1919 ;;
1920 esac
1921 done
1922 done
1923 { ac_configure_args0=; unset ac_configure_args0;}
1924 { ac_configure_args1=; unset ac_configure_args1;}
1925
1926 # When interrupted or exit'd, cleanup temporary files, and complete
1927 # config.log. We remove comments because anyway the quotes in there
1928 # would cause problems or look ugly.
1929 # WARNING: Use '\'' to represent an apostrophe within the trap.
1930 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1931 trap 'exit_status=$?
1932 # Sanitize IFS.
1933 IFS=" "" $as_nl"
1934 # Save into config.log some information that might help in debugging.
1935 {
1936 echo
1937
1938 printf "%s\n" "## ---------------- ##
1939 ## Cache variables. ##
1940 ## ---------------- ##"
1941 echo
1942 # The following way of writing the cache mishandles newlines in values,
1943 (
1944 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1945 eval ac_val=\$$ac_var
1946 case $ac_val in #(
1947 *${as_nl}*)
1948 case $ac_var in #(
1949 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1950 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1951 esac
1952 case $ac_var in #(
1953 _ | IFS | as_nl) ;; #(
1954 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1955 *) { eval $ac_var=; unset $ac_var;} ;;
1956 esac ;;
1957 esac
1958 done
1959 (set) 2>&1 |
1960 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1961 *${as_nl}ac_space=\ *)
1962 sed -n \
1963 "s/'\''/'\''\\\\'\'''\''/g;
1964 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1965 ;; #(
1966 *)
1967 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1968 ;;
1969 esac |
1970 sort
1971 )
1972 echo
1973
1974 printf "%s\n" "## ----------------- ##
1975 ## Output variables. ##
1976 ## ----------------- ##"
1977 echo
1978 for ac_var in $ac_subst_vars
1979 do
1980 eval ac_val=\$$ac_var
1981 case $ac_val in
1982 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1983 esac
1984 printf "%s\n" "$ac_var='\''$ac_val'\''"
1985 done | sort
1986 echo
1987
1988 if test -n "$ac_subst_files"; then
1989 printf "%s\n" "## ------------------- ##
1990 ## File substitutions. ##
1991 ## ------------------- ##"
1992 echo
1993 for ac_var in $ac_subst_files
1994 do
1995 eval ac_val=\$$ac_var
1996 case $ac_val in
1997 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1998 esac
1999 printf "%s\n" "$ac_var='\''$ac_val'\''"
2000 done | sort
2001 echo
2002 fi
2003
2004 if test -s confdefs.h; then
2005 printf "%s\n" "## ----------- ##
2006 ## confdefs.h. ##
2007 ## ----------- ##"
2008 echo
2009 cat confdefs.h
2010 echo
2011 fi
2012 test "$ac_signal" != 0 &&
2013 printf "%s\n" "$as_me: caught signal $ac_signal"
2014 printf "%s\n" "$as_me: exit $exit_status"
2015 } >&5
2016 rm -f core *.core core.conftest.* &&
2017 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2018 exit $exit_status
2019 ' 0
2020 for ac_signal in 1 2 13 15; do
2021 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2022 done
2023 ac_signal=0
2024
2025 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2026 rm -f -r conftest* confdefs.h
2027
2028 printf "%s\n" "/* confdefs.h */" > confdefs.h
2029
2030 # Predefined preprocessor variables.
2031
2032 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2033
2034 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2035
2036 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2037
2038 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2039
2040 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2041
2042 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2043
2044
2045 # Let the site file select an alternate cache file if it wants to.
2046 # Prefer an explicitly selected file to automatically selected ones.
2047 if test -n "$CONFIG_SITE"; then
2048 ac_site_files="$CONFIG_SITE"
2049 elif test "x$prefix" != xNONE; then
2050 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2051 else
2052 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2053 fi
2054
2055 for ac_site_file in $ac_site_files
2056 do
2057 case $ac_site_file in #(
2058 */*) :
2059 ;; #(
2060 *) :
2061 ac_site_file=./$ac_site_file ;;
2062 esac
2063 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2065 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2066 sed 's/^/| /' "$ac_site_file" >&5
2067 . "$ac_site_file" \
2068 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2069 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2070 as_fn_error $? "failed to load site script $ac_site_file
2071 See 'config.log' for more details" "$LINENO" 5; }
2072 fi
2073 done
2074
2075 if test -r "$cache_file"; then
2076 # Some versions of bash will fail to source /dev/null (special files
2077 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2078 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2080 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2081 case $cache_file in
2082 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2083 *) . "./$cache_file";;
2084 esac
2085 fi
2086 else
2087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2088 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2089 >$cache_file
2090 fi
2091
2092 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2093 # Test code for whether the C compiler supports C89 (global declarations)
2094 ac_c_conftest_c89_globals='
2095 /* Does the compiler advertise C89 conformance?
2096 Do not test the value of __STDC__, because some compilers set it to 0
2097 while being otherwise adequately conformant. */
2098 #if !defined __STDC__
2099 # error "Compiler does not advertise C89 conformance"
2100 #endif
2101
2102 #include <stddef.h>
2103 #include <stdarg.h>
2104 struct stat;
2105 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2106 struct buf { int x; };
2107 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2108 static char *e (char **p, int i)
2109 {
2110 return p[i];
2111 }
2112 static char *f (char * (*g) (char **, int), char **p, ...)
2113 {
2114 char *s;
2115 va_list v;
2116 va_start (v,p);
2117 s = g (p, va_arg (v,int));
2118 va_end (v);
2119 return s;
2120 }
2121
2122 /* C89 style stringification. */
2123 #define noexpand_stringify(a) #a
2124 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2125
2126 /* C89 style token pasting. Exercises some of the corner cases that
2127 e.g. old MSVC gets wrong, but not very hard. */
2128 #define noexpand_concat(a,b) a##b
2129 #define expand_concat(a,b) noexpand_concat(a,b)
2130 extern int vA;
2131 extern int vbee;
2132 #define aye A
2133 #define bee B
2134 int *pvA = &expand_concat(v,aye);
2135 int *pvbee = &noexpand_concat(v,bee);
2136
2137 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2138 function prototypes and stuff, but not \xHH hex character constants.
2139 These do not provoke an error unfortunately, instead are silently treated
2140 as an "x". The following induces an error, until -std is added to get
2141 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2142 array size at least. It is necessary to write \x00 == 0 to get something
2143 that is true only with -std. */
2144 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2145
2146 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2147 inside strings and character constants. */
2148 #define FOO(x) '\''x'\''
2149 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2150
2151 int test (int i, double x);
2152 struct s1 {int (*f) (int a);};
2153 struct s2 {int (*f) (double a);};
2154 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2155 int, int);'
2156
2157 # Test code for whether the C compiler supports C89 (body of main).
2158 ac_c_conftest_c89_main='
2159 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2160 '
2161
2162 # Test code for whether the C compiler supports C99 (global declarations)
2163 ac_c_conftest_c99_globals='
2164 /* Does the compiler advertise C99 conformance? */
2165 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2166 # error "Compiler does not advertise C99 conformance"
2167 #endif
2168
2169 // See if C++-style comments work.
2170
2171 #include <stdbool.h>
2172 extern int puts (const char *);
2173 extern int printf (const char *, ...);
2174 extern int dprintf (int, const char *, ...);
2175 extern void *malloc (size_t);
2176 extern void free (void *);
2177
2178 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2179 // dprintf is used instead of fprintf to avoid needing to declare
2180 // FILE and stderr.
2181 #define debug(...) dprintf (2, __VA_ARGS__)
2182 #define showlist(...) puts (#__VA_ARGS__)
2183 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2184 static void
2185 test_varargs_macros (void)
2186 {
2187 int x = 1234;
2188 int y = 5678;
2189 debug ("Flag");
2190 debug ("X = %d\n", x);
2191 showlist (The first, second, and third items.);
2192 report (x>y, "x is %d but y is %d", x, y);
2193 }
2194
2195 // Check long long types.
2196 #define BIG64 18446744073709551615ull
2197 #define BIG32 4294967295ul
2198 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2199 #if !BIG_OK
2200 #error "your preprocessor is broken"
2201 #endif
2202 #if BIG_OK
2203 #else
2204 #error "your preprocessor is broken"
2205 #endif
2206 static long long int bignum = -9223372036854775807LL;
2207 static unsigned long long int ubignum = BIG64;
2208
2209 struct incomplete_array
2210 {
2211 int datasize;
2212 double data[];
2213 };
2214
2215 struct named_init {
2216 int number;
2217 const wchar_t *name;
2218 double average;
2219 };
2220
2221 typedef const char *ccp;
2222
2223 static inline int
2224 test_restrict (ccp restrict text)
2225 {
2226 // Iterate through items via the restricted pointer.
2227 // Also check for declarations in for loops.
2228 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2229 continue;
2230 return 0;
2231 }
2232
2233 // Check varargs and va_copy.
2234 static bool
2235 test_varargs (const char *format, ...)
2236 {
2237 va_list args;
2238 va_start (args, format);
2239 va_list args_copy;
2240 va_copy (args_copy, args);
2241
2242 const char *str = "";
2243 int number = 0;
2244 float fnumber = 0;
2245
2246 while (*format)
2247 {
2248 switch (*format++)
2249 {
2250 case '\''s'\'': // string
2251 str = va_arg (args_copy, const char *);
2252 break;
2253 case '\''d'\'': // int
2254 number = va_arg (args_copy, int);
2255 break;
2256 case '\''f'\'': // float
2257 fnumber = va_arg (args_copy, double);
2258 break;
2259 default:
2260 break;
2261 }
2262 }
2263 va_end (args_copy);
2264 va_end (args);
2265
2266 return *str && number && fnumber;
2267 }
2268 '
2269
2270 # Test code for whether the C compiler supports C99 (body of main).
2271 ac_c_conftest_c99_main='
2272 // Check bool.
2273 _Bool success = false;
2274 success |= (argc != 0);
2275
2276 // Check restrict.
2277 if (test_restrict ("String literal") == 0)
2278 success = true;
2279 char *restrict newvar = "Another string";
2280
2281 // Check varargs.
2282 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2283 test_varargs_macros ();
2284
2285 // Check flexible array members.
2286 struct incomplete_array *ia =
2287 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2288 ia->datasize = 10;
2289 for (int i = 0; i < ia->datasize; ++i)
2290 ia->data[i] = i * 1.234;
2291 // Work around memory leak warnings.
2292 free (ia);
2293
2294 // Check named initializers.
2295 struct named_init ni = {
2296 .number = 34,
2297 .name = L"Test wide string",
2298 .average = 543.34343,
2299 };
2300
2301 ni.number = 58;
2302
2303 int dynamic_array[ni.number];
2304 dynamic_array[0] = argv[0][0];
2305 dynamic_array[ni.number - 1] = 543;
2306
2307 // work around unused variable warnings
2308 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2309 || dynamic_array[ni.number - 1] != 543);
2310 '
2311
2312 # Test code for whether the C compiler supports C11 (global declarations)
2313 ac_c_conftest_c11_globals='
2314 /* Does the compiler advertise C11 conformance? */
2315 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2316 # error "Compiler does not advertise C11 conformance"
2317 #endif
2318
2319 // Check _Alignas.
2320 char _Alignas (double) aligned_as_double;
2321 char _Alignas (0) no_special_alignment;
2322 extern char aligned_as_int;
2323 char _Alignas (0) _Alignas (int) aligned_as_int;
2324
2325 // Check _Alignof.
2326 enum
2327 {
2328 int_alignment = _Alignof (int),
2329 int_array_alignment = _Alignof (int[100]),
2330 char_alignment = _Alignof (char)
2331 };
2332 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2333
2334 // Check _Noreturn.
2335 int _Noreturn does_not_return (void) { for (;;) continue; }
2336
2337 // Check _Static_assert.
2338 struct test_static_assert
2339 {
2340 int x;
2341 _Static_assert (sizeof (int) <= sizeof (long int),
2342 "_Static_assert does not work in struct");
2343 long int y;
2344 };
2345
2346 // Check UTF-8 literals.
2347 #define u8 syntax error!
2348 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2349
2350 // Check duplicate typedefs.
2351 typedef long *long_ptr;
2352 typedef long int *long_ptr;
2353 typedef long_ptr long_ptr;
2354
2355 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2356 struct anonymous
2357 {
2358 union {
2359 struct { int i; int j; };
2360 struct { int k; long int l; } w;
2361 };
2362 int m;
2363 } v1;
2364 '
2365
2366 # Test code for whether the C compiler supports C11 (body of main).
2367 ac_c_conftest_c11_main='
2368 _Static_assert ((offsetof (struct anonymous, i)
2369 == offsetof (struct anonymous, w.k)),
2370 "Anonymous union alignment botch");
2371 v1.i = 2;
2372 v1.w.k = 5;
2373 ok |= v1.i != 5;
2374 '
2375
2376 # Test code for whether the C compiler supports C11 (complete).
2377 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2378 ${ac_c_conftest_c99_globals}
2379 ${ac_c_conftest_c11_globals}
2380
2381 int
2382 main (int argc, char **argv)
2383 {
2384 int ok = 0;
2385 ${ac_c_conftest_c89_main}
2386 ${ac_c_conftest_c99_main}
2387 ${ac_c_conftest_c11_main}
2388 return ok;
2389 }
2390 "
2391
2392 # Test code for whether the C compiler supports C99 (complete).
2393 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2394 ${ac_c_conftest_c99_globals}
2395
2396 int
2397 main (int argc, char **argv)
2398 {
2399 int ok = 0;
2400 ${ac_c_conftest_c89_main}
2401 ${ac_c_conftest_c99_main}
2402 return ok;
2403 }
2404 "
2405
2406 # Test code for whether the C compiler supports C89 (complete).
2407 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2408
2409 int
2410 main (int argc, char **argv)
2411 {
2412 int ok = 0;
2413 ${ac_c_conftest_c89_main}
2414 return ok;
2415 }
2416 "
2417
2418 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2419 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2420 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2421 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2422 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2423 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2424 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2425 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2426 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2427 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2428
2429 # Auxiliary files required by this configure script.
2430 ac_aux_files="config.guess config.sub missing install-sh compile"
2431
2432 # Locations in which to look for auxiliary files.
2433 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2434
2435 # Search for a directory containing all of the required auxiliary files,
2436 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2437 # If we don't find one directory that contains all the files we need,
2438 # we report the set of missing files from the *first* directory in
2439 # $ac_aux_dir_candidates and give up.
2440 ac_missing_aux_files=""
2441 ac_first_candidate=:
2442 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 as_found=false
2445 for as_dir in $ac_aux_dir_candidates
2446 do
2447 IFS=$as_save_IFS
2448 case $as_dir in #(((
2449 '') as_dir=./ ;;
2450 */) ;;
2451 *) as_dir=$as_dir/ ;;
2452 esac
2453 as_found=:
2454
2455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2456 ac_aux_dir_found=yes
2457 ac_install_sh=
2458 for ac_aux in $ac_aux_files
2459 do
2460 # As a special case, if "install-sh" is required, that requirement
2461 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2462 # and $ac_install_sh is set appropriately for whichever one is found.
2463 if test x"$ac_aux" = x"install-sh"
2464 then
2465 if test -f "${as_dir}install-sh"; then
2466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2467 ac_install_sh="${as_dir}install-sh -c"
2468 elif test -f "${as_dir}install.sh"; then
2469 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2470 ac_install_sh="${as_dir}install.sh -c"
2471 elif test -f "${as_dir}shtool"; then
2472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2473 ac_install_sh="${as_dir}shtool install -c"
2474 else
2475 ac_aux_dir_found=no
2476 if $ac_first_candidate; then
2477 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2478 else
2479 break
2480 fi
2481 fi
2482 else
2483 if test -f "${as_dir}${ac_aux}"; then
2484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2485 else
2486 ac_aux_dir_found=no
2487 if $ac_first_candidate; then
2488 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2489 else
2490 break
2491 fi
2492 fi
2493 fi
2494 done
2495 if test "$ac_aux_dir_found" = yes; then
2496 ac_aux_dir="$as_dir"
2497 break
2498 fi
2499 ac_first_candidate=false
2500
2501 as_found=false
2502 done
2503 IFS=$as_save_IFS
2504 if $as_found
2505 then :
2506
2507 else case e in #(
2508 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2509 esac
2510 fi
2511
2512
2513 # These three variables are undocumented and unsupported,
2514 # and are intended to be withdrawn in a future Autoconf release.
2515 # They can cause serious problems if a builder's source tree is in a directory
2516 # whose full name contains unusual characters.
2517 if test -f "${ac_aux_dir}config.guess"; then
2518 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2519 fi
2520 if test -f "${ac_aux_dir}config.sub"; then
2521 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2522 fi
2523 if test -f "$ac_aux_dir/configure"; then
2524 ac_configure="$SHELL ${ac_aux_dir}configure"
2525 fi
2526
2527 # Check that the precious variables saved in the cache have kept the same
2528 # value.
2529 ac_cache_corrupted=false
2530 for ac_var in $ac_precious_vars; do
2531 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2532 eval ac_new_set=\$ac_env_${ac_var}_set
2533 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2534 eval ac_new_val=\$ac_env_${ac_var}_value
2535 case $ac_old_set,$ac_new_set in
2536 set,)
2537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2538 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2539 ac_cache_corrupted=: ;;
2540 ,set)
2541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2542 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2543 ac_cache_corrupted=: ;;
2544 ,);;
2545 *)
2546 if test "x$ac_old_val" != "x$ac_new_val"; then
2547 # differences in whitespace do not lead to failure.
2548 ac_old_val_w=`echo x $ac_old_val`
2549 ac_new_val_w=`echo x $ac_new_val`
2550 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2552 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2553 ac_cache_corrupted=:
2554 else
2555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2556 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2557 eval $ac_var=\$ac_old_val
2558 fi
2559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2560 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2562 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2563 fi;;
2564 esac
2565 # Pass precious variables to config.status.
2566 if test "$ac_new_set" = set; then
2567 case $ac_new_val in
2568 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2569 *) ac_arg=$ac_var=$ac_new_val ;;
2570 esac
2571 case " $ac_configure_args " in
2572 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2573 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2574 esac
2575 fi
2576 done
2577 if $ac_cache_corrupted; then
2578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2579 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2581 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2582 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2583 and start over" "$LINENO" 5
2584 fi
2585 ## -------------------- ##
2586 ## Main body of script. ##
2587 ## -------------------- ##
2588
2589 ac_ext=c
2590 ac_cpp='$CPP $CPPFLAGS'
2591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2594
2595
2596
2597 ac_config_headers="$ac_config_headers config.h"
2598
2599
2600 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
2601 # Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
2602 # to avoid autoconf errors.
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614 # Expand $ac_aux_dir to an absolute path.
2615 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2616
2617 ac_ext=c
2618 ac_cpp='$CPP $CPPFLAGS'
2619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2622 if test -n "$ac_tool_prefix"; then
2623 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2624 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2626 printf %s "checking for $ac_word... " >&6; }
2627 if test ${ac_cv_prog_CC+y}
2628 then :
2629 printf %s "(cached) " >&6
2630 else case e in #(
2631 e) if test -n "$CC"; then
2632 ac_cv_prog_CC="$CC" # Let the user override the test.
2633 else
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH
2636 do
2637 IFS=$as_save_IFS
2638 case $as_dir in #(((
2639 '') as_dir=./ ;;
2640 */) ;;
2641 *) as_dir=$as_dir/ ;;
2642 esac
2643 for ac_exec_ext in '' $ac_executable_extensions; do
2644 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2645 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2647 break 2
2648 fi
2649 done
2650 done
2651 IFS=$as_save_IFS
2652
2653 fi ;;
2654 esac
2655 fi
2656 CC=$ac_cv_prog_CC
2657 if test -n "$CC"; then
2658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2659 printf "%s\n" "$CC" >&6; }
2660 else
2661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2662 printf "%s\n" "no" >&6; }
2663 fi
2664
2665
2666 fi
2667 if test -z "$ac_cv_prog_CC"; then
2668 ac_ct_CC=$CC
2669 # Extract the first word of "gcc", so it can be a program name with args.
2670 set dummy gcc; ac_word=$2
2671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2672 printf %s "checking for $ac_word... " >&6; }
2673 if test ${ac_cv_prog_ac_ct_CC+y}
2674 then :
2675 printf %s "(cached) " >&6
2676 else case e in #(
2677 e) if test -n "$ac_ct_CC"; then
2678 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2679 else
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 for as_dir in $PATH
2682 do
2683 IFS=$as_save_IFS
2684 case $as_dir in #(((
2685 '') as_dir=./ ;;
2686 */) ;;
2687 *) as_dir=$as_dir/ ;;
2688 esac
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2691 ac_cv_prog_ac_ct_CC="gcc"
2692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2693 break 2
2694 fi
2695 done
2696 done
2697 IFS=$as_save_IFS
2698
2699 fi ;;
2700 esac
2701 fi
2702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2703 if test -n "$ac_ct_CC"; then
2704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2705 printf "%s\n" "$ac_ct_CC" >&6; }
2706 else
2707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2708 printf "%s\n" "no" >&6; }
2709 fi
2710
2711 if test "x$ac_ct_CC" = x; then
2712 CC=""
2713 else
2714 case $cross_compiling:$ac_tool_warned in
2715 yes:)
2716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2717 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2718 ac_tool_warned=yes ;;
2719 esac
2720 CC=$ac_ct_CC
2721 fi
2722 else
2723 CC="$ac_cv_prog_CC"
2724 fi
2725
2726 if test -z "$CC"; then
2727 if test -n "$ac_tool_prefix"; then
2728 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2729 set dummy ${ac_tool_prefix}cc; ac_word=$2
2730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2731 printf %s "checking for $ac_word... " >&6; }
2732 if test ${ac_cv_prog_CC+y}
2733 then :
2734 printf %s "(cached) " >&6
2735 else case e in #(
2736 e) if test -n "$CC"; then
2737 ac_cv_prog_CC="$CC" # Let the user override the test.
2738 else
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 for as_dir in $PATH
2741 do
2742 IFS=$as_save_IFS
2743 case $as_dir in #(((
2744 '') as_dir=./ ;;
2745 */) ;;
2746 *) as_dir=$as_dir/ ;;
2747 esac
2748 for ac_exec_ext in '' $ac_executable_extensions; do
2749 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2750 ac_cv_prog_CC="${ac_tool_prefix}cc"
2751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2752 break 2
2753 fi
2754 done
2755 done
2756 IFS=$as_save_IFS
2757
2758 fi ;;
2759 esac
2760 fi
2761 CC=$ac_cv_prog_CC
2762 if test -n "$CC"; then
2763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2764 printf "%s\n" "$CC" >&6; }
2765 else
2766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767 printf "%s\n" "no" >&6; }
2768 fi
2769
2770
2771 fi
2772 fi
2773 if test -z "$CC"; then
2774 # Extract the first word of "cc", so it can be a program name with args.
2775 set dummy cc; ac_word=$2
2776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2777 printf %s "checking for $ac_word... " >&6; }
2778 if test ${ac_cv_prog_CC+y}
2779 then :
2780 printf %s "(cached) " >&6
2781 else case e in #(
2782 e) if test -n "$CC"; then
2783 ac_cv_prog_CC="$CC" # Let the user override the test.
2784 else
2785 ac_prog_rejected=no
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 for as_dir in $PATH
2788 do
2789 IFS=$as_save_IFS
2790 case $as_dir in #(((
2791 '') as_dir=./ ;;
2792 */) ;;
2793 *) as_dir=$as_dir/ ;;
2794 esac
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2797 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2798 ac_prog_rejected=yes
2799 continue
2800 fi
2801 ac_cv_prog_CC="cc"
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 if test $ac_prog_rejected = yes; then
2810 # We found a bogon in the path, so make sure we never use it.
2811 set dummy $ac_cv_prog_CC
2812 shift
2813 if test $# != 0; then
2814 # We chose a different compiler from the bogus one.
2815 # However, it has the same basename, so the bogon will be chosen
2816 # first if we set CC to just the basename; use the full file name.
2817 shift
2818 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2819 fi
2820 fi
2821 fi ;;
2822 esac
2823 fi
2824 CC=$ac_cv_prog_CC
2825 if test -n "$CC"; then
2826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2827 printf "%s\n" "$CC" >&6; }
2828 else
2829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2830 printf "%s\n" "no" >&6; }
2831 fi
2832
2833
2834 fi
2835 if test -z "$CC"; then
2836 if test -n "$ac_tool_prefix"; then
2837 for ac_prog in cl.exe
2838 do
2839 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2840 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842 printf %s "checking for $ac_word... " >&6; }
2843 if test ${ac_cv_prog_CC+y}
2844 then :
2845 printf %s "(cached) " >&6
2846 else case e in #(
2847 e) if test -n "$CC"; then
2848 ac_cv_prog_CC="$CC" # Let the user override the test.
2849 else
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 for as_dir in $PATH
2852 do
2853 IFS=$as_save_IFS
2854 case $as_dir in #(((
2855 '') as_dir=./ ;;
2856 */) ;;
2857 *) as_dir=$as_dir/ ;;
2858 esac
2859 for ac_exec_ext in '' $ac_executable_extensions; do
2860 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2861 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2863 break 2
2864 fi
2865 done
2866 done
2867 IFS=$as_save_IFS
2868
2869 fi ;;
2870 esac
2871 fi
2872 CC=$ac_cv_prog_CC
2873 if test -n "$CC"; then
2874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2875 printf "%s\n" "$CC" >&6; }
2876 else
2877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878 printf "%s\n" "no" >&6; }
2879 fi
2880
2881
2882 test -n "$CC" && break
2883 done
2884 fi
2885 if test -z "$CC"; then
2886 ac_ct_CC=$CC
2887 for ac_prog in cl.exe
2888 do
2889 # Extract the first word of "$ac_prog", so it can be a program name with args.
2890 set dummy $ac_prog; ac_word=$2
2891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892 printf %s "checking for $ac_word... " >&6; }
2893 if test ${ac_cv_prog_ac_ct_CC+y}
2894 then :
2895 printf %s "(cached) " >&6
2896 else case e in #(
2897 e) if test -n "$ac_ct_CC"; then
2898 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2899 else
2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901 for as_dir in $PATH
2902 do
2903 IFS=$as_save_IFS
2904 case $as_dir in #(((
2905 '') as_dir=./ ;;
2906 */) ;;
2907 *) as_dir=$as_dir/ ;;
2908 esac
2909 for ac_exec_ext in '' $ac_executable_extensions; do
2910 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2911 ac_cv_prog_ac_ct_CC="$ac_prog"
2912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2913 break 2
2914 fi
2915 done
2916 done
2917 IFS=$as_save_IFS
2918
2919 fi ;;
2920 esac
2921 fi
2922 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2923 if test -n "$ac_ct_CC"; then
2924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2925 printf "%s\n" "$ac_ct_CC" >&6; }
2926 else
2927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 printf "%s\n" "no" >&6; }
2929 fi
2930
2931
2932 test -n "$ac_ct_CC" && break
2933 done
2934
2935 if test "x$ac_ct_CC" = x; then
2936 CC=""
2937 else
2938 case $cross_compiling:$ac_tool_warned in
2939 yes:)
2940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2941 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2942 ac_tool_warned=yes ;;
2943 esac
2944 CC=$ac_ct_CC
2945 fi
2946 fi
2947
2948 fi
2949 if test -z "$CC"; then
2950 if test -n "$ac_tool_prefix"; then
2951 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2952 set dummy ${ac_tool_prefix}clang; ac_word=$2
2953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2954 printf %s "checking for $ac_word... " >&6; }
2955 if test ${ac_cv_prog_CC+y}
2956 then :
2957 printf %s "(cached) " >&6
2958 else case e in #(
2959 e) if test -n "$CC"; then
2960 ac_cv_prog_CC="$CC" # Let the user override the test.
2961 else
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 for as_dir in $PATH
2964 do
2965 IFS=$as_save_IFS
2966 case $as_dir in #(((
2967 '') as_dir=./ ;;
2968 */) ;;
2969 *) as_dir=$as_dir/ ;;
2970 esac
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2973 ac_cv_prog_CC="${ac_tool_prefix}clang"
2974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2975 break 2
2976 fi
2977 done
2978 done
2979 IFS=$as_save_IFS
2980
2981 fi ;;
2982 esac
2983 fi
2984 CC=$ac_cv_prog_CC
2985 if test -n "$CC"; then
2986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2987 printf "%s\n" "$CC" >&6; }
2988 else
2989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2990 printf "%s\n" "no" >&6; }
2991 fi
2992
2993
2994 fi
2995 if test -z "$ac_cv_prog_CC"; then
2996 ac_ct_CC=$CC
2997 # Extract the first word of "clang", so it can be a program name with args.
2998 set dummy clang; ac_word=$2
2999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3000 printf %s "checking for $ac_word... " >&6; }
3001 if test ${ac_cv_prog_ac_ct_CC+y}
3002 then :
3003 printf %s "(cached) " >&6
3004 else case e in #(
3005 e) if test -n "$ac_ct_CC"; then
3006 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3007 else
3008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 for as_dir in $PATH
3010 do
3011 IFS=$as_save_IFS
3012 case $as_dir in #(((
3013 '') as_dir=./ ;;
3014 */) ;;
3015 *) as_dir=$as_dir/ ;;
3016 esac
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3019 ac_cv_prog_ac_ct_CC="clang"
3020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3021 break 2
3022 fi
3023 done
3024 done
3025 IFS=$as_save_IFS
3026
3027 fi ;;
3028 esac
3029 fi
3030 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3031 if test -n "$ac_ct_CC"; then
3032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3033 printf "%s\n" "$ac_ct_CC" >&6; }
3034 else
3035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036 printf "%s\n" "no" >&6; }
3037 fi
3038
3039 if test "x$ac_ct_CC" = x; then
3040 CC=""
3041 else
3042 case $cross_compiling:$ac_tool_warned in
3043 yes:)
3044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3045 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3046 ac_tool_warned=yes ;;
3047 esac
3048 CC=$ac_ct_CC
3049 fi
3050 else
3051 CC="$ac_cv_prog_CC"
3052 fi
3053
3054 fi
3055
3056
3057 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3058 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3059 as_fn_error $? "no acceptable C compiler found in \$PATH
3060 See 'config.log' for more details" "$LINENO" 5; }
3061
3062 # Provide some information about the compiler.
3063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3064 set X $ac_compile
3065 ac_compiler=$2
3066 for ac_option in --version -v -V -qversion -version; do
3067 { { ac_try="$ac_compiler $ac_option >&5"
3068 case "(($ac_try" in
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3071 esac
3072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3073 printf "%s\n" "$ac_try_echo"; } >&5
3074 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3075 ac_status=$?
3076 if test -s conftest.err; then
3077 sed '10a\
3078 ... rest of stderr output deleted ...
3079 10q' conftest.err >conftest.er1
3080 cat conftest.er1 >&5
3081 fi
3082 rm -f conftest.er1 conftest.err
3083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3084 test $ac_status = 0; }
3085 done
3086
3087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3088 /* end confdefs.h. */
3089
3090 int
3091 main (void)
3092 {
3093
3094 ;
3095 return 0;
3096 }
3097 _ACEOF
3098 ac_clean_files_save=$ac_clean_files
3099 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3100 # Try to create an executable without -o first, disregard a.out.
3101 # It will help us diagnose broken compilers, and finding out an intuition
3102 # of exeext.
3103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3104 printf %s "checking whether the C compiler works... " >&6; }
3105 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3106
3107 # The possible output files:
3108 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3109
3110 ac_rmfiles=
3111 for ac_file in $ac_files
3112 do
3113 case $ac_file in
3114 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3115 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3116 esac
3117 done
3118 rm -f $ac_rmfiles
3119
3120 if { { ac_try="$ac_link_default"
3121 case "(($ac_try" in
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3124 esac
3125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3126 printf "%s\n" "$ac_try_echo"; } >&5
3127 (eval "$ac_link_default") 2>&5
3128 ac_status=$?
3129 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3130 test $ac_status = 0; }
3131 then :
3132 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3133 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3134 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3135 # so that the user can short-circuit this test for compilers unknown to
3136 # Autoconf.
3137 for ac_file in $ac_files ''
3138 do
3139 test -f "$ac_file" || continue
3140 case $ac_file in
3141 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3142 ;;
3143 [ab].out )
3144 # We found the default executable, but exeext='' is most
3145 # certainly right.
3146 break;;
3147 *.* )
3148 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3149 then :; else
3150 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3151 fi
3152 # We set ac_cv_exeext here because the later test for it is not
3153 # safe: cross compilers may not add the suffix if given an '-o'
3154 # argument, so we may need to know it at that point already.
3155 # Even if this section looks crufty: it has the advantage of
3156 # actually working.
3157 break;;
3158 * )
3159 break;;
3160 esac
3161 done
3162 test "$ac_cv_exeext" = no && ac_cv_exeext=
3163
3164 else case e in #(
3165 e) ac_file='' ;;
3166 esac
3167 fi
3168 if test -z "$ac_file"
3169 then :
3170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 printf "%s\n" "no" >&6; }
3172 printf "%s\n" "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3174
3175 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3176 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3177 as_fn_error 77 "C compiler cannot create executables
3178 See 'config.log' for more details" "$LINENO" 5; }
3179 else case e in #(
3180 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3181 printf "%s\n" "yes" >&6; } ;;
3182 esac
3183 fi
3184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3185 printf %s "checking for C compiler default output file name... " >&6; }
3186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3187 printf "%s\n" "$ac_file" >&6; }
3188 ac_exeext=$ac_cv_exeext
3189
3190 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3191 ac_clean_files=$ac_clean_files_save
3192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3193 printf %s "checking for suffix of executables... " >&6; }
3194 if { { ac_try="$ac_link"
3195 case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198 esac
3199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3200 printf "%s\n" "$ac_try_echo"; } >&5
3201 (eval "$ac_link") 2>&5
3202 ac_status=$?
3203 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3204 test $ac_status = 0; }
3205 then :
3206 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3207 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3208 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3209 # 'rm'.
3210 for ac_file in conftest.exe conftest conftest.*; do
3211 test -f "$ac_file" || continue
3212 case $ac_file in
3213 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3214 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3215 break;;
3216 * ) break;;
3217 esac
3218 done
3219 else case e in #(
3220 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3221 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3222 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3223 See 'config.log' for more details" "$LINENO" 5; } ;;
3224 esac
3225 fi
3226 rm -f conftest conftest$ac_cv_exeext
3227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3228 printf "%s\n" "$ac_cv_exeext" >&6; }
3229
3230 rm -f conftest.$ac_ext
3231 EXEEXT=$ac_cv_exeext
3232 ac_exeext=$EXEEXT
3233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234 /* end confdefs.h. */
3235 #include <stdio.h>
3236 int
3237 main (void)
3238 {
3239 FILE *f = fopen ("conftest.out", "w");
3240 if (!f)
3241 return 1;
3242 return ferror (f) || fclose (f) != 0;
3243
3244 ;
3245 return 0;
3246 }
3247 _ACEOF
3248 ac_clean_files="$ac_clean_files conftest.out"
3249 # Check that the compiler produces executables we can run. If not, either
3250 # the compiler is broken, or we cross compile.
3251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3252 printf %s "checking whether we are cross compiling... " >&6; }
3253 if test "$cross_compiling" != yes; then
3254 { { ac_try="$ac_link"
3255 case "(($ac_try" in
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3258 esac
3259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3260 printf "%s\n" "$ac_try_echo"; } >&5
3261 (eval "$ac_link") 2>&5
3262 ac_status=$?
3263 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3264 test $ac_status = 0; }
3265 if { ac_try='./conftest$ac_cv_exeext'
3266 { { case "(($ac_try" in
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3269 esac
3270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3271 printf "%s\n" "$ac_try_echo"; } >&5
3272 (eval "$ac_try") 2>&5
3273 ac_status=$?
3274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3275 test $ac_status = 0; }; }; then
3276 cross_compiling=no
3277 else
3278 if test "$cross_compiling" = maybe; then
3279 cross_compiling=yes
3280 else
3281 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3282 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3283 as_fn_error 77 "cannot run C compiled programs.
3284 If you meant to cross compile, use '--host'.
3285 See 'config.log' for more details" "$LINENO" 5; }
3286 fi
3287 fi
3288 fi
3289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3290 printf "%s\n" "$cross_compiling" >&6; }
3291
3292 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3293 conftest.o conftest.obj conftest.out
3294 ac_clean_files=$ac_clean_files_save
3295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3296 printf %s "checking for suffix of object files... " >&6; }
3297 if test ${ac_cv_objext+y}
3298 then :
3299 printf %s "(cached) " >&6
3300 else case e in #(
3301 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3302 /* end confdefs.h. */
3303
3304 int
3305 main (void)
3306 {
3307
3308 ;
3309 return 0;
3310 }
3311 _ACEOF
3312 rm -f conftest.o conftest.obj
3313 if { { ac_try="$ac_compile"
3314 case "(($ac_try" in
3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3317 esac
3318 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3319 printf "%s\n" "$ac_try_echo"; } >&5
3320 (eval "$ac_compile") 2>&5
3321 ac_status=$?
3322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3323 test $ac_status = 0; }
3324 then :
3325 for ac_file in conftest.o conftest.obj conftest.*; do
3326 test -f "$ac_file" || continue;
3327 case $ac_file in
3328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3329 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3330 break;;
3331 esac
3332 done
3333 else case e in #(
3334 e) printf "%s\n" "$as_me: failed program was:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3336
3337 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3338 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3339 as_fn_error $? "cannot compute suffix of object files: cannot compile
3340 See 'config.log' for more details" "$LINENO" 5; } ;;
3341 esac
3342 fi
3343 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3344 esac
3345 fi
3346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3347 printf "%s\n" "$ac_cv_objext" >&6; }
3348 OBJEXT=$ac_cv_objext
3349 ac_objext=$OBJEXT
3350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3351 printf %s "checking whether the compiler supports GNU C... " >&6; }
3352 if test ${ac_cv_c_compiler_gnu+y}
3353 then :
3354 printf %s "(cached) " >&6
3355 else case e in #(
3356 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357 /* end confdefs.h. */
3358
3359 int
3360 main (void)
3361 {
3362 #ifndef __GNUC__
3363 choke me
3364 #endif
3365
3366 ;
3367 return 0;
3368 }
3369 _ACEOF
3370 if ac_fn_c_try_compile "$LINENO"
3371 then :
3372 ac_compiler_gnu=yes
3373 else case e in #(
3374 e) ac_compiler_gnu=no ;;
3375 esac
3376 fi
3377 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3378 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3379 ;;
3380 esac
3381 fi
3382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3383 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3385
3386 if test $ac_compiler_gnu = yes; then
3387 GCC=yes
3388 else
3389 GCC=
3390 fi
3391 ac_test_CFLAGS=${CFLAGS+y}
3392 ac_save_CFLAGS=$CFLAGS
3393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3394 printf %s "checking whether $CC accepts -g... " >&6; }
3395 if test ${ac_cv_prog_cc_g+y}
3396 then :
3397 printf %s "(cached) " >&6
3398 else case e in #(
3399 e) ac_save_c_werror_flag=$ac_c_werror_flag
3400 ac_c_werror_flag=yes
3401 ac_cv_prog_cc_g=no
3402 CFLAGS="-g"
3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404 /* end confdefs.h. */
3405
3406 int
3407 main (void)
3408 {
3409
3410 ;
3411 return 0;
3412 }
3413 _ACEOF
3414 if ac_fn_c_try_compile "$LINENO"
3415 then :
3416 ac_cv_prog_cc_g=yes
3417 else case e in #(
3418 e) CFLAGS=""
3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h. */
3421
3422 int
3423 main (void)
3424 {
3425
3426 ;
3427 return 0;
3428 }
3429 _ACEOF
3430 if ac_fn_c_try_compile "$LINENO"
3431 then :
3432
3433 else case e in #(
3434 e) ac_c_werror_flag=$ac_save_c_werror_flag
3435 CFLAGS="-g"
3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 /* end confdefs.h. */
3438
3439 int
3440 main (void)
3441 {
3442
3443 ;
3444 return 0;
3445 }
3446 _ACEOF
3447 if ac_fn_c_try_compile "$LINENO"
3448 then :
3449 ac_cv_prog_cc_g=yes
3450 fi
3451 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3452 esac
3453 fi
3454 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3455 esac
3456 fi
3457 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3458 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3459 esac
3460 fi
3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3462 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3463 if test $ac_test_CFLAGS; then
3464 CFLAGS=$ac_save_CFLAGS
3465 elif test $ac_cv_prog_cc_g = yes; then
3466 if test "$GCC" = yes; then
3467 CFLAGS="-g -O2"
3468 else
3469 CFLAGS="-g"
3470 fi
3471 else
3472 if test "$GCC" = yes; then
3473 CFLAGS="-O2"
3474 else
3475 CFLAGS=
3476 fi
3477 fi
3478 ac_prog_cc_stdc=no
3479 if test x$ac_prog_cc_stdc = xno
3480 then :
3481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3482 printf %s "checking for $CC option to enable C11 features... " >&6; }
3483 if test ${ac_cv_prog_cc_c11+y}
3484 then :
3485 printf %s "(cached) " >&6
3486 else case e in #(
3487 e) ac_cv_prog_cc_c11=no
3488 ac_save_CC=$CC
3489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490 /* end confdefs.h. */
3491 $ac_c_conftest_c11_program
3492 _ACEOF
3493 for ac_arg in '' -std=gnu11
3494 do
3495 CC="$ac_save_CC $ac_arg"
3496 if ac_fn_c_try_compile "$LINENO"
3497 then :
3498 ac_cv_prog_cc_c11=$ac_arg
3499 fi
3500 rm -f core conftest.err conftest.$ac_objext conftest.beam
3501 test "x$ac_cv_prog_cc_c11" != "xno" && break
3502 done
3503 rm -f conftest.$ac_ext
3504 CC=$ac_save_CC ;;
3505 esac
3506 fi
3507
3508 if test "x$ac_cv_prog_cc_c11" = xno
3509 then :
3510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3511 printf "%s\n" "unsupported" >&6; }
3512 else case e in #(
3513 e) if test "x$ac_cv_prog_cc_c11" = x
3514 then :
3515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3516 printf "%s\n" "none needed" >&6; }
3517 else case e in #(
3518 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3519 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3520 CC="$CC $ac_cv_prog_cc_c11" ;;
3521 esac
3522 fi
3523 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3524 ac_prog_cc_stdc=c11 ;;
3525 esac
3526 fi
3527 fi
3528 if test x$ac_prog_cc_stdc = xno
3529 then :
3530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3531 printf %s "checking for $CC option to enable C99 features... " >&6; }
3532 if test ${ac_cv_prog_cc_c99+y}
3533 then :
3534 printf %s "(cached) " >&6
3535 else case e in #(
3536 e) ac_cv_prog_cc_c99=no
3537 ac_save_CC=$CC
3538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539 /* end confdefs.h. */
3540 $ac_c_conftest_c99_program
3541 _ACEOF
3542 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3543 do
3544 CC="$ac_save_CC $ac_arg"
3545 if ac_fn_c_try_compile "$LINENO"
3546 then :
3547 ac_cv_prog_cc_c99=$ac_arg
3548 fi
3549 rm -f core conftest.err conftest.$ac_objext conftest.beam
3550 test "x$ac_cv_prog_cc_c99" != "xno" && break
3551 done
3552 rm -f conftest.$ac_ext
3553 CC=$ac_save_CC ;;
3554 esac
3555 fi
3556
3557 if test "x$ac_cv_prog_cc_c99" = xno
3558 then :
3559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3560 printf "%s\n" "unsupported" >&6; }
3561 else case e in #(
3562 e) if test "x$ac_cv_prog_cc_c99" = x
3563 then :
3564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3565 printf "%s\n" "none needed" >&6; }
3566 else case e in #(
3567 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3568 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3569 CC="$CC $ac_cv_prog_cc_c99" ;;
3570 esac
3571 fi
3572 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3573 ac_prog_cc_stdc=c99 ;;
3574 esac
3575 fi
3576 fi
3577 if test x$ac_prog_cc_stdc = xno
3578 then :
3579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3580 printf %s "checking for $CC option to enable C89 features... " >&6; }
3581 if test ${ac_cv_prog_cc_c89+y}
3582 then :
3583 printf %s "(cached) " >&6
3584 else case e in #(
3585 e) ac_cv_prog_cc_c89=no
3586 ac_save_CC=$CC
3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588 /* end confdefs.h. */
3589 $ac_c_conftest_c89_program
3590 _ACEOF
3591 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3592 do
3593 CC="$ac_save_CC $ac_arg"
3594 if ac_fn_c_try_compile "$LINENO"
3595 then :
3596 ac_cv_prog_cc_c89=$ac_arg
3597 fi
3598 rm -f core conftest.err conftest.$ac_objext conftest.beam
3599 test "x$ac_cv_prog_cc_c89" != "xno" && break
3600 done
3601 rm -f conftest.$ac_ext
3602 CC=$ac_save_CC ;;
3603 esac
3604 fi
3605
3606 if test "x$ac_cv_prog_cc_c89" = xno
3607 then :
3608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3609 printf "%s\n" "unsupported" >&6; }
3610 else case e in #(
3611 e) if test "x$ac_cv_prog_cc_c89" = x
3612 then :
3613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3614 printf "%s\n" "none needed" >&6; }
3615 else case e in #(
3616 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3617 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3618 CC="$CC $ac_cv_prog_cc_c89" ;;
3619 esac
3620 fi
3621 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3622 ac_prog_cc_stdc=c89 ;;
3623 esac
3624 fi
3625 fi
3626
3627 ac_ext=c
3628 ac_cpp='$CPP $CPPFLAGS'
3629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3632
3633
3634 ac_ext=c
3635 ac_cpp='$CPP $CPPFLAGS'
3636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3640 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3641 if test ${am_cv_prog_cc_c_o+y}
3642 then :
3643 printf %s "(cached) " >&6
3644 else case e in #(
3645 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h. */
3647
3648 int
3649 main (void)
3650 {
3651
3652 ;
3653 return 0;
3654 }
3655 _ACEOF
3656 # Make sure it works both with $CC and with simple cc.
3657 # Following AC_PROG_CC_C_O, we do the test twice because some
3658 # compilers refuse to overwrite an existing .o file with -o,
3659 # though they will create one.
3660 am_cv_prog_cc_c_o=yes
3661 for am_i in 1 2; do
3662 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3663 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3664 ac_status=$?
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } \
3667 && test -f conftest2.$ac_objext; then
3668 : OK
3669 else
3670 am_cv_prog_cc_c_o=no
3671 break
3672 fi
3673 done
3674 # aligned with autoconf, so not including core; see bug#72225.
3675 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
3676 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
3677 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
3678 unset am_i ;;
3679 esac
3680 fi
3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3682 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3683 if test "$am_cv_prog_cc_c_o" != yes; then
3684 # Losing compiler, so override with the script.
3685 # FIXME: It is wrong to rewrite CC.
3686 # But if we don't then we get into trouble of one sort or another.
3687 # A longer-term fix would be to have automake use am__CC in this case,
3688 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3689 CC="$am_aux_dir/compile $CC"
3690 fi
3691 ac_ext=c
3692 ac_cpp='$CPP $CPPFLAGS'
3693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3696
3697
3698
3699 ac_header= ac_cache=
3700 for ac_item in $ac_header_c_list
3701 do
3702 if test $ac_cache; then
3703 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3704 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3705 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3706 fi
3707 ac_header= ac_cache=
3708 elif test $ac_header; then
3709 ac_cache=$ac_item
3710 else
3711 ac_header=$ac_item
3712 fi
3713 done
3714
3715
3716
3717
3718
3719
3720
3721
3722 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3723 then :
3724
3725 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3726
3727 fi
3728
3729
3730
3731
3732
3733
3734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3735 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3736 if test ${ac_cv_safe_to_define___extensions__+y}
3737 then :
3738 printf %s "(cached) " >&6
3739 else case e in #(
3740 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h. */
3742
3743 # define __EXTENSIONS__ 1
3744 $ac_includes_default
3745 int
3746 main (void)
3747 {
3748
3749 ;
3750 return 0;
3751 }
3752 _ACEOF
3753 if ac_fn_c_try_compile "$LINENO"
3754 then :
3755 ac_cv_safe_to_define___extensions__=yes
3756 else case e in #(
3757 e) ac_cv_safe_to_define___extensions__=no ;;
3758 esac
3759 fi
3760 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3761 esac
3762 fi
3763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3764 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3765
3766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3767 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3768 if test ${ac_cv_should_define__xopen_source+y}
3769 then :
3770 printf %s "(cached) " >&6
3771 else case e in #(
3772 e) ac_cv_should_define__xopen_source=no
3773 if test $ac_cv_header_wchar_h = yes
3774 then :
3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h. */
3777
3778 #include <wchar.h>
3779 mbstate_t x;
3780 int
3781 main (void)
3782 {
3783
3784 ;
3785 return 0;
3786 }
3787 _ACEOF
3788 if ac_fn_c_try_compile "$LINENO"
3789 then :
3790
3791 else case e in #(
3792 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h. */
3794
3795 #define _XOPEN_SOURCE 500
3796 #include <wchar.h>
3797 mbstate_t x;
3798 int
3799 main (void)
3800 {
3801
3802 ;
3803 return 0;
3804 }
3805 _ACEOF
3806 if ac_fn_c_try_compile "$LINENO"
3807 then :
3808 ac_cv_should_define__xopen_source=yes
3809 fi
3810 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3811 esac
3812 fi
3813 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3814 fi ;;
3815 esac
3816 fi
3817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3818 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3819
3820 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3821
3822 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3823
3824 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3825
3826 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3827
3828 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3829
3830 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3831
3832 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3833
3834 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3835
3836 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3837
3838 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3839
3840 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
3841
3842 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3843
3844 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3845
3846 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3847
3848 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3849
3850 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3851
3852 if test $ac_cv_header_minix_config_h = yes
3853 then :
3854 MINIX=yes
3855 printf "%s\n" "#define _MINIX 1" >>confdefs.h
3856
3857 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3858
3859 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3860
3861 else case e in #(
3862 e) MINIX= ;;
3863 esac
3864 fi
3865 if test $ac_cv_safe_to_define___extensions__ = yes
3866 then :
3867 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3868
3869 fi
3870 if test $ac_cv_should_define__xopen_source = yes
3871 then :
3872 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3873
3874 fi
3875
3876
3877 # Initialize Automake
3878 am__api_version='1.18'
3879
3880
3881 # Find a good install program. We prefer a C program (faster),
3882 # so one script is as good as another. But avoid the broken or
3883 # incompatible versions:
3884 # SysV /etc/install, /usr/sbin/install
3885 # SunOS /usr/etc/install
3886 # IRIX /sbin/install
3887 # AIX /bin/install
3888 # AmigaOS /C/install, which installs bootblocks on floppy discs
3889 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3890 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3891 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3892 # OS/2's system install, which has a completely different semantic
3893 # ./install, which can be erroneously created by make from ./install.sh.
3894 # Reject install programs that cannot install multiple files.
3895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3896 printf %s "checking for a BSD-compatible install... " >&6; }
3897 if test -z "$INSTALL"; then
3898 if test ${ac_cv_path_install+y}
3899 then :
3900 printf %s "(cached) " >&6
3901 else case e in #(
3902 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH
3904 do
3905 IFS=$as_save_IFS
3906 case $as_dir in #(((
3907 '') as_dir=./ ;;
3908 */) ;;
3909 *) as_dir=$as_dir/ ;;
3910 esac
3911 # Account for fact that we put trailing slashes in our PATH walk.
3912 case $as_dir in #((
3913 ./ | /[cC]/* | \
3914 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3915 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3916 /usr/ucb/* ) ;;
3917 *)
3918 # OSF1 and SCO ODT 3.0 have their own names for install.
3919 # Don't use installbsd from OSF since it installs stuff as root
3920 # by default.
3921 for ac_prog in ginstall scoinst install; do
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3924 if test $ac_prog = install &&
3925 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3926 # AIX install. It has an incompatible calling convention.
3927 :
3928 elif test $ac_prog = install &&
3929 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3930 # program-specific install script used by HP pwplus--don't use.
3931 :
3932 else
3933 rm -rf conftest.one conftest.two conftest.dir
3934 echo one > conftest.one
3935 echo two > conftest.two
3936 mkdir conftest.dir
3937 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3938 test -s conftest.one && test -s conftest.two &&
3939 test -s conftest.dir/conftest.one &&
3940 test -s conftest.dir/conftest.two
3941 then
3942 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3943 break 3
3944 fi
3945 fi
3946 fi
3947 done
3948 done
3949 ;;
3950 esac
3951
3952 done
3953 IFS=$as_save_IFS
3954
3955 rm -rf conftest.one conftest.two conftest.dir
3956 ;;
3957 esac
3958 fi
3959 if test ${ac_cv_path_install+y}; then
3960 INSTALL=$ac_cv_path_install
3961 else
3962 # As a last resort, use the slow shell script. Don't cache a
3963 # value for INSTALL within a source directory, because that will
3964 # break other packages using the cache if that directory is
3965 # removed, or if the value is a relative name.
3966 INSTALL=$ac_install_sh
3967 fi
3968 fi
3969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3970 printf "%s\n" "$INSTALL" >&6; }
3971
3972 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3973 # It thinks the first close brace ends the variable substitution.
3974 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3975
3976 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3977
3978 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3979
3980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3981 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3982 if test ${am_cv_sleep_fractional_seconds+y}
3983 then :
3984 printf %s "(cached) " >&6
3985 else case e in #(
3986 e) if sleep 0.001 2>/dev/null
3987 then :
3988 am_cv_sleep_fractional_seconds=yes
3989 else case e in #(
3990 e) am_cv_sleep_fractional_seconds=no ;;
3991 esac
3992 fi
3993 ;;
3994 esac
3995 fi
3996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3997 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3998
3999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
4000 printf %s "checking filesystem timestamp resolution... " >&6; }
4001 if test ${am_cv_filesystem_timestamp_resolution+y}
4002 then :
4003 printf %s "(cached) " >&6
4004 else case e in #(
4005 e) # Default to the worst case.
4006 am_cv_filesystem_timestamp_resolution=2
4007
4008 # Only try to go finer than 1 sec if sleep can do it.
4009 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
4010 # - 1 sec is not much of a win compared to 2 sec, and
4011 # - it takes 2 seconds to perform the test whether 1 sec works.
4012 #
4013 # Instead, just use the default 2s on platforms that have 1s resolution,
4014 # accept the extra 1s delay when using $sleep in the Automake tests, in
4015 # exchange for not incurring the 2s delay for running the test for all
4016 # packages.
4017 #
4018 am_try_resolutions=
4019 if test "$am_cv_sleep_fractional_seconds" = yes; then
4020 # Even a millisecond often causes a bunch of false positives,
4021 # so just try a hundredth of a second. The time saved between .001 and
4022 # .01 is not terribly consequential.
4023 am_try_resolutions="0.01 0.1 $am_try_resolutions"
4024 fi
4025
4026 # In order to catch current-generation FAT out, we must *modify* files
4027 # that already exist; the *creation* timestamp is finer. Use names
4028 # that make ls -t sort them differently when they have equal
4029 # timestamps than when they have distinct timestamps, keeping
4030 # in mind that ls -t prints the *newest* file first.
4031 rm -f conftest.ts?
4032 : > conftest.ts1
4033 : > conftest.ts2
4034 : > conftest.ts3
4035
4036 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
4037 # clobber the current shell's arguments. (Outer-level square brackets
4038 # are removed by m4; they're present so that m4 does not expand
4039 # <dollar><star>; be careful, easy to get confused.)
4040 if (
4041 set X `ls -t conftest.ts[12]` &&
4042 {
4043 test "$*" != "X conftest.ts1 conftest.ts2" ||
4044 test "$*" != "X conftest.ts2 conftest.ts1";
4045 }
4046 ); then :; else
4047 # If neither matched, then we have a broken ls. This can happen
4048 # if, for instance, CONFIG_SHELL is bash and it inherits a
4049 # broken ls alias from the environment. This has actually
4050 # happened. Such a system could not be considered "sane".
4051 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
4052 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4053 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4054 as_fn_error $? "ls -t produces unexpected output.
4055 Make sure there is not a broken ls alias in your environment.
4056 See 'config.log' for more details" "$LINENO" 5; }
4057 fi
4058
4059 for am_try_res in $am_try_resolutions; do
4060 # Any one fine-grained sleep might happen to cross the boundary
4061 # between two values of a coarser actual resolution, but if we do
4062 # two fine-grained sleeps in a row, at least one of them will fall
4063 # entirely within a coarse interval.
4064 echo alpha > conftest.ts1
4065 sleep $am_try_res
4066 echo beta > conftest.ts2
4067 sleep $am_try_res
4068 echo gamma > conftest.ts3
4069
4070 # We assume that 'ls -t' will make use of high-resolution
4071 # timestamps if the operating system supports them at all.
4072 if (set X `ls -t conftest.ts?` &&
4073 test "$2" = conftest.ts3 &&
4074 test "$3" = conftest.ts2 &&
4075 test "$4" = conftest.ts1); then
4076 #
4077 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
4078 # because we don't need to test make.
4079 make_ok=true
4080 if test $am_try_res != 1; then
4081 # But if we've succeeded so far with a subsecond resolution, we
4082 # have one more thing to check: make. It can happen that
4083 # everything else supports the subsecond mtimes, but make doesn't;
4084 # notably on macOS, which ships make 3.81 from 2006 (the last one
4085 # released under GPLv2). https://bugs.gnu.org/68808
4086 #
4087 # We test $MAKE if it is defined in the environment, else "make".
4088 # It might get overridden later, but our hope is that in practice
4089 # it does not matter: it is the system "make" which is (by far)
4090 # the most likely to be broken, whereas if the user overrides it,
4091 # probably they did so with a better, or at least not worse, make.
4092 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
4093 #
4094 # Create a Makefile (real tab character here):
4095 rm -f conftest.mk
4096 echo 'conftest.ts1: conftest.ts2' >conftest.mk
4097 echo ' touch conftest.ts2' >>conftest.mk
4098 #
4099 # Now, running
4100 # touch conftest.ts1; touch conftest.ts2; make
4101 # should touch ts1 because ts2 is newer. This could happen by luck,
4102 # but most often, it will fail if make's support is insufficient. So
4103 # test for several consecutive successes.
4104 #
4105 # (We reuse conftest.ts[12] because we still want to modify existing
4106 # files, not create new ones, per above.)
4107 n=0
4108 make=${MAKE-make}
4109 until test $n -eq 3; do
4110 echo one > conftest.ts1
4111 sleep $am_try_res
4112 echo two > conftest.ts2 # ts2 should now be newer than ts1
4113 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
4114 make_ok=false
4115 break # out of $n loop
4116 fi
4117 n=`expr $n + 1`
4118 done
4119 fi
4120 #
4121 if $make_ok; then
4122 # Everything we know to check worked out, so call this resolution good.
4123 am_cv_filesystem_timestamp_resolution=$am_try_res
4124 break # out of $am_try_res loop
4125 fi
4126 # Otherwise, we'll go on to check the next resolution.
4127 fi
4128 done
4129 rm -f conftest.ts?
4130 # (end _am_filesystem_timestamp_resolution)
4131 ;;
4132 esac
4133 fi
4134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
4135 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
4136
4137 # This check should not be cached, as it may vary across builds of
4138 # different projects.
4139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4140 printf %s "checking whether build environment is sane... " >&6; }
4141 # Reject unsafe characters in $srcdir or the absolute working directory
4142 # name. Accept space and tab only in the latter.
4143 am_lf='
4144 '
4145 case `pwd` in
4146 *[\\\"\#\$\&\'\`$am_lf]*)
4147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4148 printf "%s\n" "no" >&6; }
4149 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4150 esac
4151 case $srcdir in
4152 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4154 printf "%s\n" "no" >&6; }
4155 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4156 esac
4157
4158 # Do 'set' in a subshell so we don't clobber the current shell's
4159 # arguments. Must try -L first in case configure is actually a
4160 # symlink; some systems play weird games with the mod time of symlinks
4161 # (eg FreeBSD returns the mod time of the symlink's containing
4162 # directory).
4163 am_build_env_is_sane=no
4164 am_has_slept=no
4165 rm -f conftest.file
4166 for am_try in 1 2; do
4167 echo "timestamp, slept: $am_has_slept" > conftest.file
4168 if (
4169 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4170 if test "$*" = "X"; then
4171 # -L didn't work.
4172 set X `ls -t "$srcdir/configure" conftest.file`
4173 fi
4174 test "$2" = conftest.file
4175 ); then
4176 am_build_env_is_sane=yes
4177 break
4178 fi
4179 # Just in case.
4180 sleep "$am_cv_filesystem_timestamp_resolution"
4181 am_has_slept=yes
4182 done
4183
4184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
4185 printf "%s\n" "$am_build_env_is_sane" >&6; }
4186 if test "$am_build_env_is_sane" = no; then
4187 as_fn_error $? "newly created file is older than distributed files!
4188 Check your system clock" "$LINENO" 5
4189 fi
4190
4191 # If we didn't sleep, we still need to ensure time stamps of config.status and
4192 # generated files are strictly newer.
4193 am_sleep_pid=
4194 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
4195 then :
4196
4197 else case e in #(
4198 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
4199 am_sleep_pid=$!
4200 ;;
4201 esac
4202 fi
4203
4204 rm -f conftest.file
4205
4206 test "$program_prefix" != NONE &&
4207 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4208 # Use a double $ so make ignores it.
4209 test "$program_suffix" != NONE &&
4210 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4211 # Double any \ or $.
4212 # By default was 's,x,x', remove it if useless.
4213 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4214 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4215
4216
4217 if test x"${MISSING+set}" != xset; then
4218 MISSING="\${SHELL} '$am_aux_dir/missing'"
4219 fi
4220 # Use eval to expand $SHELL
4221 if eval "$MISSING --is-lightweight"; then
4222 am_missing_run="$MISSING "
4223 else
4224 am_missing_run=
4225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4226 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4227 fi
4228
4229 if test x"${install_sh+set}" != xset; then
4230 case $am_aux_dir in
4231 *\ * | *\ *)
4232 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4233 *)
4234 install_sh="\${SHELL} $am_aux_dir/install-sh"
4235 esac
4236 fi
4237
4238 # Installed binaries are usually stripped using 'strip' when the user
4239 # run "make install-strip". However 'strip' might not be the right
4240 # tool to use in cross-compilation environments, therefore Automake
4241 # will honor the 'STRIP' environment variable to overrule this program.
4242 if test "$cross_compiling" != no; then
4243 if test -n "$ac_tool_prefix"; then
4244 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4245 set dummy ${ac_tool_prefix}strip; ac_word=$2
4246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4247 printf %s "checking for $ac_word... " >&6; }
4248 if test ${ac_cv_prog_STRIP+y}
4249 then :
4250 printf %s "(cached) " >&6
4251 else case e in #(
4252 e) if test -n "$STRIP"; then
4253 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4254 else
4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 for as_dir in $PATH
4257 do
4258 IFS=$as_save_IFS
4259 case $as_dir in #(((
4260 '') as_dir=./ ;;
4261 */) ;;
4262 *) as_dir=$as_dir/ ;;
4263 esac
4264 for ac_exec_ext in '' $ac_executable_extensions; do
4265 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4266 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4268 break 2
4269 fi
4270 done
4271 done
4272 IFS=$as_save_IFS
4273
4274 fi ;;
4275 esac
4276 fi
4277 STRIP=$ac_cv_prog_STRIP
4278 if test -n "$STRIP"; then
4279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4280 printf "%s\n" "$STRIP" >&6; }
4281 else
4282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4283 printf "%s\n" "no" >&6; }
4284 fi
4285
4286
4287 fi
4288 if test -z "$ac_cv_prog_STRIP"; then
4289 ac_ct_STRIP=$STRIP
4290 # Extract the first word of "strip", so it can be a program name with args.
4291 set dummy strip; ac_word=$2
4292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4293 printf %s "checking for $ac_word... " >&6; }
4294 if test ${ac_cv_prog_ac_ct_STRIP+y}
4295 then :
4296 printf %s "(cached) " >&6
4297 else case e in #(
4298 e) if test -n "$ac_ct_STRIP"; then
4299 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4300 else
4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 for as_dir in $PATH
4303 do
4304 IFS=$as_save_IFS
4305 case $as_dir in #(((
4306 '') as_dir=./ ;;
4307 */) ;;
4308 *) as_dir=$as_dir/ ;;
4309 esac
4310 for ac_exec_ext in '' $ac_executable_extensions; do
4311 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4312 ac_cv_prog_ac_ct_STRIP="strip"
4313 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4314 break 2
4315 fi
4316 done
4317 done
4318 IFS=$as_save_IFS
4319
4320 fi ;;
4321 esac
4322 fi
4323 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4324 if test -n "$ac_ct_STRIP"; then
4325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4326 printf "%s\n" "$ac_ct_STRIP" >&6; }
4327 else
4328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4329 printf "%s\n" "no" >&6; }
4330 fi
4331
4332 if test "x$ac_ct_STRIP" = x; then
4333 STRIP=":"
4334 else
4335 case $cross_compiling:$ac_tool_warned in
4336 yes:)
4337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4338 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4339 ac_tool_warned=yes ;;
4340 esac
4341 STRIP=$ac_ct_STRIP
4342 fi
4343 else
4344 STRIP="$ac_cv_prog_STRIP"
4345 fi
4346
4347 fi
4348 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4349
4350
4351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4352 printf %s "checking for a race-free mkdir -p... " >&6; }
4353 if test -z "$MKDIR_P"; then
4354 if test ${ac_cv_path_mkdir+y}
4355 then :
4356 printf %s "(cached) " >&6
4357 else case e in #(
4358 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4360 do
4361 IFS=$as_save_IFS
4362 case $as_dir in #(((
4363 '') as_dir=./ ;;
4364 */) ;;
4365 *) as_dir=$as_dir/ ;;
4366 esac
4367 for ac_prog in mkdir gmkdir; do
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4370 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4371 'mkdir ('*'coreutils) '* | \
4372 *'BusyBox '* | \
4373 'mkdir (fileutils) '4.1*)
4374 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4375 break 3;;
4376 esac
4377 done
4378 done
4379 done
4380 IFS=$as_save_IFS
4381 ;;
4382 esac
4383 fi
4384
4385 test -d ./--version && rmdir ./--version
4386 if test ${ac_cv_path_mkdir+y}; then
4387 MKDIR_P="$ac_cv_path_mkdir -p"
4388 else
4389 # As a last resort, use plain mkdir -p,
4390 # in the hope it doesn't have the bugs of ancient mkdir.
4391 MKDIR_P='mkdir -p'
4392 fi
4393 fi
4394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4395 printf "%s\n" "$MKDIR_P" >&6; }
4396
4397 for ac_prog in gawk mawk nawk awk
4398 do
4399 # Extract the first word of "$ac_prog", so it can be a program name with args.
4400 set dummy $ac_prog; ac_word=$2
4401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4402 printf %s "checking for $ac_word... " >&6; }
4403 if test ${ac_cv_prog_AWK+y}
4404 then :
4405 printf %s "(cached) " >&6
4406 else case e in #(
4407 e) if test -n "$AWK"; then
4408 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4409 else
4410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411 for as_dir in $PATH
4412 do
4413 IFS=$as_save_IFS
4414 case $as_dir in #(((
4415 '') as_dir=./ ;;
4416 */) ;;
4417 *) as_dir=$as_dir/ ;;
4418 esac
4419 for ac_exec_ext in '' $ac_executable_extensions; do
4420 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4421 ac_cv_prog_AWK="$ac_prog"
4422 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4423 break 2
4424 fi
4425 done
4426 done
4427 IFS=$as_save_IFS
4428
4429 fi ;;
4430 esac
4431 fi
4432 AWK=$ac_cv_prog_AWK
4433 if test -n "$AWK"; then
4434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4435 printf "%s\n" "$AWK" >&6; }
4436 else
4437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4438 printf "%s\n" "no" >&6; }
4439 fi
4440
4441
4442 test -n "$AWK" && break
4443 done
4444
4445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4446 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4447 set x ${MAKE-make}
4448 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4449 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4450 then :
4451 printf %s "(cached) " >&6
4452 else case e in #(
4453 e) cat >conftest.make <<\_ACEOF
4454 SHELL = /bin/sh
4455 all:
4456 @echo '@@@%%%=$(MAKE)=@@@%%%'
4457 _ACEOF
4458 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4459 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4460 *@@@%%%=?*=@@@%%%*)
4461 eval ac_cv_prog_make_${ac_make}_set=yes;;
4462 *)
4463 eval ac_cv_prog_make_${ac_make}_set=no;;
4464 esac
4465 rm -f conftest.make ;;
4466 esac
4467 fi
4468 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4470 printf "%s\n" "yes" >&6; }
4471 SET_MAKE=
4472 else
4473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474 printf "%s\n" "no" >&6; }
4475 SET_MAKE="MAKE=${MAKE-make}"
4476 fi
4477
4478 rm -rf .tst 2>/dev/null
4479 mkdir .tst 2>/dev/null
4480 if test -d .tst; then
4481 am__leading_dot=.
4482 else
4483 am__leading_dot=_
4484 fi
4485 rmdir .tst 2>/dev/null
4486
4487 DEPDIR="${am__leading_dot}deps"
4488
4489 ac_config_commands="$ac_config_commands depfiles"
4490
4491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4492 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4493 cat > confinc.mk << 'END'
4494 am__doit:
4495 @echo this is the am__doit target >confinc.out
4496 .PHONY: am__doit
4497 END
4498 am__include="#"
4499 am__quote=
4500 # BSD make does it like this.
4501 echo '.include "confinc.mk" # ignored' > confmf.BSD
4502 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4503 echo 'include confinc.mk # ignored' > confmf.GNU
4504 _am_result=no
4505 for s in GNU BSD; do
4506 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4507 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4508 ac_status=$?
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }
4511 case $?:`cat confinc.out 2>/dev/null` in #(
4512 '0:this is the am__doit target') :
4513 case $s in #(
4514 BSD) :
4515 am__include='.include' am__quote='"' ;; #(
4516 *) :
4517 am__include='include' am__quote='' ;;
4518 esac ;; #(
4519 *) :
4520 ;;
4521 esac
4522 if test "$am__include" != "#"; then
4523 _am_result="yes ($s style)"
4524 break
4525 fi
4526 done
4527 rm -f confinc.* confmf.*
4528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4529 printf "%s\n" "${_am_result}" >&6; }
4530
4531 # Check whether --enable-dependency-tracking was given.
4532 if test ${enable_dependency_tracking+y}
4533 then :
4534 enableval=$enable_dependency_tracking;
4535 fi
4536
4537 if test "x$enable_dependency_tracking" != xno; then
4538 am_depcomp="$ac_aux_dir/depcomp"
4539 AMDEPBACKSLASH='\'
4540 am__nodep='_no'
4541 fi
4542 if test "x$enable_dependency_tracking" != xno; then
4543 AMDEP_TRUE=
4544 AMDEP_FALSE='#'
4545 else
4546 AMDEP_TRUE='#'
4547 AMDEP_FALSE=
4548 fi
4549
4550
4551 AM_DEFAULT_VERBOSITY=1
4552 # Check whether --enable-silent-rules was given.
4553 if test ${enable_silent_rules+y}
4554 then :
4555 enableval=$enable_silent_rules;
4556 fi
4557
4558 am_make=${MAKE-make}
4559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4560 printf %s "checking whether $am_make supports nested variables... " >&6; }
4561 if test ${am_cv_make_support_nested_variables+y}
4562 then :
4563 printf %s "(cached) " >&6
4564 else case e in #(
4565 e) if printf "%s\n" 'TRUE=$(BAR$(V))
4566 BAR0=false
4567 BAR1=true
4568 V=1
4569 am__doit:
4570 @$(TRUE)
4571 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4572 am_cv_make_support_nested_variables=yes
4573 else
4574 am_cv_make_support_nested_variables=no
4575 fi ;;
4576 esac
4577 fi
4578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4579 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4580 AM_BACKSLASH='\'
4581
4582 am__rm_f_notfound=
4583 if (rm -f && rm -fr && rm -rf) 2>/dev/null
4584 then :
4585
4586 else case e in #(
4587 e) am__rm_f_notfound='""' ;;
4588 esac
4589 fi
4590
4591
4592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
4593 printf %s "checking xargs -n works... " >&6; }
4594 if test ${am_cv_xargs_n_works+y}
4595 then :
4596 printf %s "(cached) " >&6
4597 else case e in #(
4598 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
4599 3"
4600 then :
4601 am_cv_xargs_n_works=yes
4602 else case e in #(
4603 e) am_cv_xargs_n_works=no ;;
4604 esac
4605 fi ;;
4606 esac
4607 fi
4608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
4609 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
4610 if test "$am_cv_xargs_n_works" = yes
4611 then :
4612 am__xargs_n='xargs -n'
4613 else case e in #(
4614 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
4615 ;;
4616 esac
4617 fi
4618
4619 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4620 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4621 # is not polluted with repeated "-I."
4622 am__isrc=' -I$(srcdir)'
4623 # test to see if srcdir already configured
4624 if test -f $srcdir/config.status; then
4625 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4626 fi
4627 fi
4628
4629 # test whether we have cygpath
4630 if test -z "$CYGPATH_W"; then
4631 if (cygpath --version) >/dev/null 2>/dev/null; then
4632 CYGPATH_W='cygpath -w'
4633 else
4634 CYGPATH_W=echo
4635 fi
4636 fi
4637
4638
4639 # Define the identity of the package.
4640 PACKAGE='xkbcomp'
4641 VERSION='1.5.0'
4642
4643
4644 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4645
4646
4647 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4648
4649 # Some tools Automake needs.
4650
4651 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4652
4653
4654 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4655
4656
4657 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4658
4659
4660 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4661
4662
4663 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4664
4665 # For better backward compatibility. To be removed once Automake 1.9.x
4666 # dies out for good. For more background, see:
4667 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4668 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4669 mkdir_p='$(MKDIR_P)'
4670
4671 # We need awk for the "check" target (and possibly the TAP driver). The
4672 # system "awk" is bad on some platforms.
4673 # Always define AMTAR for backward compatibility. Yes, it's still used
4674 # in the wild :-( We should find a proper way to deprecate it ...
4675 AMTAR='$${TAR-tar}'
4676
4677
4678 # We'll loop over all known methods to create a tar archive until one works.
4679 _am_tools='gnutar plaintar pax cpio none'
4680
4681 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
4682 # There is notably a 21 bits limit for the UID and the GID. In fact,
4683 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
4684 # and bug#13588).
4685 am_max_uid=2097151 # 2^21 - 1
4686 am_max_gid=$am_max_uid
4687 # The $UID and $GID variables are not portable, so we need to resort
4688 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
4689 # below are definitely unexpected, so allow the users to see them
4690 # (that is, avoid stderr redirection).
4691 am_uid=`id -u || echo unknown`
4692 am_gid=`id -g || echo unknown`
4693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
4694 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
4695 if test x$am_uid = xunknown; then
4696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
4697 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
4698 elif test $am_uid -le $am_max_uid; then
4699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4700 printf "%s\n" "yes" >&6; }
4701 else
4702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4703 printf "%s\n" "no" >&6; }
4704 _am_tools=none
4705 fi
4706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
4707 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
4708 if test x$gm_gid = xunknown; then
4709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
4710 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
4711 elif test $am_gid -le $am_max_gid; then
4712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4713 printf "%s\n" "yes" >&6; }
4714 else
4715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 printf "%s\n" "no" >&6; }
4717 _am_tools=none
4718 fi
4719
4720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4721 printf %s "checking how to create a ustar tar archive... " >&6; }
4722
4723 # Go ahead even if we have the value already cached. We do so because we
4724 # need to set the values for the 'am__tar' and 'am__untar' variables.
4725 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4726
4727 for _am_tool in $_am_tools; do
4728 case $_am_tool in
4729 gnutar)
4730 for _am_tar in tar gnutar gtar; do
4731 { echo "$as_me:$LINENO: $_am_tar --version" >&5
4732 ($_am_tar --version) >&5 2>&5
4733 ac_status=$?
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } && break
4736 done
4737 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4738 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4739 am__untar="$_am_tar -xf -"
4740 ;;
4741 plaintar)
4742 # Must skip GNU tar: if it does not support --format= it doesn't create
4743 # ustar tarball either.
4744 (tar --version) >/dev/null 2>&1 && continue
4745 am__tar='tar chf - "$$tardir"'
4746 am__tar_='tar chf - "$tardir"'
4747 am__untar='tar xf -'
4748 ;;
4749 pax)
4750 am__tar='pax -L -x ustar -w "$$tardir"'
4751 am__tar_='pax -L -x ustar -w "$tardir"'
4752 am__untar='pax -r'
4753 ;;
4754 cpio)
4755 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4756 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4757 am__untar='cpio -i -H ustar -d'
4758 ;;
4759 none)
4760 am__tar=false
4761 am__tar_=false
4762 am__untar=false
4763 ;;
4764 esac
4765
4766 # If the value was cached, stop now. We just wanted to have am__tar
4767 # and am__untar set.
4768 test -n "${am_cv_prog_tar_ustar}" && break
4769
4770 # tar/untar a dummy directory, and stop if the command works.
4771 rm -rf conftest.dir
4772 mkdir conftest.dir
4773 echo GrepMe > conftest.dir/file
4774 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4775 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4776 ac_status=$?
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }
4779 rm -rf conftest.dir
4780 if test -s conftest.tar; then
4781 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4782 ($am__untar <conftest.tar) >&5 2>&5
4783 ac_status=$?
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); }
4786 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4787 (cat conftest.dir/file) >&5 2>&5
4788 ac_status=$?
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }
4791 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4792 fi
4793 done
4794 rm -rf conftest.dir
4795
4796 if test ${am_cv_prog_tar_ustar+y}
4797 then :
4798 printf %s "(cached) " >&6
4799 else case e in #(
4800 e) am_cv_prog_tar_ustar=$_am_tool ;;
4801 esac
4802 fi
4803
4804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4805 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
4806
4807
4808
4809
4810
4811 depcc="$CC" am_compiler_list=
4812
4813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4814 printf %s "checking dependency style of $depcc... " >&6; }
4815 if test ${am_cv_CC_dependencies_compiler_type+y}
4816 then :
4817 printf %s "(cached) " >&6
4818 else case e in #(
4819 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4820 # We make a subdir and do the tests there. Otherwise we can end up
4821 # making bogus files that we don't know about and never remove. For
4822 # instance it was reported that on HP-UX the gcc test will end up
4823 # making a dummy file named 'D' -- because '-MD' means "put the output
4824 # in D".
4825 rm -rf conftest.dir
4826 mkdir conftest.dir
4827 # Copy depcomp to subdir because otherwise we won't find it if we're
4828 # using a relative directory.
4829 cp "$am_depcomp" conftest.dir
4830 cd conftest.dir
4831 # We will build objects and dependencies in a subdirectory because
4832 # it helps to detect inapplicable dependency modes. For instance
4833 # both Tru64's cc and ICC support -MD to output dependencies as a
4834 # side effect of compilation, but ICC will put the dependencies in
4835 # the current directory while Tru64 will put them in the object
4836 # directory.
4837 mkdir sub
4838
4839 am_cv_CC_dependencies_compiler_type=none
4840 if test "$am_compiler_list" = ""; then
4841 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4842 fi
4843 am__universal=false
4844 case " $depcc " in #(
4845 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4846 esac
4847
4848 for depmode in $am_compiler_list; do
4849 # Setup a source with many dependencies, because some compilers
4850 # like to wrap large dependency lists on column 80 (with \), and
4851 # we should not choose a depcomp mode which is confused by this.
4852 #
4853 # We need to recreate these files for each test, as the compiler may
4854 # overwrite some of them when testing with obscure command lines.
4855 # This happens at least with the AIX C compiler.
4856 : > sub/conftest.c
4857 for i in 1 2 3 4 5 6; do
4858 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4859 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4860 # Solaris 10 /bin/sh.
4861 echo '/* dummy */' > sub/conftst$i.h
4862 done
4863 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4864
4865 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4866 # mode. It turns out that the SunPro C++ compiler does not properly
4867 # handle '-M -o', and we need to detect this. Also, some Intel
4868 # versions had trouble with output in subdirs.
4869 am__obj=sub/conftest.${OBJEXT-o}
4870 am__minus_obj="-o $am__obj"
4871 case $depmode in
4872 gcc)
4873 # This depmode causes a compiler race in universal mode.
4874 test "$am__universal" = false || continue
4875 ;;
4876 nosideeffect)
4877 # After this tag, mechanisms are not by side-effect, so they'll
4878 # only be used when explicitly requested.
4879 if test "x$enable_dependency_tracking" = xyes; then
4880 continue
4881 else
4882 break
4883 fi
4884 ;;
4885 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4886 # This compiler won't grok '-c -o', but also, the minuso test has
4887 # not run yet. These depmodes are late enough in the game, and
4888 # so weak that their functioning should not be impacted.
4889 am__obj=conftest.${OBJEXT-o}
4890 am__minus_obj=
4891 ;;
4892 none) break ;;
4893 esac
4894 if depmode=$depmode \
4895 source=sub/conftest.c object=$am__obj \
4896 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4897 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4898 >/dev/null 2>conftest.err &&
4899 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4900 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4901 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4902 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4903 # icc doesn't choke on unknown options, it will just issue warnings
4904 # or remarks (even with -Werror). So we grep stderr for any message
4905 # that says an option was ignored or not supported.
4906 # When given -MP, icc 7.0 and 7.1 complain thus:
4907 # icc: Command line warning: ignoring option '-M'; no argument required
4908 # The diagnosis changed in icc 8.0:
4909 # icc: Command line remark: option '-MP' not supported
4910 if (grep 'ignoring option' conftest.err ||
4911 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4912 am_cv_CC_dependencies_compiler_type=$depmode
4913 break
4914 fi
4915 fi
4916 done
4917
4918 cd ..
4919 rm -rf conftest.dir
4920 else
4921 am_cv_CC_dependencies_compiler_type=none
4922 fi
4923 ;;
4924 esac
4925 fi
4926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4927 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4928 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4929
4930 if
4931 test "x$enable_dependency_tracking" != xno \
4932 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4933 am__fastdepCC_TRUE=
4934 am__fastdepCC_FALSE='#'
4935 else
4936 am__fastdepCC_TRUE='#'
4937 am__fastdepCC_FALSE=
4938 fi
4939
4940
4941 # Variables for tags utilities; see am/tags.am
4942 if test -z "$CTAGS"; then
4943 CTAGS=ctags
4944 fi
4945
4946 if test -z "$ETAGS"; then
4947 ETAGS=etags
4948 fi
4949
4950 if test -z "$CSCOPE"; then
4951 CSCOPE=cscope
4952 fi
4953
4954
4955
4956
4957
4958
4959
4960
4961 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4974 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4975 if test ${ac_cv_c_undeclared_builtin_options+y}
4976 then :
4977 printf %s "(cached) " >&6
4978 else case e in #(
4979 e) ac_save_CFLAGS=$CFLAGS
4980 ac_cv_c_undeclared_builtin_options='cannot detect'
4981 for ac_arg in '' -fno-builtin; do
4982 CFLAGS="$ac_save_CFLAGS $ac_arg"
4983 # This test program should *not* compile successfully.
4984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985 /* end confdefs.h. */
4986
4987 int
4988 main (void)
4989 {
4990 (void) strchr;
4991 ;
4992 return 0;
4993 }
4994 _ACEOF
4995 if ac_fn_c_try_compile "$LINENO"
4996 then :
4997
4998 else case e in #(
4999 e) # This test program should compile successfully.
5000 # No library function is consistently available on
5001 # freestanding implementations, so test against a dummy
5002 # declaration. Include always-available headers on the
5003 # off chance that they somehow elicit warnings.
5004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005 /* end confdefs.h. */
5006 #include <float.h>
5007 #include <limits.h>
5008 #include <stdarg.h>
5009 #include <stddef.h>
5010 extern void ac_decl (int, char *);
5011
5012 int
5013 main (void)
5014 {
5015 (void) ac_decl (0, (char *) 0);
5016 (void) ac_decl;
5017
5018 ;
5019 return 0;
5020 }
5021 _ACEOF
5022 if ac_fn_c_try_compile "$LINENO"
5023 then :
5024 if test x"$ac_arg" = x
5025 then :
5026 ac_cv_c_undeclared_builtin_options='none needed'
5027 else case e in #(
5028 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
5029 esac
5030 fi
5031 break
5032 fi
5033 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5034 esac
5035 fi
5036 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5037 done
5038 CFLAGS=$ac_save_CFLAGS
5039 ;;
5040 esac
5041 fi
5042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
5043 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
5044 case $ac_cv_c_undeclared_builtin_options in #(
5045 'cannot detect') :
5046 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5047 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5048 as_fn_error $? "cannot make $CC report undeclared builtins
5049 See 'config.log' for more details" "$LINENO" 5; } ;; #(
5050 'none needed') :
5051 ac_c_undeclared_builtin_options='' ;; #(
5052 *) :
5053 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
5054 esac
5055
5056
5057
5058
5059
5060 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
5061 if test "x$ac_cv_have_decl___clang__" = xyes
5062 then :
5063 CLANGCC="yes"
5064 else case e in #(
5065 e) CLANGCC="no" ;;
5066 esac
5067 fi
5068 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
5069 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
5070 then :
5071 INTELCC="yes"
5072 else case e in #(
5073 e) INTELCC="no" ;;
5074 esac
5075 fi
5076 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
5077 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
5078 then :
5079 SUNCC="yes"
5080 else case e in #(
5081 e) SUNCC="no" ;;
5082 esac
5083 fi
5084
5085
5086
5087
5088
5089
5090
5091
5092 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5093 if test -n "$ac_tool_prefix"; then
5094 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5095 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097 printf %s "checking for $ac_word... " >&6; }
5098 if test ${ac_cv_path_PKG_CONFIG+y}
5099 then :
5100 printf %s "(cached) " >&6
5101 else case e in #(
5102 e) case $PKG_CONFIG in
5103 [\\/]* | ?:[\\/]*)
5104 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5105 ;;
5106 *)
5107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108 for as_dir in $PATH
5109 do
5110 IFS=$as_save_IFS
5111 case $as_dir in #(((
5112 '') as_dir=./ ;;
5113 */) ;;
5114 *) as_dir=$as_dir/ ;;
5115 esac
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5118 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5120 break 2
5121 fi
5122 done
5123 done
5124 IFS=$as_save_IFS
5125
5126 ;;
5127 esac ;;
5128 esac
5129 fi
5130 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5131 if test -n "$PKG_CONFIG"; then
5132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5133 printf "%s\n" "$PKG_CONFIG" >&6; }
5134 else
5135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136 printf "%s\n" "no" >&6; }
5137 fi
5138
5139
5140 fi
5141 if test -z "$ac_cv_path_PKG_CONFIG"; then
5142 ac_pt_PKG_CONFIG=$PKG_CONFIG
5143 # Extract the first word of "pkg-config", so it can be a program name with args.
5144 set dummy pkg-config; ac_word=$2
5145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5146 printf %s "checking for $ac_word... " >&6; }
5147 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
5148 then :
5149 printf %s "(cached) " >&6
5150 else case e in #(
5151 e) case $ac_pt_PKG_CONFIG in
5152 [\\/]* | ?:[\\/]*)
5153 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5154 ;;
5155 *)
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $PATH
5158 do
5159 IFS=$as_save_IFS
5160 case $as_dir in #(((
5161 '') as_dir=./ ;;
5162 */) ;;
5163 *) as_dir=$as_dir/ ;;
5164 esac
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5167 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5168 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5169 break 2
5170 fi
5171 done
5172 done
5173 IFS=$as_save_IFS
5174
5175 ;;
5176 esac ;;
5177 esac
5178 fi
5179 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5180 if test -n "$ac_pt_PKG_CONFIG"; then
5181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5182 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
5183 else
5184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185 printf "%s\n" "no" >&6; }
5186 fi
5187
5188 if test "x$ac_pt_PKG_CONFIG" = x; then
5189 PKG_CONFIG=""
5190 else
5191 case $cross_compiling:$ac_tool_warned in
5192 yes:)
5193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5194 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5195 ac_tool_warned=yes ;;
5196 esac
5197 PKG_CONFIG=$ac_pt_PKG_CONFIG
5198 fi
5199 else
5200 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5201 fi
5202
5203 fi
5204 if test -n "$PKG_CONFIG"; then
5205 _pkg_min_version=0.9.0
5206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5207 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5208 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5210 printf "%s\n" "yes" >&6; }
5211 else
5212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213 printf "%s\n" "no" >&6; }
5214 PKG_CONFIG=""
5215 fi
5216 fi
5217 if test -z "$PKG_CONFIG"; then
5218 as_fn_error $? "pkg-config not found" "$LINENO" 5
5219 fi
5220
5221
5222 # Make sure we can run config.sub.
5223 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5224 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5225
5226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5227 printf %s "checking build system type... " >&6; }
5228 if test ${ac_cv_build+y}
5229 then :
5230 printf %s "(cached) " >&6
5231 else case e in #(
5232 e) ac_build_alias=$build_alias
5233 test "x$ac_build_alias" = x &&
5234 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5235 test "x$ac_build_alias" = x &&
5236 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5237 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5238 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5239 ;;
5240 esac
5241 fi
5242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5243 printf "%s\n" "$ac_cv_build" >&6; }
5244 case $ac_cv_build in
5245 *-*-*) ;;
5246 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5247 esac
5248 build=$ac_cv_build
5249 ac_save_IFS=$IFS; IFS='-'
5250 set x $ac_cv_build
5251 shift
5252 build_cpu=$1
5253 build_vendor=$2
5254 shift; shift
5255 # Remember, the first character of IFS is used to create $*,
5256 # except with old shells:
5257 build_os=$*
5258 IFS=$ac_save_IFS
5259 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5260
5261
5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5263 printf %s "checking host system type... " >&6; }
5264 if test ${ac_cv_host+y}
5265 then :
5266 printf %s "(cached) " >&6
5267 else case e in #(
5268 e) if test "x$host_alias" = x; then
5269 ac_cv_host=$ac_cv_build
5270 else
5271 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5272 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5273 fi
5274 ;;
5275 esac
5276 fi
5277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5278 printf "%s\n" "$ac_cv_host" >&6; }
5279 case $ac_cv_host in
5280 *-*-*) ;;
5281 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5282 esac
5283 host=$ac_cv_host
5284 ac_save_IFS=$IFS; IFS='-'
5285 set x $ac_cv_host
5286 shift
5287 host_cpu=$1
5288 host_vendor=$2
5289 shift; shift
5290 # Remember, the first character of IFS is used to create $*,
5291 # except with old shells:
5292 host_os=$*
5293 IFS=$ac_save_IFS
5294 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5295
5296
5297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5298 printf %s "checking for a sed that does not truncate output... " >&6; }
5299 if test ${ac_cv_path_SED+y}
5300 then :
5301 printf %s "(cached) " >&6
5302 else case e in #(
5303 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5304 for ac_i in 1 2 3 4 5 6 7; do
5305 ac_script="$ac_script$as_nl$ac_script"
5306 done
5307 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5308 { ac_script=; unset ac_script;}
5309 if test -z "$SED"; then
5310 ac_path_SED_found=false
5311 # Loop through the user's path and test for each of PROGNAME-LIST
5312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313 for as_dir in $PATH
5314 do
5315 IFS=$as_save_IFS
5316 case $as_dir in #(((
5317 '') as_dir=./ ;;
5318 */) ;;
5319 *) as_dir=$as_dir/ ;;
5320 esac
5321 for ac_prog in sed gsed
5322 do
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5325 as_fn_executable_p "$ac_path_SED" || continue
5326 # Check for GNU ac_path_SED and select it if it is found.
5327 # Check for GNU $ac_path_SED
5328 case `"$ac_path_SED" --version 2>&1` in #(
5329 *GNU*)
5330 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5331 #(
5332 *)
5333 ac_count=0
5334 printf %s 0123456789 >"conftest.in"
5335 while :
5336 do
5337 cat "conftest.in" "conftest.in" >"conftest.tmp"
5338 mv "conftest.tmp" "conftest.in"
5339 cp "conftest.in" "conftest.nl"
5340 printf "%s\n" '' >> "conftest.nl"
5341 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5342 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5343 as_fn_arith $ac_count + 1 && ac_count=$as_val
5344 if test $ac_count -gt ${ac_path_SED_max-0}; then
5345 # Best one so far, save it but keep looking for a better one
5346 ac_cv_path_SED="$ac_path_SED"
5347 ac_path_SED_max=$ac_count
5348 fi
5349 # 10*(2^10) chars as input seems more than enough
5350 test $ac_count -gt 10 && break
5351 done
5352 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5353 esac
5354
5355 $ac_path_SED_found && break 3
5356 done
5357 done
5358 done
5359 IFS=$as_save_IFS
5360 if test -z "$ac_cv_path_SED"; then
5361 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5362 fi
5363 else
5364 ac_cv_path_SED=$SED
5365 fi
5366 ;;
5367 esac
5368 fi
5369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5370 printf "%s\n" "$ac_cv_path_SED" >&6; }
5371 SED="$ac_cv_path_SED"
5372 rm -f conftest.sed
5373
5374
5375
5376
5377
5378
5379 # Check whether --enable-selective-werror was given.
5380 if test ${enable_selective_werror+y}
5381 then :
5382 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5383 else case e in #(
5384 e) SELECTIVE_WERROR=yes ;;
5385 esac
5386 fi
5387
5388
5389
5390
5391
5392 # -v is too short to test reliably with XORG_TESTSET_CFLAG
5393 if test "x$SUNCC" = "xyes"; then
5394 BASE_CFLAGS="-v"
5395 else
5396 BASE_CFLAGS=""
5397 fi
5398
5399 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413 xorg_testset_save_CFLAGS="$CFLAGS"
5414
5415 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5418 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5419 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5420 then :
5421 printf %s "(cached) " >&6
5422 else case e in #(
5423 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h. */
5425 int i;
5426 _ACEOF
5427 if ac_fn_c_try_compile "$LINENO"
5428 then :
5429 xorg_cv_cc_flag_unknown_warning_option=yes
5430 else case e in #(
5431 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5432 esac
5433 fi
5434 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5435 esac
5436 fi
5437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5438 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5439 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5440 CFLAGS="$xorg_testset_save_CFLAGS"
5441 fi
5442
5443 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5446 fi
5447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5449 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5450 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5451 then :
5452 printf %s "(cached) " >&6
5453 else case e in #(
5454 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455 /* end confdefs.h. */
5456 int i;
5457 _ACEOF
5458 if ac_fn_c_try_compile "$LINENO"
5459 then :
5460 xorg_cv_cc_flag_unused_command_line_argument=yes
5461 else case e in #(
5462 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5463 esac
5464 fi
5465 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5466 esac
5467 fi
5468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5469 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5470 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5471 CFLAGS="$xorg_testset_save_CFLAGS"
5472 fi
5473
5474 found="no"
5475
5476 if test $found = "no" ; then
5477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5479 fi
5480
5481 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5483 fi
5484
5485 CFLAGS="$CFLAGS -Wall"
5486
5487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5488 printf %s "checking if $CC supports -Wall... " >&6; }
5489 cacheid=xorg_cv_cc_flag__Wall
5490 if eval test \${$cacheid+y}
5491 then :
5492 printf %s "(cached) " >&6
5493 else case e in #(
5494 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5495 /* end confdefs.h. */
5496 int i;
5497 int
5498 main (void)
5499 {
5500
5501 ;
5502 return 0;
5503 }
5504 _ACEOF
5505 if ac_fn_c_try_link "$LINENO"
5506 then :
5507 eval $cacheid=yes
5508 else case e in #(
5509 e) eval $cacheid=no ;;
5510 esac
5511 fi
5512 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5513 conftest$ac_exeext conftest.$ac_ext ;;
5514 esac
5515 fi
5516
5517
5518 CFLAGS="$xorg_testset_save_CFLAGS"
5519
5520 eval supported=\$$cacheid
5521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5522 printf "%s\n" "$supported" >&6; }
5523 if test "$supported" = "yes" ; then
5524 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5525 found="yes"
5526 fi
5527 fi
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543 xorg_testset_save_CFLAGS="$CFLAGS"
5544
5545 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5548 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5549 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5550 then :
5551 printf %s "(cached) " >&6
5552 else case e in #(
5553 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554 /* end confdefs.h. */
5555 int i;
5556 _ACEOF
5557 if ac_fn_c_try_compile "$LINENO"
5558 then :
5559 xorg_cv_cc_flag_unknown_warning_option=yes
5560 else case e in #(
5561 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5562 esac
5563 fi
5564 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5565 esac
5566 fi
5567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5568 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5569 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5570 CFLAGS="$xorg_testset_save_CFLAGS"
5571 fi
5572
5573 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5576 fi
5577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5579 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5580 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5581 then :
5582 printf %s "(cached) " >&6
5583 else case e in #(
5584 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h. */
5586 int i;
5587 _ACEOF
5588 if ac_fn_c_try_compile "$LINENO"
5589 then :
5590 xorg_cv_cc_flag_unused_command_line_argument=yes
5591 else case e in #(
5592 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5593 esac
5594 fi
5595 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5596 esac
5597 fi
5598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5599 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5600 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5601 CFLAGS="$xorg_testset_save_CFLAGS"
5602 fi
5603
5604 found="no"
5605
5606 if test $found = "no" ; then
5607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5609 fi
5610
5611 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5613 fi
5614
5615 CFLAGS="$CFLAGS -Wpointer-arith"
5616
5617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5618 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5619 cacheid=xorg_cv_cc_flag__Wpointer_arith
5620 if eval test \${$cacheid+y}
5621 then :
5622 printf %s "(cached) " >&6
5623 else case e in #(
5624 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625 /* end confdefs.h. */
5626 int i;
5627 int
5628 main (void)
5629 {
5630
5631 ;
5632 return 0;
5633 }
5634 _ACEOF
5635 if ac_fn_c_try_link "$LINENO"
5636 then :
5637 eval $cacheid=yes
5638 else case e in #(
5639 e) eval $cacheid=no ;;
5640 esac
5641 fi
5642 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5643 conftest$ac_exeext conftest.$ac_ext ;;
5644 esac
5645 fi
5646
5647
5648 CFLAGS="$xorg_testset_save_CFLAGS"
5649
5650 eval supported=\$$cacheid
5651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5652 printf "%s\n" "$supported" >&6; }
5653 if test "$supported" = "yes" ; then
5654 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5655 found="yes"
5656 fi
5657 fi
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673 xorg_testset_save_CFLAGS="$CFLAGS"
5674
5675 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5678 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5679 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5680 then :
5681 printf %s "(cached) " >&6
5682 else case e in #(
5683 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684 /* end confdefs.h. */
5685 int i;
5686 _ACEOF
5687 if ac_fn_c_try_compile "$LINENO"
5688 then :
5689 xorg_cv_cc_flag_unknown_warning_option=yes
5690 else case e in #(
5691 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5692 esac
5693 fi
5694 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5695 esac
5696 fi
5697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5698 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5699 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5700 CFLAGS="$xorg_testset_save_CFLAGS"
5701 fi
5702
5703 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5704 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5706 fi
5707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5709 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5710 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5711 then :
5712 printf %s "(cached) " >&6
5713 else case e in #(
5714 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5715 /* end confdefs.h. */
5716 int i;
5717 _ACEOF
5718 if ac_fn_c_try_compile "$LINENO"
5719 then :
5720 xorg_cv_cc_flag_unused_command_line_argument=yes
5721 else case e in #(
5722 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5723 esac
5724 fi
5725 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5726 esac
5727 fi
5728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5729 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5730 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5731 CFLAGS="$xorg_testset_save_CFLAGS"
5732 fi
5733
5734 found="no"
5735
5736 if test $found = "no" ; then
5737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5738 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5739 fi
5740
5741 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5743 fi
5744
5745 CFLAGS="$CFLAGS -Wmissing-declarations"
5746
5747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5748 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5749 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5750 if eval test \${$cacheid+y}
5751 then :
5752 printf %s "(cached) " >&6
5753 else case e in #(
5754 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5755 /* end confdefs.h. */
5756 int i;
5757 int
5758 main (void)
5759 {
5760
5761 ;
5762 return 0;
5763 }
5764 _ACEOF
5765 if ac_fn_c_try_link "$LINENO"
5766 then :
5767 eval $cacheid=yes
5768 else case e in #(
5769 e) eval $cacheid=no ;;
5770 esac
5771 fi
5772 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5773 conftest$ac_exeext conftest.$ac_ext ;;
5774 esac
5775 fi
5776
5777
5778 CFLAGS="$xorg_testset_save_CFLAGS"
5779
5780 eval supported=\$$cacheid
5781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5782 printf "%s\n" "$supported" >&6; }
5783 if test "$supported" = "yes" ; then
5784 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5785 found="yes"
5786 fi
5787 fi
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803 xorg_testset_save_CFLAGS="$CFLAGS"
5804
5805 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5806 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5808 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5809 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5810 then :
5811 printf %s "(cached) " >&6
5812 else case e in #(
5813 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5815 int i;
5816 _ACEOF
5817 if ac_fn_c_try_compile "$LINENO"
5818 then :
5819 xorg_cv_cc_flag_unknown_warning_option=yes
5820 else case e in #(
5821 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5822 esac
5823 fi
5824 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5825 esac
5826 fi
5827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5828 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5829 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5830 CFLAGS="$xorg_testset_save_CFLAGS"
5831 fi
5832
5833 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5835 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5836 fi
5837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5839 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5840 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5841 then :
5842 printf %s "(cached) " >&6
5843 else case e in #(
5844 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5845 /* end confdefs.h. */
5846 int i;
5847 _ACEOF
5848 if ac_fn_c_try_compile "$LINENO"
5849 then :
5850 xorg_cv_cc_flag_unused_command_line_argument=yes
5851 else case e in #(
5852 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5853 esac
5854 fi
5855 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5856 esac
5857 fi
5858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5859 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5860 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5861 CFLAGS="$xorg_testset_save_CFLAGS"
5862 fi
5863
5864 found="no"
5865
5866 if test $found = "no" ; then
5867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5868 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5869 fi
5870
5871 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5873 fi
5874
5875 CFLAGS="$CFLAGS -Wformat=2"
5876
5877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5878 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5879 cacheid=xorg_cv_cc_flag__Wformat_2
5880 if eval test \${$cacheid+y}
5881 then :
5882 printf %s "(cached) " >&6
5883 else case e in #(
5884 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885 /* end confdefs.h. */
5886 int i;
5887 int
5888 main (void)
5889 {
5890
5891 ;
5892 return 0;
5893 }
5894 _ACEOF
5895 if ac_fn_c_try_link "$LINENO"
5896 then :
5897 eval $cacheid=yes
5898 else case e in #(
5899 e) eval $cacheid=no ;;
5900 esac
5901 fi
5902 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5903 conftest$ac_exeext conftest.$ac_ext ;;
5904 esac
5905 fi
5906
5907
5908 CFLAGS="$xorg_testset_save_CFLAGS"
5909
5910 eval supported=\$$cacheid
5911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5912 printf "%s\n" "$supported" >&6; }
5913 if test "$supported" = "yes" ; then
5914 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5915 found="yes"
5916 fi
5917 fi
5918
5919 if test $found = "no" ; then
5920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5922 fi
5923
5924 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5926 fi
5927
5928 CFLAGS="$CFLAGS -Wformat"
5929
5930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5931 printf %s "checking if $CC supports -Wformat... " >&6; }
5932 cacheid=xorg_cv_cc_flag__Wformat
5933 if eval test \${$cacheid+y}
5934 then :
5935 printf %s "(cached) " >&6
5936 else case e in #(
5937 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5938 /* end confdefs.h. */
5939 int i;
5940 int
5941 main (void)
5942 {
5943
5944 ;
5945 return 0;
5946 }
5947 _ACEOF
5948 if ac_fn_c_try_link "$LINENO"
5949 then :
5950 eval $cacheid=yes
5951 else case e in #(
5952 e) eval $cacheid=no ;;
5953 esac
5954 fi
5955 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5956 conftest$ac_exeext conftest.$ac_ext ;;
5957 esac
5958 fi
5959
5960
5961 CFLAGS="$xorg_testset_save_CFLAGS"
5962
5963 eval supported=\$$cacheid
5964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5965 printf "%s\n" "$supported" >&6; }
5966 if test "$supported" = "yes" ; then
5967 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5968 found="yes"
5969 fi
5970 fi
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988 xorg_testset_save_CFLAGS="$CFLAGS"
5989
5990 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5993 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5994 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5995 then :
5996 printf %s "(cached) " >&6
5997 else case e in #(
5998 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5999 /* end confdefs.h. */
6000 int i;
6001 _ACEOF
6002 if ac_fn_c_try_compile "$LINENO"
6003 then :
6004 xorg_cv_cc_flag_unknown_warning_option=yes
6005 else case e in #(
6006 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6007 esac
6008 fi
6009 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6010 esac
6011 fi
6012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6013 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6014 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6015 CFLAGS="$xorg_testset_save_CFLAGS"
6016 fi
6017
6018 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6021 fi
6022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6024 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6025 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6026 then :
6027 printf %s "(cached) " >&6
6028 else case e in #(
6029 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030 /* end confdefs.h. */
6031 int i;
6032 _ACEOF
6033 if ac_fn_c_try_compile "$LINENO"
6034 then :
6035 xorg_cv_cc_flag_unused_command_line_argument=yes
6036 else case e in #(
6037 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6038 esac
6039 fi
6040 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6041 esac
6042 fi
6043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6044 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6045 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6046 CFLAGS="$xorg_testset_save_CFLAGS"
6047 fi
6048
6049 found="no"
6050
6051 if test $found = "no" ; then
6052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6053 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6054 fi
6055
6056 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6058 fi
6059
6060 CFLAGS="$CFLAGS -Wstrict-prototypes"
6061
6062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
6063 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
6064 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
6065 if eval test \${$cacheid+y}
6066 then :
6067 printf %s "(cached) " >&6
6068 else case e in #(
6069 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070 /* end confdefs.h. */
6071 int i;
6072 int
6073 main (void)
6074 {
6075
6076 ;
6077 return 0;
6078 }
6079 _ACEOF
6080 if ac_fn_c_try_link "$LINENO"
6081 then :
6082 eval $cacheid=yes
6083 else case e in #(
6084 e) eval $cacheid=no ;;
6085 esac
6086 fi
6087 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6088 conftest$ac_exeext conftest.$ac_ext ;;
6089 esac
6090 fi
6091
6092
6093 CFLAGS="$xorg_testset_save_CFLAGS"
6094
6095 eval supported=\$$cacheid
6096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6097 printf "%s\n" "$supported" >&6; }
6098 if test "$supported" = "yes" ; then
6099 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
6100 found="yes"
6101 fi
6102 fi
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118 xorg_testset_save_CFLAGS="$CFLAGS"
6119
6120 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6123 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6124 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6125 then :
6126 printf %s "(cached) " >&6
6127 else case e in #(
6128 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6129 /* end confdefs.h. */
6130 int i;
6131 _ACEOF
6132 if ac_fn_c_try_compile "$LINENO"
6133 then :
6134 xorg_cv_cc_flag_unknown_warning_option=yes
6135 else case e in #(
6136 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6137 esac
6138 fi
6139 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6140 esac
6141 fi
6142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6143 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6144 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6145 CFLAGS="$xorg_testset_save_CFLAGS"
6146 fi
6147
6148 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6150 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6151 fi
6152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6154 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6155 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6156 then :
6157 printf %s "(cached) " >&6
6158 else case e in #(
6159 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6160 /* end confdefs.h. */
6161 int i;
6162 _ACEOF
6163 if ac_fn_c_try_compile "$LINENO"
6164 then :
6165 xorg_cv_cc_flag_unused_command_line_argument=yes
6166 else case e in #(
6167 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6168 esac
6169 fi
6170 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6171 esac
6172 fi
6173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6174 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6175 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6176 CFLAGS="$xorg_testset_save_CFLAGS"
6177 fi
6178
6179 found="no"
6180
6181 if test $found = "no" ; then
6182 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6184 fi
6185
6186 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6188 fi
6189
6190 CFLAGS="$CFLAGS -Wmissing-prototypes"
6191
6192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
6193 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
6194 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
6195 if eval test \${$cacheid+y}
6196 then :
6197 printf %s "(cached) " >&6
6198 else case e in #(
6199 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6200 /* end confdefs.h. */
6201 int i;
6202 int
6203 main (void)
6204 {
6205
6206 ;
6207 return 0;
6208 }
6209 _ACEOF
6210 if ac_fn_c_try_link "$LINENO"
6211 then :
6212 eval $cacheid=yes
6213 else case e in #(
6214 e) eval $cacheid=no ;;
6215 esac
6216 fi
6217 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6218 conftest$ac_exeext conftest.$ac_ext ;;
6219 esac
6220 fi
6221
6222
6223 CFLAGS="$xorg_testset_save_CFLAGS"
6224
6225 eval supported=\$$cacheid
6226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6227 printf "%s\n" "$supported" >&6; }
6228 if test "$supported" = "yes" ; then
6229 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
6230 found="yes"
6231 fi
6232 fi
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248 xorg_testset_save_CFLAGS="$CFLAGS"
6249
6250 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6251 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6253 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6254 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6255 then :
6256 printf %s "(cached) " >&6
6257 else case e in #(
6258 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6259 /* end confdefs.h. */
6260 int i;
6261 _ACEOF
6262 if ac_fn_c_try_compile "$LINENO"
6263 then :
6264 xorg_cv_cc_flag_unknown_warning_option=yes
6265 else case e in #(
6266 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6267 esac
6268 fi
6269 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6270 esac
6271 fi
6272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6273 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6274 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6275 CFLAGS="$xorg_testset_save_CFLAGS"
6276 fi
6277
6278 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6280 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6281 fi
6282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6284 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6285 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6286 then :
6287 printf %s "(cached) " >&6
6288 else case e in #(
6289 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6290 /* end confdefs.h. */
6291 int i;
6292 _ACEOF
6293 if ac_fn_c_try_compile "$LINENO"
6294 then :
6295 xorg_cv_cc_flag_unused_command_line_argument=yes
6296 else case e in #(
6297 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6298 esac
6299 fi
6300 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6301 esac
6302 fi
6303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6304 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6305 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6306 CFLAGS="$xorg_testset_save_CFLAGS"
6307 fi
6308
6309 found="no"
6310
6311 if test $found = "no" ; then
6312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6314 fi
6315
6316 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6318 fi
6319
6320 CFLAGS="$CFLAGS -Wnested-externs"
6321
6322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6323 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
6324 cacheid=xorg_cv_cc_flag__Wnested_externs
6325 if eval test \${$cacheid+y}
6326 then :
6327 printf %s "(cached) " >&6
6328 else case e in #(
6329 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6330 /* end confdefs.h. */
6331 int i;
6332 int
6333 main (void)
6334 {
6335
6336 ;
6337 return 0;
6338 }
6339 _ACEOF
6340 if ac_fn_c_try_link "$LINENO"
6341 then :
6342 eval $cacheid=yes
6343 else case e in #(
6344 e) eval $cacheid=no ;;
6345 esac
6346 fi
6347 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6348 conftest$ac_exeext conftest.$ac_ext ;;
6349 esac
6350 fi
6351
6352
6353 CFLAGS="$xorg_testset_save_CFLAGS"
6354
6355 eval supported=\$$cacheid
6356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6357 printf "%s\n" "$supported" >&6; }
6358 if test "$supported" = "yes" ; then
6359 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6360 found="yes"
6361 fi
6362 fi
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378 xorg_testset_save_CFLAGS="$CFLAGS"
6379
6380 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6383 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6384 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6385 then :
6386 printf %s "(cached) " >&6
6387 else case e in #(
6388 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6389 /* end confdefs.h. */
6390 int i;
6391 _ACEOF
6392 if ac_fn_c_try_compile "$LINENO"
6393 then :
6394 xorg_cv_cc_flag_unknown_warning_option=yes
6395 else case e in #(
6396 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6397 esac
6398 fi
6399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6400 esac
6401 fi
6402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6403 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6404 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6405 CFLAGS="$xorg_testset_save_CFLAGS"
6406 fi
6407
6408 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6411 fi
6412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6414 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6415 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6416 then :
6417 printf %s "(cached) " >&6
6418 else case e in #(
6419 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6420 /* end confdefs.h. */
6421 int i;
6422 _ACEOF
6423 if ac_fn_c_try_compile "$LINENO"
6424 then :
6425 xorg_cv_cc_flag_unused_command_line_argument=yes
6426 else case e in #(
6427 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6428 esac
6429 fi
6430 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6431 esac
6432 fi
6433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6434 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6435 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6436 CFLAGS="$xorg_testset_save_CFLAGS"
6437 fi
6438
6439 found="no"
6440
6441 if test $found = "no" ; then
6442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6443 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6444 fi
6445
6446 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6448 fi
6449
6450 CFLAGS="$CFLAGS -Wbad-function-cast"
6451
6452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6453 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6454 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6455 if eval test \${$cacheid+y}
6456 then :
6457 printf %s "(cached) " >&6
6458 else case e in #(
6459 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6460 /* end confdefs.h. */
6461 int i;
6462 int
6463 main (void)
6464 {
6465
6466 ;
6467 return 0;
6468 }
6469 _ACEOF
6470 if ac_fn_c_try_link "$LINENO"
6471 then :
6472 eval $cacheid=yes
6473 else case e in #(
6474 e) eval $cacheid=no ;;
6475 esac
6476 fi
6477 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6478 conftest$ac_exeext conftest.$ac_ext ;;
6479 esac
6480 fi
6481
6482
6483 CFLAGS="$xorg_testset_save_CFLAGS"
6484
6485 eval supported=\$$cacheid
6486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6487 printf "%s\n" "$supported" >&6; }
6488 if test "$supported" = "yes" ; then
6489 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6490 found="yes"
6491 fi
6492 fi
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508 xorg_testset_save_CFLAGS="$CFLAGS"
6509
6510 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6511 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6513 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6514 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6515 then :
6516 printf %s "(cached) " >&6
6517 else case e in #(
6518 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519 /* end confdefs.h. */
6520 int i;
6521 _ACEOF
6522 if ac_fn_c_try_compile "$LINENO"
6523 then :
6524 xorg_cv_cc_flag_unknown_warning_option=yes
6525 else case e in #(
6526 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6527 esac
6528 fi
6529 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6530 esac
6531 fi
6532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6533 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6534 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6535 CFLAGS="$xorg_testset_save_CFLAGS"
6536 fi
6537
6538 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6540 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6541 fi
6542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6544 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6545 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6546 then :
6547 printf %s "(cached) " >&6
6548 else case e in #(
6549 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h. */
6551 int i;
6552 _ACEOF
6553 if ac_fn_c_try_compile "$LINENO"
6554 then :
6555 xorg_cv_cc_flag_unused_command_line_argument=yes
6556 else case e in #(
6557 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6558 esac
6559 fi
6560 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6561 esac
6562 fi
6563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6564 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6565 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6566 CFLAGS="$xorg_testset_save_CFLAGS"
6567 fi
6568
6569 found="no"
6570
6571 if test $found = "no" ; then
6572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6574 fi
6575
6576 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6578 fi
6579
6580 CFLAGS="$CFLAGS -Wold-style-definition"
6581
6582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6583 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6584 cacheid=xorg_cv_cc_flag__Wold_style_definition
6585 if eval test \${$cacheid+y}
6586 then :
6587 printf %s "(cached) " >&6
6588 else case e in #(
6589 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6590 /* end confdefs.h. */
6591 int i;
6592 int
6593 main (void)
6594 {
6595
6596 ;
6597 return 0;
6598 }
6599 _ACEOF
6600 if ac_fn_c_try_link "$LINENO"
6601 then :
6602 eval $cacheid=yes
6603 else case e in #(
6604 e) eval $cacheid=no ;;
6605 esac
6606 fi
6607 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6608 conftest$ac_exeext conftest.$ac_ext ;;
6609 esac
6610 fi
6611
6612
6613 CFLAGS="$xorg_testset_save_CFLAGS"
6614
6615 eval supported=\$$cacheid
6616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6617 printf "%s\n" "$supported" >&6; }
6618 if test "$supported" = "yes" ; then
6619 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6620 found="yes"
6621 fi
6622 fi
6623
6624 if test $found = "no" ; then
6625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6627 fi
6628
6629 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6631 fi
6632
6633 CFLAGS="$CFLAGS -fd"
6634
6635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6636 printf %s "checking if $CC supports -fd... " >&6; }
6637 cacheid=xorg_cv_cc_flag__fd
6638 if eval test \${$cacheid+y}
6639 then :
6640 printf %s "(cached) " >&6
6641 else case e in #(
6642 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h. */
6644 int i;
6645 int
6646 main (void)
6647 {
6648
6649 ;
6650 return 0;
6651 }
6652 _ACEOF
6653 if ac_fn_c_try_link "$LINENO"
6654 then :
6655 eval $cacheid=yes
6656 else case e in #(
6657 e) eval $cacheid=no ;;
6658 esac
6659 fi
6660 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6661 conftest$ac_exeext conftest.$ac_ext ;;
6662 esac
6663 fi
6664
6665
6666 CFLAGS="$xorg_testset_save_CFLAGS"
6667
6668 eval supported=\$$cacheid
6669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6670 printf "%s\n" "$supported" >&6; }
6671 if test "$supported" = "yes" ; then
6672 BASE_CFLAGS="$BASE_CFLAGS -fd"
6673 found="yes"
6674 fi
6675 fi
6676
6677
6678
6679
6680
6681 # This chunk adds additional warnings that could catch undesired effects.
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695 xorg_testset_save_CFLAGS="$CFLAGS"
6696
6697 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6700 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6701 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6702 then :
6703 printf %s "(cached) " >&6
6704 else case e in #(
6705 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6706 /* end confdefs.h. */
6707 int i;
6708 _ACEOF
6709 if ac_fn_c_try_compile "$LINENO"
6710 then :
6711 xorg_cv_cc_flag_unknown_warning_option=yes
6712 else case e in #(
6713 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6714 esac
6715 fi
6716 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6717 esac
6718 fi
6719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6720 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6722 CFLAGS="$xorg_testset_save_CFLAGS"
6723 fi
6724
6725 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6728 fi
6729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6731 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6732 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6733 then :
6734 printf %s "(cached) " >&6
6735 else case e in #(
6736 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6737 /* end confdefs.h. */
6738 int i;
6739 _ACEOF
6740 if ac_fn_c_try_compile "$LINENO"
6741 then :
6742 xorg_cv_cc_flag_unused_command_line_argument=yes
6743 else case e in #(
6744 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6745 esac
6746 fi
6747 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6748 esac
6749 fi
6750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6751 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6752 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6753 CFLAGS="$xorg_testset_save_CFLAGS"
6754 fi
6755
6756 found="no"
6757
6758 if test $found = "no" ; then
6759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6760 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6761 fi
6762
6763 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6765 fi
6766
6767 CFLAGS="$CFLAGS -Wunused"
6768
6769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6770 printf %s "checking if $CC supports -Wunused... " >&6; }
6771 cacheid=xorg_cv_cc_flag__Wunused
6772 if eval test \${$cacheid+y}
6773 then :
6774 printf %s "(cached) " >&6
6775 else case e in #(
6776 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6777 /* end confdefs.h. */
6778 int i;
6779 int
6780 main (void)
6781 {
6782
6783 ;
6784 return 0;
6785 }
6786 _ACEOF
6787 if ac_fn_c_try_link "$LINENO"
6788 then :
6789 eval $cacheid=yes
6790 else case e in #(
6791 e) eval $cacheid=no ;;
6792 esac
6793 fi
6794 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6795 conftest$ac_exeext conftest.$ac_ext ;;
6796 esac
6797 fi
6798
6799
6800 CFLAGS="$xorg_testset_save_CFLAGS"
6801
6802 eval supported=\$$cacheid
6803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6804 printf "%s\n" "$supported" >&6; }
6805 if test "$supported" = "yes" ; then
6806 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6807 found="yes"
6808 fi
6809 fi
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825 xorg_testset_save_CFLAGS="$CFLAGS"
6826
6827 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6830 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6831 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6832 then :
6833 printf %s "(cached) " >&6
6834 else case e in #(
6835 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836 /* end confdefs.h. */
6837 int i;
6838 _ACEOF
6839 if ac_fn_c_try_compile "$LINENO"
6840 then :
6841 xorg_cv_cc_flag_unknown_warning_option=yes
6842 else case e in #(
6843 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6844 esac
6845 fi
6846 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6847 esac
6848 fi
6849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6850 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6851 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6852 CFLAGS="$xorg_testset_save_CFLAGS"
6853 fi
6854
6855 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6858 fi
6859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6861 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6862 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6863 then :
6864 printf %s "(cached) " >&6
6865 else case e in #(
6866 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6867 /* end confdefs.h. */
6868 int i;
6869 _ACEOF
6870 if ac_fn_c_try_compile "$LINENO"
6871 then :
6872 xorg_cv_cc_flag_unused_command_line_argument=yes
6873 else case e in #(
6874 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6875 esac
6876 fi
6877 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6878 esac
6879 fi
6880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6881 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6882 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6883 CFLAGS="$xorg_testset_save_CFLAGS"
6884 fi
6885
6886 found="no"
6887
6888 if test $found = "no" ; then
6889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6890 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6891 fi
6892
6893 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6895 fi
6896
6897 CFLAGS="$CFLAGS -Wuninitialized"
6898
6899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6900 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6901 cacheid=xorg_cv_cc_flag__Wuninitialized
6902 if eval test \${$cacheid+y}
6903 then :
6904 printf %s "(cached) " >&6
6905 else case e in #(
6906 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6907 /* end confdefs.h. */
6908 int i;
6909 int
6910 main (void)
6911 {
6912
6913 ;
6914 return 0;
6915 }
6916 _ACEOF
6917 if ac_fn_c_try_link "$LINENO"
6918 then :
6919 eval $cacheid=yes
6920 else case e in #(
6921 e) eval $cacheid=no ;;
6922 esac
6923 fi
6924 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6925 conftest$ac_exeext conftest.$ac_ext ;;
6926 esac
6927 fi
6928
6929
6930 CFLAGS="$xorg_testset_save_CFLAGS"
6931
6932 eval supported=\$$cacheid
6933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6934 printf "%s\n" "$supported" >&6; }
6935 if test "$supported" = "yes" ; then
6936 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6937 found="yes"
6938 fi
6939 fi
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955 xorg_testset_save_CFLAGS="$CFLAGS"
6956
6957 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6960 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6961 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6962 then :
6963 printf %s "(cached) " >&6
6964 else case e in #(
6965 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966 /* end confdefs.h. */
6967 int i;
6968 _ACEOF
6969 if ac_fn_c_try_compile "$LINENO"
6970 then :
6971 xorg_cv_cc_flag_unknown_warning_option=yes
6972 else case e in #(
6973 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6974 esac
6975 fi
6976 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6977 esac
6978 fi
6979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6980 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6981 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6982 CFLAGS="$xorg_testset_save_CFLAGS"
6983 fi
6984
6985 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6988 fi
6989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6991 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6992 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6993 then :
6994 printf %s "(cached) " >&6
6995 else case e in #(
6996 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6997 /* end confdefs.h. */
6998 int i;
6999 _ACEOF
7000 if ac_fn_c_try_compile "$LINENO"
7001 then :
7002 xorg_cv_cc_flag_unused_command_line_argument=yes
7003 else case e in #(
7004 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7005 esac
7006 fi
7007 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7008 esac
7009 fi
7010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7011 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7012 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7013 CFLAGS="$xorg_testset_save_CFLAGS"
7014 fi
7015
7016 found="no"
7017
7018 if test $found = "no" ; then
7019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7021 fi
7022
7023 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7025 fi
7026
7027 CFLAGS="$CFLAGS -Wshadow"
7028
7029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
7030 printf %s "checking if $CC supports -Wshadow... " >&6; }
7031 cacheid=xorg_cv_cc_flag__Wshadow
7032 if eval test \${$cacheid+y}
7033 then :
7034 printf %s "(cached) " >&6
7035 else case e in #(
7036 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7037 /* end confdefs.h. */
7038 int i;
7039 int
7040 main (void)
7041 {
7042
7043 ;
7044 return 0;
7045 }
7046 _ACEOF
7047 if ac_fn_c_try_link "$LINENO"
7048 then :
7049 eval $cacheid=yes
7050 else case e in #(
7051 e) eval $cacheid=no ;;
7052 esac
7053 fi
7054 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7055 conftest$ac_exeext conftest.$ac_ext ;;
7056 esac
7057 fi
7058
7059
7060 CFLAGS="$xorg_testset_save_CFLAGS"
7061
7062 eval supported=\$$cacheid
7063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7064 printf "%s\n" "$supported" >&6; }
7065 if test "$supported" = "yes" ; then
7066 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
7067 found="yes"
7068 fi
7069 fi
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085 xorg_testset_save_CFLAGS="$CFLAGS"
7086
7087 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7088 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7090 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7091 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7092 then :
7093 printf %s "(cached) " >&6
7094 else case e in #(
7095 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h. */
7097 int i;
7098 _ACEOF
7099 if ac_fn_c_try_compile "$LINENO"
7100 then :
7101 xorg_cv_cc_flag_unknown_warning_option=yes
7102 else case e in #(
7103 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7104 esac
7105 fi
7106 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7107 esac
7108 fi
7109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7110 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7111 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7112 CFLAGS="$xorg_testset_save_CFLAGS"
7113 fi
7114
7115 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7118 fi
7119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7121 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7122 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7123 then :
7124 printf %s "(cached) " >&6
7125 else case e in #(
7126 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7127 /* end confdefs.h. */
7128 int i;
7129 _ACEOF
7130 if ac_fn_c_try_compile "$LINENO"
7131 then :
7132 xorg_cv_cc_flag_unused_command_line_argument=yes
7133 else case e in #(
7134 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7135 esac
7136 fi
7137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7138 esac
7139 fi
7140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7141 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7142 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7143 CFLAGS="$xorg_testset_save_CFLAGS"
7144 fi
7145
7146 found="no"
7147
7148 if test $found = "no" ; then
7149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7150 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7151 fi
7152
7153 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7155 fi
7156
7157 CFLAGS="$CFLAGS -Wmissing-noreturn"
7158
7159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
7160 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
7161 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
7162 if eval test \${$cacheid+y}
7163 then :
7164 printf %s "(cached) " >&6
7165 else case e in #(
7166 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167 /* end confdefs.h. */
7168 int i;
7169 int
7170 main (void)
7171 {
7172
7173 ;
7174 return 0;
7175 }
7176 _ACEOF
7177 if ac_fn_c_try_link "$LINENO"
7178 then :
7179 eval $cacheid=yes
7180 else case e in #(
7181 e) eval $cacheid=no ;;
7182 esac
7183 fi
7184 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7185 conftest$ac_exeext conftest.$ac_ext ;;
7186 esac
7187 fi
7188
7189
7190 CFLAGS="$xorg_testset_save_CFLAGS"
7191
7192 eval supported=\$$cacheid
7193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7194 printf "%s\n" "$supported" >&6; }
7195 if test "$supported" = "yes" ; then
7196 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7197 found="yes"
7198 fi
7199 fi
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215 xorg_testset_save_CFLAGS="$CFLAGS"
7216
7217 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7220 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7221 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7222 then :
7223 printf %s "(cached) " >&6
7224 else case e in #(
7225 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h. */
7227 int i;
7228 _ACEOF
7229 if ac_fn_c_try_compile "$LINENO"
7230 then :
7231 xorg_cv_cc_flag_unknown_warning_option=yes
7232 else case e in #(
7233 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7234 esac
7235 fi
7236 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7237 esac
7238 fi
7239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7240 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7241 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7242 CFLAGS="$xorg_testset_save_CFLAGS"
7243 fi
7244
7245 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7248 fi
7249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7251 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7252 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7253 then :
7254 printf %s "(cached) " >&6
7255 else case e in #(
7256 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7257 /* end confdefs.h. */
7258 int i;
7259 _ACEOF
7260 if ac_fn_c_try_compile "$LINENO"
7261 then :
7262 xorg_cv_cc_flag_unused_command_line_argument=yes
7263 else case e in #(
7264 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7265 esac
7266 fi
7267 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7268 esac
7269 fi
7270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7271 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7272 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7273 CFLAGS="$xorg_testset_save_CFLAGS"
7274 fi
7275
7276 found="no"
7277
7278 if test $found = "no" ; then
7279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7280 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7281 fi
7282
7283 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7285 fi
7286
7287 CFLAGS="$CFLAGS -Wmissing-format-attribute"
7288
7289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7290 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7291 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7292 if eval test \${$cacheid+y}
7293 then :
7294 printf %s "(cached) " >&6
7295 else case e in #(
7296 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7297 /* end confdefs.h. */
7298 int i;
7299 int
7300 main (void)
7301 {
7302
7303 ;
7304 return 0;
7305 }
7306 _ACEOF
7307 if ac_fn_c_try_link "$LINENO"
7308 then :
7309 eval $cacheid=yes
7310 else case e in #(
7311 e) eval $cacheid=no ;;
7312 esac
7313 fi
7314 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7315 conftest$ac_exeext conftest.$ac_ext ;;
7316 esac
7317 fi
7318
7319
7320 CFLAGS="$xorg_testset_save_CFLAGS"
7321
7322 eval supported=\$$cacheid
7323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7324 printf "%s\n" "$supported" >&6; }
7325 if test "$supported" = "yes" ; then
7326 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7327 found="yes"
7328 fi
7329 fi
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345 xorg_testset_save_CFLAGS="$CFLAGS"
7346
7347 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7348 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7350 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7351 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7352 then :
7353 printf %s "(cached) " >&6
7354 else case e in #(
7355 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356 /* end confdefs.h. */
7357 int i;
7358 _ACEOF
7359 if ac_fn_c_try_compile "$LINENO"
7360 then :
7361 xorg_cv_cc_flag_unknown_warning_option=yes
7362 else case e in #(
7363 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7364 esac
7365 fi
7366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7367 esac
7368 fi
7369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7370 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7371 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7372 CFLAGS="$xorg_testset_save_CFLAGS"
7373 fi
7374
7375 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7377 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7378 fi
7379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7381 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7382 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7383 then :
7384 printf %s "(cached) " >&6
7385 else case e in #(
7386 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7387 /* end confdefs.h. */
7388 int i;
7389 _ACEOF
7390 if ac_fn_c_try_compile "$LINENO"
7391 then :
7392 xorg_cv_cc_flag_unused_command_line_argument=yes
7393 else case e in #(
7394 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7395 esac
7396 fi
7397 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7398 esac
7399 fi
7400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7401 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7402 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7403 CFLAGS="$xorg_testset_save_CFLAGS"
7404 fi
7405
7406 found="no"
7407
7408 if test $found = "no" ; then
7409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7411 fi
7412
7413 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7415 fi
7416
7417 CFLAGS="$CFLAGS -Wredundant-decls"
7418
7419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7420 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7421 cacheid=xorg_cv_cc_flag__Wredundant_decls
7422 if eval test \${$cacheid+y}
7423 then :
7424 printf %s "(cached) " >&6
7425 else case e in #(
7426 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h. */
7428 int i;
7429 int
7430 main (void)
7431 {
7432
7433 ;
7434 return 0;
7435 }
7436 _ACEOF
7437 if ac_fn_c_try_link "$LINENO"
7438 then :
7439 eval $cacheid=yes
7440 else case e in #(
7441 e) eval $cacheid=no ;;
7442 esac
7443 fi
7444 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7445 conftest$ac_exeext conftest.$ac_ext ;;
7446 esac
7447 fi
7448
7449
7450 CFLAGS="$xorg_testset_save_CFLAGS"
7451
7452 eval supported=\$$cacheid
7453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7454 printf "%s\n" "$supported" >&6; }
7455 if test "$supported" = "yes" ; then
7456 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7457 found="yes"
7458 fi
7459 fi
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475 xorg_testset_save_CFLAGS="$CFLAGS"
7476
7477 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7480 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7481 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7482 then :
7483 printf %s "(cached) " >&6
7484 else case e in #(
7485 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7487 int i;
7488 _ACEOF
7489 if ac_fn_c_try_compile "$LINENO"
7490 then :
7491 xorg_cv_cc_flag_unknown_warning_option=yes
7492 else case e in #(
7493 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7494 esac
7495 fi
7496 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7497 esac
7498 fi
7499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7500 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7501 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7502 CFLAGS="$xorg_testset_save_CFLAGS"
7503 fi
7504
7505 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7508 fi
7509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7511 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7512 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7513 then :
7514 printf %s "(cached) " >&6
7515 else case e in #(
7516 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517 /* end confdefs.h. */
7518 int i;
7519 _ACEOF
7520 if ac_fn_c_try_compile "$LINENO"
7521 then :
7522 xorg_cv_cc_flag_unused_command_line_argument=yes
7523 else case e in #(
7524 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7525 esac
7526 fi
7527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7528 esac
7529 fi
7530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7531 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7532 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7533 CFLAGS="$xorg_testset_save_CFLAGS"
7534 fi
7535
7536 found="no"
7537
7538 if test $found = "no" ; then
7539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7540 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7541 fi
7542
7543 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7545 fi
7546
7547 CFLAGS="$CFLAGS -Wlogical-op"
7548
7549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7550 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7551 cacheid=xorg_cv_cc_flag__Wlogical_op
7552 if eval test \${$cacheid+y}
7553 then :
7554 printf %s "(cached) " >&6
7555 else case e in #(
7556 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557 /* end confdefs.h. */
7558 int i;
7559 int
7560 main (void)
7561 {
7562
7563 ;
7564 return 0;
7565 }
7566 _ACEOF
7567 if ac_fn_c_try_link "$LINENO"
7568 then :
7569 eval $cacheid=yes
7570 else case e in #(
7571 e) eval $cacheid=no ;;
7572 esac
7573 fi
7574 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7575 conftest$ac_exeext conftest.$ac_ext ;;
7576 esac
7577 fi
7578
7579
7580 CFLAGS="$xorg_testset_save_CFLAGS"
7581
7582 eval supported=\$$cacheid
7583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7584 printf "%s\n" "$supported" >&6; }
7585 if test "$supported" = "yes" ; then
7586 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7587 found="yes"
7588 fi
7589 fi
7590
7591
7592
7593 # These are currently disabled because they are noisy. They will be enabled
7594 # in the future once the codebase is sufficiently modernized to silence
7595 # them. For now, I don't want them to drown out the other warnings.
7596 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7597 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7598 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7599
7600 # Turn some warnings into errors, so we don't accidentally get successful builds
7601 # when there are problems that should be fixed.
7602
7603 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617 xorg_testset_save_CFLAGS="$CFLAGS"
7618
7619 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7620 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7622 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7623 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7624 then :
7625 printf %s "(cached) " >&6
7626 else case e in #(
7627 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628 /* end confdefs.h. */
7629 int i;
7630 _ACEOF
7631 if ac_fn_c_try_compile "$LINENO"
7632 then :
7633 xorg_cv_cc_flag_unknown_warning_option=yes
7634 else case e in #(
7635 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7636 esac
7637 fi
7638 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7639 esac
7640 fi
7641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7642 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7643 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7644 CFLAGS="$xorg_testset_save_CFLAGS"
7645 fi
7646
7647 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7650 fi
7651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7653 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7654 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7655 then :
7656 printf %s "(cached) " >&6
7657 else case e in #(
7658 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7659 /* end confdefs.h. */
7660 int i;
7661 _ACEOF
7662 if ac_fn_c_try_compile "$LINENO"
7663 then :
7664 xorg_cv_cc_flag_unused_command_line_argument=yes
7665 else case e in #(
7666 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7667 esac
7668 fi
7669 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7670 esac
7671 fi
7672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7673 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7674 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7675 CFLAGS="$xorg_testset_save_CFLAGS"
7676 fi
7677
7678 found="no"
7679
7680 if test $found = "no" ; then
7681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7683 fi
7684
7685 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7687 fi
7688
7689 CFLAGS="$CFLAGS -Werror=implicit"
7690
7691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7692 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7693 cacheid=xorg_cv_cc_flag__Werror_implicit
7694 if eval test \${$cacheid+y}
7695 then :
7696 printf %s "(cached) " >&6
7697 else case e in #(
7698 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7699 /* end confdefs.h. */
7700 int i;
7701 int
7702 main (void)
7703 {
7704
7705 ;
7706 return 0;
7707 }
7708 _ACEOF
7709 if ac_fn_c_try_link "$LINENO"
7710 then :
7711 eval $cacheid=yes
7712 else case e in #(
7713 e) eval $cacheid=no ;;
7714 esac
7715 fi
7716 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7717 conftest$ac_exeext conftest.$ac_ext ;;
7718 esac
7719 fi
7720
7721
7722 CFLAGS="$xorg_testset_save_CFLAGS"
7723
7724 eval supported=\$$cacheid
7725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7726 printf "%s\n" "$supported" >&6; }
7727 if test "$supported" = "yes" ; then
7728 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7729 found="yes"
7730 fi
7731 fi
7732
7733 if test $found = "no" ; then
7734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7736 fi
7737
7738 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7740 fi
7741
7742 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7743
7744 { 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
7745 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7746 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7747 if eval test \${$cacheid+y}
7748 then :
7749 printf %s "(cached) " >&6
7750 else case e in #(
7751 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752 /* end confdefs.h. */
7753 int i;
7754 int
7755 main (void)
7756 {
7757
7758 ;
7759 return 0;
7760 }
7761 _ACEOF
7762 if ac_fn_c_try_link "$LINENO"
7763 then :
7764 eval $cacheid=yes
7765 else case e in #(
7766 e) eval $cacheid=no ;;
7767 esac
7768 fi
7769 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7770 conftest$ac_exeext conftest.$ac_ext ;;
7771 esac
7772 fi
7773
7774
7775 CFLAGS="$xorg_testset_save_CFLAGS"
7776
7777 eval supported=\$$cacheid
7778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7779 printf "%s\n" "$supported" >&6; }
7780 if test "$supported" = "yes" ; then
7781 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7782 found="yes"
7783 fi
7784 fi
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800 xorg_testset_save_CFLAGS="$CFLAGS"
7801
7802 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7805 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7806 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7807 then :
7808 printf %s "(cached) " >&6
7809 else case e in #(
7810 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811 /* end confdefs.h. */
7812 int i;
7813 _ACEOF
7814 if ac_fn_c_try_compile "$LINENO"
7815 then :
7816 xorg_cv_cc_flag_unknown_warning_option=yes
7817 else case e in #(
7818 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7819 esac
7820 fi
7821 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7822 esac
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 case e in #(
7841 e) 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 case e in #(
7849 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7850 esac
7851 fi
7852 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7853 esac
7854 fi
7855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7856 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7857 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7858 CFLAGS="$xorg_testset_save_CFLAGS"
7859 fi
7860
7861 found="no"
7862
7863 if test $found = "no" ; then
7864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7866 fi
7867
7868 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7870 fi
7871
7872 CFLAGS="$CFLAGS -Werror=nonnull"
7873
7874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7875 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7876 cacheid=xorg_cv_cc_flag__Werror_nonnull
7877 if eval test \${$cacheid+y}
7878 then :
7879 printf %s "(cached) " >&6
7880 else case e in #(
7881 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7882 /* end confdefs.h. */
7883 int i;
7884 int
7885 main (void)
7886 {
7887
7888 ;
7889 return 0;
7890 }
7891 _ACEOF
7892 if ac_fn_c_try_link "$LINENO"
7893 then :
7894 eval $cacheid=yes
7895 else case e in #(
7896 e) eval $cacheid=no ;;
7897 esac
7898 fi
7899 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7900 conftest$ac_exeext conftest.$ac_ext ;;
7901 esac
7902 fi
7903
7904
7905 CFLAGS="$xorg_testset_save_CFLAGS"
7906
7907 eval supported=\$$cacheid
7908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7909 printf "%s\n" "$supported" >&6; }
7910 if test "$supported" = "yes" ; then
7911 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7912 found="yes"
7913 fi
7914 fi
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930 xorg_testset_save_CFLAGS="$CFLAGS"
7931
7932 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7935 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7936 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7937 then :
7938 printf %s "(cached) " >&6
7939 else case e in #(
7940 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7941 /* end confdefs.h. */
7942 int i;
7943 _ACEOF
7944 if ac_fn_c_try_compile "$LINENO"
7945 then :
7946 xorg_cv_cc_flag_unknown_warning_option=yes
7947 else case e in #(
7948 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7949 esac
7950 fi
7951 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7952 esac
7953 fi
7954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7955 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7956 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7957 CFLAGS="$xorg_testset_save_CFLAGS"
7958 fi
7959
7960 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7963 fi
7964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7966 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7967 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7968 then :
7969 printf %s "(cached) " >&6
7970 else case e in #(
7971 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7972 /* end confdefs.h. */
7973 int i;
7974 _ACEOF
7975 if ac_fn_c_try_compile "$LINENO"
7976 then :
7977 xorg_cv_cc_flag_unused_command_line_argument=yes
7978 else case e in #(
7979 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7980 esac
7981 fi
7982 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7983 esac
7984 fi
7985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7986 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7987 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7988 CFLAGS="$xorg_testset_save_CFLAGS"
7989 fi
7990
7991 found="no"
7992
7993 if test $found = "no" ; then
7994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7996 fi
7997
7998 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8000 fi
8001
8002 CFLAGS="$CFLAGS -Werror=init-self"
8003
8004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
8005 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
8006 cacheid=xorg_cv_cc_flag__Werror_init_self
8007 if eval test \${$cacheid+y}
8008 then :
8009 printf %s "(cached) " >&6
8010 else case e in #(
8011 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8012 /* end confdefs.h. */
8013 int i;
8014 int
8015 main (void)
8016 {
8017
8018 ;
8019 return 0;
8020 }
8021 _ACEOF
8022 if ac_fn_c_try_link "$LINENO"
8023 then :
8024 eval $cacheid=yes
8025 else case e in #(
8026 e) eval $cacheid=no ;;
8027 esac
8028 fi
8029 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8030 conftest$ac_exeext conftest.$ac_ext ;;
8031 esac
8032 fi
8033
8034
8035 CFLAGS="$xorg_testset_save_CFLAGS"
8036
8037 eval supported=\$$cacheid
8038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8039 printf "%s\n" "$supported" >&6; }
8040 if test "$supported" = "yes" ; then
8041 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
8042 found="yes"
8043 fi
8044 fi
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060 xorg_testset_save_CFLAGS="$CFLAGS"
8061
8062 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8065 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8066 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8067 then :
8068 printf %s "(cached) " >&6
8069 else case e in #(
8070 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8071 /* end confdefs.h. */
8072 int i;
8073 _ACEOF
8074 if ac_fn_c_try_compile "$LINENO"
8075 then :
8076 xorg_cv_cc_flag_unknown_warning_option=yes
8077 else case e in #(
8078 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8079 esac
8080 fi
8081 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8082 esac
8083 fi
8084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8085 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8086 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8087 CFLAGS="$xorg_testset_save_CFLAGS"
8088 fi
8089
8090 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8093 fi
8094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8096 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8097 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8098 then :
8099 printf %s "(cached) " >&6
8100 else case e in #(
8101 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8102 /* end confdefs.h. */
8103 int i;
8104 _ACEOF
8105 if ac_fn_c_try_compile "$LINENO"
8106 then :
8107 xorg_cv_cc_flag_unused_command_line_argument=yes
8108 else case e in #(
8109 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8110 esac
8111 fi
8112 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8113 esac
8114 fi
8115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8116 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8117 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8118 CFLAGS="$xorg_testset_save_CFLAGS"
8119 fi
8120
8121 found="no"
8122
8123 if test $found = "no" ; then
8124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8125 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8126 fi
8127
8128 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8130 fi
8131
8132 CFLAGS="$CFLAGS -Werror=main"
8133
8134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
8135 printf %s "checking if $CC supports -Werror=main... " >&6; }
8136 cacheid=xorg_cv_cc_flag__Werror_main
8137 if eval test \${$cacheid+y}
8138 then :
8139 printf %s "(cached) " >&6
8140 else case e in #(
8141 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8142 /* end confdefs.h. */
8143 int i;
8144 int
8145 main (void)
8146 {
8147
8148 ;
8149 return 0;
8150 }
8151 _ACEOF
8152 if ac_fn_c_try_link "$LINENO"
8153 then :
8154 eval $cacheid=yes
8155 else case e in #(
8156 e) eval $cacheid=no ;;
8157 esac
8158 fi
8159 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8160 conftest$ac_exeext conftest.$ac_ext ;;
8161 esac
8162 fi
8163
8164
8165 CFLAGS="$xorg_testset_save_CFLAGS"
8166
8167 eval supported=\$$cacheid
8168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8169 printf "%s\n" "$supported" >&6; }
8170 if test "$supported" = "yes" ; then
8171 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
8172 found="yes"
8173 fi
8174 fi
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190 xorg_testset_save_CFLAGS="$CFLAGS"
8191
8192 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8195 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8196 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8197 then :
8198 printf %s "(cached) " >&6
8199 else case e in #(
8200 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8201 /* end confdefs.h. */
8202 int i;
8203 _ACEOF
8204 if ac_fn_c_try_compile "$LINENO"
8205 then :
8206 xorg_cv_cc_flag_unknown_warning_option=yes
8207 else case e in #(
8208 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8209 esac
8210 fi
8211 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8212 esac
8213 fi
8214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8215 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8216 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8217 CFLAGS="$xorg_testset_save_CFLAGS"
8218 fi
8219
8220 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8223 fi
8224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8226 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8227 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8228 then :
8229 printf %s "(cached) " >&6
8230 else case e in #(
8231 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8232 /* end confdefs.h. */
8233 int i;
8234 _ACEOF
8235 if ac_fn_c_try_compile "$LINENO"
8236 then :
8237 xorg_cv_cc_flag_unused_command_line_argument=yes
8238 else case e in #(
8239 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8240 esac
8241 fi
8242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8243 esac
8244 fi
8245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8246 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8247 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8248 CFLAGS="$xorg_testset_save_CFLAGS"
8249 fi
8250
8251 found="no"
8252
8253 if test $found = "no" ; then
8254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8256 fi
8257
8258 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8260 fi
8261
8262 CFLAGS="$CFLAGS -Werror=missing-braces"
8263
8264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8265 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8266 cacheid=xorg_cv_cc_flag__Werror_missing_braces
8267 if eval test \${$cacheid+y}
8268 then :
8269 printf %s "(cached) " >&6
8270 else case e in #(
8271 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272 /* end confdefs.h. */
8273 int i;
8274 int
8275 main (void)
8276 {
8277
8278 ;
8279 return 0;
8280 }
8281 _ACEOF
8282 if ac_fn_c_try_link "$LINENO"
8283 then :
8284 eval $cacheid=yes
8285 else case e in #(
8286 e) eval $cacheid=no ;;
8287 esac
8288 fi
8289 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8290 conftest$ac_exeext conftest.$ac_ext ;;
8291 esac
8292 fi
8293
8294
8295 CFLAGS="$xorg_testset_save_CFLAGS"
8296
8297 eval supported=\$$cacheid
8298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8299 printf "%s\n" "$supported" >&6; }
8300 if test "$supported" = "yes" ; then
8301 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8302 found="yes"
8303 fi
8304 fi
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320 xorg_testset_save_CFLAGS="$CFLAGS"
8321
8322 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8325 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8326 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8327 then :
8328 printf %s "(cached) " >&6
8329 else case e in #(
8330 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8331 /* end confdefs.h. */
8332 int i;
8333 _ACEOF
8334 if ac_fn_c_try_compile "$LINENO"
8335 then :
8336 xorg_cv_cc_flag_unknown_warning_option=yes
8337 else case e in #(
8338 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8339 esac
8340 fi
8341 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8342 esac
8343 fi
8344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8345 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8346 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8347 CFLAGS="$xorg_testset_save_CFLAGS"
8348 fi
8349
8350 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8352 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8353 fi
8354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8356 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8357 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8358 then :
8359 printf %s "(cached) " >&6
8360 else case e in #(
8361 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h. */
8363 int i;
8364 _ACEOF
8365 if ac_fn_c_try_compile "$LINENO"
8366 then :
8367 xorg_cv_cc_flag_unused_command_line_argument=yes
8368 else case e in #(
8369 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8370 esac
8371 fi
8372 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8373 esac
8374 fi
8375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8376 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8377 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8378 CFLAGS="$xorg_testset_save_CFLAGS"
8379 fi
8380
8381 found="no"
8382
8383 if test $found = "no" ; then
8384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8386 fi
8387
8388 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8390 fi
8391
8392 CFLAGS="$CFLAGS -Werror=sequence-point"
8393
8394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8395 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8396 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8397 if eval test \${$cacheid+y}
8398 then :
8399 printf %s "(cached) " >&6
8400 else case e in #(
8401 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8403 int i;
8404 int
8405 main (void)
8406 {
8407
8408 ;
8409 return 0;
8410 }
8411 _ACEOF
8412 if ac_fn_c_try_link "$LINENO"
8413 then :
8414 eval $cacheid=yes
8415 else case e in #(
8416 e) eval $cacheid=no ;;
8417 esac
8418 fi
8419 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8420 conftest$ac_exeext conftest.$ac_ext ;;
8421 esac
8422 fi
8423
8424
8425 CFLAGS="$xorg_testset_save_CFLAGS"
8426
8427 eval supported=\$$cacheid
8428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8429 printf "%s\n" "$supported" >&6; }
8430 if test "$supported" = "yes" ; then
8431 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8432 found="yes"
8433 fi
8434 fi
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450 xorg_testset_save_CFLAGS="$CFLAGS"
8451
8452 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8453 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8455 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8456 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8457 then :
8458 printf %s "(cached) " >&6
8459 else case e in #(
8460 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461 /* end confdefs.h. */
8462 int i;
8463 _ACEOF
8464 if ac_fn_c_try_compile "$LINENO"
8465 then :
8466 xorg_cv_cc_flag_unknown_warning_option=yes
8467 else case e in #(
8468 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8469 esac
8470 fi
8471 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8472 esac
8473 fi
8474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8475 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8476 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8477 CFLAGS="$xorg_testset_save_CFLAGS"
8478 fi
8479
8480 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8482 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8483 fi
8484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8486 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8487 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8488 then :
8489 printf %s "(cached) " >&6
8490 else case e in #(
8491 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492 /* end confdefs.h. */
8493 int i;
8494 _ACEOF
8495 if ac_fn_c_try_compile "$LINENO"
8496 then :
8497 xorg_cv_cc_flag_unused_command_line_argument=yes
8498 else case e in #(
8499 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8500 esac
8501 fi
8502 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8503 esac
8504 fi
8505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8506 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8507 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8508 CFLAGS="$xorg_testset_save_CFLAGS"
8509 fi
8510
8511 found="no"
8512
8513 if test $found = "no" ; then
8514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8516 fi
8517
8518 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8520 fi
8521
8522 CFLAGS="$CFLAGS -Werror=return-type"
8523
8524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8525 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8526 cacheid=xorg_cv_cc_flag__Werror_return_type
8527 if eval test \${$cacheid+y}
8528 then :
8529 printf %s "(cached) " >&6
8530 else case e in #(
8531 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8532 /* end confdefs.h. */
8533 int i;
8534 int
8535 main (void)
8536 {
8537
8538 ;
8539 return 0;
8540 }
8541 _ACEOF
8542 if ac_fn_c_try_link "$LINENO"
8543 then :
8544 eval $cacheid=yes
8545 else case e in #(
8546 e) eval $cacheid=no ;;
8547 esac
8548 fi
8549 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8550 conftest$ac_exeext conftest.$ac_ext ;;
8551 esac
8552 fi
8553
8554
8555 CFLAGS="$xorg_testset_save_CFLAGS"
8556
8557 eval supported=\$$cacheid
8558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8559 printf "%s\n" "$supported" >&6; }
8560 if test "$supported" = "yes" ; then
8561 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8562 found="yes"
8563 fi
8564 fi
8565
8566 if test $found = "no" ; then
8567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8568 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8569 fi
8570
8571 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8573 fi
8574
8575 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8576
8577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8578 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8579 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8580 if eval test \${$cacheid+y}
8581 then :
8582 printf %s "(cached) " >&6
8583 else case e in #(
8584 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8585 /* end confdefs.h. */
8586 int i;
8587 int
8588 main (void)
8589 {
8590
8591 ;
8592 return 0;
8593 }
8594 _ACEOF
8595 if ac_fn_c_try_link "$LINENO"
8596 then :
8597 eval $cacheid=yes
8598 else case e in #(
8599 e) eval $cacheid=no ;;
8600 esac
8601 fi
8602 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8603 conftest$ac_exeext conftest.$ac_ext ;;
8604 esac
8605 fi
8606
8607
8608 CFLAGS="$xorg_testset_save_CFLAGS"
8609
8610 eval supported=\$$cacheid
8611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8612 printf "%s\n" "$supported" >&6; }
8613 if test "$supported" = "yes" ; then
8614 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8615 found="yes"
8616 fi
8617 fi
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633 xorg_testset_save_CFLAGS="$CFLAGS"
8634
8635 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8638 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8639 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8640 then :
8641 printf %s "(cached) " >&6
8642 else case e in #(
8643 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8644 /* end confdefs.h. */
8645 int i;
8646 _ACEOF
8647 if ac_fn_c_try_compile "$LINENO"
8648 then :
8649 xorg_cv_cc_flag_unknown_warning_option=yes
8650 else case e in #(
8651 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8652 esac
8653 fi
8654 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8655 esac
8656 fi
8657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8658 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8659 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8660 CFLAGS="$xorg_testset_save_CFLAGS"
8661 fi
8662
8663 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8666 fi
8667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8669 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8670 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8671 then :
8672 printf %s "(cached) " >&6
8673 else case e in #(
8674 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8675 /* end confdefs.h. */
8676 int i;
8677 _ACEOF
8678 if ac_fn_c_try_compile "$LINENO"
8679 then :
8680 xorg_cv_cc_flag_unused_command_line_argument=yes
8681 else case e in #(
8682 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8683 esac
8684 fi
8685 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8686 esac
8687 fi
8688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8689 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8690 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8691 CFLAGS="$xorg_testset_save_CFLAGS"
8692 fi
8693
8694 found="no"
8695
8696 if test $found = "no" ; then
8697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8699 fi
8700
8701 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8703 fi
8704
8705 CFLAGS="$CFLAGS -Werror=trigraphs"
8706
8707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8708 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8709 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8710 if eval test \${$cacheid+y}
8711 then :
8712 printf %s "(cached) " >&6
8713 else case e in #(
8714 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8715 /* end confdefs.h. */
8716 int i;
8717 int
8718 main (void)
8719 {
8720
8721 ;
8722 return 0;
8723 }
8724 _ACEOF
8725 if ac_fn_c_try_link "$LINENO"
8726 then :
8727 eval $cacheid=yes
8728 else case e in #(
8729 e) eval $cacheid=no ;;
8730 esac
8731 fi
8732 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8733 conftest$ac_exeext conftest.$ac_ext ;;
8734 esac
8735 fi
8736
8737
8738 CFLAGS="$xorg_testset_save_CFLAGS"
8739
8740 eval supported=\$$cacheid
8741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8742 printf "%s\n" "$supported" >&6; }
8743 if test "$supported" = "yes" ; then
8744 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8745 found="yes"
8746 fi
8747 fi
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763 xorg_testset_save_CFLAGS="$CFLAGS"
8764
8765 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8768 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8769 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8770 then :
8771 printf %s "(cached) " >&6
8772 else case e in #(
8773 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8774 /* end confdefs.h. */
8775 int i;
8776 _ACEOF
8777 if ac_fn_c_try_compile "$LINENO"
8778 then :
8779 xorg_cv_cc_flag_unknown_warning_option=yes
8780 else case e in #(
8781 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8782 esac
8783 fi
8784 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8785 esac
8786 fi
8787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8788 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8789 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8790 CFLAGS="$xorg_testset_save_CFLAGS"
8791 fi
8792
8793 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8796 fi
8797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8799 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8800 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8801 then :
8802 printf %s "(cached) " >&6
8803 else case e in #(
8804 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h. */
8806 int i;
8807 _ACEOF
8808 if ac_fn_c_try_compile "$LINENO"
8809 then :
8810 xorg_cv_cc_flag_unused_command_line_argument=yes
8811 else case e in #(
8812 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8813 esac
8814 fi
8815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8816 esac
8817 fi
8818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8819 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8820 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8821 CFLAGS="$xorg_testset_save_CFLAGS"
8822 fi
8823
8824 found="no"
8825
8826 if test $found = "no" ; then
8827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8829 fi
8830
8831 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8833 fi
8834
8835 CFLAGS="$CFLAGS -Werror=array-bounds"
8836
8837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8838 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8839 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8840 if eval test \${$cacheid+y}
8841 then :
8842 printf %s "(cached) " >&6
8843 else case e in #(
8844 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8845 /* end confdefs.h. */
8846 int i;
8847 int
8848 main (void)
8849 {
8850
8851 ;
8852 return 0;
8853 }
8854 _ACEOF
8855 if ac_fn_c_try_link "$LINENO"
8856 then :
8857 eval $cacheid=yes
8858 else case e in #(
8859 e) eval $cacheid=no ;;
8860 esac
8861 fi
8862 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8863 conftest$ac_exeext conftest.$ac_ext ;;
8864 esac
8865 fi
8866
8867
8868 CFLAGS="$xorg_testset_save_CFLAGS"
8869
8870 eval supported=\$$cacheid
8871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8872 printf "%s\n" "$supported" >&6; }
8873 if test "$supported" = "yes" ; then
8874 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8875 found="yes"
8876 fi
8877 fi
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893 xorg_testset_save_CFLAGS="$CFLAGS"
8894
8895 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8898 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8899 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8900 then :
8901 printf %s "(cached) " >&6
8902 else case e in #(
8903 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h. */
8905 int i;
8906 _ACEOF
8907 if ac_fn_c_try_compile "$LINENO"
8908 then :
8909 xorg_cv_cc_flag_unknown_warning_option=yes
8910 else case e in #(
8911 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8912 esac
8913 fi
8914 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8915 esac
8916 fi
8917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8918 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8919 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8920 CFLAGS="$xorg_testset_save_CFLAGS"
8921 fi
8922
8923 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8926 fi
8927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8929 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8930 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8931 then :
8932 printf %s "(cached) " >&6
8933 else case e in #(
8934 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8935 /* end confdefs.h. */
8936 int i;
8937 _ACEOF
8938 if ac_fn_c_try_compile "$LINENO"
8939 then :
8940 xorg_cv_cc_flag_unused_command_line_argument=yes
8941 else case e in #(
8942 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8943 esac
8944 fi
8945 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8946 esac
8947 fi
8948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8949 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8950 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8951 CFLAGS="$xorg_testset_save_CFLAGS"
8952 fi
8953
8954 found="no"
8955
8956 if test $found = "no" ; then
8957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8959 fi
8960
8961 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8963 fi
8964
8965 CFLAGS="$CFLAGS -Werror=write-strings"
8966
8967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8968 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8969 cacheid=xorg_cv_cc_flag__Werror_write_strings
8970 if eval test \${$cacheid+y}
8971 then :
8972 printf %s "(cached) " >&6
8973 else case e in #(
8974 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8975 /* end confdefs.h. */
8976 int i;
8977 int
8978 main (void)
8979 {
8980
8981 ;
8982 return 0;
8983 }
8984 _ACEOF
8985 if ac_fn_c_try_link "$LINENO"
8986 then :
8987 eval $cacheid=yes
8988 else case e in #(
8989 e) eval $cacheid=no ;;
8990 esac
8991 fi
8992 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8993 conftest$ac_exeext conftest.$ac_ext ;;
8994 esac
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 -Werror=write-strings"
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 case e in #(
9033 e) 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 case e in #(
9041 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9042 esac
9043 fi
9044 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9045 esac
9046 fi
9047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9048 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9049 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9050 CFLAGS="$xorg_testset_save_CFLAGS"
9051 fi
9052
9053 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9055 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9056 fi
9057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9059 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9060 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9061 then :
9062 printf %s "(cached) " >&6
9063 else case e in #(
9064 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9065 /* end confdefs.h. */
9066 int i;
9067 _ACEOF
9068 if ac_fn_c_try_compile "$LINENO"
9069 then :
9070 xorg_cv_cc_flag_unused_command_line_argument=yes
9071 else case e in #(
9072 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9073 esac
9074 fi
9075 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9076 esac
9077 fi
9078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9079 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9080 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9081 CFLAGS="$xorg_testset_save_CFLAGS"
9082 fi
9083
9084 found="no"
9085
9086 if test $found = "no" ; then
9087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9088 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9089 fi
9090
9091 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9093 fi
9094
9095 CFLAGS="$CFLAGS -Werror=address"
9096
9097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
9098 printf %s "checking if $CC supports -Werror=address... " >&6; }
9099 cacheid=xorg_cv_cc_flag__Werror_address
9100 if eval test \${$cacheid+y}
9101 then :
9102 printf %s "(cached) " >&6
9103 else case e in #(
9104 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9105 /* end confdefs.h. */
9106 int i;
9107 int
9108 main (void)
9109 {
9110
9111 ;
9112 return 0;
9113 }
9114 _ACEOF
9115 if ac_fn_c_try_link "$LINENO"
9116 then :
9117 eval $cacheid=yes
9118 else case e in #(
9119 e) eval $cacheid=no ;;
9120 esac
9121 fi
9122 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9123 conftest$ac_exeext conftest.$ac_ext ;;
9124 esac
9125 fi
9126
9127
9128 CFLAGS="$xorg_testset_save_CFLAGS"
9129
9130 eval supported=\$$cacheid
9131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9132 printf "%s\n" "$supported" >&6; }
9133 if test "$supported" = "yes" ; then
9134 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
9135 found="yes"
9136 fi
9137 fi
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153 xorg_testset_save_CFLAGS="$CFLAGS"
9154
9155 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9156 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9158 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9159 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9160 then :
9161 printf %s "(cached) " >&6
9162 else case e in #(
9163 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9164 /* end confdefs.h. */
9165 int i;
9166 _ACEOF
9167 if ac_fn_c_try_compile "$LINENO"
9168 then :
9169 xorg_cv_cc_flag_unknown_warning_option=yes
9170 else case e in #(
9171 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9172 esac
9173 fi
9174 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9175 esac
9176 fi
9177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9178 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9179 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9180 CFLAGS="$xorg_testset_save_CFLAGS"
9181 fi
9182
9183 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9184 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9186 fi
9187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9189 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9190 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9191 then :
9192 printf %s "(cached) " >&6
9193 else case e in #(
9194 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9195 /* end confdefs.h. */
9196 int i;
9197 _ACEOF
9198 if ac_fn_c_try_compile "$LINENO"
9199 then :
9200 xorg_cv_cc_flag_unused_command_line_argument=yes
9201 else case e in #(
9202 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9203 esac
9204 fi
9205 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9206 esac
9207 fi
9208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9209 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9210 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9211 CFLAGS="$xorg_testset_save_CFLAGS"
9212 fi
9213
9214 found="no"
9215
9216 if test $found = "no" ; then
9217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9219 fi
9220
9221 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9223 fi
9224
9225 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
9226
9227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9228 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
9229 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9230 if eval test \${$cacheid+y}
9231 then :
9232 printf %s "(cached) " >&6
9233 else case e in #(
9234 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9235 /* end confdefs.h. */
9236 int i;
9237 int
9238 main (void)
9239 {
9240
9241 ;
9242 return 0;
9243 }
9244 _ACEOF
9245 if ac_fn_c_try_link "$LINENO"
9246 then :
9247 eval $cacheid=yes
9248 else case e in #(
9249 e) eval $cacheid=no ;;
9250 esac
9251 fi
9252 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9253 conftest$ac_exeext conftest.$ac_ext ;;
9254 esac
9255 fi
9256
9257
9258 CFLAGS="$xorg_testset_save_CFLAGS"
9259
9260 eval supported=\$$cacheid
9261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9262 printf "%s\n" "$supported" >&6; }
9263 if test "$supported" = "yes" ; then
9264 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9265 found="yes"
9266 fi
9267 fi
9268
9269 if test $found = "no" ; then
9270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9272 fi
9273
9274 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9276 fi
9277
9278 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9279
9280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9281 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9282 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9283 if eval test \${$cacheid+y}
9284 then :
9285 printf %s "(cached) " >&6
9286 else case e in #(
9287 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9288 /* end confdefs.h. */
9289 int i;
9290 int
9291 main (void)
9292 {
9293
9294 ;
9295 return 0;
9296 }
9297 _ACEOF
9298 if ac_fn_c_try_link "$LINENO"
9299 then :
9300 eval $cacheid=yes
9301 else case e in #(
9302 e) eval $cacheid=no ;;
9303 esac
9304 fi
9305 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9306 conftest$ac_exeext conftest.$ac_ext ;;
9307 esac
9308 fi
9309
9310
9311 CFLAGS="$xorg_testset_save_CFLAGS"
9312
9313 eval supported=\$$cacheid
9314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9315 printf "%s\n" "$supported" >&6; }
9316 if test "$supported" = "yes" ; then
9317 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9318 found="yes"
9319 fi
9320 fi
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336 xorg_testset_save_CFLAGS="$CFLAGS"
9337
9338 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9341 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9342 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9343 then :
9344 printf %s "(cached) " >&6
9345 else case e in #(
9346 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9347 /* end confdefs.h. */
9348 int i;
9349 _ACEOF
9350 if ac_fn_c_try_compile "$LINENO"
9351 then :
9352 xorg_cv_cc_flag_unknown_warning_option=yes
9353 else case e in #(
9354 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9355 esac
9356 fi
9357 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9358 esac
9359 fi
9360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9361 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9362 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9363 CFLAGS="$xorg_testset_save_CFLAGS"
9364 fi
9365
9366 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9369 fi
9370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9372 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9373 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9374 then :
9375 printf %s "(cached) " >&6
9376 else case e in #(
9377 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9378 /* end confdefs.h. */
9379 int i;
9380 _ACEOF
9381 if ac_fn_c_try_compile "$LINENO"
9382 then :
9383 xorg_cv_cc_flag_unused_command_line_argument=yes
9384 else case e in #(
9385 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9386 esac
9387 fi
9388 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9389 esac
9390 fi
9391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9392 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9393 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9394 CFLAGS="$xorg_testset_save_CFLAGS"
9395 fi
9396
9397 found="no"
9398
9399 if test $found = "no" ; then
9400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9401 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9402 fi
9403
9404 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9406 fi
9407
9408 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9409
9410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9411 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9412 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9413 if eval test \${$cacheid+y}
9414 then :
9415 printf %s "(cached) " >&6
9416 else case e in #(
9417 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9418 /* end confdefs.h. */
9419 int i;
9420 int
9421 main (void)
9422 {
9423
9424 ;
9425 return 0;
9426 }
9427 _ACEOF
9428 if ac_fn_c_try_link "$LINENO"
9429 then :
9430 eval $cacheid=yes
9431 else case e in #(
9432 e) eval $cacheid=no ;;
9433 esac
9434 fi
9435 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9436 conftest$ac_exeext conftest.$ac_ext ;;
9437 esac
9438 fi
9439
9440
9441 CFLAGS="$xorg_testset_save_CFLAGS"
9442
9443 eval supported=\$$cacheid
9444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9445 printf "%s\n" "$supported" >&6; }
9446 if test "$supported" = "yes" ; then
9447 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9448 found="yes"
9449 fi
9450 fi
9451
9452 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9453 else
9454 { 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
9455 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;}
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469 xorg_testset_save_CFLAGS="$CFLAGS"
9470
9471 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9472 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9474 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9475 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9476 then :
9477 printf %s "(cached) " >&6
9478 else case e in #(
9479 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9480 /* end confdefs.h. */
9481 int i;
9482 _ACEOF
9483 if ac_fn_c_try_compile "$LINENO"
9484 then :
9485 xorg_cv_cc_flag_unknown_warning_option=yes
9486 else case e in #(
9487 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9488 esac
9489 fi
9490 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9491 esac
9492 fi
9493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9494 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9495 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9496 CFLAGS="$xorg_testset_save_CFLAGS"
9497 fi
9498
9499 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9501 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9502 fi
9503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9505 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9506 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9507 then :
9508 printf %s "(cached) " >&6
9509 else case e in #(
9510 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9511 /* end confdefs.h. */
9512 int i;
9513 _ACEOF
9514 if ac_fn_c_try_compile "$LINENO"
9515 then :
9516 xorg_cv_cc_flag_unused_command_line_argument=yes
9517 else case e in #(
9518 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9519 esac
9520 fi
9521 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9522 esac
9523 fi
9524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9525 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9526 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9527 CFLAGS="$xorg_testset_save_CFLAGS"
9528 fi
9529
9530 found="no"
9531
9532 if test $found = "no" ; then
9533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9535 fi
9536
9537 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9539 fi
9540
9541 CFLAGS="$CFLAGS -Wimplicit"
9542
9543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9544 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9545 cacheid=xorg_cv_cc_flag__Wimplicit
9546 if eval test \${$cacheid+y}
9547 then :
9548 printf %s "(cached) " >&6
9549 else case e in #(
9550 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9551 /* end confdefs.h. */
9552 int i;
9553 int
9554 main (void)
9555 {
9556
9557 ;
9558 return 0;
9559 }
9560 _ACEOF
9561 if ac_fn_c_try_link "$LINENO"
9562 then :
9563 eval $cacheid=yes
9564 else case e in #(
9565 e) eval $cacheid=no ;;
9566 esac
9567 fi
9568 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9569 conftest$ac_exeext conftest.$ac_ext ;;
9570 esac
9571 fi
9572
9573
9574 CFLAGS="$xorg_testset_save_CFLAGS"
9575
9576 eval supported=\$$cacheid
9577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9578 printf "%s\n" "$supported" >&6; }
9579 if test "$supported" = "yes" ; then
9580 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9581 found="yes"
9582 fi
9583 fi
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599 xorg_testset_save_CFLAGS="$CFLAGS"
9600
9601 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9604 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9605 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9606 then :
9607 printf %s "(cached) " >&6
9608 else case e in #(
9609 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9610 /* end confdefs.h. */
9611 int i;
9612 _ACEOF
9613 if ac_fn_c_try_compile "$LINENO"
9614 then :
9615 xorg_cv_cc_flag_unknown_warning_option=yes
9616 else case e in #(
9617 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9618 esac
9619 fi
9620 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9621 esac
9622 fi
9623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9624 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9625 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9626 CFLAGS="$xorg_testset_save_CFLAGS"
9627 fi
9628
9629 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9632 fi
9633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9635 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9636 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9637 then :
9638 printf %s "(cached) " >&6
9639 else case e in #(
9640 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9641 /* end confdefs.h. */
9642 int i;
9643 _ACEOF
9644 if ac_fn_c_try_compile "$LINENO"
9645 then :
9646 xorg_cv_cc_flag_unused_command_line_argument=yes
9647 else case e in #(
9648 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9649 esac
9650 fi
9651 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9652 esac
9653 fi
9654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9655 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9656 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9657 CFLAGS="$xorg_testset_save_CFLAGS"
9658 fi
9659
9660 found="no"
9661
9662 if test $found = "no" ; then
9663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9665 fi
9666
9667 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9669 fi
9670
9671 CFLAGS="$CFLAGS -Wnonnull"
9672
9673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9674 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9675 cacheid=xorg_cv_cc_flag__Wnonnull
9676 if eval test \${$cacheid+y}
9677 then :
9678 printf %s "(cached) " >&6
9679 else case e in #(
9680 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9681 /* end confdefs.h. */
9682 int i;
9683 int
9684 main (void)
9685 {
9686
9687 ;
9688 return 0;
9689 }
9690 _ACEOF
9691 if ac_fn_c_try_link "$LINENO"
9692 then :
9693 eval $cacheid=yes
9694 else case e in #(
9695 e) eval $cacheid=no ;;
9696 esac
9697 fi
9698 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9699 conftest$ac_exeext conftest.$ac_ext ;;
9700 esac
9701 fi
9702
9703
9704 CFLAGS="$xorg_testset_save_CFLAGS"
9705
9706 eval supported=\$$cacheid
9707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9708 printf "%s\n" "$supported" >&6; }
9709 if test "$supported" = "yes" ; then
9710 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9711 found="yes"
9712 fi
9713 fi
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729 xorg_testset_save_CFLAGS="$CFLAGS"
9730
9731 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9734 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9735 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9736 then :
9737 printf %s "(cached) " >&6
9738 else case e in #(
9739 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9740 /* end confdefs.h. */
9741 int i;
9742 _ACEOF
9743 if ac_fn_c_try_compile "$LINENO"
9744 then :
9745 xorg_cv_cc_flag_unknown_warning_option=yes
9746 else case e in #(
9747 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9748 esac
9749 fi
9750 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9751 esac
9752 fi
9753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9754 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9755 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9756 CFLAGS="$xorg_testset_save_CFLAGS"
9757 fi
9758
9759 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9762 fi
9763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9765 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9766 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9767 then :
9768 printf %s "(cached) " >&6
9769 else case e in #(
9770 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9771 /* end confdefs.h. */
9772 int i;
9773 _ACEOF
9774 if ac_fn_c_try_compile "$LINENO"
9775 then :
9776 xorg_cv_cc_flag_unused_command_line_argument=yes
9777 else case e in #(
9778 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9779 esac
9780 fi
9781 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9782 esac
9783 fi
9784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9785 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9786 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9787 CFLAGS="$xorg_testset_save_CFLAGS"
9788 fi
9789
9790 found="no"
9791
9792 if test $found = "no" ; then
9793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9795 fi
9796
9797 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9799 fi
9800
9801 CFLAGS="$CFLAGS -Winit-self"
9802
9803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9804 printf %s "checking if $CC supports -Winit-self... " >&6; }
9805 cacheid=xorg_cv_cc_flag__Winit_self
9806 if eval test \${$cacheid+y}
9807 then :
9808 printf %s "(cached) " >&6
9809 else case e in #(
9810 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811 /* end confdefs.h. */
9812 int i;
9813 int
9814 main (void)
9815 {
9816
9817 ;
9818 return 0;
9819 }
9820 _ACEOF
9821 if ac_fn_c_try_link "$LINENO"
9822 then :
9823 eval $cacheid=yes
9824 else case e in #(
9825 e) eval $cacheid=no ;;
9826 esac
9827 fi
9828 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9829 conftest$ac_exeext conftest.$ac_ext ;;
9830 esac
9831 fi
9832
9833
9834 CFLAGS="$xorg_testset_save_CFLAGS"
9835
9836 eval supported=\$$cacheid
9837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9838 printf "%s\n" "$supported" >&6; }
9839 if test "$supported" = "yes" ; then
9840 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9841 found="yes"
9842 fi
9843 fi
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859 xorg_testset_save_CFLAGS="$CFLAGS"
9860
9861 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9864 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9865 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9866 then :
9867 printf %s "(cached) " >&6
9868 else case e in #(
9869 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870 /* end confdefs.h. */
9871 int i;
9872 _ACEOF
9873 if ac_fn_c_try_compile "$LINENO"
9874 then :
9875 xorg_cv_cc_flag_unknown_warning_option=yes
9876 else case e in #(
9877 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9878 esac
9879 fi
9880 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9881 esac
9882 fi
9883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9884 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9885 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9886 CFLAGS="$xorg_testset_save_CFLAGS"
9887 fi
9888
9889 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9892 fi
9893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9895 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9896 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9897 then :
9898 printf %s "(cached) " >&6
9899 else case e in #(
9900 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9901 /* end confdefs.h. */
9902 int i;
9903 _ACEOF
9904 if ac_fn_c_try_compile "$LINENO"
9905 then :
9906 xorg_cv_cc_flag_unused_command_line_argument=yes
9907 else case e in #(
9908 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9909 esac
9910 fi
9911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9912 esac
9913 fi
9914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9915 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9916 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9917 CFLAGS="$xorg_testset_save_CFLAGS"
9918 fi
9919
9920 found="no"
9921
9922 if test $found = "no" ; then
9923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9924 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9925 fi
9926
9927 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9929 fi
9930
9931 CFLAGS="$CFLAGS -Wmain"
9932
9933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9934 printf %s "checking if $CC supports -Wmain... " >&6; }
9935 cacheid=xorg_cv_cc_flag__Wmain
9936 if eval test \${$cacheid+y}
9937 then :
9938 printf %s "(cached) " >&6
9939 else case e in #(
9940 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941 /* end confdefs.h. */
9942 int i;
9943 int
9944 main (void)
9945 {
9946
9947 ;
9948 return 0;
9949 }
9950 _ACEOF
9951 if ac_fn_c_try_link "$LINENO"
9952 then :
9953 eval $cacheid=yes
9954 else case e in #(
9955 e) eval $cacheid=no ;;
9956 esac
9957 fi
9958 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9959 conftest$ac_exeext conftest.$ac_ext ;;
9960 esac
9961 fi
9962
9963
9964 CFLAGS="$xorg_testset_save_CFLAGS"
9965
9966 eval supported=\$$cacheid
9967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9968 printf "%s\n" "$supported" >&6; }
9969 if test "$supported" = "yes" ; then
9970 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9971 found="yes"
9972 fi
9973 fi
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989 xorg_testset_save_CFLAGS="$CFLAGS"
9990
9991 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9994 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9995 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9996 then :
9997 printf %s "(cached) " >&6
9998 else case e in #(
9999 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10000 /* end confdefs.h. */
10001 int i;
10002 _ACEOF
10003 if ac_fn_c_try_compile "$LINENO"
10004 then :
10005 xorg_cv_cc_flag_unknown_warning_option=yes
10006 else case e in #(
10007 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10008 esac
10009 fi
10010 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10011 esac
10012 fi
10013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10014 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10015 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10016 CFLAGS="$xorg_testset_save_CFLAGS"
10017 fi
10018
10019 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10022 fi
10023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10025 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10026 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10027 then :
10028 printf %s "(cached) " >&6
10029 else case e in #(
10030 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10031 /* end confdefs.h. */
10032 int i;
10033 _ACEOF
10034 if ac_fn_c_try_compile "$LINENO"
10035 then :
10036 xorg_cv_cc_flag_unused_command_line_argument=yes
10037 else case e in #(
10038 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10039 esac
10040 fi
10041 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10042 esac
10043 fi
10044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10045 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10046 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10047 CFLAGS="$xorg_testset_save_CFLAGS"
10048 fi
10049
10050 found="no"
10051
10052 if test $found = "no" ; then
10053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10054 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10055 fi
10056
10057 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10059 fi
10060
10061 CFLAGS="$CFLAGS -Wmissing-braces"
10062
10063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
10064 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
10065 cacheid=xorg_cv_cc_flag__Wmissing_braces
10066 if eval test \${$cacheid+y}
10067 then :
10068 printf %s "(cached) " >&6
10069 else case e in #(
10070 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10071 /* end confdefs.h. */
10072 int i;
10073 int
10074 main (void)
10075 {
10076
10077 ;
10078 return 0;
10079 }
10080 _ACEOF
10081 if ac_fn_c_try_link "$LINENO"
10082 then :
10083 eval $cacheid=yes
10084 else case e in #(
10085 e) eval $cacheid=no ;;
10086 esac
10087 fi
10088 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10089 conftest$ac_exeext conftest.$ac_ext ;;
10090 esac
10091 fi
10092
10093
10094 CFLAGS="$xorg_testset_save_CFLAGS"
10095
10096 eval supported=\$$cacheid
10097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10098 printf "%s\n" "$supported" >&6; }
10099 if test "$supported" = "yes" ; then
10100 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
10101 found="yes"
10102 fi
10103 fi
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119 xorg_testset_save_CFLAGS="$CFLAGS"
10120
10121 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10122 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10124 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10125 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10126 then :
10127 printf %s "(cached) " >&6
10128 else case e in #(
10129 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10130 /* end confdefs.h. */
10131 int i;
10132 _ACEOF
10133 if ac_fn_c_try_compile "$LINENO"
10134 then :
10135 xorg_cv_cc_flag_unknown_warning_option=yes
10136 else case e in #(
10137 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10138 esac
10139 fi
10140 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10141 esac
10142 fi
10143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10144 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10145 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10146 CFLAGS="$xorg_testset_save_CFLAGS"
10147 fi
10148
10149 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10152 fi
10153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10155 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10156 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10157 then :
10158 printf %s "(cached) " >&6
10159 else case e in #(
10160 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10161 /* end confdefs.h. */
10162 int i;
10163 _ACEOF
10164 if ac_fn_c_try_compile "$LINENO"
10165 then :
10166 xorg_cv_cc_flag_unused_command_line_argument=yes
10167 else case e in #(
10168 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10169 esac
10170 fi
10171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10172 esac
10173 fi
10174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10175 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10176 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10177 CFLAGS="$xorg_testset_save_CFLAGS"
10178 fi
10179
10180 found="no"
10181
10182 if test $found = "no" ; then
10183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10185 fi
10186
10187 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10189 fi
10190
10191 CFLAGS="$CFLAGS -Wsequence-point"
10192
10193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
10194 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
10195 cacheid=xorg_cv_cc_flag__Wsequence_point
10196 if eval test \${$cacheid+y}
10197 then :
10198 printf %s "(cached) " >&6
10199 else case e in #(
10200 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10201 /* end confdefs.h. */
10202 int i;
10203 int
10204 main (void)
10205 {
10206
10207 ;
10208 return 0;
10209 }
10210 _ACEOF
10211 if ac_fn_c_try_link "$LINENO"
10212 then :
10213 eval $cacheid=yes
10214 else case e in #(
10215 e) eval $cacheid=no ;;
10216 esac
10217 fi
10218 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10219 conftest$ac_exeext conftest.$ac_ext ;;
10220 esac
10221 fi
10222
10223
10224 CFLAGS="$xorg_testset_save_CFLAGS"
10225
10226 eval supported=\$$cacheid
10227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10228 printf "%s\n" "$supported" >&6; }
10229 if test "$supported" = "yes" ; then
10230 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
10231 found="yes"
10232 fi
10233 fi
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249 xorg_testset_save_CFLAGS="$CFLAGS"
10250
10251 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10252 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10254 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10255 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10256 then :
10257 printf %s "(cached) " >&6
10258 else case e in #(
10259 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10260 /* end confdefs.h. */
10261 int i;
10262 _ACEOF
10263 if ac_fn_c_try_compile "$LINENO"
10264 then :
10265 xorg_cv_cc_flag_unknown_warning_option=yes
10266 else case e in #(
10267 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10268 esac
10269 fi
10270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10271 esac
10272 fi
10273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10274 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10275 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10276 CFLAGS="$xorg_testset_save_CFLAGS"
10277 fi
10278
10279 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10281 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10282 fi
10283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10285 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10286 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10287 then :
10288 printf %s "(cached) " >&6
10289 else case e in #(
10290 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291 /* end confdefs.h. */
10292 int i;
10293 _ACEOF
10294 if ac_fn_c_try_compile "$LINENO"
10295 then :
10296 xorg_cv_cc_flag_unused_command_line_argument=yes
10297 else case e in #(
10298 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10299 esac
10300 fi
10301 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10302 esac
10303 fi
10304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10305 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10306 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10307 CFLAGS="$xorg_testset_save_CFLAGS"
10308 fi
10309
10310 found="no"
10311
10312 if test $found = "no" ; then
10313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10315 fi
10316
10317 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10319 fi
10320
10321 CFLAGS="$CFLAGS -Wreturn-type"
10322
10323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10324 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10325 cacheid=xorg_cv_cc_flag__Wreturn_type
10326 if eval test \${$cacheid+y}
10327 then :
10328 printf %s "(cached) " >&6
10329 else case e in #(
10330 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10331 /* end confdefs.h. */
10332 int i;
10333 int
10334 main (void)
10335 {
10336
10337 ;
10338 return 0;
10339 }
10340 _ACEOF
10341 if ac_fn_c_try_link "$LINENO"
10342 then :
10343 eval $cacheid=yes
10344 else case e in #(
10345 e) eval $cacheid=no ;;
10346 esac
10347 fi
10348 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10349 conftest$ac_exeext conftest.$ac_ext ;;
10350 esac
10351 fi
10352
10353
10354 CFLAGS="$xorg_testset_save_CFLAGS"
10355
10356 eval supported=\$$cacheid
10357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10358 printf "%s\n" "$supported" >&6; }
10359 if test "$supported" = "yes" ; then
10360 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10361 found="yes"
10362 fi
10363 fi
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379 xorg_testset_save_CFLAGS="$CFLAGS"
10380
10381 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10384 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10385 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10386 then :
10387 printf %s "(cached) " >&6
10388 else case e in #(
10389 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10390 /* end confdefs.h. */
10391 int i;
10392 _ACEOF
10393 if ac_fn_c_try_compile "$LINENO"
10394 then :
10395 xorg_cv_cc_flag_unknown_warning_option=yes
10396 else case e in #(
10397 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10398 esac
10399 fi
10400 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10401 esac
10402 fi
10403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10404 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10405 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10406 CFLAGS="$xorg_testset_save_CFLAGS"
10407 fi
10408
10409 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10412 fi
10413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10415 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10416 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10417 then :
10418 printf %s "(cached) " >&6
10419 else case e in #(
10420 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h. */
10422 int i;
10423 _ACEOF
10424 if ac_fn_c_try_compile "$LINENO"
10425 then :
10426 xorg_cv_cc_flag_unused_command_line_argument=yes
10427 else case e in #(
10428 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10429 esac
10430 fi
10431 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10432 esac
10433 fi
10434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10435 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10436 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10437 CFLAGS="$xorg_testset_save_CFLAGS"
10438 fi
10439
10440 found="no"
10441
10442 if test $found = "no" ; then
10443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10445 fi
10446
10447 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10449 fi
10450
10451 CFLAGS="$CFLAGS -Wtrigraphs"
10452
10453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10454 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10455 cacheid=xorg_cv_cc_flag__Wtrigraphs
10456 if eval test \${$cacheid+y}
10457 then :
10458 printf %s "(cached) " >&6
10459 else case e in #(
10460 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10461 /* end confdefs.h. */
10462 int i;
10463 int
10464 main (void)
10465 {
10466
10467 ;
10468 return 0;
10469 }
10470 _ACEOF
10471 if ac_fn_c_try_link "$LINENO"
10472 then :
10473 eval $cacheid=yes
10474 else case e in #(
10475 e) eval $cacheid=no ;;
10476 esac
10477 fi
10478 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10479 conftest$ac_exeext conftest.$ac_ext ;;
10480 esac
10481 fi
10482
10483
10484 CFLAGS="$xorg_testset_save_CFLAGS"
10485
10486 eval supported=\$$cacheid
10487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10488 printf "%s\n" "$supported" >&6; }
10489 if test "$supported" = "yes" ; then
10490 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10491 found="yes"
10492 fi
10493 fi
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509 xorg_testset_save_CFLAGS="$CFLAGS"
10510
10511 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10514 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10515 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10516 then :
10517 printf %s "(cached) " >&6
10518 else case e in #(
10519 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10520 /* end confdefs.h. */
10521 int i;
10522 _ACEOF
10523 if ac_fn_c_try_compile "$LINENO"
10524 then :
10525 xorg_cv_cc_flag_unknown_warning_option=yes
10526 else case e in #(
10527 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10528 esac
10529 fi
10530 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10531 esac
10532 fi
10533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10534 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10535 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10536 CFLAGS="$xorg_testset_save_CFLAGS"
10537 fi
10538
10539 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10542 fi
10543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10545 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10546 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10547 then :
10548 printf %s "(cached) " >&6
10549 else case e in #(
10550 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10551 /* end confdefs.h. */
10552 int i;
10553 _ACEOF
10554 if ac_fn_c_try_compile "$LINENO"
10555 then :
10556 xorg_cv_cc_flag_unused_command_line_argument=yes
10557 else case e in #(
10558 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10559 esac
10560 fi
10561 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10562 esac
10563 fi
10564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10565 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10566 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10567 CFLAGS="$xorg_testset_save_CFLAGS"
10568 fi
10569
10570 found="no"
10571
10572 if test $found = "no" ; then
10573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10575 fi
10576
10577 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10579 fi
10580
10581 CFLAGS="$CFLAGS -Warray-bounds"
10582
10583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10584 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10585 cacheid=xorg_cv_cc_flag__Warray_bounds
10586 if eval test \${$cacheid+y}
10587 then :
10588 printf %s "(cached) " >&6
10589 else case e in #(
10590 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10591 /* end confdefs.h. */
10592 int i;
10593 int
10594 main (void)
10595 {
10596
10597 ;
10598 return 0;
10599 }
10600 _ACEOF
10601 if ac_fn_c_try_link "$LINENO"
10602 then :
10603 eval $cacheid=yes
10604 else case e in #(
10605 e) eval $cacheid=no ;;
10606 esac
10607 fi
10608 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10609 conftest$ac_exeext conftest.$ac_ext ;;
10610 esac
10611 fi
10612
10613
10614 CFLAGS="$xorg_testset_save_CFLAGS"
10615
10616 eval supported=\$$cacheid
10617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10618 printf "%s\n" "$supported" >&6; }
10619 if test "$supported" = "yes" ; then
10620 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10621 found="yes"
10622 fi
10623 fi
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639 xorg_testset_save_CFLAGS="$CFLAGS"
10640
10641 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10642 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10644 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10645 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10646 then :
10647 printf %s "(cached) " >&6
10648 else case e in #(
10649 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10650 /* end confdefs.h. */
10651 int i;
10652 _ACEOF
10653 if ac_fn_c_try_compile "$LINENO"
10654 then :
10655 xorg_cv_cc_flag_unknown_warning_option=yes
10656 else case e in #(
10657 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10658 esac
10659 fi
10660 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10661 esac
10662 fi
10663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10664 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10665 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10666 CFLAGS="$xorg_testset_save_CFLAGS"
10667 fi
10668
10669 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10672 fi
10673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10675 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10676 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10677 then :
10678 printf %s "(cached) " >&6
10679 else case e in #(
10680 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10681 /* end confdefs.h. */
10682 int i;
10683 _ACEOF
10684 if ac_fn_c_try_compile "$LINENO"
10685 then :
10686 xorg_cv_cc_flag_unused_command_line_argument=yes
10687 else case e in #(
10688 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10689 esac
10690 fi
10691 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10692 esac
10693 fi
10694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10695 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10696 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10697 CFLAGS="$xorg_testset_save_CFLAGS"
10698 fi
10699
10700 found="no"
10701
10702 if test $found = "no" ; then
10703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10704 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10705 fi
10706
10707 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10709 fi
10710
10711 CFLAGS="$CFLAGS -Wwrite-strings"
10712
10713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10714 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10715 cacheid=xorg_cv_cc_flag__Wwrite_strings
10716 if eval test \${$cacheid+y}
10717 then :
10718 printf %s "(cached) " >&6
10719 else case e in #(
10720 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10721 /* end confdefs.h. */
10722 int i;
10723 int
10724 main (void)
10725 {
10726
10727 ;
10728 return 0;
10729 }
10730 _ACEOF
10731 if ac_fn_c_try_link "$LINENO"
10732 then :
10733 eval $cacheid=yes
10734 else case e in #(
10735 e) eval $cacheid=no ;;
10736 esac
10737 fi
10738 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10739 conftest$ac_exeext conftest.$ac_ext ;;
10740 esac
10741 fi
10742
10743
10744 CFLAGS="$xorg_testset_save_CFLAGS"
10745
10746 eval supported=\$$cacheid
10747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10748 printf "%s\n" "$supported" >&6; }
10749 if test "$supported" = "yes" ; then
10750 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10751 found="yes"
10752 fi
10753 fi
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769 xorg_testset_save_CFLAGS="$CFLAGS"
10770
10771 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10774 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10775 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10776 then :
10777 printf %s "(cached) " >&6
10778 else case e in #(
10779 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10780 /* end confdefs.h. */
10781 int i;
10782 _ACEOF
10783 if ac_fn_c_try_compile "$LINENO"
10784 then :
10785 xorg_cv_cc_flag_unknown_warning_option=yes
10786 else case e in #(
10787 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10788 esac
10789 fi
10790 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10791 esac
10792 fi
10793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10794 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10795 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10796 CFLAGS="$xorg_testset_save_CFLAGS"
10797 fi
10798
10799 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10802 fi
10803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10805 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10806 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10807 then :
10808 printf %s "(cached) " >&6
10809 else case e in #(
10810 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10811 /* end confdefs.h. */
10812 int i;
10813 _ACEOF
10814 if ac_fn_c_try_compile "$LINENO"
10815 then :
10816 xorg_cv_cc_flag_unused_command_line_argument=yes
10817 else case e in #(
10818 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10819 esac
10820 fi
10821 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10822 esac
10823 fi
10824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10825 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10826 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10827 CFLAGS="$xorg_testset_save_CFLAGS"
10828 fi
10829
10830 found="no"
10831
10832 if test $found = "no" ; then
10833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10835 fi
10836
10837 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10839 fi
10840
10841 CFLAGS="$CFLAGS -Waddress"
10842
10843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10844 printf %s "checking if $CC supports -Waddress... " >&6; }
10845 cacheid=xorg_cv_cc_flag__Waddress
10846 if eval test \${$cacheid+y}
10847 then :
10848 printf %s "(cached) " >&6
10849 else case e in #(
10850 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10851 /* end confdefs.h. */
10852 int i;
10853 int
10854 main (void)
10855 {
10856
10857 ;
10858 return 0;
10859 }
10860 _ACEOF
10861 if ac_fn_c_try_link "$LINENO"
10862 then :
10863 eval $cacheid=yes
10864 else case e in #(
10865 e) eval $cacheid=no ;;
10866 esac
10867 fi
10868 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10869 conftest$ac_exeext conftest.$ac_ext ;;
10870 esac
10871 fi
10872
10873
10874 CFLAGS="$xorg_testset_save_CFLAGS"
10875
10876 eval supported=\$$cacheid
10877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10878 printf "%s\n" "$supported" >&6; }
10879 if test "$supported" = "yes" ; then
10880 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10881 found="yes"
10882 fi
10883 fi
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899 xorg_testset_save_CFLAGS="$CFLAGS"
10900
10901 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10902 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10904 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10905 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10906 then :
10907 printf %s "(cached) " >&6
10908 else case e in #(
10909 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10910 /* end confdefs.h. */
10911 int i;
10912 _ACEOF
10913 if ac_fn_c_try_compile "$LINENO"
10914 then :
10915 xorg_cv_cc_flag_unknown_warning_option=yes
10916 else case e in #(
10917 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10918 esac
10919 fi
10920 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10921 esac
10922 fi
10923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10924 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10925 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10926 CFLAGS="$xorg_testset_save_CFLAGS"
10927 fi
10928
10929 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10931 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10932 fi
10933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10935 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10936 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10937 then :
10938 printf %s "(cached) " >&6
10939 else case e in #(
10940 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10941 /* end confdefs.h. */
10942 int i;
10943 _ACEOF
10944 if ac_fn_c_try_compile "$LINENO"
10945 then :
10946 xorg_cv_cc_flag_unused_command_line_argument=yes
10947 else case e in #(
10948 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10949 esac
10950 fi
10951 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10952 esac
10953 fi
10954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10955 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10956 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10957 CFLAGS="$xorg_testset_save_CFLAGS"
10958 fi
10959
10960 found="no"
10961
10962 if test $found = "no" ; then
10963 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10964 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10965 fi
10966
10967 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10969 fi
10970
10971 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10972
10973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10974 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10975 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10976 if eval test \${$cacheid+y}
10977 then :
10978 printf %s "(cached) " >&6
10979 else case e in #(
10980 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10981 /* end confdefs.h. */
10982 int i;
10983 int
10984 main (void)
10985 {
10986
10987 ;
10988 return 0;
10989 }
10990 _ACEOF
10991 if ac_fn_c_try_link "$LINENO"
10992 then :
10993 eval $cacheid=yes
10994 else case e in #(
10995 e) eval $cacheid=no ;;
10996 esac
10997 fi
10998 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10999 conftest$ac_exeext conftest.$ac_ext ;;
11000 esac
11001 fi
11002
11003
11004 CFLAGS="$xorg_testset_save_CFLAGS"
11005
11006 eval supported=\$$cacheid
11007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11008 printf "%s\n" "$supported" >&6; }
11009 if test "$supported" = "yes" ; then
11010 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
11011 found="yes"
11012 fi
11013 fi
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029 xorg_testset_save_CFLAGS="$CFLAGS"
11030
11031 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11034 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11035 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11036 then :
11037 printf %s "(cached) " >&6
11038 else case e in #(
11039 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11040 /* end confdefs.h. */
11041 int i;
11042 _ACEOF
11043 if ac_fn_c_try_compile "$LINENO"
11044 then :
11045 xorg_cv_cc_flag_unknown_warning_option=yes
11046 else case e in #(
11047 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11048 esac
11049 fi
11050 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11051 esac
11052 fi
11053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11054 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11055 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11056 CFLAGS="$xorg_testset_save_CFLAGS"
11057 fi
11058
11059 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11061 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11062 fi
11063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11065 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11066 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11067 then :
11068 printf %s "(cached) " >&6
11069 else case e in #(
11070 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11071 /* end confdefs.h. */
11072 int i;
11073 _ACEOF
11074 if ac_fn_c_try_compile "$LINENO"
11075 then :
11076 xorg_cv_cc_flag_unused_command_line_argument=yes
11077 else case e in #(
11078 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11079 esac
11080 fi
11081 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11082 esac
11083 fi
11084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11085 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11086 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11087 CFLAGS="$xorg_testset_save_CFLAGS"
11088 fi
11089
11090 found="no"
11091
11092 if test $found = "no" ; then
11093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11094 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11095 fi
11096
11097 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11099 fi
11100
11101 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
11102
11103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
11104 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
11105 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
11106 if eval test \${$cacheid+y}
11107 then :
11108 printf %s "(cached) " >&6
11109 else case e in #(
11110 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11111 /* end confdefs.h. */
11112 int i;
11113 int
11114 main (void)
11115 {
11116
11117 ;
11118 return 0;
11119 }
11120 _ACEOF
11121 if ac_fn_c_try_link "$LINENO"
11122 then :
11123 eval $cacheid=yes
11124 else case e in #(
11125 e) eval $cacheid=no ;;
11126 esac
11127 fi
11128 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11129 conftest$ac_exeext conftest.$ac_ext ;;
11130 esac
11131 fi
11132
11133
11134 CFLAGS="$xorg_testset_save_CFLAGS"
11135
11136 eval supported=\$$cacheid
11137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11138 printf "%s\n" "$supported" >&6; }
11139 if test "$supported" = "yes" ; then
11140 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
11141 found="yes"
11142 fi
11143 fi
11144
11145
11146 fi
11147
11148
11149
11150
11151
11152
11153
11154 CWARNFLAGS="$BASE_CFLAGS"
11155 if test "x$GCC" = xyes ; then
11156 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
11157 fi
11158
11159
11160
11161
11162
11163
11164
11165
11166 # Check whether --enable-strict-compilation was given.
11167 if test ${enable_strict_compilation+y}
11168 then :
11169 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11170 else case e in #(
11171 e) STRICT_COMPILE=no ;;
11172 esac
11173 fi
11174
11175
11176
11177
11178
11179
11180 STRICT_CFLAGS=""
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194 xorg_testset_save_CFLAGS="$CFLAGS"
11195
11196 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11199 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11200 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11201 then :
11202 printf %s "(cached) " >&6
11203 else case e in #(
11204 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11205 /* end confdefs.h. */
11206 int i;
11207 _ACEOF
11208 if ac_fn_c_try_compile "$LINENO"
11209 then :
11210 xorg_cv_cc_flag_unknown_warning_option=yes
11211 else case e in #(
11212 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11213 esac
11214 fi
11215 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11216 esac
11217 fi
11218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11219 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11220 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11221 CFLAGS="$xorg_testset_save_CFLAGS"
11222 fi
11223
11224 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11227 fi
11228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11230 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11231 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11232 then :
11233 printf %s "(cached) " >&6
11234 else case e in #(
11235 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11236 /* end confdefs.h. */
11237 int i;
11238 _ACEOF
11239 if ac_fn_c_try_compile "$LINENO"
11240 then :
11241 xorg_cv_cc_flag_unused_command_line_argument=yes
11242 else case e in #(
11243 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11244 esac
11245 fi
11246 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11247 esac
11248 fi
11249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11250 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11251 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11252 CFLAGS="$xorg_testset_save_CFLAGS"
11253 fi
11254
11255 found="no"
11256
11257 if test $found = "no" ; then
11258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11259 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11260 fi
11261
11262 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11264 fi
11265
11266 CFLAGS="$CFLAGS -pedantic"
11267
11268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11269 printf %s "checking if $CC supports -pedantic... " >&6; }
11270 cacheid=xorg_cv_cc_flag__pedantic
11271 if eval test \${$cacheid+y}
11272 then :
11273 printf %s "(cached) " >&6
11274 else case e in #(
11275 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11276 /* end confdefs.h. */
11277 int i;
11278 int
11279 main (void)
11280 {
11281
11282 ;
11283 return 0;
11284 }
11285 _ACEOF
11286 if ac_fn_c_try_link "$LINENO"
11287 then :
11288 eval $cacheid=yes
11289 else case e in #(
11290 e) eval $cacheid=no ;;
11291 esac
11292 fi
11293 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11294 conftest$ac_exeext conftest.$ac_ext ;;
11295 esac
11296 fi
11297
11298
11299 CFLAGS="$xorg_testset_save_CFLAGS"
11300
11301 eval supported=\$$cacheid
11302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11303 printf "%s\n" "$supported" >&6; }
11304 if test "$supported" = "yes" ; then
11305 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11306 found="yes"
11307 fi
11308 fi
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324 xorg_testset_save_CFLAGS="$CFLAGS"
11325
11326 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11329 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11330 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11331 then :
11332 printf %s "(cached) " >&6
11333 else case e in #(
11334 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11335 /* end confdefs.h. */
11336 int i;
11337 _ACEOF
11338 if ac_fn_c_try_compile "$LINENO"
11339 then :
11340 xorg_cv_cc_flag_unknown_warning_option=yes
11341 else case e in #(
11342 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11343 esac
11344 fi
11345 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11346 esac
11347 fi
11348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11349 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11350 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11351 CFLAGS="$xorg_testset_save_CFLAGS"
11352 fi
11353
11354 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11357 fi
11358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11360 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11361 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11362 then :
11363 printf %s "(cached) " >&6
11364 else case e in #(
11365 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11366 /* end confdefs.h. */
11367 int i;
11368 _ACEOF
11369 if ac_fn_c_try_compile "$LINENO"
11370 then :
11371 xorg_cv_cc_flag_unused_command_line_argument=yes
11372 else case e in #(
11373 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11374 esac
11375 fi
11376 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11377 esac
11378 fi
11379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11380 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11381 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11382 CFLAGS="$xorg_testset_save_CFLAGS"
11383 fi
11384
11385 found="no"
11386
11387 if test $found = "no" ; then
11388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11390 fi
11391
11392 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11394 fi
11395
11396 CFLAGS="$CFLAGS -Werror"
11397
11398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11399 printf %s "checking if $CC supports -Werror... " >&6; }
11400 cacheid=xorg_cv_cc_flag__Werror
11401 if eval test \${$cacheid+y}
11402 then :
11403 printf %s "(cached) " >&6
11404 else case e in #(
11405 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11406 /* end confdefs.h. */
11407 int i;
11408 int
11409 main (void)
11410 {
11411
11412 ;
11413 return 0;
11414 }
11415 _ACEOF
11416 if ac_fn_c_try_link "$LINENO"
11417 then :
11418 eval $cacheid=yes
11419 else case e in #(
11420 e) eval $cacheid=no ;;
11421 esac
11422 fi
11423 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11424 conftest$ac_exeext conftest.$ac_ext ;;
11425 esac
11426 fi
11427
11428
11429 CFLAGS="$xorg_testset_save_CFLAGS"
11430
11431 eval supported=\$$cacheid
11432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11433 printf "%s\n" "$supported" >&6; }
11434 if test "$supported" = "yes" ; then
11435 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11436 found="yes"
11437 fi
11438 fi
11439
11440 if test $found = "no" ; then
11441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11442 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11443 fi
11444
11445 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11447 fi
11448
11449 CFLAGS="$CFLAGS -errwarn"
11450
11451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11452 printf %s "checking if $CC supports -errwarn... " >&6; }
11453 cacheid=xorg_cv_cc_flag__errwarn
11454 if eval test \${$cacheid+y}
11455 then :
11456 printf %s "(cached) " >&6
11457 else case e in #(
11458 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11459 /* end confdefs.h. */
11460 int i;
11461 int
11462 main (void)
11463 {
11464
11465 ;
11466 return 0;
11467 }
11468 _ACEOF
11469 if ac_fn_c_try_link "$LINENO"
11470 then :
11471 eval $cacheid=yes
11472 else case e in #(
11473 e) eval $cacheid=no ;;
11474 esac
11475 fi
11476 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11477 conftest$ac_exeext conftest.$ac_ext ;;
11478 esac
11479 fi
11480
11481
11482 CFLAGS="$xorg_testset_save_CFLAGS"
11483
11484 eval supported=\$$cacheid
11485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11486 printf "%s\n" "$supported" >&6; }
11487 if test "$supported" = "yes" ; then
11488 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11489 found="yes"
11490 fi
11491 fi
11492
11493
11494
11495 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11496 # activate it with -Werror, so we add it here explicitly.
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510 xorg_testset_save_CFLAGS="$CFLAGS"
11511
11512 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11515 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11516 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11517 then :
11518 printf %s "(cached) " >&6
11519 else case e in #(
11520 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11521 /* end confdefs.h. */
11522 int i;
11523 _ACEOF
11524 if ac_fn_c_try_compile "$LINENO"
11525 then :
11526 xorg_cv_cc_flag_unknown_warning_option=yes
11527 else case e in #(
11528 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11529 esac
11530 fi
11531 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11532 esac
11533 fi
11534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11535 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11536 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11537 CFLAGS="$xorg_testset_save_CFLAGS"
11538 fi
11539
11540 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11543 fi
11544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11546 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11547 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11548 then :
11549 printf %s "(cached) " >&6
11550 else case e in #(
11551 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11552 /* end confdefs.h. */
11553 int i;
11554 _ACEOF
11555 if ac_fn_c_try_compile "$LINENO"
11556 then :
11557 xorg_cv_cc_flag_unused_command_line_argument=yes
11558 else case e in #(
11559 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11560 esac
11561 fi
11562 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11563 esac
11564 fi
11565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11566 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11567 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11568 CFLAGS="$xorg_testset_save_CFLAGS"
11569 fi
11570
11571 found="no"
11572
11573 if test $found = "no" ; then
11574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11576 fi
11577
11578 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11580 fi
11581
11582 CFLAGS="$CFLAGS -Werror=attributes"
11583
11584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11585 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11586 cacheid=xorg_cv_cc_flag__Werror_attributes
11587 if eval test \${$cacheid+y}
11588 then :
11589 printf %s "(cached) " >&6
11590 else case e in #(
11591 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11592 /* end confdefs.h. */
11593 int i;
11594 int
11595 main (void)
11596 {
11597
11598 ;
11599 return 0;
11600 }
11601 _ACEOF
11602 if ac_fn_c_try_link "$LINENO"
11603 then :
11604 eval $cacheid=yes
11605 else case e in #(
11606 e) eval $cacheid=no ;;
11607 esac
11608 fi
11609 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11610 conftest$ac_exeext conftest.$ac_ext ;;
11611 esac
11612 fi
11613
11614
11615 CFLAGS="$xorg_testset_save_CFLAGS"
11616
11617 eval supported=\$$cacheid
11618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11619 printf "%s\n" "$supported" >&6; }
11620 if test "$supported" = "yes" ; then
11621 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11622 found="yes"
11623 fi
11624 fi
11625
11626
11627
11628 if test "x$STRICT_COMPILE" = "xyes"; then
11629 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11630 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11631 fi
11632
11633
11634
11635
11636
11637
11638
11639
11640 cat >>confdefs.h <<_ACEOF
11641 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11642 _ACEOF
11643
11644 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11645 if test "x$PVM" = "x"; then
11646 PVM="0"
11647 fi
11648
11649 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11650
11651 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11652 if test "x$PVP" = "x"; then
11653 PVP="0"
11654 fi
11655
11656 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11657
11658
11659
11660 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11661 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11662 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11663 touch \$(top_srcdir)/ChangeLog; \
11664 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11665
11666
11667
11668
11669 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11670 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11671 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11672 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11673 touch \$(top_srcdir)/INSTALL; \
11674 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11675
11676
11677
11678
11679
11680
11681 case $host_os in
11682 solaris*)
11683 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11684 # check for a man page file found in later versions that use
11685 # traditional section numbers instead
11686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11687 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11688 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11689 then :
11690 printf %s "(cached) " >&6
11691 else case e in #(
11692 e) test "$cross_compiling" = yes &&
11693 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11694 if test -r "/usr/share/man/man7/attributes.7"; then
11695 ac_cv_file__usr_share_man_man7_attributes_7=yes
11696 else
11697 ac_cv_file__usr_share_man_man7_attributes_7=no
11698 fi ;;
11699 esac
11700 fi
11701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11702 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11703 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11704 then :
11705 SYSV_MAN_SECTIONS=false
11706 else case e in #(
11707 e) SYSV_MAN_SECTIONS=true ;;
11708 esac
11709 fi
11710
11711 ;;
11712 *) SYSV_MAN_SECTIONS=false ;;
11713 esac
11714
11715 if test x$APP_MAN_SUFFIX = x ; then
11716 APP_MAN_SUFFIX=1
11717 fi
11718 if test x$APP_MAN_DIR = x ; then
11719 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11720 fi
11721
11722 if test x$LIB_MAN_SUFFIX = x ; then
11723 LIB_MAN_SUFFIX=3
11724 fi
11725 if test x$LIB_MAN_DIR = x ; then
11726 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11727 fi
11728
11729 if test x$FILE_MAN_SUFFIX = x ; then
11730 case $SYSV_MAN_SECTIONS in
11731 true) FILE_MAN_SUFFIX=4 ;;
11732 *) FILE_MAN_SUFFIX=5 ;;
11733 esac
11734 fi
11735 if test x$FILE_MAN_DIR = x ; then
11736 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11737 fi
11738
11739 if test x$MISC_MAN_SUFFIX = x ; then
11740 case $SYSV_MAN_SECTIONS in
11741 true) MISC_MAN_SUFFIX=5 ;;
11742 *) MISC_MAN_SUFFIX=7 ;;
11743 esac
11744 fi
11745 if test x$MISC_MAN_DIR = x ; then
11746 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11747 fi
11748
11749 if test x$DRIVER_MAN_SUFFIX = x ; then
11750 case $SYSV_MAN_SECTIONS in
11751 true) DRIVER_MAN_SUFFIX=7 ;;
11752 *) DRIVER_MAN_SUFFIX=4 ;;
11753 esac
11754 fi
11755 if test x$DRIVER_MAN_DIR = x ; then
11756 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11757 fi
11758
11759 if test x$ADMIN_MAN_SUFFIX = x ; then
11760 case $SYSV_MAN_SECTIONS in
11761 true) ADMIN_MAN_SUFFIX=1m ;;
11762 *) ADMIN_MAN_SUFFIX=8 ;;
11763 esac
11764 fi
11765 if test x$ADMIN_MAN_DIR = x ; then
11766 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11767 fi
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783 XORG_MAN_PAGE="X Version 11"
11784
11785 MAN_SUBSTS="\
11786 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11787 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11788 -e 's|__xservername__|Xorg|g' \
11789 -e 's|__xconfigfile__|xorg.conf|g' \
11790 -e 's|__projectroot__|\$(prefix)|g' \
11791 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11792 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11793 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11794 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11795 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11796 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11797 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11798
11799
11800
11801
11802 AM_DEFAULT_VERBOSITY=0
11803
11804
11805
11806
11807
11808 # If both the C file and YACC are missing, the package cannot be build.
11809 for ac_prog in 'bison -y' byacc
11810 do
11811 # Extract the first word of "$ac_prog", so it can be a program name with args.
11812 set dummy $ac_prog; ac_word=$2
11813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11814 printf %s "checking for $ac_word... " >&6; }
11815 if test ${ac_cv_prog_YACC+y}
11816 then :
11817 printf %s "(cached) " >&6
11818 else case e in #(
11819 e) if test -n "$YACC"; then
11820 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11821 else
11822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11823 for as_dir in $PATH
11824 do
11825 IFS=$as_save_IFS
11826 case $as_dir in #(((
11827 '') as_dir=./ ;;
11828 */) ;;
11829 *) as_dir=$as_dir/ ;;
11830 esac
11831 for ac_exec_ext in '' $ac_executable_extensions; do
11832 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11833 ac_cv_prog_YACC="$ac_prog"
11834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11835 break 2
11836 fi
11837 done
11838 done
11839 IFS=$as_save_IFS
11840
11841 fi ;;
11842 esac
11843 fi
11844 YACC=$ac_cv_prog_YACC
11845 if test -n "$YACC"; then
11846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
11847 printf "%s\n" "$YACC" >&6; }
11848 else
11849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11850 printf "%s\n" "no" >&6; }
11851 fi
11852
11853
11854 test -n "$YACC" && break
11855 done
11856 test -n "$YACC" || YACC="yacc"
11857
11858 # Extract the first word of "$YACC", so it can be a program name with args.
11859 set dummy $YACC; ac_word=$2
11860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11861 printf %s "checking for $ac_word... " >&6; }
11862 if test ${ac_cv_path_YACC_INST+y}
11863 then :
11864 printf %s "(cached) " >&6
11865 else case e in #(
11866 e) case $YACC_INST in
11867 [\\/]* | ?:[\\/]*)
11868 ac_cv_path_YACC_INST="$YACC_INST" # Let the user override the test with a path.
11869 ;;
11870 *)
11871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11872 for as_dir in $PATH
11873 do
11874 IFS=$as_save_IFS
11875 case $as_dir in #(((
11876 '') as_dir=./ ;;
11877 */) ;;
11878 *) as_dir=$as_dir/ ;;
11879 esac
11880 for ac_exec_ext in '' $ac_executable_extensions; do
11881 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11882 ac_cv_path_YACC_INST="$as_dir$ac_word$ac_exec_ext"
11883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11884 break 2
11885 fi
11886 done
11887 done
11888 IFS=$as_save_IFS
11889
11890 ;;
11891 esac ;;
11892 esac
11893 fi
11894 YACC_INST=$ac_cv_path_YACC_INST
11895 if test -n "$YACC_INST"; then
11896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC_INST" >&5
11897 printf "%s\n" "$YACC_INST" >&6; }
11898 else
11899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900 printf "%s\n" "no" >&6; }
11901 fi
11902
11903
11904 if test ! -f "$srcdir/xkbparse.c"; then
11905 if test -z "$YACC_INST"; then
11906 as_fn_error $? "yacc not found - unable to compile xkbparse.y" "$LINENO" 5
11907 fi
11908 fi
11909
11910 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
11911 if test "x$ac_cv_func_asprintf" = xyes
11912 then :
11913 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
11914
11915 fi
11916 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
11917 if test "x$ac_cv_func_reallocarray" = xyes
11918 then :
11919 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
11920
11921 fi
11922 ac_fn_c_check_func "$LINENO" "recallocarray" "ac_cv_func_recallocarray"
11923 if test "x$ac_cv_func_recallocarray" = xyes
11924 then :
11925 printf "%s\n" "#define HAVE_RECALLOCARRAY 1" >>confdefs.h
11926
11927 fi
11928
11929
11930 # Checks for pkg-config packages
11931 XKBCOMP_EXTRA_DEPS='x11 xkbfile'
11932
11933
11934 pkg_failed=no
11935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $XKBCOMP_EXTRA_DEPS xproto >= 7.0.17" >&5
11936 printf %s "checking for $XKBCOMP_EXTRA_DEPS xproto >= 7.0.17... " >&6; }
11937
11938 if test -n "$XKBCOMP_CFLAGS"; then
11939 pkg_cv_XKBCOMP_CFLAGS="$XKBCOMP_CFLAGS"
11940 elif test -n "$PKG_CONFIG"; then
11941 if test -n "$PKG_CONFIG" && \
11942 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XKBCOMP_EXTRA_DEPS xproto >= 7.0.17\""; } >&5
11943 ($PKG_CONFIG --exists --print-errors "$XKBCOMP_EXTRA_DEPS xproto >= 7.0.17") 2>&5
11944 ac_status=$?
11945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11946 test $ac_status = 0; }; then
11947 pkg_cv_XKBCOMP_CFLAGS=`$PKG_CONFIG --cflags "$XKBCOMP_EXTRA_DEPS xproto >= 7.0.17" 2>/dev/null`
11948 test "x$?" != "x0" && pkg_failed=yes
11949 else
11950 pkg_failed=yes
11951 fi
11952 else
11953 pkg_failed=untried
11954 fi
11955 if test -n "$XKBCOMP_LIBS"; then
11956 pkg_cv_XKBCOMP_LIBS="$XKBCOMP_LIBS"
11957 elif test -n "$PKG_CONFIG"; then
11958 if test -n "$PKG_CONFIG" && \
11959 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XKBCOMP_EXTRA_DEPS xproto >= 7.0.17\""; } >&5
11960 ($PKG_CONFIG --exists --print-errors "$XKBCOMP_EXTRA_DEPS xproto >= 7.0.17") 2>&5
11961 ac_status=$?
11962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11963 test $ac_status = 0; }; then
11964 pkg_cv_XKBCOMP_LIBS=`$PKG_CONFIG --libs "$XKBCOMP_EXTRA_DEPS xproto >= 7.0.17" 2>/dev/null`
11965 test "x$?" != "x0" && pkg_failed=yes
11966 else
11967 pkg_failed=yes
11968 fi
11969 else
11970 pkg_failed=untried
11971 fi
11972
11973
11974
11975 if test $pkg_failed = yes; then
11976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11977 printf "%s\n" "no" >&6; }
11978
11979 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11980 _pkg_short_errors_supported=yes
11981 else
11982 _pkg_short_errors_supported=no
11983 fi
11984 if test $_pkg_short_errors_supported = yes; then
11985 XKBCOMP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XKBCOMP_EXTRA_DEPS xproto >= 7.0.17" 2>&1`
11986 else
11987 XKBCOMP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XKBCOMP_EXTRA_DEPS xproto >= 7.0.17" 2>&1`
11988 fi
11989 # Put the nasty error message in config.log where it belongs
11990 echo "$XKBCOMP_PKG_ERRORS" >&5
11991
11992 as_fn_error $? "Package requirements ($XKBCOMP_EXTRA_DEPS xproto >= 7.0.17) were not met:
11993
11994 $XKBCOMP_PKG_ERRORS
11995
11996 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11997 installed software in a non-standard prefix.
11998
11999 Alternatively, you may set the environment variables XKBCOMP_CFLAGS
12000 and XKBCOMP_LIBS to avoid the need to call pkg-config.
12001 See the pkg-config man page for more details." "$LINENO" 5
12002 elif test $pkg_failed = untried; then
12003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12004 printf "%s\n" "no" >&6; }
12005 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12006 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12007 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12008 is in your PATH or set the PKG_CONFIG environment variable to the full
12009 path to pkg-config.
12010
12011 Alternatively, you may set the environment variables XKBCOMP_CFLAGS
12012 and XKBCOMP_LIBS to avoid the need to call pkg-config.
12013 See the pkg-config man page for more details.
12014
12015 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12016 See 'config.log' for more details" "$LINENO" 5; }
12017 else
12018 XKBCOMP_CFLAGS=$pkg_cv_XKBCOMP_CFLAGS
12019 XKBCOMP_LIBS=$pkg_cv_XKBCOMP_LIBS
12020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12021 printf "%s\n" "yes" >&6; }
12022
12023 fi
12024
12025 # Checks for typedefs, structures, and compiler characteristics.
12026 # Check whether --enable-largefile was given.
12027 if test ${enable_largefile+y}
12028 then :
12029 enableval=$enable_largefile;
12030 fi
12031 if test "$enable_largefile,$enable_year2038" != no,no
12032 then :
12033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
12034 printf %s "checking for $CC option to enable large file support... " >&6; }
12035 if test ${ac_cv_sys_largefile_opts+y}
12036 then :
12037 printf %s "(cached) " >&6
12038 else case e in #(
12039 e) ac_save_CC="$CC"
12040 ac_opt_found=no
12041 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
12042 if test x"$ac_opt" != x"none needed"
12043 then :
12044 CC="$ac_save_CC $ac_opt"
12045 fi
12046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12047 /* end confdefs.h. */
12048 #include <sys/types.h>
12049 #ifndef FTYPE
12050 # define FTYPE off_t
12051 #endif
12052 /* Check that FTYPE can represent 2**63 - 1 correctly.
12053 We can't simply define LARGE_FTYPE to be 9223372036854775807,
12054 since some C++ compilers masquerading as C compilers
12055 incorrectly reject 9223372036854775807. */
12056 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
12057 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
12058 && LARGE_FTYPE % 2147483647 == 1)
12059 ? 1 : -1];
12060 int
12061 main (void)
12062 {
12063
12064 ;
12065 return 0;
12066 }
12067 _ACEOF
12068 if ac_fn_c_try_compile "$LINENO"
12069 then :
12070 if test x"$ac_opt" = x"none needed"
12071 then :
12072 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
12073 CC="$CC -DFTYPE=ino_t"
12074 if ac_fn_c_try_compile "$LINENO"
12075 then :
12076
12077 else case e in #(
12078 e) CC="$CC -D_FILE_OFFSET_BITS=64"
12079 if ac_fn_c_try_compile "$LINENO"
12080 then :
12081 ac_opt='-D_FILE_OFFSET_BITS=64'
12082 fi
12083 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
12084 esac
12085 fi
12086 rm -f core conftest.err conftest.$ac_objext conftest.beam
12087 fi
12088 ac_cv_sys_largefile_opts=$ac_opt
12089 ac_opt_found=yes
12090 fi
12091 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12092 test $ac_opt_found = no || break
12093 done
12094 CC="$ac_save_CC"
12095
12096 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
12097 esac
12098 fi
12099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
12100 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
12101
12102 ac_have_largefile=yes
12103 case $ac_cv_sys_largefile_opts in #(
12104 "none needed") :
12105 ;; #(
12106 "supported through gnulib") :
12107 ;; #(
12108 "support not detected") :
12109 ac_have_largefile=no ;; #(
12110 "-D_FILE_OFFSET_BITS=64") :
12111
12112 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
12113 ;; #(
12114 "-D_LARGE_FILES=1") :
12115
12116 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
12117 ;; #(
12118 "-n32") :
12119 CC="$CC -n32" ;; #(
12120 *) :
12121 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
12122 esac
12123
12124 if test "$enable_year2038" != no
12125 then :
12126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
12127 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
12128 if test ${ac_cv_sys_year2038_opts+y}
12129 then :
12130 printf %s "(cached) " >&6
12131 else case e in #(
12132 e) ac_save_CPPFLAGS="$CPPFLAGS"
12133 ac_opt_found=no
12134 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
12135 if test x"$ac_opt" != x"none needed"
12136 then :
12137 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
12138 fi
12139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140 /* end confdefs.h. */
12141
12142 #include <time.h>
12143 /* Check that time_t can represent 2**32 - 1 correctly. */
12144 #define LARGE_TIME_T \\
12145 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
12146 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
12147 && LARGE_TIME_T % 65537 == 0)
12148 ? 1 : -1];
12149
12150 int
12151 main (void)
12152 {
12153
12154 ;
12155 return 0;
12156 }
12157 _ACEOF
12158 if ac_fn_c_try_compile "$LINENO"
12159 then :
12160 ac_cv_sys_year2038_opts="$ac_opt"
12161 ac_opt_found=yes
12162 fi
12163 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12164 test $ac_opt_found = no || break
12165 done
12166 CPPFLAGS="$ac_save_CPPFLAGS"
12167 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
12168 esac
12169 fi
12170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
12171 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
12172
12173 ac_have_year2038=yes
12174 case $ac_cv_sys_year2038_opts in #(
12175 "none needed") :
12176 ;; #(
12177 "support not detected") :
12178 ac_have_year2038=no ;; #(
12179 "-D_TIME_BITS=64") :
12180
12181 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
12182 ;; #(
12183 "-D__MINGW_USE_VC2005_COMPAT") :
12184
12185 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
12186 ;; #(
12187 "-U_USE_32_BIT_TIME_T"*) :
12188 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12189 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12190 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
12191 will stop working after mid-January 2038. Remove
12192 _USE_32BIT_TIME_T from the compiler flags.
12193 See 'config.log' for more details" "$LINENO" 5; } ;; #(
12194 *) :
12195 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
12196 esac
12197
12198 fi
12199
12200 fi
12201
12202
12203 # Check whether --with-xkb_config_root was given.
12204 if test ${with_xkb_config_root+y}
12205 then :
12206 withval=$with_xkb_config_root; XKBCONFIGROOT="$withval"
12207 else case e in #(
12208 e) XKBCONFIGROOT='${datadir}/X11/xkb' ;;
12209 esac
12210 fi
12211
12212
12213
12214
12215 ac_config_files="$ac_config_files Makefile man/Makefile xkbcomp.pc"
12216
12217 cat >confcache <<\_ACEOF
12218 # This file is a shell script that caches the results of configure
12219 # tests run on this system so they can be shared between configure
12220 # scripts and configure runs, see configure's option --config-cache.
12221 # It is not useful on other systems. If it contains results you don't
12222 # want to keep, you may remove or edit it.
12223 #
12224 # config.status only pays attention to the cache file if you give it
12225 # the --recheck option to rerun configure.
12226 #
12227 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
12228 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
12229 # following values.
12230
12231 _ACEOF
12232
12233 # The following way of writing the cache mishandles newlines in values,
12234 # but we know of no workaround that is simple, portable, and efficient.
12235 # So, we kill variables containing newlines.
12236 # Ultrix sh set writes to stderr and can't be redirected directly,
12237 # and sets the high bit in the cache file unless we assign to the vars.
12238 (
12239 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12240 eval ac_val=\$$ac_var
12241 case $ac_val in #(
12242 *${as_nl}*)
12243 case $ac_var in #(
12244 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12245 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12246 esac
12247 case $ac_var in #(
12248 _ | IFS | as_nl) ;; #(
12249 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12250 *) { eval $ac_var=; unset $ac_var;} ;;
12251 esac ;;
12252 esac
12253 done
12254
12255 (set) 2>&1 |
12256 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12257 *${as_nl}ac_space=\ *)
12258 # 'set' does not quote correctly, so add quotes: double-quote
12259 # substitution turns \\\\ into \\, and sed turns \\ into \.
12260 sed -n \
12261 "s/'/'\\\\''/g;
12262 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12263 ;; #(
12264 *)
12265 # 'set' quotes correctly as required by POSIX, so do not add quotes.
12266 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12267 ;;
12268 esac |
12269 sort
12270 ) |
12271 sed '
12272 /^ac_cv_env_/b end
12273 t clear
12274 :clear
12275 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12276 t end
12277 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12278 :end' >>confcache
12279 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12280 if test -w "$cache_file"; then
12281 if test "x$cache_file" != "x/dev/null"; then
12282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12283 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12284 if test ! -f "$cache_file" || test -h "$cache_file"; then
12285 cat confcache >"$cache_file"
12286 else
12287 case $cache_file in #(
12288 */* | ?:*)
12289 mv -f confcache "$cache_file"$$ &&
12290 mv -f "$cache_file"$$ "$cache_file" ;; #(
12291 *)
12292 mv -f confcache "$cache_file" ;;
12293 esac
12294 fi
12295 fi
12296 else
12297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12298 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12299 fi
12300 fi
12301 rm -f confcache
12302
12303 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12304 # Let make expand exec_prefix.
12305 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12306
12307 DEFS=-DHAVE_CONFIG_H
12308
12309 ac_libobjs=
12310 ac_ltlibobjs=
12311 U=
12312 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12313 # 1. Remove the extension, and $U if already installed.
12314 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12315 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12316 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12317 # will be set to the directory where LIBOBJS objects are built.
12318 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12319 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12320 done
12321 LIBOBJS=$ac_libobjs
12322
12323 LTLIBOBJS=$ac_ltlibobjs
12324
12325
12326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12327 printf %s "checking that generated files are newer than configure... " >&6; }
12328 if test -n "$am_sleep_pid"; then
12329 # Hide warnings about reused PIDs.
12330 wait $am_sleep_pid 2>/dev/null
12331 fi
12332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
12333 printf "%s\n" "done" >&6; }
12334 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12335 as_fn_error $? "conditional \"AMDEP\" was never defined.
12336 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12337 fi
12338 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12339 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12340 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12341 fi
12342 case $enable_silent_rules in # (((
12343 yes) AM_DEFAULT_VERBOSITY=0;;
12344 no) AM_DEFAULT_VERBOSITY=1;;
12345 esac
12346 if test $am_cv_make_support_nested_variables = yes; then
12347 AM_V='$(V)'
12348 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12349 else
12350 AM_V=$AM_DEFAULT_VERBOSITY
12351 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12352 fi
12353
12354 if test -n "$EXEEXT"; then
12355 am__EXEEXT_TRUE=
12356 am__EXEEXT_FALSE='#'
12357 else
12358 am__EXEEXT_TRUE='#'
12359 am__EXEEXT_FALSE=
12360 fi
12361
12362 # Check whether --enable-year2038 was given.
12363 if test ${enable_year2038+y}
12364 then :
12365 enableval=$enable_year2038;
12366 fi
12367
12368
12369 : "${CONFIG_STATUS=./config.status}"
12370 ac_write_fail=0
12371 ac_clean_files_save=$ac_clean_files
12372 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12374 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12375 as_write_fail=0
12376 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12377 #! $SHELL
12378 # Generated by $as_me.
12379 # Run this file to recreate the current configuration.
12380 # Compiler output produced by configure, useful for debugging
12381 # configure, is in config.log if it exists.
12382
12383 debug=false
12384 ac_cs_recheck=false
12385 ac_cs_silent=false
12386
12387 SHELL=\${CONFIG_SHELL-$SHELL}
12388 export SHELL
12389 _ASEOF
12390 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12391 ## -------------------- ##
12392 ## M4sh Initialization. ##
12393 ## -------------------- ##
12394
12395 # Be more Bourne compatible
12396 DUALCASE=1; export DUALCASE # for MKS sh
12397 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12398 then :
12399 emulate sh
12400 NULLCMD=:
12401 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12402 # is contrary to our usage. Disable this feature.
12403 alias -g '${1+"$@"}'='"$@"'
12404 setopt NO_GLOB_SUBST
12405 else case e in #(
12406 e) case `(set -o) 2>/dev/null` in #(
12407 *posix*) :
12408 set -o posix ;; #(
12409 *) :
12410 ;;
12411 esac ;;
12412 esac
12413 fi
12414
12415
12416
12417 # Reset variables that may have inherited troublesome values from
12418 # the environment.
12419
12420 # IFS needs to be set, to space, tab, and newline, in precisely that order.
12421 # (If _AS_PATH_WALK were called with IFS unset, it would have the
12422 # side effect of setting IFS to empty, thus disabling word splitting.)
12423 # Quoting is to prevent editors from complaining about space-tab.
12424 as_nl='
12425 '
12426 export as_nl
12427 IFS=" "" $as_nl"
12428
12429 PS1='$ '
12430 PS2='> '
12431 PS4='+ '
12432
12433 # Ensure predictable behavior from utilities with locale-dependent output.
12434 LC_ALL=C
12435 export LC_ALL
12436 LANGUAGE=C
12437 export LANGUAGE
12438
12439 # We cannot yet rely on "unset" to work, but we need these variables
12440 # to be unset--not just set to an empty or harmless value--now, to
12441 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
12442 # also avoids known problems related to "unset" and subshell syntax
12443 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12444 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12445 do eval test \${$as_var+y} \
12446 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12447 done
12448
12449 # Ensure that fds 0, 1, and 2 are open.
12450 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12451 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12452 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
12453
12454 # The user is always right.
12455 if ${PATH_SEPARATOR+false} :; then
12456 PATH_SEPARATOR=:
12457 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12458 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12459 PATH_SEPARATOR=';'
12460 }
12461 fi
12462
12463
12464 # Find who we are. Look in the path if we contain no directory separator.
12465 as_myself=
12466 case $0 in #((
12467 *[\\/]* ) as_myself=$0 ;;
12468 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12469 for as_dir in $PATH
12470 do
12471 IFS=$as_save_IFS
12472 case $as_dir in #(((
12473 '') as_dir=./ ;;
12474 */) ;;
12475 *) as_dir=$as_dir/ ;;
12476 esac
12477 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12478 done
12479 IFS=$as_save_IFS
12480
12481 ;;
12482 esac
12483 # We did not find ourselves, most probably we were run as 'sh COMMAND'
12484 # in which case we are not to be found in the path.
12485 if test "x$as_myself" = x; then
12486 as_myself=$0
12487 fi
12488 if test ! -f "$as_myself"; then
12489 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12490 exit 1
12491 fi
12492
12493
12494
12495 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12496 # ----------------------------------------
12497 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12498 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12499 # script with STATUS, using 1 if that was 0.
12500 as_fn_error ()
12501 {
12502 as_status=$1; test $as_status -eq 0 && as_status=1
12503 if test "$4"; then
12504 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12506 fi
12507 printf "%s\n" "$as_me: error: $2" >&2
12508 as_fn_exit $as_status
12509 } # as_fn_error
12510
12511
12512 # as_fn_set_status STATUS
12513 # -----------------------
12514 # Set $? to STATUS, without forking.
12515 as_fn_set_status ()
12516 {
12517 return $1
12518 } # as_fn_set_status
12519
12520 # as_fn_exit STATUS
12521 # -----------------
12522 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12523 as_fn_exit ()
12524 {
12525 set +e
12526 as_fn_set_status $1
12527 exit $1
12528 } # as_fn_exit
12529
12530 # as_fn_unset VAR
12531 # ---------------
12532 # Portably unset VAR.
12533 as_fn_unset ()
12534 {
12535 { eval $1=; unset $1;}
12536 }
12537 as_unset=as_fn_unset
12538
12539 # as_fn_append VAR VALUE
12540 # ----------------------
12541 # Append the text in VALUE to the end of the definition contained in VAR. Take
12542 # advantage of any shell optimizations that allow amortized linear growth over
12543 # repeated appends, instead of the typical quadratic growth present in naive
12544 # implementations.
12545 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12546 then :
12547 eval 'as_fn_append ()
12548 {
12549 eval $1+=\$2
12550 }'
12551 else case e in #(
12552 e) as_fn_append ()
12553 {
12554 eval $1=\$$1\$2
12555 } ;;
12556 esac
12557 fi # as_fn_append
12558
12559 # as_fn_arith ARG...
12560 # ------------------
12561 # Perform arithmetic evaluation on the ARGs, and store the result in the
12562 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12563 # must be portable across $(()) and expr.
12564 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12565 then :
12566 eval 'as_fn_arith ()
12567 {
12568 as_val=$(( $* ))
12569 }'
12570 else case e in #(
12571 e) as_fn_arith ()
12572 {
12573 as_val=`expr "$@" || test $? -eq 1`
12574 } ;;
12575 esac
12576 fi # as_fn_arith
12577
12578
12579 if expr a : '\(a\)' >/dev/null 2>&1 &&
12580 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12581 as_expr=expr
12582 else
12583 as_expr=false
12584 fi
12585
12586 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12587 as_basename=basename
12588 else
12589 as_basename=false
12590 fi
12591
12592 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12593 as_dirname=dirname
12594 else
12595 as_dirname=false
12596 fi
12597
12598 as_me=`$as_basename -- "$0" ||
12599 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12600 X"$0" : 'X\(//\)$' \| \
12601 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12602 printf "%s\n" X/"$0" |
12603 sed '/^.*\/\([^/][^/]*\)\/*$/{
12604 s//\1/
12605 q
12606 }
12607 /^X\/\(\/\/\)$/{
12608 s//\1/
12609 q
12610 }
12611 /^X\/\(\/\).*/{
12612 s//\1/
12613 q
12614 }
12615 s/.*/./; q'`
12616
12617 # Avoid depending upon Character Ranges.
12618 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12619 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12620 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12621 as_cr_digits='0123456789'
12622 as_cr_alnum=$as_cr_Letters$as_cr_digits
12623
12624
12625 # Determine whether it's possible to make 'echo' print without a newline.
12626 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12627 # for compatibility with existing Makefiles.
12628 ECHO_C= ECHO_N= ECHO_T=
12629 case `echo -n x` in #(((((
12630 -n*)
12631 case `echo 'xy\c'` in
12632 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12633 xy) ECHO_C='\c';;
12634 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12635 ECHO_T=' ';;
12636 esac;;
12637 *)
12638 ECHO_N='-n';;
12639 esac
12640
12641 # For backward compatibility with old third-party macros, we provide
12642 # the shell variables $as_echo and $as_echo_n. New code should use
12643 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12644 as_echo='printf %s\n'
12645 as_echo_n='printf %s'
12646
12647 rm -f conf$$ conf$$.exe conf$$.file
12648 if test -d conf$$.dir; then
12649 rm -f conf$$.dir/conf$$.file
12650 else
12651 rm -f conf$$.dir
12652 mkdir conf$$.dir 2>/dev/null
12653 fi
12654 if (echo >conf$$.file) 2>/dev/null; then
12655 if ln -s conf$$.file conf$$ 2>/dev/null; then
12656 as_ln_s='ln -s'
12657 # ... but there are two gotchas:
12658 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12659 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12660 # In both cases, we have to default to 'cp -pR'.
12661 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12662 as_ln_s='cp -pR'
12663 elif ln conf$$.file conf$$ 2>/dev/null; then
12664 as_ln_s=ln
12665 else
12666 as_ln_s='cp -pR'
12667 fi
12668 else
12669 as_ln_s='cp -pR'
12670 fi
12671 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12672 rmdir conf$$.dir 2>/dev/null
12673
12674
12675 # as_fn_mkdir_p
12676 # -------------
12677 # Create "$as_dir" as a directory, including parents if necessary.
12678 as_fn_mkdir_p ()
12679 {
12680
12681 case $as_dir in #(
12682 -*) as_dir=./$as_dir;;
12683 esac
12684 test -d "$as_dir" || eval $as_mkdir_p || {
12685 as_dirs=
12686 while :; do
12687 case $as_dir in #(
12688 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12689 *) as_qdir=$as_dir;;
12690 esac
12691 as_dirs="'$as_qdir' $as_dirs"
12692 as_dir=`$as_dirname -- "$as_dir" ||
12693 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12694 X"$as_dir" : 'X\(//\)[^/]' \| \
12695 X"$as_dir" : 'X\(//\)$' \| \
12696 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12697 printf "%s\n" X"$as_dir" |
12698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12699 s//\1/
12700 q
12701 }
12702 /^X\(\/\/\)[^/].*/{
12703 s//\1/
12704 q
12705 }
12706 /^X\(\/\/\)$/{
12707 s//\1/
12708 q
12709 }
12710 /^X\(\/\).*/{
12711 s//\1/
12712 q
12713 }
12714 s/.*/./; q'`
12715 test -d "$as_dir" && break
12716 done
12717 test -z "$as_dirs" || eval "mkdir $as_dirs"
12718 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12719
12720
12721 } # as_fn_mkdir_p
12722 if mkdir -p . 2>/dev/null; then
12723 as_mkdir_p='mkdir -p "$as_dir"'
12724 else
12725 test -d ./-p && rmdir ./-p
12726 as_mkdir_p=false
12727 fi
12728
12729
12730 # as_fn_executable_p FILE
12731 # -----------------------
12732 # Test if FILE is an executable regular file.
12733 as_fn_executable_p ()
12734 {
12735 test -f "$1" && test -x "$1"
12736 } # as_fn_executable_p
12737 as_test_x='test -x'
12738 as_executable_p=as_fn_executable_p
12739
12740 # Sed expression to map a string onto a valid CPP name.
12741 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12742 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12743
12744 # Sed expression to map a string onto a valid variable name.
12745 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12746 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12747
12748
12749 exec 6>&1
12750 ## ----------------------------------- ##
12751 ## Main body of $CONFIG_STATUS script. ##
12752 ## ----------------------------------- ##
12753 _ASEOF
12754 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12755
12756 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12757 # Save the log message, to keep $0 and so on meaningful, and to
12758 # report actual input values of CONFIG_FILES etc. instead of their
12759 # values after options handling.
12760 ac_log="
12761 This file was extended by xkbcomp $as_me 1.5.0, which was
12762 generated by GNU Autoconf 2.72. Invocation command line was
12763
12764 CONFIG_FILES = $CONFIG_FILES
12765 CONFIG_HEADERS = $CONFIG_HEADERS
12766 CONFIG_LINKS = $CONFIG_LINKS
12767 CONFIG_COMMANDS = $CONFIG_COMMANDS
12768 $ $0 $@
12769
12770 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12771 "
12772
12773 _ACEOF
12774
12775 case $ac_config_files in *"
12776 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12777 esac
12778
12779 case $ac_config_headers in *"
12780 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12781 esac
12782
12783
12784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12785 # Files that config.status was made for.
12786 config_files="$ac_config_files"
12787 config_headers="$ac_config_headers"
12788 config_commands="$ac_config_commands"
12789
12790 _ACEOF
12791
12792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12793 ac_cs_usage="\
12794 '$as_me' instantiates files and other configuration actions
12795 from templates according to the current configuration. Unless the files
12796 and actions are specified as TAGs, all are instantiated by default.
12797
12798 Usage: $0 [OPTION]... [TAG]...
12799
12800 -h, --help print this help, then exit
12801 -V, --version print version number and configuration settings, then exit
12802 --config print configuration, then exit
12803 -q, --quiet, --silent
12804 do not print progress messages
12805 -d, --debug don't remove temporary files
12806 --recheck update $as_me by reconfiguring in the same conditions
12807 --file=FILE[:TEMPLATE]
12808 instantiate the configuration file FILE
12809 --header=FILE[:TEMPLATE]
12810 instantiate the configuration header FILE
12811
12812 Configuration files:
12813 $config_files
12814
12815 Configuration headers:
12816 $config_headers
12817
12818 Configuration commands:
12819 $config_commands
12820
12821 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbcomp/-/issues>."
12822
12823 _ACEOF
12824 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12825 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12827 ac_cs_config='$ac_cs_config_escaped'
12828 ac_cs_version="\\
12829 xkbcomp config.status 1.5.0
12830 configured by $0, generated by GNU Autoconf 2.72,
12831 with options \\"\$ac_cs_config\\"
12832
12833 Copyright (C) 2023 Free Software Foundation, Inc.
12834 This config.status script is free software; the Free Software Foundation
12835 gives unlimited permission to copy, distribute and modify it."
12836
12837 ac_pwd='$ac_pwd'
12838 srcdir='$srcdir'
12839 INSTALL='$INSTALL'
12840 MKDIR_P='$MKDIR_P'
12841 AWK='$AWK'
12842 test -n "\$AWK" || AWK=awk
12843 _ACEOF
12844
12845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12846 # The default lists apply if the user does not specify any file.
12847 ac_need_defaults=:
12848 while test $# != 0
12849 do
12850 case $1 in
12851 --*=?*)
12852 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12853 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12854 ac_shift=:
12855 ;;
12856 --*=)
12857 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12858 ac_optarg=
12859 ac_shift=:
12860 ;;
12861 *)
12862 ac_option=$1
12863 ac_optarg=$2
12864 ac_shift=shift
12865 ;;
12866 esac
12867
12868 case $ac_option in
12869 # Handling of the options.
12870 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12871 ac_cs_recheck=: ;;
12872 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12873 printf "%s\n" "$ac_cs_version"; exit ;;
12874 --config | --confi | --conf | --con | --co | --c )
12875 printf "%s\n" "$ac_cs_config"; exit ;;
12876 --debug | --debu | --deb | --de | --d | -d )
12877 debug=: ;;
12878 --file | --fil | --fi | --f )
12879 $ac_shift
12880 case $ac_optarg in
12881 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12882 '') as_fn_error $? "missing file argument" ;;
12883 esac
12884 as_fn_append CONFIG_FILES " '$ac_optarg'"
12885 ac_need_defaults=false;;
12886 --header | --heade | --head | --hea )
12887 $ac_shift
12888 case $ac_optarg in
12889 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12890 esac
12891 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12892 ac_need_defaults=false;;
12893 --he | --h)
12894 # Conflict between --help and --header
12895 as_fn_error $? "ambiguous option: '$1'
12896 Try '$0 --help' for more information.";;
12897 --help | --hel | -h )
12898 printf "%s\n" "$ac_cs_usage"; exit ;;
12899 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12900 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12901 ac_cs_silent=: ;;
12902
12903 # This is an error.
12904 -*) as_fn_error $? "unrecognized option: '$1'
12905 Try '$0 --help' for more information." ;;
12906
12907 *) as_fn_append ac_config_targets " $1"
12908 ac_need_defaults=false ;;
12909
12910 esac
12911 shift
12912 done
12913
12914 ac_configure_extra_args=
12915
12916 if $ac_cs_silent; then
12917 exec 6>/dev/null
12918 ac_configure_extra_args="$ac_configure_extra_args --silent"
12919 fi
12920
12921 _ACEOF
12922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12923 if \$ac_cs_recheck; then
12924 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12925 shift
12926 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12927 CONFIG_SHELL='$SHELL'
12928 export CONFIG_SHELL
12929 exec "\$@"
12930 fi
12931
12932 _ACEOF
12933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12934 exec 5>>config.log
12935 {
12936 echo
12937 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12938 ## Running $as_me. ##
12939 _ASBOX
12940 printf "%s\n" "$ac_log"
12941 } >&5
12942
12943 _ACEOF
12944 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12945 #
12946 # INIT-COMMANDS
12947 #
12948 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12949
12950 _ACEOF
12951
12952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12953
12954 # Handling of arguments.
12955 for ac_config_target in $ac_config_targets
12956 do
12957 case $ac_config_target in
12958 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12959 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12960 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12961 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12962 "xkbcomp.pc") CONFIG_FILES="$CONFIG_FILES xkbcomp.pc" ;;
12963
12964 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12965 esac
12966 done
12967
12968
12969 # If the user did not use the arguments to specify the items to instantiate,
12970 # then the envvar interface is used. Set only those that are not.
12971 # We use the long form for the default assignment because of an extremely
12972 # bizarre bug on SunOS 4.1.3.
12973 if $ac_need_defaults; then
12974 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12975 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12976 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12977 fi
12978
12979 # Have a temporary directory for convenience. Make it in the build tree
12980 # simply because there is no reason against having it here, and in addition,
12981 # creating and moving files from /tmp can sometimes cause problems.
12982 # Hook for its removal unless debugging.
12983 # Note that there is a small window in which the directory will not be cleaned:
12984 # after its creation but before its name has been assigned to '$tmp'.
12985 $debug ||
12986 {
12987 tmp= ac_tmp=
12988 trap 'exit_status=$?
12989 : "${ac_tmp:=$tmp}"
12990 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12991 ' 0
12992 trap 'as_fn_exit 1' 1 2 13 15
12993 }
12994 # Create a (secure) tmp directory for tmp files.
12995
12996 {
12997 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12998 test -d "$tmp"
12999 } ||
13000 {
13001 tmp=./conf$$-$RANDOM
13002 (umask 077 && mkdir "$tmp")
13003 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13004 ac_tmp=$tmp
13005
13006 # Set up the scripts for CONFIG_FILES section.
13007 # No need to generate them if there are no CONFIG_FILES.
13008 # This happens for instance with './config.status config.h'.
13009 if test -n "$CONFIG_FILES"; then
13010
13011
13012 ac_cr=`echo X | tr X '\015'`
13013 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13014 # But we know of no other shell where ac_cr would be empty at this
13015 # point, so we can use a bashism as a fallback.
13016 if test "x$ac_cr" = x; then
13017 eval ac_cr=\$\'\\r\'
13018 fi
13019 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13020 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13021 ac_cs_awk_cr='\\r'
13022 else
13023 ac_cs_awk_cr=$ac_cr
13024 fi
13025
13026 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13027 _ACEOF
13028
13029
13030 {
13031 echo "cat >conf$$subs.awk <<_ACEOF" &&
13032 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13033 echo "_ACEOF"
13034 } >conf$$subs.sh ||
13035 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13036 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13037 ac_delim='%!_!# '
13038 for ac_last_try in false false false false false :; do
13039 . ./conf$$subs.sh ||
13040 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13041
13042 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13043 if test $ac_delim_n = $ac_delim_num; then
13044 break
13045 elif $ac_last_try; then
13046 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13047 else
13048 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13049 fi
13050 done
13051 rm -f conf$$subs.sh
13052
13053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13054 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13055 _ACEOF
13056 sed -n '
13057 h
13058 s/^/S["/; s/!.*/"]=/
13059 p
13060 g
13061 s/^[^!]*!//
13062 :repl
13063 t repl
13064 s/'"$ac_delim"'$//
13065 t delim
13066 :nl
13067 h
13068 s/\(.\{148\}\)..*/\1/
13069 t more1
13070 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13071 p
13072 n
13073 b repl
13074 :more1
13075 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13076 p
13077 g
13078 s/.\{148\}//
13079 t nl
13080 :delim
13081 h
13082 s/\(.\{148\}\)..*/\1/
13083 t more2
13084 s/["\\]/\\&/g; s/^/"/; s/$/"/
13085 p
13086 b
13087 :more2
13088 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13089 p
13090 g
13091 s/.\{148\}//
13092 t delim
13093 ' <conf$$subs.awk | sed '
13094 /^[^""]/{
13095 N
13096 s/\n//
13097 }
13098 ' >>$CONFIG_STATUS || ac_write_fail=1
13099 rm -f conf$$subs.awk
13100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13101 _ACAWK
13102 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13103 for (key in S) S_is_set[key] = 1
13104 FS = ""
13105
13106 }
13107 {
13108 line = $ 0
13109 nfields = split(line, field, "@")
13110 substed = 0
13111 len = length(field[1])
13112 for (i = 2; i < nfields; i++) {
13113 key = field[i]
13114 keylen = length(key)
13115 if (S_is_set[key]) {
13116 value = S[key]
13117 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13118 len += length(value) + length(field[++i])
13119 substed = 1
13120 } else
13121 len += 1 + keylen
13122 }
13123
13124 print line
13125 }
13126
13127 _ACAWK
13128 _ACEOF
13129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13130 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13131 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13132 else
13133 cat
13134 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13135 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13136 _ACEOF
13137
13138 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13139 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13140 # trailing colons and then remove the whole line if VPATH becomes empty
13141 # (actually we leave an empty line to preserve line numbers).
13142 if test "x$srcdir" = x.; then
13143 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13144 h
13145 s///
13146 s/^/:/
13147 s/[ ]*$/:/
13148 s/:\$(srcdir):/:/g
13149 s/:\${srcdir}:/:/g
13150 s/:@srcdir@:/:/g
13151 s/^:*//
13152 s/:*$//
13153 x
13154 s/\(=[ ]*\).*/\1/
13155 G
13156 s/\n//
13157 s/^[^=]*=[ ]*$//
13158 }'
13159 fi
13160
13161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13162 fi # test -n "$CONFIG_FILES"
13163
13164 # Set up the scripts for CONFIG_HEADERS section.
13165 # No need to generate them if there are no CONFIG_HEADERS.
13166 # This happens for instance with './config.status Makefile'.
13167 if test -n "$CONFIG_HEADERS"; then
13168 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13169 BEGIN {
13170 _ACEOF
13171
13172 # Transform confdefs.h into an awk script 'defines.awk', embedded as
13173 # here-document in config.status, that substitutes the proper values into
13174 # config.h.in to produce config.h.
13175
13176 # Create a delimiter string that does not exist in confdefs.h, to ease
13177 # handling of long lines.
13178 ac_delim='%!_!# '
13179 for ac_last_try in false false :; do
13180 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13181 if test -z "$ac_tt"; then
13182 break
13183 elif $ac_last_try; then
13184 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13185 else
13186 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13187 fi
13188 done
13189
13190 # For the awk script, D is an array of macro values keyed by name,
13191 # likewise P contains macro parameters if any. Preserve backslash
13192 # newline sequences.
13193
13194 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13195 sed -n '
13196 s/.\{148\}/&'"$ac_delim"'/g
13197 t rset
13198 :rset
13199 s/^[ ]*#[ ]*define[ ][ ]*/ /
13200 t def
13201 d
13202 :def
13203 s/\\$//
13204 t bsnl
13205 s/["\\]/\\&/g
13206 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13207 D["\1"]=" \3"/p
13208 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13209 d
13210 :bsnl
13211 s/["\\]/\\&/g
13212 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13213 D["\1"]=" \3\\\\\\n"\\/p
13214 t cont
13215 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13216 t cont
13217 d
13218 :cont
13219 n
13220 s/.\{148\}/&'"$ac_delim"'/g
13221 t clear
13222 :clear
13223 s/\\$//
13224 t bsnlc
13225 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13226 d
13227 :bsnlc
13228 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13229 b cont
13230 ' <confdefs.h | sed '
13231 s/'"$ac_delim"'/"\\\
13232 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13233
13234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13235 for (key in D) D_is_set[key] = 1
13236 FS = ""
13237 }
13238 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13239 line = \$ 0
13240 split(line, arg, " ")
13241 if (arg[1] == "#") {
13242 defundef = arg[2]
13243 mac1 = arg[3]
13244 } else {
13245 defundef = substr(arg[1], 2)
13246 mac1 = arg[2]
13247 }
13248 split(mac1, mac2, "(") #)
13249 macro = mac2[1]
13250 prefix = substr(line, 1, index(line, defundef) - 1)
13251 if (D_is_set[macro]) {
13252 # Preserve the white space surrounding the "#".
13253 print prefix "define", macro P[macro] D[macro]
13254 next
13255 } else {
13256 # Replace #undef with comments. This is necessary, for example,
13257 # in the case of _POSIX_SOURCE, which is predefined and required
13258 # on some systems where configure will not decide to define it.
13259 if (defundef == "undef") {
13260 print "/*", prefix defundef, macro, "*/"
13261 next
13262 }
13263 }
13264 }
13265 { print }
13266 _ACAWK
13267 _ACEOF
13268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13269 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13270 fi # test -n "$CONFIG_HEADERS"
13271
13272
13273 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13274 shift
13275 for ac_tag
13276 do
13277 case $ac_tag in
13278 :[FHLC]) ac_mode=$ac_tag; continue;;
13279 esac
13280 case $ac_mode$ac_tag in
13281 :[FHL]*:*);;
13282 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
13283 :[FH]-) ac_tag=-:-;;
13284 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13285 esac
13286 ac_save_IFS=$IFS
13287 IFS=:
13288 set x $ac_tag
13289 IFS=$ac_save_IFS
13290 shift
13291 ac_file=$1
13292 shift
13293
13294 case $ac_mode in
13295 :L) ac_source=$1;;
13296 :[FH])
13297 ac_file_inputs=
13298 for ac_f
13299 do
13300 case $ac_f in
13301 -) ac_f="$ac_tmp/stdin";;
13302 *) # Look for the file first in the build tree, then in the source tree
13303 # (if the path is not absolute). The absolute path cannot be DOS-style,
13304 # because $ac_f cannot contain ':'.
13305 test -f "$ac_f" ||
13306 case $ac_f in
13307 [\\/$]*) false;;
13308 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13309 esac ||
13310 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
13311 esac
13312 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13313 as_fn_append ac_file_inputs " '$ac_f'"
13314 done
13315
13316 # Let's still pretend it is 'configure' which instantiates (i.e., don't
13317 # use $as_me), people would be surprised to read:
13318 # /* config.h. Generated by config.status. */
13319 configure_input='Generated from '`
13320 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13321 `' by configure.'
13322 if test x"$ac_file" != x-; then
13323 configure_input="$ac_file. $configure_input"
13324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13325 printf "%s\n" "$as_me: creating $ac_file" >&6;}
13326 fi
13327 # Neutralize special characters interpreted by sed in replacement strings.
13328 case $configure_input in #(
13329 *\&* | *\|* | *\\* )
13330 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13331 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13332 *) ac_sed_conf_input=$configure_input;;
13333 esac
13334
13335 case $ac_tag in
13336 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13337 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13338 esac
13339 ;;
13340 esac
13341
13342 ac_dir=`$as_dirname -- "$ac_file" ||
13343 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13344 X"$ac_file" : 'X\(//\)[^/]' \| \
13345 X"$ac_file" : 'X\(//\)$' \| \
13346 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13347 printf "%s\n" X"$ac_file" |
13348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13349 s//\1/
13350 q
13351 }
13352 /^X\(\/\/\)[^/].*/{
13353 s//\1/
13354 q
13355 }
13356 /^X\(\/\/\)$/{
13357 s//\1/
13358 q
13359 }
13360 /^X\(\/\).*/{
13361 s//\1/
13362 q
13363 }
13364 s/.*/./; q'`
13365 as_dir="$ac_dir"; as_fn_mkdir_p
13366 ac_builddir=.
13367
13368 case "$ac_dir" in
13369 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13370 *)
13371 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13372 # A ".." for each directory in $ac_dir_suffix.
13373 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13374 case $ac_top_builddir_sub in
13375 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13376 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13377 esac ;;
13378 esac
13379 ac_abs_top_builddir=$ac_pwd
13380 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13381 # for backward compatibility:
13382 ac_top_builddir=$ac_top_build_prefix
13383
13384 case $srcdir in
13385 .) # We are building in place.
13386 ac_srcdir=.
13387 ac_top_srcdir=$ac_top_builddir_sub
13388 ac_abs_top_srcdir=$ac_pwd ;;
13389 [\\/]* | ?:[\\/]* ) # Absolute name.
13390 ac_srcdir=$srcdir$ac_dir_suffix;
13391 ac_top_srcdir=$srcdir
13392 ac_abs_top_srcdir=$srcdir ;;
13393 *) # Relative name.
13394 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13395 ac_top_srcdir=$ac_top_build_prefix$srcdir
13396 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13397 esac
13398 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13399
13400
13401 case $ac_mode in
13402 :F)
13403 #
13404 # CONFIG_FILE
13405 #
13406
13407 case $INSTALL in
13408 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13409 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13410 esac
13411 ac_MKDIR_P=$MKDIR_P
13412 case $MKDIR_P in
13413 [\\/$]* | ?:[\\/]* ) ;;
13414 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13415 esac
13416 _ACEOF
13417
13418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13419 # If the template does not know about datarootdir, expand it.
13420 # FIXME: This hack should be removed a few years after 2.60.
13421 ac_datarootdir_hack=; ac_datarootdir_seen=
13422 ac_sed_dataroot='
13423 /datarootdir/ {
13424 p
13425 q
13426 }
13427 /@datadir@/p
13428 /@docdir@/p
13429 /@infodir@/p
13430 /@localedir@/p
13431 /@mandir@/p'
13432 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13433 *datarootdir*) ac_datarootdir_seen=yes;;
13434 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13436 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13437 _ACEOF
13438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13439 ac_datarootdir_hack='
13440 s&@datadir@&$datadir&g
13441 s&@docdir@&$docdir&g
13442 s&@infodir@&$infodir&g
13443 s&@localedir@&$localedir&g
13444 s&@mandir@&$mandir&g
13445 s&\\\${datarootdir}&$datarootdir&g' ;;
13446 esac
13447 _ACEOF
13448
13449 # Neutralize VPATH when '$srcdir' = '.'.
13450 # Shell code in configure.ac might set extrasub.
13451 # FIXME: do we really want to maintain this feature?
13452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13453 ac_sed_extra="$ac_vpsub
13454 $extrasub
13455 _ACEOF
13456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13457 :t
13458 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13459 s|@configure_input@|$ac_sed_conf_input|;t t
13460 s&@top_builddir@&$ac_top_builddir_sub&;t t
13461 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13462 s&@srcdir@&$ac_srcdir&;t t
13463 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13464 s&@top_srcdir@&$ac_top_srcdir&;t t
13465 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13466 s&@builddir@&$ac_builddir&;t t
13467 s&@abs_builddir@&$ac_abs_builddir&;t t
13468 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13469 s&@INSTALL@&$ac_INSTALL&;t t
13470 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13471 $ac_datarootdir_hack
13472 "
13473 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13474 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13475
13476 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13477 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13478 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13479 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13481 which seems to be undefined. Please make sure it is defined" >&5
13482 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13483 which seems to be undefined. Please make sure it is defined" >&2;}
13484
13485 rm -f "$ac_tmp/stdin"
13486 case $ac_file in
13487 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13488 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13489 esac \
13490 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13491 ;;
13492 :H)
13493 #
13494 # CONFIG_HEADER
13495 #
13496 if test x"$ac_file" != x-; then
13497 {
13498 printf "%s\n" "/* $configure_input */" >&1 \
13499 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13500 } >"$ac_tmp/config.h" \
13501 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13502 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13504 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13505 else
13506 rm -f "$ac_file"
13507 mv "$ac_tmp/config.h" "$ac_file" \
13508 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13509 fi
13510 else
13511 printf "%s\n" "/* $configure_input */" >&1 \
13512 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13513 || as_fn_error $? "could not create -" "$LINENO" 5
13514 fi
13515 # Compute "$ac_file"'s index in $config_headers.
13516 _am_arg="$ac_file"
13517 _am_stamp_count=1
13518 for _am_header in $config_headers :; do
13519 case $_am_header in
13520 $_am_arg | $_am_arg:* )
13521 break ;;
13522 * )
13523 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13524 esac
13525 done
13526 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13527 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13528 X"$_am_arg" : 'X\(//\)[^/]' \| \
13529 X"$_am_arg" : 'X\(//\)$' \| \
13530 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13531 printf "%s\n" X"$_am_arg" |
13532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13533 s//\1/
13534 q
13535 }
13536 /^X\(\/\/\)[^/].*/{
13537 s//\1/
13538 q
13539 }
13540 /^X\(\/\/\)$/{
13541 s//\1/
13542 q
13543 }
13544 /^X\(\/\).*/{
13545 s//\1/
13546 q
13547 }
13548 s/.*/./; q'`/stamp-h$_am_stamp_count
13549 ;;
13550
13551 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13552 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13553 ;;
13554 esac
13555
13556
13557 case $ac_file$ac_mode in
13558 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13559 # Older Autoconf quotes --file arguments for eval, but not when files
13560 # are listed without --file. Let's play safe and only enable the eval
13561 # if we detect the quoting.
13562 # TODO: see whether this extra hack can be removed once we start
13563 # requiring Autoconf 2.70 or later.
13564 case $CONFIG_FILES in #(
13565 *\'*) :
13566 eval set x "$CONFIG_FILES" ;; #(
13567 *) :
13568 set x $CONFIG_FILES ;; #(
13569 *) :
13570 ;;
13571 esac
13572 shift
13573 # Used to flag and report bootstrapping failures.
13574 am_rc=0
13575 for am_mf
13576 do
13577 # Strip MF so we end up with the name of the file.
13578 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13579 # Check whether this is an Automake generated Makefile which includes
13580 # dependency-tracking related rules and includes.
13581 # Grep'ing the whole file directly is not great: AIX grep has a line
13582 # limit of 2048, but all sed's we know have understand at least 4000.
13583 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13584 || continue
13585 am_dirpart=`$as_dirname -- "$am_mf" ||
13586 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13587 X"$am_mf" : 'X\(//\)[^/]' \| \
13588 X"$am_mf" : 'X\(//\)$' \| \
13589 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13590 printf "%s\n" X"$am_mf" |
13591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13592 s//\1/
13593 q
13594 }
13595 /^X\(\/\/\)[^/].*/{
13596 s//\1/
13597 q
13598 }
13599 /^X\(\/\/\)$/{
13600 s//\1/
13601 q
13602 }
13603 /^X\(\/\).*/{
13604 s//\1/
13605 q
13606 }
13607 s/.*/./; q'`
13608 am_filepart=`$as_basename -- "$am_mf" ||
13609 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13610 X"$am_mf" : 'X\(//\)$' \| \
13611 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13612 printf "%s\n" X/"$am_mf" |
13613 sed '/^.*\/\([^/][^/]*\)\/*$/{
13614 s//\1/
13615 q
13616 }
13617 /^X\/\(\/\/\)$/{
13618 s//\1/
13619 q
13620 }
13621 /^X\/\(\/\).*/{
13622 s//\1/
13623 q
13624 }
13625 s/.*/./; q'`
13626 { echo "$as_me:$LINENO: cd "$am_dirpart" \
13627 && sed -e '/# am--include-marker/d' "$am_filepart" \
13628 | $MAKE -f - am--depfiles" >&5
13629 (cd "$am_dirpart" \
13630 && sed -e '/# am--include-marker/d' "$am_filepart" \
13631 | $MAKE -f - am--depfiles) >&5 2>&5
13632 ac_status=$?
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); } || am_rc=$?
13635 done
13636 if test $am_rc -ne 0; then
13637 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13638 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13639 as_fn_error $? "Something went wrong bootstrapping makefile fragments
13640 for automatic dependency tracking. If GNU make was not used, consider
13641 re-running the configure script with MAKE=\"gmake\" (or whatever is
13642 necessary). You can also try re-running configure with the
13643 '--disable-dependency-tracking' option to at least be able to build
13644 the package (albeit without support for automatic dependency tracking).
13645 See 'config.log' for more details" "$LINENO" 5; }
13646 fi
13647 { am_dirpart=; unset am_dirpart;}
13648 { am_filepart=; unset am_filepart;}
13649 { am_mf=; unset am_mf;}
13650 { am_rc=; unset am_rc;}
13651 rm -f conftest-deps.mk
13652 }
13653 ;;
13654
13655 esac
13656 done # for ac_tag
13657
13658
13659 as_fn_exit 0
13660 _ACEOF
13661 ac_clean_files=$ac_clean_files_save
13662
13663 test $ac_write_fail = 0 ||
13664 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13665
13666
13667 # configure is writing to config.log, and then calls config.status.
13668 # config.status does its own redirection, appending to config.log.
13669 # Unfortunately, on DOS this fails, as config.log is still kept open
13670 # by configure, so config.status won't be able to write to it; its
13671 # output is simply discarded. So we exec the FD to /dev/null,
13672 # effectively closing config.log, so it can be properly (re)opened and
13673 # appended to by config.status. When coming back to configure, we
13674 # need to make the FD available again.
13675 if test "$no_create" != yes; then
13676 ac_cs_success=:
13677 ac_config_status_args=
13678 test "$silent" = yes &&
13679 ac_config_status_args="$ac_config_status_args --quiet"
13680 exec 5>/dev/null
13681 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13682 exec 5>>config.log
13683 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13684 # would make configure fail if this is the last instruction.
13685 $ac_cs_success || as_fn_exit 1
13686 fi
13687 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13689 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13690 fi
13691
13692
13693