configure revision 1.1.1.8 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.73 for xkbprint 1.0.8.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbprint/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2026 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 # contradicts POSIX and common usage. Disable this.
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 case $# in # ((
135 0) exec $CONFIG_SHELL $as_opts "$as_myself" ;;
136 *) exec $CONFIG_SHELL $as_opts "$as_myself" "$@" ;;
137 esac
138 # Admittedly, this is quite paranoid, since all the known shells bail
139 # out after a failed 'exec'.
140 printf '%s\n' "$0: could not re-execute with $CONFIG_SHELL" >&2
141 exit 255
142 fi
143 # We don't want this to propagate to other subprocesses.
144 { _as_can_reexec=; unset _as_can_reexec;}
145 if test "x$CONFIG_SHELL" = x; then
146 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
147 then :
148 emulate sh
149 NULLCMD=:
150 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
151 # contradicts POSIX and common usage. Disable this.
152 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 setopt NO_GLOB_SUBST
154 else case e in #(
155 e) case \`(set -o) 2>/dev/null\` in #(
156 *posix*) :
157 set -o posix ;; #(
158 *) :
159 ;;
160 esac ;;
161 esac
162 fi
163 "
164 as_required="as_fn_return () { (exit \$1); }
165 as_fn_success () { as_fn_return 0; }
166 as_fn_failure () { as_fn_return 1; }
167 as_fn_ret_success () { return 0; }
168 as_fn_ret_failure () { return 1; }
169
170 exitcode=0
171 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
172 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
173 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
174 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
175 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 then :
177
178 else case e in #(
179 e) exitcode=1; echo positional parameters were not saved. ;;
180 esac
181 fi
182 test x\$exitcode = x0 || exit 1
183 blah=\$(echo \$(echo blah))
184 test x\"\$blah\" = xblah || exit 1
185 test -x / || exit 1"
186 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
187 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
188 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
189 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
190 test \$(( 1 + 1 )) = 2 || exit 1"
191 if (eval "$as_required") 2>/dev/null
192 then :
193 as_have_required=yes
194 else case e in #(
195 e) as_have_required=no ;;
196 esac
197 fi
198 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
199 then :
200
201 else case e in #(
202 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
203 as_found=false
204 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
205 do
206 IFS=$as_save_IFS
207 case $as_dir in #(((
208 '') as_dir=./ ;;
209 */) ;;
210 *) as_dir=$as_dir/ ;;
211 esac
212 as_found=:
213 case $as_dir in #(
214 /*)
215 for as_base in sh bash ksh sh5; do
216 # Try only shells that exist, to save several forks.
217 as_shell=$as_dir$as_base
218 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
219 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
220 then :
221 CONFIG_SHELL=$as_shell as_have_required=yes
222 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
223 then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 IFS=$as_save_IFS
232 if $as_found
233 then :
234
235 else case e in #(
236 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
237 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
238 then :
239 CONFIG_SHELL=$SHELL as_have_required=yes
240 fi ;;
241 esac
242 fi
243
244
245 if test "x$CONFIG_SHELL" != x
246 then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 case $# in # ((
262 0) exec $CONFIG_SHELL $as_opts "$as_myself" ;;
263 *) exec $CONFIG_SHELL $as_opts "$as_myself" "$@" ;;
264 esac
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed 'exec'.
267 printf '%s\n' "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno
272 then :
273 printf '%s\n' "$0: This script requires a shell more modern than all"
274 printf '%s\n' "$0: the shells that I found on your system."
275 if test ${ZSH_VERSION+y} ; then
276 printf '%s\n' "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 printf '%s\n' "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 printf '%s\n' "$0: Please tell bug-autoconf (at] gnu.org and
280 $0: https://gitlab.freedesktop.org/xorg/app/xkbprint/-/issues
281 $0: about your system, including any error possibly output
282 $0: before this message. Then install a modern shell, or
283 $0: manually run the script under such a shell if you do
284 $0: have one."
285 fi
286 exit 1
287 fi ;;
288 esac
289 fi
290 fi
291 SHELL=${CONFIG_SHELL-/bin/sh}
292 export SHELL
293 # Unset more variables known to interfere with behavior of common tools.
294 CLICOLOR_FORCE= GREP_OPTIONS=
295 unset CLICOLOR_FORCE GREP_OPTIONS
296
297 ## --------------------- ##
298 ## M4sh Shell Functions. ##
299 ## --------------------- ##
300 # as_fn_unset VAR
301 # ---------------
302 # Portably unset VAR.
303 as_fn_unset ()
304 {
305 { eval $1=; unset $1;}
306 }
307 as_unset=as_fn_unset
308
309
310 # as_fn_set_status STATUS
311 # -----------------------
312 # Set $? to STATUS, without forking.
313 as_fn_set_status ()
314 {
315 return $1
316 } # as_fn_set_status
317
318 # as_fn_exit STATUS
319 # -----------------
320 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
321 as_fn_exit ()
322 {
323 set +e
324 as_fn_set_status $1
325 exit $1
326 } # as_fn_exit
327
328 # as_fn_mkdir_p
329 # -------------
330 # Create "$as_dir" as a directory, including parents if necessary.
331 as_fn_mkdir_p ()
332 {
333
334 case $as_dir in #(
335 -*) as_dir=./$as_dir;;
336 esac
337 test -d "$as_dir" || eval $as_mkdir_p || {
338 as_dirs=
339 while :; do
340 case $as_dir in #(
341 *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
342 *) as_qdir=$as_dir;;
343 esac
344 as_dirs="'$as_qdir' $as_dirs"
345 as_dir=`$as_dirname -- "$as_dir" ||
346 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
347 X"$as_dir" : 'X\(//\)[^/]' \| \
348 X"$as_dir" : 'X\(//\)$' \| \
349 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
350 printf '%s\n' X"$as_dir" |
351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)[^/].*/{
356 s//\1/
357 q
358 }
359 /^X\(\/\/\)$/{
360 s//\1/
361 q
362 }
363 /^X\(\/\).*/{
364 s//\1/
365 q
366 }
367 s/.*/./; q'`
368 test -d "$as_dir" && break
369 done
370 test -z "$as_dirs" || eval "mkdir $as_dirs"
371 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372
373
374 } # as_fn_mkdir_p
375
376 # as_fn_executable_p FILE
377 # -----------------------
378 # Test if FILE is an executable regular file.
379 as_fn_executable_p ()
380 {
381 test -f "$1" && test -x "$1"
382 } # as_fn_executable_p
383 # as_fn_append VAR VALUE
384 # ----------------------
385 # Append the text in VALUE to the end of the definition contained in VAR. Take
386 # advantage of any shell optimizations that allow amortized linear growth over
387 # repeated appends, instead of the typical quadratic growth present in naive
388 # implementations.
389 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
390 then :
391 eval 'as_fn_append ()
392 {
393 eval $1+=\$2
394 }'
395 else case e in #(
396 e) as_fn_append ()
397 {
398 eval $1=\$$1\$2
399 } ;;
400 esac
401 fi # as_fn_append
402
403 # as_fn_arith ARG...
404 # ------------------
405 # Perform arithmetic evaluation on the ARGs, and store the result in the
406 # global $as_val. Take advantage of shells that can avoid forks. The arguments
407 # must be portable across $(()) and expr.
408 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
409 then :
410 eval 'as_fn_arith ()
411 {
412 as_val=$(( $* ))
413 }'
414 else case e in #(
415 e) as_fn_arith ()
416 {
417 as_val=`expr "$@" || test $? -eq 1`
418 } ;;
419 esac
420 fi # as_fn_arith
421
422
423 # as_fn_error STATUS ERROR [LINENO LOG_FD]
424 # ----------------------------------------
425 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
426 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
427 # script with STATUS, using 1 if that was 0.
428 as_fn_error ()
429 {
430 as_status=$1; test $as_status -eq 0 && as_status=1
431 if test "$4"; then
432 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
433 printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
434 fi
435 printf '%s\n' "$as_me: error: $2" >&2
436 as_fn_exit $as_status
437 } # as_fn_error
438
439 if expr a : '\(a\)' >/dev/null 2>&1 &&
440 test "X`expr 00001 : '.*\(...\)'`" = X001; then
441 as_expr=expr
442 else
443 as_expr=false
444 fi
445
446 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
447 as_basename=basename
448 else
449 as_basename=false
450 fi
451
452 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
453 as_dirname=dirname
454 else
455 as_dirname=false
456 fi
457
458 as_me=`$as_basename -- "$0" ||
459 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
460 X"$0" : 'X\(//\)$' \| \
461 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
462 printf '%s\n' X/"$0" |
463 sed '/^.*\/\([^/][^/]*\)\/*$/{
464 s//\1/
465 q
466 }
467 /^X\/\(\/\/\)$/{
468 s//\1/
469 q
470 }
471 /^X\/\(\/\).*/{
472 s//\1/
473 q
474 }
475 s/.*/./; q'`
476
477 # Avoid depending upon Character Ranges.
478 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
479 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
480 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
481 as_cr_digits='0123456789'
482 as_cr_alnum=$as_cr_Letters$as_cr_digits
483
484
485 as_lineno_1=$LINENO as_lineno_1a=$LINENO
486 as_lineno_2=$LINENO as_lineno_2a=$LINENO
487 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
488 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
489 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
490 sed -n '
491 p
492 /[$]LINENO/=
493 ' <$as_myself |
494 sed '
495 t clear
496 :clear
497 s/[$]LINENO.*/&-/
498 t lineno
499 b
500 :lineno
501 N
502 :loop
503 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
504 t loop
505 s/-\n.*//
506 ' >$as_me.lineno &&
507 chmod +x "$as_me.lineno" ||
508 { printf '%s\n' "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
509
510 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
511 # already done that, so ensure we don't try to do so again and fall
512 # in an infinite loop. This has already happened in practice.
513 _as_can_reexec=no; export _as_can_reexec
514 # Don't try to exec as it changes $[0], causing all sort of problems
515 # (the dirname of $[0] is not the place where we might find the
516 # original and so on. Autoconf is especially sensitive to this).
517 . "./$as_me.lineno"
518 # Exit status is that of the last command.
519 exit
520 }
521
522 rm -f conf$$ conf$$.exe conf$$.file
523 if test -d conf$$.dir; then
524 rm -f conf$$.dir/conf$$.file
525 else
526 rm -f conf$$.dir
527 mkdir conf$$.dir 2>/dev/null
528 fi
529 if (echo >conf$$.file) 2>/dev/null; then
530 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 as_ln_s='ln -s'
532 # ... but there are two gotchas:
533 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
534 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
535 # In both cases, we have to default to 'cp -pR'.
536 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 as_ln_s='cp -pR'
538 elif ln conf$$.file conf$$ 2>/dev/null; then
539 as_ln_s=ln
540 else
541 as_ln_s='cp -pR'
542 fi
543 else
544 as_ln_s='cp -pR'
545 fi
546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
547 rmdir conf$$.dir 2>/dev/null
548
549 if mkdir -p . 2>/dev/null; then
550 as_mkdir_p='mkdir -p "$as_dir"'
551 else
552 test -d ./-p && rmdir ./-p
553 as_mkdir_p=false
554 fi
555
556 as_test_x='test -x'
557 as_executable_p=as_fn_executable_p
558
559 # Sed expression to map a string onto a valid CPP name.
560 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
561 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
562
563 # Sed expression to map a string onto a valid variable name.
564 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
565 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
566
567
568 test -n "$DJDIR" || exec 7<&0 </dev/null
569 exec 6>&1
570
571 # Name of the host.
572 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
573 # so uname gets run too.
574 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
575
576 #
577 # Initializations.
578 #
579 ac_default_prefix=/usr/local
580 ac_clean_CONFIG_STATUS=
581 ac_clean_files=
582 ac_config_libobj_dir=.
583 LIBOBJS=
584 cross_compiling=no
585 subdirs=
586 MFLAGS=
587 MAKEFLAGS=
588
589 # Identity of this package.
590 PACKAGE_NAME='xkbprint'
591 PACKAGE_TARNAME='xkbprint'
592 PACKAGE_VERSION='1.0.8'
593 PACKAGE_STRING='xkbprint 1.0.8'
594 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xkbprint/-/issues'
595 PACKAGE_URL=''
596
597 ac_unique_file="Makefile.am"
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stddef.h>
601 #ifdef HAVE_STDIO_H
602 # include <stdio.h>
603 #endif
604 #ifdef HAVE_STDLIB_H
605 # include <stdlib.h>
606 #endif
607 #ifdef HAVE_STRING_H
608 # include <string.h>
609 #endif
610 #ifdef HAVE_INTTYPES_H
611 # include <inttypes.h>
612 #endif
613 #ifdef HAVE_STDINT_H
614 # include <stdint.h>
615 #endif
616 #ifdef HAVE_STRINGS_H
617 # include <strings.h>
618 #endif
619 #ifdef HAVE_SYS_TYPES_H
620 # include <sys/types.h>
621 #endif
622 #ifdef HAVE_SYS_STAT_H
623 # include <sys/stat.h>
624 #endif
625 #ifdef HAVE_UNISTD_H
626 # include <unistd.h>
627 #endif"
628
629 ac_header_c_list=
630 : ${enable_year2038:=no}
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 XKBPRINT_LIBS
636 XKBPRINT_CFLAGS
637 MAN_SUBSTS
638 XORG_MAN_PAGE
639 ADMIN_MAN_DIR
640 DRIVER_MAN_DIR
641 MISC_MAN_DIR
642 FILE_MAN_DIR
643 LIB_MAN_DIR
644 APP_MAN_DIR
645 ADMIN_MAN_SUFFIX
646 DRIVER_MAN_SUFFIX
647 MISC_MAN_SUFFIX
648 FILE_MAN_SUFFIX
649 LIB_MAN_SUFFIX
650 APP_MAN_SUFFIX
651 SED
652 host_os
653 host_vendor
654 host_cpu
655 host
656 build_os
657 build_vendor
658 build_cpu
659 build
660 INSTALL_CMD
661 PKG_CONFIG_LIBDIR
662 PKG_CONFIG_PATH
663 PKG_CONFIG
664 CHANGELOG_CMD
665 STRICT_CFLAGS
666 CWARNFLAGS
667 BASE_CFLAGS
668 am__xargs_n
669 am__rm_f_notfound
670 AM_BACKSLASH
671 AM_DEFAULT_VERBOSITY
672 AM_DEFAULT_V
673 AM_V
674 CSCOPE
675 ETAGS
676 CTAGS
677 am__fastdepCC_FALSE
678 am__fastdepCC_TRUE
679 CCDEPMODE
680 am__nodep
681 AMDEPBACKSLASH
682 AMDEP_FALSE
683 AMDEP_TRUE
684 am__include
685 DEPDIR
686 am__untar
687 am__tar
688 AMTAR
689 am__leading_dot
690 SET_MAKE
691 AWK
692 mkdir_p
693 MKDIR_P
694 INSTALL_STRIP_PROGRAM
695 STRIP
696 install_sh
697 MAKEINFO
698 AUTOHEADER
699 AUTOMAKE
700 AUTOCONF
701 ACLOCAL
702 VERSION
703 PACKAGE
704 CYGPATH_W
705 am__isrc
706 INSTALL_DATA
707 INSTALL_SCRIPT
708 INSTALL_PROGRAM
709 OBJEXT
710 EXEEXT
711 ac_ct_CC
712 CPPFLAGS
713 LDFLAGS
714 CFLAGS
715 CC
716 ECHO_T
717 ECHO_N
718 ECHO_C
719 target_alias
720 host_alias
721 build_alias
722 LIBS
723 DEFS
724 mandir
725 localedir
726 libdir
727 psdir
728 pdfdir
729 dvidir
730 htmldir
731 infodir
732 docdir
733 oldincludedir
734 includedir
735 runstatedir
736 localstatedir
737 sharedstatedir
738 sysconfdir
739 datadir
740 datarootdir
741 libexecdir
742 sbindir
743 bindir
744 program_transform_name
745 prefix
746 exec_prefix
747 PACKAGE_URL
748 PACKAGE_BUGREPORT
749 PACKAGE_STRING
750 PACKAGE_VERSION
751 PACKAGE_TARNAME
752 PACKAGE_NAME
753 PATH_SEPARATOR
754 SHELL
755 am__quote'
756 ac_subst_files=''
757 ac_user_opts='
758 enable_option_checking
759 enable_dependency_tracking
760 enable_silent_rules
761 enable_selective_werror
762 enable_strict_compilation
763 enable_largefile
764 enable_year2038
765 '
766 ac_precious_vars='build_alias
767 host_alias
768 target_alias
769 CC
770 CFLAGS
771 LDFLAGS
772 LIBS
773 CPPFLAGS
774 PKG_CONFIG
775 PKG_CONFIG_PATH
776 PKG_CONFIG_LIBDIR
777 XKBPRINT_CFLAGS
778 XKBPRINT_LIBS'
779
780
781 # Initialize some variables set by options.
782 ac_init_help=
783 ac_init_version=false
784 ac_unrecognized_opts=
785 ac_unrecognized_sep=
786 # The variables have the same names as the options, with
787 # dashes changed to underlines.
788 cache_file=/dev/null
789 exec_prefix=NONE
790 no_create=
791 no_recursion=
792 prefix=NONE
793 program_prefix=NONE
794 program_suffix=NONE
795 program_transform_name=s,x,x,
796 silent=
797 site=
798 srcdir=
799 verbose=
800 x_includes=NONE
801 x_libraries=NONE
802
803 # Installation directory options.
804 # These are left unexpanded so users can "make install exec_prefix=/foo"
805 # and all the variables that are supposed to be based on exec_prefix
806 # by default will actually change.
807 # Use braces instead of parens because sh, perl, etc. also accept them.
808 # (The list follows the same order as the GNU Coding Standards.)
809 bindir='${exec_prefix}/bin'
810 sbindir='${exec_prefix}/sbin'
811 libexecdir='${exec_prefix}/libexec'
812 datarootdir='${prefix}/share'
813 datadir='${datarootdir}'
814 sysconfdir='${prefix}/etc'
815 sharedstatedir='${prefix}/com'
816 localstatedir='${prefix}/var'
817 runstatedir='${localstatedir}/run'
818 includedir='${prefix}/include'
819 oldincludedir='/usr/include'
820 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
821 infodir='${datarootdir}/info'
822 htmldir='${docdir}'
823 dvidir='${docdir}'
824 pdfdir='${docdir}'
825 psdir='${docdir}'
826 libdir='${exec_prefix}/lib'
827 localedir='${datarootdir}/locale'
828 mandir='${datarootdir}/man'
829
830 ac_prev=
831 ac_dashdash=
832 for ac_option
833 do
834 # If the previous option needs an argument, assign it.
835 if test -n "$ac_prev"; then
836 eval $ac_prev=\$ac_option
837 ac_prev=
838 continue
839 fi
840
841 case $ac_option in
842 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843 *=) ac_optarg= ;;
844 *) ac_optarg=yes ;;
845 esac
846
847 case $ac_dashdash$ac_option in
848 --)
849 ac_dashdash=yes ;;
850
851 -bindir | --bindir | --bindi | --bind | --bin | --bi)
852 ac_prev=bindir ;;
853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
854 bindir=$ac_optarg ;;
855
856 -build | --build | --buil | --bui | --bu)
857 ac_prev=build_alias ;;
858 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
859 build_alias=$ac_optarg ;;
860
861 -cache-file | --cache-file | --cache-fil | --cache-fi \
862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863 ac_prev=cache_file ;;
864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
866 cache_file=$ac_optarg ;;
867
868 --config-cache | -C)
869 cache_file=config.cache ;;
870
871 -datadir | --datadir | --datadi | --datad)
872 ac_prev=datadir ;;
873 -datadir=* | --datadir=* | --datadi=* | --datad=*)
874 datadir=$ac_optarg ;;
875
876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877 | --dataroo | --dataro | --datar)
878 ac_prev=datarootdir ;;
879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881 datarootdir=$ac_optarg ;;
882
883 -disable-* | --disable-*)
884 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
887 as_fn_error $? "invalid feature name: '$ac_useropt'"
888 ac_useropt_orig=$ac_useropt
889 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
891 *"
892 "enable_$ac_useropt"
893 "*) ;;
894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
895 ac_unrecognized_sep=', ';;
896 esac
897 eval enable_$ac_useropt=no ;;
898
899 -docdir | --docdir | --docdi | --doc | --do)
900 ac_prev=docdir ;;
901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902 docdir=$ac_optarg ;;
903
904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905 ac_prev=dvidir ;;
906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907 dvidir=$ac_optarg ;;
908
909 -enable-* | --enable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error $? "invalid feature name: '$ac_useropt'"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
917 *"
918 "enable_$ac_useropt"
919 "*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=\$ac_optarg ;;
924
925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
927 | --exec | --exe | --ex)
928 ac_prev=exec_prefix ;;
929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
931 | --exec=* | --exe=* | --ex=*)
932 exec_prefix=$ac_optarg ;;
933
934 -gas | --gas | --ga | --g)
935 # Obsolete; use --with-gas.
936 with_gas=yes ;;
937
938 -help | --help | --hel | --he | -h)
939 ac_init_help=long ;;
940 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
941 ac_init_help=recursive ;;
942 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
943 ac_init_help=short ;;
944
945 -host | --host | --hos | --ho)
946 ac_prev=host_alias ;;
947 -host=* | --host=* | --hos=* | --ho=*)
948 host_alias=$ac_optarg ;;
949
950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
951 ac_prev=htmldir ;;
952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
953 | --ht=*)
954 htmldir=$ac_optarg ;;
955
956 -includedir | --includedir | --includedi | --included | --include \
957 | --includ | --inclu | --incl | --inc)
958 ac_prev=includedir ;;
959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
960 | --includ=* | --inclu=* | --incl=* | --inc=*)
961 includedir=$ac_optarg ;;
962
963 -infodir | --infodir | --infodi | --infod | --info | --inf)
964 ac_prev=infodir ;;
965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
966 infodir=$ac_optarg ;;
967
968 -libdir | --libdir | --libdi | --libd)
969 ac_prev=libdir ;;
970 -libdir=* | --libdir=* | --libdi=* | --libd=*)
971 libdir=$ac_optarg ;;
972
973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
974 | --libexe | --libex | --libe)
975 ac_prev=libexecdir ;;
976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
977 | --libexe=* | --libex=* | --libe=*)
978 libexecdir=$ac_optarg ;;
979
980 -localedir | --localedir | --localedi | --localed | --locale)
981 ac_prev=localedir ;;
982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
983 localedir=$ac_optarg ;;
984
985 -localstatedir | --localstatedir | --localstatedi | --localstated \
986 | --localstate | --localstat | --localsta | --localst | --locals)
987 ac_prev=localstatedir ;;
988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
990 localstatedir=$ac_optarg ;;
991
992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
993 ac_prev=mandir ;;
994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
995 mandir=$ac_optarg ;;
996
997 -nfp | --nfp | --nf)
998 # Obsolete; use --without-fp.
999 with_fp=no ;;
1000
1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002 | --no-cr | --no-c | -n)
1003 no_create=yes ;;
1004
1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 no_recursion=yes ;;
1008
1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1011 | --oldin | --oldi | --old | --ol | --o)
1012 ac_prev=oldincludedir ;;
1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1016 oldincludedir=$ac_optarg ;;
1017
1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1019 ac_prev=prefix ;;
1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1021 prefix=$ac_optarg ;;
1022
1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1024 | --program-pre | --program-pr | --program-p)
1025 ac_prev=program_prefix ;;
1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1028 program_prefix=$ac_optarg ;;
1029
1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1031 | --program-suf | --program-su | --program-s)
1032 ac_prev=program_suffix ;;
1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1035 program_suffix=$ac_optarg ;;
1036
1037 -program-transform-name | --program-transform-name \
1038 | --program-transform-nam | --program-transform-na \
1039 | --program-transform-n | --program-transform- \
1040 | --program-transform | --program-transfor \
1041 | --program-transfo | --program-transf \
1042 | --program-trans | --program-tran \
1043 | --progr-tra | --program-tr | --program-t)
1044 ac_prev=program_transform_name ;;
1045 -program-transform-name=* | --program-transform-name=* \
1046 | --program-transform-nam=* | --program-transform-na=* \
1047 | --program-transform-n=* | --program-transform-=* \
1048 | --program-transform=* | --program-transfor=* \
1049 | --program-transfo=* | --program-transf=* \
1050 | --program-trans=* | --program-tran=* \
1051 | --progr-tra=* | --program-tr=* | --program-t=*)
1052 program_transform_name=$ac_optarg ;;
1053
1054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1055 ac_prev=pdfdir ;;
1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1057 pdfdir=$ac_optarg ;;
1058
1059 -psdir | --psdir | --psdi | --psd | --ps)
1060 ac_prev=psdir ;;
1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 psdir=$ac_optarg ;;
1063
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1066 silent=yes ;;
1067
1068 -runstatedir | --runstatedir | --runstatedi | --runstated \
1069 | --runstate | --runstat | --runsta | --runst | --runs \
1070 | --run | --ru | --r)
1071 ac_prev=runstatedir ;;
1072 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1073 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1074 | --run=* | --ru=* | --r=*)
1075 runstatedir=$ac_optarg ;;
1076
1077 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078 ac_prev=sbindir ;;
1079 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080 | --sbi=* | --sb=*)
1081 sbindir=$ac_optarg ;;
1082
1083 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085 | --sharedst | --shareds | --shared | --share | --shar \
1086 | --sha | --sh)
1087 ac_prev=sharedstatedir ;;
1088 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091 | --sha=* | --sh=*)
1092 sharedstatedir=$ac_optarg ;;
1093
1094 -site | --site | --sit)
1095 ac_prev=site ;;
1096 -site=* | --site=* | --sit=*)
1097 site=$ac_optarg ;;
1098
1099 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100 ac_prev=srcdir ;;
1101 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102 srcdir=$ac_optarg ;;
1103
1104 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105 | --syscon | --sysco | --sysc | --sys | --sy)
1106 ac_prev=sysconfdir ;;
1107 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109 sysconfdir=$ac_optarg ;;
1110
1111 -target | --target | --targe | --targ | --tar | --ta | --t)
1112 ac_prev=target_alias ;;
1113 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114 target_alias=$ac_optarg ;;
1115
1116 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117 verbose=yes ;;
1118
1119 -version | --version | --versio | --versi | --vers | -V)
1120 ac_init_version=: ;;
1121
1122 -with-* | --with-*)
1123 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error $? "invalid package name: '$ac_useropt'"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1130 *"
1131 "with_$ac_useropt"
1132 "*) ;;
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1135 esac
1136 eval with_$ac_useropt=\$ac_optarg ;;
1137
1138 -without-* | --without-*)
1139 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error $? "invalid package name: '$ac_useropt'"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1146 *"
1147 "with_$ac_useropt"
1148 "*) ;;
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1151 esac
1152 eval with_$ac_useropt=no ;;
1153
1154 --x)
1155 # Obsolete; use --with-x.
1156 with_x=yes ;;
1157
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1164
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1171
1172 -*) as_fn_error $? "unrecognized option: '$ac_option'
1173 Try '$0 --help' for more information"
1174 ;;
1175
1176 *=*)
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
1179 case $ac_envvar in #(
1180 '' | [0-9]* | *[!_$as_cr_alnum]* )
1181 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1182 esac
1183 eval $ac_envvar=\$ac_optarg
1184 export $ac_envvar ;;
1185
1186 *)
1187 # FIXME: should be removed in autoconf 3.0.
1188 printf '%s\n' "$as_me: WARNING: you should use --build, --host, --target" >&2
1189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 printf '%s\n' "$as_me: WARNING: invalid host type: $ac_option" >&2
1191 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1192 ;;
1193
1194 esac
1195 done
1196
1197 if test -n "$ac_prev"; then
1198 ac_option=--`printf '%s\n' $ac_prev | sed 's/_/-/g'`
1199 as_fn_error $? "missing argument to $ac_option"
1200 fi
1201
1202 if test -n "$ac_unrecognized_opts"; then
1203 case $enable_option_checking in
1204 no) ;;
1205 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1206 *) printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207 esac
1208 fi
1209
1210 # Check all directory arguments for consistency.
1211 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212 datadir sysconfdir sharedstatedir localstatedir includedir \
1213 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214 libdir localedir mandir runstatedir
1215 do
1216 eval ac_val=\$$ac_var
1217 # Remove trailing slashes.
1218 case $ac_val in
1219 */ )
1220 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221 eval $ac_var=\$ac_val;;
1222 esac
1223 # Be sure to have absolute directory names.
1224 case $ac_val in
1225 [\\/$]* | ?:[\\/]* ) continue;;
1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227 esac
1228 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1229 done
1230
1231 # There might be people who depend on the old broken behavior: '$host'
1232 # used to hold the argument of --host etc.
1233 # FIXME: To remove some day.
1234 build=$build_alias
1235 host=$host_alias
1236 target=$target_alias
1237
1238 # FIXME: To remove some day.
1239 if test "x$host_alias" != x; then
1240 if test "x$build_alias" = x; then
1241 cross_compiling=maybe
1242 elif test "x$build_alias" != "x$host_alias"; then
1243 cross_compiling=yes
1244 fi
1245 fi
1246
1247 ac_tool_prefix=
1248 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249
1250 test "$silent" = yes && exec 6>/dev/null
1251
1252
1253 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di=`ls -di .` &&
1255 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256 as_fn_error $? "working directory cannot be determined"
1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258 as_fn_error $? "pwd does not report name of working directory"
1259
1260
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263 ac_srcdir_defaulted=yes
1264 # Try the directory containing this script, then the parent directory.
1265 ac_confdir=`$as_dirname -- "$as_myself" ||
1266 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267 X"$as_myself" : 'X\(//\)[^/]' \| \
1268 X"$as_myself" : 'X\(//\)$' \| \
1269 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270 printf '%s\n' X"$as_myself" |
1271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)[^/].*/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\/\)$/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\).*/{
1284 s//\1/
1285 q
1286 }
1287 s/.*/./; q'`
1288 srcdir=$ac_confdir
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 srcdir=..
1291 fi
1292 else
1293 ac_srcdir_defaulted=no
1294 fi
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1298 fi
1299 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1300 ac_abs_confdir=`(
1301 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1302 pwd)`
1303 # When building in place, set srcdir=.
1304 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305 srcdir=.
1306 fi
1307 # Remove unnecessary trailing slashes from srcdir.
1308 # Double slashes in file names in object file debugging info
1309 # mess up M-x gdb in Emacs.
1310 case $srcdir in
1311 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312 esac
1313 for ac_var in $ac_precious_vars; do
1314 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_env_${ac_var}_value=\$${ac_var}
1316 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318 done
1319
1320 #
1321 # Report the --help message.
1322 #
1323 if test "$ac_init_help" = "long"; then
1324 # Omit some internal or obsolete options to make the list less imposing.
1325 # This message is too long to be a string in the A/UX 3.1 sh.
1326 cat <<_ACEOF
1327 'configure' configures xkbprint 1.0.8 to adapt to many kinds of systems.
1328
1329 Usage: $0 [OPTION]... [VAR=VALUE]...
1330
1331 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332 VAR=VALUE. See below for descriptions of some of the useful variables.
1333
1334 Defaults for the options are specified in brackets.
1335
1336 Configuration:
1337 -h, --help display this help and exit
1338 --help=short display options specific to this package
1339 --help=recursive display the short help of all the included packages
1340 -V, --version display version information and exit
1341 -q, --quiet, --silent do not print 'checking ...' messages
1342 --cache-file=FILE cache test results in FILE [disabled]
1343 -C, --config-cache alias for '--cache-file=config.cache'
1344 -n, --no-create do not create output files
1345 --srcdir=DIR find the sources in DIR [configure dir or '..']
1346
1347 Installation directories:
1348 --prefix=PREFIX install architecture-independent files in PREFIX
1349 [$ac_default_prefix]
1350 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1351 [PREFIX]
1352
1353 By default, 'make install' will install all the files in
1354 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1355 an installation prefix other than '$ac_default_prefix' using '--prefix',
1356 for instance '--prefix=\$HOME'.
1357
1358 For better control, use the options below.
1359
1360 Fine tuning of the installation directories:
1361 --bindir=DIR user executables [EPREFIX/bin]
1362 --sbindir=DIR system admin executables [EPREFIX/sbin]
1363 --libexecdir=DIR program executables [EPREFIX/libexec]
1364 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1365 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1366 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1367 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1368 --libdir=DIR object code libraries [EPREFIX/lib]
1369 --includedir=DIR C header files [PREFIX/include]
1370 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1371 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1372 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1373 --infodir=DIR info documentation [DATAROOTDIR/info]
1374 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1375 --mandir=DIR man documentation [DATAROOTDIR/man]
1376 --docdir=DIR documentation root [DATAROOTDIR/doc/xkbprint]
1377 --htmldir=DIR html documentation [DOCDIR]
1378 --dvidir=DIR dvi documentation [DOCDIR]
1379 --pdfdir=DIR pdf documentation [DOCDIR]
1380 --psdir=DIR ps documentation [DOCDIR]
1381 _ACEOF
1382
1383 cat <<\_ACEOF
1384
1385 Program names:
1386 --program-prefix=PREFIX prepend PREFIX to installed program names
1387 --program-suffix=SUFFIX append SUFFIX to installed program names
1388 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1389
1390 System types:
1391 --build=BUILD configure for building on BUILD [guessed]
1392 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1393 _ACEOF
1394 fi
1395
1396 if test -n "$ac_init_help"; then
1397 case $ac_init_help in
1398 short | recursive ) echo "Configuration of xkbprint 1.0.8:";;
1399 esac
1400 cat <<\_ACEOF
1401
1402 Optional Features:
1403 --disable-option-checking ignore unrecognized --enable/--with options
1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1406 --enable-dependency-tracking
1407 do not reject slow dependency extractors
1408 --disable-dependency-tracking
1409 speeds up one-time build
1410 --enable-silent-rules less verbose build output (undo: "make V=1")
1411 --disable-silent-rules verbose build output (undo: "make V=0")
1412 --disable-selective-werror
1413 Turn off selective compiler errors. (default:
1414 enabled)
1415 --enable-strict-compilation
1416 Enable all warnings from compiler and make them
1417 errors (default: disabled)
1418 --disable-largefile omit support for large files
1419 --enable-year2038 support timestamps after 2038
1420
1421 Some influential environment variables:
1422 CC C compiler command
1423 CFLAGS C compiler flags
1424 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1425 nonstandard directory <lib dir>
1426 LIBS libraries to pass to the linker, e.g. -l<library>
1427 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1428 you have headers in a nonstandard directory <include dir>
1429 PKG_CONFIG path to pkg-config utility
1430 PKG_CONFIG_PATH
1431 directories to add to pkg-config's search path
1432 PKG_CONFIG_LIBDIR
1433 path overriding pkg-config's built-in search path
1434 XKBPRINT_CFLAGS
1435 C compiler flags for XKBPRINT, overriding pkg-config
1436 XKBPRINT_LIBS
1437 linker flags for XKBPRINT, overriding pkg-config
1438
1439 Use these variables to override the choices made by 'configure' or to help
1440 it to find libraries and programs with nonstandard names/locations.
1441
1442 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbprint/-/issues>.
1443 _ACEOF
1444 ac_status=$?
1445 fi
1446
1447 if test "$ac_init_help" = "recursive"; then
1448 # If there are subdirs, report their specific --help.
1449 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1450 test -d "$ac_dir" ||
1451 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1452 continue
1453 ac_builddir=.
1454
1455 case "$ac_dir" in
1456 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1457 *)
1458 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'`
1459 # A ".." for each directory in $ac_dir_suffix.
1460 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1461 case $ac_top_builddir_sub in
1462 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1464 esac ;;
1465 esac
1466 ac_abs_top_builddir=$ac_pwd
1467 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1468 # for backward compatibility:
1469 ac_top_builddir=$ac_top_build_prefix
1470
1471 case $srcdir in
1472 .) # We are building in place.
1473 ac_srcdir=.
1474 ac_top_srcdir=$ac_top_builddir_sub
1475 ac_abs_top_srcdir=$ac_pwd ;;
1476 [\\/]* | ?:[\\/]* ) # Absolute name.
1477 ac_srcdir=$srcdir$ac_dir_suffix;
1478 ac_top_srcdir=$srcdir
1479 ac_abs_top_srcdir=$srcdir ;;
1480 *) # Relative name.
1481 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1482 ac_top_srcdir=$ac_top_build_prefix$srcdir
1483 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1484 esac
1485 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1486
1487 cd "$ac_dir" || { ac_status=$?; continue; }
1488 # Check for configure.gnu first; this name is used for a wrapper for
1489 # Metaconfig's "Configure" on case-insensitive file systems.
1490 if test -f "$ac_srcdir/configure.gnu"; then
1491 echo &&
1492 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1493 elif test -f "$ac_srcdir/configure"; then
1494 echo &&
1495 $SHELL "$ac_srcdir/configure" --help=recursive
1496 else
1497 printf '%s\n' "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1498 fi || ac_status=$?
1499 cd "$ac_pwd" || { ac_status=$?; break; }
1500 done
1501 fi
1502
1503 test -n "$ac_init_help" && exit $ac_status
1504 if $ac_init_version; then
1505 cat <<\_ACEOF
1506 xkbprint configure 1.0.8
1507 generated by GNU Autoconf 2.73
1508
1509 Copyright (C) 2026 Free Software Foundation, Inc.
1510 This configure script is free software; the Free Software Foundation
1511 gives unlimited permission to copy, distribute and modify it.
1512 _ACEOF
1513 exit
1514 fi
1515
1516 ## ------------------------ ##
1517 ## Autoconf initialization. ##
1518 ## ------------------------ ##
1519
1520 # ac_fn_c_try_compile LINENO
1521 # --------------------------
1522 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1523 ac_fn_c_try_compile ()
1524 {
1525 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1526 rm -f conftest.$ac_objext conftest.beam
1527 if { { ac_try="$ac_compile"
1528 case "(($ac_try" in
1529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1530 *) ac_try_echo=$ac_try;;
1531 esac
1532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1533 printf '%s\n' "$ac_try_echo"; } >&5
1534 (eval "$ac_compile") 2>conftest.err
1535 ac_status=$?
1536 if test -s conftest.err; then
1537 grep -v '^ *+' conftest.err >conftest.er1
1538 cat conftest.er1 >&5
1539 mv -f conftest.er1 conftest.err
1540 fi
1541 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1542 test $ac_status = 0; } && {
1543 test -z "$ac_c_werror_flag" ||
1544 test ! -s conftest.err
1545 } && test -s conftest.$ac_objext
1546 then :
1547 ac_retval=0
1548 else case e in #(
1549 e) printf '%s\n' "$as_me: failed program was:" >&5
1550 sed 's/^/| /' conftest.$ac_ext >&5
1551
1552 ac_retval=1 ;;
1553 esac
1554 fi
1555 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1556 as_fn_set_status $ac_retval
1557
1558 } # ac_fn_c_try_compile
1559
1560 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1561 # -------------------------------------------------------
1562 # Tests whether HEADER exists and can be compiled using the include files in
1563 # INCLUDES, setting the cache variable VAR accordingly.
1564 ac_fn_c_check_header_compile ()
1565 {
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1568 printf %s "checking for $2... " >&6; }
1569 if eval test \${$3+y}
1570 then :
1571 printf %s "(cached) " >&6
1572 else case e in #(
1573 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1574 /* end confdefs.h. */
1575 $4
1576 #include <$2>
1577 _ACEOF
1578 if ac_fn_c_try_compile "$LINENO"
1579 then :
1580 eval "$3=yes"
1581 else case e in #(
1582 e) eval "$3=no" ;;
1583 esac
1584 fi
1585 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1586 esac
1587 fi
1588 eval ac_res=\$$3
1589 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1590 printf '%s\n' "$ac_res" >&6; }
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592
1593 } # ac_fn_c_check_header_compile
1594
1595 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1596 # ------------------------------------------------------------------
1597 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1598 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1599 ac_fn_check_decl ()
1600 {
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 as_decl_name=`echo $2|sed 's/ *(.*//'`
1603 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1604 printf %s "checking whether $as_decl_name is declared... " >&6; }
1605 if eval test \${$3+y}
1606 then :
1607 printf %s "(cached) " >&6
1608 else case e in #(
1609 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1610 eval ac_save_FLAGS=\$$6
1611 as_fn_append $6 " $5"
1612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1613 /* end confdefs.h. */
1614 $4
1615 int
1616 main (void)
1617 {
1618 #ifndef $as_decl_name
1619 #ifdef __cplusplus
1620 (void) $as_decl_use;
1621 #else
1622 (void) $as_decl_name;
1623 #endif
1624 #endif
1625
1626 ;
1627 return 0;
1628 }
1629 _ACEOF
1630 if ac_fn_c_try_compile "$LINENO"
1631 then :
1632 eval "$3=yes"
1633 else case e in #(
1634 e) eval "$3=no" ;;
1635 esac
1636 fi
1637 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1638 eval $6=\$ac_save_FLAGS
1639 ;;
1640 esac
1641 fi
1642 eval ac_res=\$$3
1643 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1644 printf '%s\n' "$ac_res" >&6; }
1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646
1647 } # ac_fn_check_decl
1648
1649 # ac_fn_c_try_link LINENO
1650 # -----------------------
1651 # Try to link conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_c_try_link ()
1653 {
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1656 if { { ac_try="$ac_link"
1657 case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660 esac
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 printf '%s\n' "$ac_try_echo"; } >&5
1663 (eval "$ac_link") 2>conftest.err
1664 ac_status=$?
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1669 fi
1670 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
1672 test -z "$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1674 } && test -s conftest$ac_exeext && {
1675 test "$cross_compiling" = yes ||
1676 test -x conftest$ac_exeext
1677 }
1678 then :
1679 ac_retval=0
1680 else case e in #(
1681 e) printf '%s\n' "$as_me: failed program was:" >&5
1682 sed 's/^/| /' conftest.$ac_ext >&5
1683
1684 ac_retval=1 ;;
1685 esac
1686 fi
1687 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1688 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1689 # interfere with the next link command; also delete a directory that is
1690 # left behind by Apple's compiler. We do this before executing the actions.
1691 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1692 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1693 as_fn_set_status $ac_retval
1694
1695 } # ac_fn_c_try_link
1696
1697 # ac_fn_c_check_func LINENO FUNC VAR
1698 # ----------------------------------
1699 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1700 ac_fn_c_check_func ()
1701 {
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1704 printf %s "checking for $2... " >&6; }
1705 if eval test \${$3+y}
1706 then :
1707 printf %s "(cached) " >&6
1708 else case e in #(
1709 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1710 /* end confdefs.h. */
1711 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1713 #define $2 innocuous_$2
1714
1715 /* System header to define __stub macros and hopefully few prototypes,
1716 which can conflict with char $2 (void); below. */
1717
1718 #include <limits.h>
1719 #undef $2
1720
1721 /* Override any GCC internal prototype to avoid an error.
1722 Use char because int might match the return type of a GCC
1723 builtin and then its argument prototype would still apply. */
1724 #ifdef __cplusplus
1725 extern "C"
1726 #endif
1727 char $2 (void);
1728 /* The GNU C library defines this for functions which it implements
1729 to always fail with ENOSYS. Some functions are actually named
1730 something starting with __ and the normal name is an alias. */
1731 #if defined __stub_$2 || defined __stub___$2
1732 choke me
1733 #endif
1734
1735 int
1736 main (void)
1737 {
1738 return $2 ();
1739 ;
1740 return 0;
1741 }
1742 _ACEOF
1743 if ac_fn_c_try_link "$LINENO"
1744 then :
1745 eval "$3=yes"
1746 else case e in #(
1747 e) eval "$3=no" ;;
1748 esac
1749 fi
1750 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1751 conftest$ac_exeext conftest.$ac_ext ;;
1752 esac
1753 fi
1754 eval ac_res=\$$3
1755 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756 printf '%s\n' "$ac_res" >&6; }
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758
1759 } # ac_fn_c_check_func
1760 ac_configure_args_raw=
1761 for ac_arg
1762 do
1763 case $ac_arg in
1764 *\'*)
1765 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1766 esac
1767 as_fn_append ac_configure_args_raw " '$ac_arg'"
1768 done
1769
1770 case $ac_configure_args_raw in
1771 *$as_nl*)
1772 ac_safe_unquote= ;;
1773 *)
1774 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1775 ac_unsafe_a="$ac_unsafe_z#~"
1776 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1777 ac_configure_args_raw=` printf '%s\n' "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1778 esac
1779
1780 cat >config.log <<_ACEOF
1781 This file contains any messages produced by compilers while
1782 running configure, to aid debugging if configure makes a mistake.
1783
1784 It was created by xkbprint $as_me 1.0.8, which was
1785 generated by GNU Autoconf 2.73. Invocation command line was
1786
1787 $ $0$ac_configure_args_raw
1788
1789 _ACEOF
1790 exec 5>>config.log
1791 {
1792 cat <<_ASUNAME
1793 ## --------- ##
1794 ## Platform. ##
1795 ## --------- ##
1796
1797 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1798 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1799 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1800 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1801 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1802
1803 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1804 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1805
1806 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1807 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1808 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1809 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1810 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1811 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1812 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1813
1814 _ASUNAME
1815
1816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817 for as_dir in $PATH
1818 do
1819 IFS=$as_save_IFS
1820 case $as_dir in #(((
1821 '') as_dir=./ ;;
1822 */) ;;
1823 *) as_dir=$as_dir/ ;;
1824 esac
1825 printf '%s\n' "PATH: $as_dir"
1826 done
1827 IFS=$as_save_IFS
1828
1829 } >&5
1830
1831 cat >&5 <<_ACEOF
1832
1833
1834 ## ----------- ##
1835 ## Core tests. ##
1836 ## ----------- ##
1837
1838 _ACEOF
1839
1840
1841 # Keep a trace of the command line.
1842 # Strip out --no-create and --no-recursion so they do not pile up.
1843 # Strip out --silent because we don't want to record it for future runs.
1844 # Also quote any args containing shell meta-characters.
1845 # Make two passes to allow for proper duplicate-argument suppression.
1846 ac_configure_args=
1847 ac_configure_args0=
1848 ac_configure_args1=
1849 ac_must_keep_next=false
1850 for ac_pass in 1 2
1851 do
1852 for ac_arg
1853 do
1854 case $ac_arg in
1855 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1856 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1857 | -silent | --silent | --silen | --sile | --sil)
1858 continue ;;
1859 *\'*)
1860 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1861 esac
1862 case $ac_pass in
1863 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1864 2)
1865 as_fn_append ac_configure_args1 " '$ac_arg'"
1866 if test $ac_must_keep_next = true; then
1867 ac_must_keep_next=false # Got value, back to normal.
1868 else
1869 case $ac_arg in
1870 *=* | --config-cache | -C | -disable-* | --disable-* \
1871 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1872 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1873 | -with-* | --with-* | -without-* | --without-* | --x)
1874 case "$ac_configure_args0 " in
1875 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1876 esac
1877 ;;
1878 -* ) ac_must_keep_next=true ;;
1879 esac
1880 fi
1881 as_fn_append ac_configure_args " '$ac_arg'"
1882 ;;
1883 esac
1884 done
1885 done
1886 { ac_configure_args0=; unset ac_configure_args0;}
1887 { ac_configure_args1=; unset ac_configure_args1;}
1888
1889 # Dump the cache to stdout. It can be in a pipe (this is a requirement).
1890 ac_cache_dump ()
1891 {
1892 # The following way of writing the cache mishandles newlines in values,
1893 # but we know of no workaround that is simple, portable, and efficient.
1894 # So, we kill variables containing newlines.
1895 # Ultrix sh set writes to stderr and can't be redirected directly,
1896 # and sets the high bit in the cache file unless we assign to the vars.
1897 (
1898 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
1899 eval ac_val=\$$ac_var
1900 case $ac_val in #(
1901 *${as_nl}*)
1902 case $ac_var in #(
1903 *_cv_*) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1904 printf '%s\n' "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1905 esac
1906 case $ac_var in #(
1907 _ | IFS | as_nl) ;; #(
1908 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1909 *) { eval $ac_var=; unset $ac_var;} ;;
1910 esac ;;
1911 esac
1912 done
1913
1914 (set) 2>&1 |
1915 case $as_nl`(ac_space=' '; set) 2>&1` in #(
1916 *${as_nl}ac_space=\ *)
1917 # 'set' does not quote correctly, so add quotes: double-quote
1918 # substitution turns \\\\ into \\, and sed turns \\ into \.
1919 sed -n \
1920 "s/'/'\\\\''/g;
1921 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1922 ;; #(
1923 *)
1924 # 'set' quotes correctly as required by POSIX, so do not add quotes.
1925 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1926 ;;
1927 esac |
1928 sort
1929 )
1930 }
1931
1932 # Print debugging info to stdout.
1933 ac_dump_debugging_info ()
1934 {
1935 echo
1936
1937 printf '%s\n' "## ---------------- ##
1938 ## Cache variables. ##
1939 ## ---------------- ##"
1940 echo
1941 ac_cache_dump
1942 echo
1943
1944 printf '%s\n' "## ----------------- ##
1945 ## Output variables. ##
1946 ## ----------------- ##"
1947 echo
1948 for ac_var in $ac_subst_vars
1949 do
1950 eval ac_val=\$$ac_var
1951 case $ac_val in
1952 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;;
1953 esac
1954 printf '%s\n' "$ac_var='$ac_val'"
1955 done | sort
1956 echo
1957
1958 if test -n "$ac_subst_files"; then
1959 printf '%s\n' "## ------------------- ##
1960 ## File substitutions. ##
1961 ## ------------------- ##"
1962 echo
1963 for ac_var in $ac_subst_files
1964 do
1965 eval ac_val=\$$ac_var
1966 case $ac_val in
1967 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;;
1968 esac
1969 printf '%s\n' "$ac_var='$ac_val'"
1970 done | sort
1971 echo
1972 fi
1973
1974 if test -s confdefs.h; then
1975 printf '%s\n' "## ----------- ##
1976 ## confdefs.h. ##
1977 ## ----------- ##"
1978 echo
1979 cat confdefs.h
1980 echo
1981 fi
1982 test "$ac_signal" != 0 &&
1983 printf '%s\n' "$as_me: caught signal $ac_signal"
1984 printf '%s\n' "$as_me: exit $exit_status"
1985 }
1986
1987 # When interrupted or exit'd, cleanup temporary files, and complete
1988 # config.log.
1989 ac_exit_trap ()
1990 {
1991 exit_status=
1992 # Sanitize IFS.
1993 IFS=" "" $as_nl"
1994 # Save into config.log some information that might help in debugging.
1995 ac_dump_debugging_info >&5
1996 eval "rm -f $ac_clean_CONFIG_STATUS core *.core core.conftest.*" &&
1997 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1998 exit $exit_status
1999 }
2000
2001 trap 'ac_exit_trap $?' 0
2002 for ac_signal in 1 2 13 15; do
2003 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2004 done
2005 ac_signal=0
2006
2007 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2008 rm -f -r conftest* confdefs.h
2009
2010 printf '%s\n' "/* confdefs.h */" > confdefs.h
2011
2012 # Predefined preprocessor variables.
2013
2014 printf '%s\n' "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2015
2016 printf '%s\n' "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2017
2018 printf '%s\n' "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2019
2020 printf '%s\n' "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2021
2022 printf '%s\n' "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2023
2024 printf '%s\n' "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2025
2026
2027 # Let the site file select an alternate cache file if it wants to.
2028 # Prefer an explicitly selected file to automatically selected ones.
2029 if test -n "$CONFIG_SITE"; then
2030 ac_site_files="$CONFIG_SITE"
2031 elif test "x$prefix" != xNONE; then
2032 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2033 else
2034 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2035 fi
2036
2037 for ac_site_file in $ac_site_files
2038 do
2039 case $ac_site_file in #(
2040 */*) :
2041 ;; #(
2042 *) :
2043 ac_site_file=./$ac_site_file ;;
2044 esac
2045 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2046 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2047 printf '%s\n' "$as_me: loading site script $ac_site_file" >&6;}
2048 sed 's/^/| /' "$ac_site_file" >&5
2049 . "$ac_site_file" \
2050 || { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2051 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
2052 as_fn_error $? "failed to load site script $ac_site_file
2053 See 'config.log' for more details" "$LINENO" 5; }
2054 fi
2055 done
2056
2057 if test -r "$cache_file"; then
2058 # Some versions of bash will fail to source /dev/null (special files
2059 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2060 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2061 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2062 printf '%s\n' "$as_me: loading cache $cache_file" >&6;}
2063 case $cache_file in
2064 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2065 *) . "./$cache_file";;
2066 esac
2067 fi
2068 else
2069 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2070 printf '%s\n' "$as_me: creating cache $cache_file" >&6;}
2071 >$cache_file
2072 fi
2073
2074 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2075 # Test code for whether the C compiler supports C23 (global declarations)
2076 ac_c_conftest_c23_globals='
2077 /* Does the compiler advertise conformance to C17 or earlier?
2078 Although GCC 14 does not do that, even with -std=gnu23,
2079 it is close enough, and defines __STDC_VERSION == 202000L. */
2080 #if !defined __STDC_VERSION__ || __STDC_VERSION__ <= 201710L
2081 # error "Compiler advertises conformance to C17 or earlier"
2082 #endif
2083
2084 // Check alignas.
2085 char alignas (double) c23_aligned_as_double;
2086 char alignas (0) c23_no_special_alignment;
2087 extern char c23_aligned_as_int;
2088 char alignas (0) alignas (int) c23_aligned_as_int;
2089
2090 // Check alignof.
2091 enum
2092 {
2093 c23_int_alignment = alignof (int),
2094 c23_int_array_alignment = alignof (int[100]),
2095 c23_char_alignment = alignof (char)
2096 };
2097 static_assert (0 < -alignof (int), "alignof is signed");
2098
2099 int function_with_unnamed_parameter (int) { return 0; }
2100
2101 void c23_noreturn ();
2102
2103 /* Test parsing of string and char UTF-8 literals (including hex escapes).
2104 The parens pacify GCC 15. */
2105 bool use_u8 = (!sizeof u8"\xFF") == (!u8'\''x'\'');
2106
2107 bool check_that_bool_works = true | false | !nullptr;
2108 #if !true
2109 # error "true does not work in #if"
2110 #endif
2111 #if false
2112 #elifdef __STDC_VERSION__
2113 #else
2114 # error "#elifdef does not work"
2115 #endif
2116
2117 #ifndef __has_c_attribute
2118 # error "__has_c_attribute not defined"
2119 #endif
2120
2121 #ifndef __has_include
2122 # error "__has_include not defined"
2123 #endif
2124
2125 #define LPAREN() (
2126 #define FORTY_TWO(x) 42
2127 #define VA_OPT_TEST(r, x, ...) __VA_OPT__ (FORTY_TWO r x))
2128 static_assert (VA_OPT_TEST (LPAREN (), 0, <:-) == 42);
2129
2130 static_assert (0b101010 == 42);
2131 static_assert (0B101010 == 42);
2132 static_assert (0xDEAD'\''BEEF == 3'\''735'\''928'\''559);
2133 static_assert (0.500'\''000'\''000 == 0.5);
2134
2135 enum unsignedish : unsigned int { uione = 1 };
2136 static_assert (0 < -uione);
2137
2138 #include <stddef.h>
2139 constexpr nullptr_t null_pointer = nullptr;
2140
2141 static typeof (1 + 1L) two () { return 2; }
2142 static long int three () { return 3; }
2143 '
2144
2145 # Test code for whether the C compiler supports C23 (body of main).
2146 ac_c_conftest_c23_main='
2147 {
2148 label_before_declaration:
2149 int arr[10] = {};
2150 if (arr[0])
2151 goto label_before_declaration;
2152 if (!arr[0])
2153 goto label_at_end_of_block;
2154 label_at_end_of_block:
2155 }
2156 ok |= !null_pointer;
2157 ok |= two != three;
2158 '
2159
2160 # Test code for whether the C compiler supports C23 (complete).
2161 ac_c_conftest_c23_program="${ac_c_conftest_c23_globals}
2162
2163 int
2164 main (int, char **)
2165 {
2166 int ok = 0;
2167 ${ac_c_conftest_c23_main}
2168 return ok;
2169 }
2170 "
2171
2172 # Test code for whether the C compiler supports C89 (global declarations)
2173 ac_c_conftest_c89_globals='
2174 /* Do not test the value of __STDC__, because some compilers define it to 0
2175 or do not define it, while otherwise adequately conforming. */
2176
2177 #include <stddef.h>
2178 #include <stdarg.h>
2179 struct stat;
2180 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2181 struct buf { int x; };
2182 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2183 static char *e (char **p, int i)
2184 {
2185 return p[i];
2186 }
2187 static char *f (char * (*g) (char **, int), char **p, ...)
2188 {
2189 char *s;
2190 va_list v;
2191 va_start (v,p);
2192 s = g (p, va_arg (v,int));
2193 va_end (v);
2194 return s;
2195 }
2196
2197 /* C89 style stringification. */
2198 #define noexpand_stringify(a) #a
2199 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2200
2201 /* C89 style token pasting. Exercises some of the corner cases that
2202 e.g. old MSVC gets wrong, but not very hard. */
2203 #define noexpand_concat(a,b) a##b
2204 #define expand_concat(a,b) noexpand_concat(a,b)
2205 extern int vA;
2206 extern int vbee;
2207 #define aye A
2208 #define bee B
2209 int *pvA = &expand_concat(v,aye);
2210 int *pvbee = &noexpand_concat(v,bee);
2211
2212 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2213 function prototypes and stuff, but not \xHH hex character constants.
2214 These do not provoke an error unfortunately, instead are silently treated
2215 as an "x". The following induces an error, until -std is added to get
2216 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2217 array size at least. It is necessary to write \x00 == 0 to get something
2218 that is true only with -std. */
2219 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2220
2221 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2222 inside strings and character constants. */
2223 #define FOO(x) '\''x'\''
2224 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2225
2226 int test (int i, double x);
2227 struct s1 {int (*f) (int a);};
2228 struct s2 {int (*f) (double a);};
2229 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2230 int, int);'
2231
2232 # Test code for whether the C compiler supports C89 (body of main).
2233 ac_c_conftest_c89_main='
2234 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2235 '
2236
2237 # Test code for whether the C compiler supports C99 (global declarations)
2238 ac_c_conftest_c99_globals='
2239 /* Does the compiler advertise C99 conformance? */
2240 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2241 # error "Compiler does not advertise C99 conformance"
2242 #endif
2243
2244 // See if C++-style comments work.
2245
2246 #include <stdbool.h>
2247 extern int puts (const char *);
2248 extern int printf (const char *, ...);
2249 extern int dprintf (int, const char *, ...);
2250 extern void *malloc (size_t);
2251 extern void free (void *);
2252
2253 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2254 // dprintf is used instead of fprintf to avoid needing to declare
2255 // FILE and stderr, and "aND" is used instead of "and" to work around
2256 // GCC bug 40564 which is irrelevant here.
2257 #define debug(...) dprintf (2, __VA_ARGS__)
2258 #define showlist(...) puts (#__VA_ARGS__)
2259 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2260 static void
2261 test_varargs_macros (void)
2262 {
2263 int x = 1234;
2264 int y = 5678;
2265 debug ("Flag");
2266 debug ("X = %d\n", x);
2267 showlist (The first, second, aND third items.);
2268 report (x>y, "x is %d but y is %d", x, y);
2269 }
2270
2271 // Check long long types.
2272 #define BIG64 18446744073709551615ull
2273 #define BIG32 4294967295ul
2274 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2275 #if !BIG_OK
2276 #error "your preprocessor is broken"
2277 #endif
2278 #if BIG_OK
2279 #else
2280 #error "your preprocessor is broken"
2281 #endif
2282 static long long int bignum = -9223372036854775807LL;
2283 static unsigned long long int ubignum = BIG64;
2284
2285 struct incomplete_array
2286 {
2287 int datasize;
2288 double data[];
2289 };
2290
2291 struct named_init {
2292 int number;
2293 const wchar_t *name;
2294 double average;
2295 };
2296
2297 typedef const char *ccp;
2298
2299 static inline int
2300 test_restrict (ccp restrict text)
2301 {
2302 // Iterate through items via the restricted pointer.
2303 // Also check for declarations in for loops.
2304 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2305 continue;
2306 return 0;
2307 }
2308
2309 // Check varargs and va_copy.
2310 static bool
2311 test_varargs (const char *format, ...)
2312 {
2313 va_list args;
2314 va_start (args, format);
2315 va_list args_copy;
2316 va_copy (args_copy, args);
2317
2318 const char *str = "";
2319 int number = 0;
2320 float fnumber = 0;
2321
2322 while (*format)
2323 {
2324 switch (*format++)
2325 {
2326 case '\''s'\'': // string
2327 str = va_arg (args_copy, const char *);
2328 break;
2329 case '\''d'\'': // int
2330 number = va_arg (args_copy, int);
2331 break;
2332 case '\''f'\'': // float
2333 fnumber = va_arg (args_copy, double);
2334 break;
2335 default:
2336 break;
2337 }
2338 }
2339 va_end (args_copy);
2340 va_end (args);
2341
2342 return *str && number && fnumber;
2343 }
2344 '
2345
2346 # Test code for whether the C compiler supports C99 (body of main).
2347 ac_c_conftest_c99_main='
2348 // Check bool.
2349 _Bool success = false;
2350 success |= (argc != 0);
2351
2352 // Check restrict.
2353 if (test_restrict ("String literal") == 0)
2354 success = true;
2355 const char *restrict newvar = "Another string";
2356
2357 // Check varargs.
2358 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2359 test_varargs_macros ();
2360
2361 // Check flexible array members.
2362 static struct incomplete_array *volatile incomplete_array_pointer;
2363 struct incomplete_array *ia = incomplete_array_pointer;
2364 ia->datasize = 10;
2365 for (int i = 0; i < ia->datasize; ++i)
2366 ia->data[i] = i * 1.234;
2367 // Work around memory leak warnings.
2368 free (ia);
2369
2370 // Check named initializers.
2371 struct named_init ni = {
2372 .number = 34,
2373 .name = L"Test wide string",
2374 .average = 543.34343,
2375 };
2376
2377 ni.number = 58;
2378
2379 // Do not test for VLAs, as some otherwise-conforming compilers lack them.
2380 // C code should instead use __STDC_NO_VLA__; see Autoconf manual.
2381
2382 // work around unused variable warnings
2383 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2384 || ni.number != 58);
2385 '
2386
2387 # Test code for whether the C compiler supports C11 (global declarations)
2388 ac_c_conftest_c11_globals='
2389 /* Does the compiler advertise C11 conformance? */
2390 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2391 # error "Compiler does not advertise C11 conformance"
2392 #endif
2393
2394 // Check _Alignas.
2395 char _Alignas (double) aligned_as_double;
2396 char _Alignas (0) no_special_alignment;
2397 extern char aligned_as_int;
2398 char _Alignas (0) _Alignas (int) aligned_as_int;
2399
2400 // Check _Alignof.
2401 enum
2402 {
2403 int_alignment = _Alignof (int),
2404 int_array_alignment = _Alignof (int[100]),
2405 char_alignment = _Alignof (char)
2406 };
2407 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2408
2409 // Check _Noreturn.
2410 int _Noreturn does_not_return (void) { for (;;) continue; }
2411
2412 // Check _Static_assert.
2413 struct test_static_assert
2414 {
2415 int x;
2416 _Static_assert (sizeof (int) <= sizeof (long int),
2417 "_Static_assert does not work in struct");
2418 long int y;
2419 };
2420
2421 // Check UTF-8 literals.
2422 #define u8 syntax error!
2423 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2424
2425 // Check duplicate typedefs.
2426 typedef long *long_ptr;
2427 typedef long int *long_ptr;
2428 typedef long_ptr long_ptr;
2429
2430 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2431 struct anonymous
2432 {
2433 union {
2434 struct { int i; int j; };
2435 struct { int k; long int l; } w;
2436 };
2437 int m;
2438 } v1;
2439 '
2440
2441 # Test code for whether the C compiler supports C11 (body of main).
2442 ac_c_conftest_c11_main='
2443 _Static_assert ((offsetof (struct anonymous, i)
2444 == offsetof (struct anonymous, w.k)),
2445 "Anonymous union alignment botch");
2446 v1.i = 2;
2447 v1.w.k = 5;
2448 ok |= v1.i != 5;
2449 '
2450
2451 # Test code for whether the C compiler supports C11 (complete).
2452 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2453 ${ac_c_conftest_c99_globals}
2454 ${ac_c_conftest_c11_globals}
2455
2456 int
2457 main (int argc, char **argv)
2458 {
2459 int ok = 0;
2460 ${ac_c_conftest_c89_main}
2461 ${ac_c_conftest_c99_main}
2462 ${ac_c_conftest_c11_main}
2463 return ok;
2464 }
2465 "
2466
2467 # Test code for whether the C compiler supports C99 (complete).
2468 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2469 ${ac_c_conftest_c99_globals}
2470
2471 int
2472 main (int argc, char **argv)
2473 {
2474 int ok = 0;
2475 ${ac_c_conftest_c89_main}
2476 ${ac_c_conftest_c99_main}
2477 return ok;
2478 }
2479 "
2480
2481 # Test code for whether the C compiler supports C89 (complete).
2482 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2483
2484 int
2485 main (int argc, char **argv)
2486 {
2487 int ok = 0;
2488 ${ac_c_conftest_c89_main}
2489 return ok;
2490 }
2491 "
2492
2493 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2494 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2495 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2496 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2497 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2498 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2499 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2500 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2501 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2502 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2503
2504 # Auxiliary files required by this configure script.
2505 ac_aux_files="config.guess config.sub missing install-sh compile"
2506
2507 # Locations in which to look for auxiliary files.
2508 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2509
2510 # Search for a directory containing all of the required auxiliary files,
2511 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2512 # If we don't find one directory that contains all the files we need,
2513 # we report the set of missing files from the *first* directory in
2514 # $ac_aux_dir_candidates and give up.
2515 ac_missing_aux_files=""
2516 ac_first_candidate=:
2517 printf '%s\n' "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519 as_found=false
2520 for as_dir in $ac_aux_dir_candidates
2521 do
2522 IFS=$as_save_IFS
2523 case $as_dir in #(((
2524 '') as_dir=./ ;;
2525 */) ;;
2526 *) as_dir=$as_dir/ ;;
2527 esac
2528 as_found=:
2529
2530 printf '%s\n' "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2531 ac_aux_dir_found=yes
2532 ac_install_sh=
2533 for ac_aux in $ac_aux_files
2534 do
2535 # As a special case, if "install-sh" is required, that requirement
2536 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2537 # and $ac_install_sh is set appropriately for whichever one is found.
2538 if test x"$ac_aux" = x"install-sh"
2539 then
2540 if test -f "${as_dir}install-sh"; then
2541 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2542 ac_install_sh="${as_dir}install-sh -c"
2543 elif test -f "${as_dir}install.sh"; then
2544 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2545 ac_install_sh="${as_dir}install.sh -c"
2546 elif test -f "${as_dir}shtool"; then
2547 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2548 ac_install_sh="${as_dir}shtool install -c"
2549 else
2550 ac_aux_dir_found=no
2551 if $ac_first_candidate; then
2552 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2553 else
2554 break
2555 fi
2556 fi
2557 else
2558 if test -f "${as_dir}${ac_aux}"; then
2559 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2560 else
2561 ac_aux_dir_found=no
2562 if $ac_first_candidate; then
2563 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2564 else
2565 break
2566 fi
2567 fi
2568 fi
2569 done
2570 if test "$ac_aux_dir_found" = yes; then
2571 ac_aux_dir="$as_dir"
2572 break
2573 fi
2574 ac_first_candidate=false
2575
2576 as_found=false
2577 done
2578 IFS=$as_save_IFS
2579 if $as_found
2580 then :
2581
2582 else case e in #(
2583 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2584 esac
2585 fi
2586
2587
2588 # These three variables are undocumented and unsupported,
2589 # and are intended to be withdrawn in a future Autoconf release.
2590 # They can cause serious problems if a builder's source tree is in a directory
2591 # whose full name contains unusual characters.
2592 if test -f "${ac_aux_dir}config.guess"; then
2593 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2594 fi
2595 if test -f "${ac_aux_dir}config.sub"; then
2596 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2597 fi
2598 if test -f "$ac_aux_dir/configure"; then
2599 ac_configure="$SHELL ${ac_aux_dir}configure"
2600 fi
2601
2602 # Check that the precious variables saved in the cache have kept the same
2603 # value.
2604 ac_cache_corrupted=false
2605 for ac_var in $ac_precious_vars; do
2606 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2607 eval ac_new_set=\$ac_env_${ac_var}_set
2608 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2609 eval ac_new_val=\$ac_env_${ac_var}_value
2610 case $ac_old_set,$ac_new_set in
2611 set,)
2612 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2613 printf '%s\n' "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2614 ac_cache_corrupted=: ;;
2615 ,set)
2616 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2617 printf '%s\n' "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2618 ac_cache_corrupted=: ;;
2619 ,);;
2620 *)
2621 if test "x$ac_old_val" != "x$ac_new_val"; then
2622 # differences in whitespace do not lead to failure.
2623 ac_old_val_w=
2624 for ac_val in x $ac_old_val; do
2625 ac_old_val_w="$ac_old_val_w $ac_val"
2626 done
2627 ac_new_val_w=
2628 for ac_val in x $ac_new_val; do
2629 ac_new_val_w="$ac_new_val_w $ac_val"
2630 done
2631 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2632 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2633 printf '%s\n' "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2634 ac_cache_corrupted=:
2635 else
2636 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2637 printf '%s\n' "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2638 eval $ac_var=\$ac_old_val
2639 fi
2640 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2641 printf '%s\n' "$as_me: former value: '$ac_old_val'" >&2;}
2642 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2643 printf '%s\n' "$as_me: current value: '$ac_new_val'" >&2;}
2644 fi;;
2645 esac
2646 # Pass precious variables to config.status.
2647 if test "$ac_new_set" = set; then
2648 case $ac_new_val in
2649 *\'*) ac_arg=$ac_var=`printf '%s\n' "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2650 *) ac_arg=$ac_var=$ac_new_val ;;
2651 esac
2652 case " $ac_configure_args " in
2653 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2654 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2655 esac
2656 fi
2657 done
2658 if $ac_cache_corrupted; then
2659 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2660 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
2661 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2662 printf '%s\n' "$as_me: error: changes in the environment can compromise the build" >&2;}
2663 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2664 and start over" "$LINENO" 5
2665 fi
2666 ## -------------------- ##
2667 ## Main body of script. ##
2668 ## -------------------- ##
2669
2670
2671 # Determine whether it's possible to make 'echo' print without a newline.
2672 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
2673 # for compatibility with existing Makefiles.
2674 ECHO_C= ECHO_N= ECHO_T=
2675 case `echo -n x` in #(((((
2676 -n*)
2677 case `echo 'xy\c'` in
2678 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
2679 xy) ECHO_C='\c';;
2680 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
2681 ECHO_T=' ';;
2682 esac;;
2683 *)
2684 ECHO_N='-n';;
2685 esac
2686
2687 ac_ext=c
2688 ac_cpp='$CPP $CPPFLAGS'
2689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2692
2693
2694
2695 ac_config_headers="$ac_config_headers config.h"
2696
2697 # Needed for asprintf on GNU libc
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712 # Expand $ac_aux_dir to an absolute path.
2713 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2714
2715 ac_ext=c
2716 ac_cpp='$CPP $CPPFLAGS'
2717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2720 if test -n "$ac_tool_prefix"; then
2721 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2722 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2723 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2724 printf %s "checking for $ac_word... " >&6; }
2725 if test ${ac_cv_prog_CC+y}
2726 then :
2727 printf %s "(cached) " >&6
2728 else case e in #(
2729 e) if test -n "$CC"; then
2730 ac_cv_prog_CC="$CC" # Let the user override the test.
2731 else
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2734 do
2735 IFS=$as_save_IFS
2736 case $as_dir in #(((
2737 '') as_dir=./ ;;
2738 */) ;;
2739 *) as_dir=$as_dir/ ;;
2740 esac
2741 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2743 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2744 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2745 break 2
2746 fi
2747 done
2748 done
2749 IFS=$as_save_IFS
2750
2751 fi ;;
2752 esac
2753 fi
2754 CC=$ac_cv_prog_CC
2755 if test -n "$CC"; then
2756 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2757 printf '%s\n' "$CC" >&6; }
2758 else
2759 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
2760 printf '%s\n' "no" >&6; }
2761 fi
2762
2763
2764 fi
2765 if test -z "$ac_cv_prog_CC"; then
2766 ac_ct_CC=$CC
2767 # Extract the first word of "gcc", so it can be a program name with args.
2768 set dummy gcc; ac_word=$2
2769 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2770 printf %s "checking for $ac_word... " >&6; }
2771 if test ${ac_cv_prog_ac_ct_CC+y}
2772 then :
2773 printf %s "(cached) " >&6
2774 else case e in #(
2775 e) if test -n "$ac_ct_CC"; then
2776 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2777 else
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 for as_dir in $PATH
2780 do
2781 IFS=$as_save_IFS
2782 case $as_dir in #(((
2783 '') as_dir=./ ;;
2784 */) ;;
2785 *) as_dir=$as_dir/ ;;
2786 esac
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2789 ac_cv_prog_ac_ct_CC="gcc"
2790 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2791 break 2
2792 fi
2793 done
2794 done
2795 IFS=$as_save_IFS
2796
2797 fi ;;
2798 esac
2799 fi
2800 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2801 if test -n "$ac_ct_CC"; then
2802 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2803 printf '%s\n' "$ac_ct_CC" >&6; }
2804 else
2805 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806 printf '%s\n' "no" >&6; }
2807 fi
2808
2809 if test "x$ac_ct_CC" = x; then
2810 CC=""
2811 else
2812 case $cross_compiling:$ac_tool_warned in
2813 yes:)
2814 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2815 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2816 ac_tool_warned=yes ;;
2817 esac
2818 CC=$ac_ct_CC
2819 fi
2820 else
2821 CC="$ac_cv_prog_CC"
2822 fi
2823
2824 if test -z "$CC"; then
2825 if test -n "$ac_tool_prefix"; then
2826 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2827 set dummy ${ac_tool_prefix}cc; ac_word=$2
2828 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2829 printf %s "checking for $ac_word... " >&6; }
2830 if test ${ac_cv_prog_CC+y}
2831 then :
2832 printf %s "(cached) " >&6
2833 else case e in #(
2834 e) if test -n "$CC"; then
2835 ac_cv_prog_CC="$CC" # Let the user override the test.
2836 else
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 for as_dir in $PATH
2839 do
2840 IFS=$as_save_IFS
2841 case $as_dir in #(((
2842 '') as_dir=./ ;;
2843 */) ;;
2844 *) as_dir=$as_dir/ ;;
2845 esac
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2848 ac_cv_prog_CC="${ac_tool_prefix}cc"
2849 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2850 break 2
2851 fi
2852 done
2853 done
2854 IFS=$as_save_IFS
2855
2856 fi ;;
2857 esac
2858 fi
2859 CC=$ac_cv_prog_CC
2860 if test -n "$CC"; then
2861 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2862 printf '%s\n' "$CC" >&6; }
2863 else
2864 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
2865 printf '%s\n' "no" >&6; }
2866 fi
2867
2868
2869 fi
2870 fi
2871 if test -z "$CC"; then
2872 # Extract the first word of "cc", so it can be a program name with args.
2873 set dummy cc; ac_word=$2
2874 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2875 printf %s "checking for $ac_word... " >&6; }
2876 if test ${ac_cv_prog_CC+y}
2877 then :
2878 printf %s "(cached) " >&6
2879 else case e in #(
2880 e) if test -n "$CC"; then
2881 ac_cv_prog_CC="$CC" # Let the user override the test.
2882 else
2883 ac_prog_rejected=no
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2886 do
2887 IFS=$as_save_IFS
2888 case $as_dir in #(((
2889 '') as_dir=./ ;;
2890 */) ;;
2891 *) as_dir=$as_dir/ ;;
2892 esac
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2895 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2896 ac_prog_rejected=yes
2897 continue
2898 fi
2899 ac_cv_prog_CC="cc"
2900 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2901 break 2
2902 fi
2903 done
2904 done
2905 IFS=$as_save_IFS
2906
2907 if test $ac_prog_rejected = yes; then
2908 # We found a bogon in the path, so make sure we never use it.
2909 set dummy $ac_cv_prog_CC
2910 shift
2911 if test $# != 0; then
2912 # We chose a different compiler from the bogus one.
2913 # However, it has the same basename, so the bogon will be chosen
2914 # first if we set CC to just the basename; use the full file name.
2915 shift
2916 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2917 fi
2918 fi
2919 fi ;;
2920 esac
2921 fi
2922 CC=$ac_cv_prog_CC
2923 if test -n "$CC"; then
2924 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2925 printf '%s\n' "$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 fi
2933 if test -z "$CC"; then
2934 if test -n "$ac_tool_prefix"; then
2935 for ac_prog in cl.exe
2936 do
2937 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2938 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2939 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940 printf %s "checking for $ac_word... " >&6; }
2941 if test ${ac_cv_prog_CC+y}
2942 then :
2943 printf %s "(cached) " >&6
2944 else case e in #(
2945 e) if test -n "$CC"; then
2946 ac_cv_prog_CC="$CC" # Let the user override the test.
2947 else
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH
2950 do
2951 IFS=$as_save_IFS
2952 case $as_dir in #(((
2953 '') as_dir=./ ;;
2954 */) ;;
2955 *) as_dir=$as_dir/ ;;
2956 esac
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2959 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2960 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2961 break 2
2962 fi
2963 done
2964 done
2965 IFS=$as_save_IFS
2966
2967 fi ;;
2968 esac
2969 fi
2970 CC=$ac_cv_prog_CC
2971 if test -n "$CC"; then
2972 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2973 printf '%s\n' "$CC" >&6; }
2974 else
2975 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 printf '%s\n' "no" >&6; }
2977 fi
2978
2979
2980 test -n "$CC" && break
2981 done
2982 fi
2983 if test -z "$CC"; then
2984 ac_ct_CC=$CC
2985 for ac_prog in cl.exe
2986 do
2987 # Extract the first word of "$ac_prog", so it can be a program name with args.
2988 set dummy $ac_prog; ac_word=$2
2989 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990 printf %s "checking for $ac_word... " >&6; }
2991 if test ${ac_cv_prog_ac_ct_CC+y}
2992 then :
2993 printf %s "(cached) " >&6
2994 else case e in #(
2995 e) if test -n "$ac_ct_CC"; then
2996 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2997 else
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 for as_dir in $PATH
3000 do
3001 IFS=$as_save_IFS
3002 case $as_dir in #(((
3003 '') as_dir=./ ;;
3004 */) ;;
3005 *) as_dir=$as_dir/ ;;
3006 esac
3007 for ac_exec_ext in '' $ac_executable_extensions; do
3008 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3009 ac_cv_prog_ac_ct_CC="$ac_prog"
3010 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3011 break 2
3012 fi
3013 done
3014 done
3015 IFS=$as_save_IFS
3016
3017 fi ;;
3018 esac
3019 fi
3020 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3021 if test -n "$ac_ct_CC"; then
3022 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3023 printf '%s\n' "$ac_ct_CC" >&6; }
3024 else
3025 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026 printf '%s\n' "no" >&6; }
3027 fi
3028
3029
3030 test -n "$ac_ct_CC" && break
3031 done
3032
3033 if test "x$ac_ct_CC" = x; then
3034 CC=""
3035 else
3036 case $cross_compiling:$ac_tool_warned in
3037 yes:)
3038 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3039 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3040 ac_tool_warned=yes ;;
3041 esac
3042 CC=$ac_ct_CC
3043 fi
3044 fi
3045
3046 fi
3047 if test -z "$CC"; then
3048 if test -n "$ac_tool_prefix"; then
3049 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3050 set dummy ${ac_tool_prefix}clang; ac_word=$2
3051 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052 printf %s "checking for $ac_word... " >&6; }
3053 if test ${ac_cv_prog_CC+y}
3054 then :
3055 printf %s "(cached) " >&6
3056 else case e in #(
3057 e) if test -n "$CC"; then
3058 ac_cv_prog_CC="$CC" # Let the user override the test.
3059 else
3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 for as_dir in $PATH
3062 do
3063 IFS=$as_save_IFS
3064 case $as_dir in #(((
3065 '') as_dir=./ ;;
3066 */) ;;
3067 *) as_dir=$as_dir/ ;;
3068 esac
3069 for ac_exec_ext in '' $ac_executable_extensions; do
3070 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3071 ac_cv_prog_CC="${ac_tool_prefix}clang"
3072 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3073 break 2
3074 fi
3075 done
3076 done
3077 IFS=$as_save_IFS
3078
3079 fi ;;
3080 esac
3081 fi
3082 CC=$ac_cv_prog_CC
3083 if test -n "$CC"; then
3084 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3085 printf '%s\n' "$CC" >&6; }
3086 else
3087 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088 printf '%s\n' "no" >&6; }
3089 fi
3090
3091
3092 fi
3093 if test -z "$ac_cv_prog_CC"; then
3094 ac_ct_CC=$CC
3095 # Extract the first word of "clang", so it can be a program name with args.
3096 set dummy clang; ac_word=$2
3097 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098 printf %s "checking for $ac_word... " >&6; }
3099 if test ${ac_cv_prog_ac_ct_CC+y}
3100 then :
3101 printf %s "(cached) " >&6
3102 else case e in #(
3103 e) if test -n "$ac_ct_CC"; then
3104 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3105 else
3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 for as_dir in $PATH
3108 do
3109 IFS=$as_save_IFS
3110 case $as_dir in #(((
3111 '') as_dir=./ ;;
3112 */) ;;
3113 *) as_dir=$as_dir/ ;;
3114 esac
3115 for ac_exec_ext in '' $ac_executable_extensions; do
3116 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3117 ac_cv_prog_ac_ct_CC="clang"
3118 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3119 break 2
3120 fi
3121 done
3122 done
3123 IFS=$as_save_IFS
3124
3125 fi ;;
3126 esac
3127 fi
3128 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3129 if test -n "$ac_ct_CC"; then
3130 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3131 printf '%s\n' "$ac_ct_CC" >&6; }
3132 else
3133 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134 printf '%s\n' "no" >&6; }
3135 fi
3136
3137 if test "x$ac_ct_CC" = x; then
3138 CC=""
3139 else
3140 case $cross_compiling:$ac_tool_warned in
3141 yes:)
3142 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3143 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3144 ac_tool_warned=yes ;;
3145 esac
3146 CC=$ac_ct_CC
3147 fi
3148 else
3149 CC="$ac_cv_prog_CC"
3150 fi
3151
3152 fi
3153
3154
3155 test -z "$CC" && { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3156 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3157 as_fn_error $? "no acceptable C compiler found in \$PATH
3158 See 'config.log' for more details" "$LINENO" 5; }
3159
3160 # Provide some information about the compiler.
3161 printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3162 set X $ac_compile
3163 ac_compiler=$2
3164 for ac_option in --version -v -V -qversion -version; do
3165 { { ac_try="$ac_compiler $ac_option >&5"
3166 case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169 esac
3170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3171 printf '%s\n' "$ac_try_echo"; } >&5
3172 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3173 ac_status=$?
3174 if test -s conftest.err; then
3175 sed '10a\
3176 ... rest of stderr output deleted ...
3177 10q' conftest.err >conftest.er1
3178 cat conftest.er1 >&5
3179 fi
3180 rm -f conftest.er1 conftest.err
3181 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3182 test $ac_status = 0; }
3183 done
3184
3185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3186 /* end confdefs.h. */
3187
3188 int
3189 main (void)
3190 {
3191
3192 ;
3193 return 0;
3194 }
3195 _ACEOF
3196 ac_clean_files_save=$ac_clean_files
3197 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3198 # Try to create an executable without -o first, disregard a.out.
3199 # It will help us diagnose broken compilers, and finding out an intuition
3200 # of exeext.
3201 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3202 printf %s "checking whether the C compiler works... " >&6; }
3203 ac_link_default=`printf '%s\n' "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3204
3205 # The possible output files:
3206 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3207
3208 ac_rmfiles=
3209 for ac_file in $ac_files
3210 do
3211 case $ac_file in
3212 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3213 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3214 esac
3215 done
3216 rm -f $ac_rmfiles
3217
3218 if { { ac_try="$ac_link_default"
3219 case "(($ac_try" in
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3222 esac
3223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224 printf '%s\n' "$ac_try_echo"; } >&5
3225 (eval "$ac_link_default") 2>&5
3226 ac_status=$?
3227 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228 test $ac_status = 0; }
3229 then :
3230 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3231 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3232 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3233 # so that the user can short-circuit this test for compilers unknown to
3234 # Autoconf.
3235 for ac_file in $ac_files ''
3236 do
3237 test -f "$ac_file" || continue
3238 case $ac_file in
3239 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3240 ;;
3241 [ab].out )
3242 # We found the default executable, but exeext='' is most
3243 # certainly right.
3244 break;;
3245 *.* )
3246 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3247 then :; else
3248 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3249 fi
3250 # We set ac_cv_exeext here because the later test for it is not
3251 # safe: cross compilers may not add the suffix if given an '-o'
3252 # argument, so we may need to know it at that point already.
3253 # Even if this section looks crufty: it has the advantage of
3254 # actually working.
3255 break;;
3256 * )
3257 break;;
3258 esac
3259 done
3260 test "$ac_cv_exeext" = no && ac_cv_exeext=
3261
3262 else case e in #(
3263 e) ac_file='' ;;
3264 esac
3265 fi
3266 if test -z "$ac_file"
3267 then :
3268 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 printf '%s\n' "no" >&6; }
3270 printf '%s\n' "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.$ac_ext >&5
3272
3273 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3274 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3275 as_fn_error 77 "C compiler cannot create executables
3276 See 'config.log' for more details" "$LINENO" 5; }
3277 else case e in #(
3278 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3279 printf '%s\n' "yes" >&6; } ;;
3280 esac
3281 fi
3282 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3283 printf %s "checking for C compiler default output file name... " >&6; }
3284 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3285 printf '%s\n' "$ac_file" >&6; }
3286 ac_exeext=$ac_cv_exeext
3287
3288 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3289 ac_clean_files=$ac_clean_files_save
3290 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3291 printf %s "checking for suffix of executables... " >&6; }
3292 if { { ac_try="$ac_link"
3293 case "(($ac_try" in
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3296 esac
3297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3298 printf '%s\n' "$ac_try_echo"; } >&5
3299 (eval "$ac_link") 2>&5
3300 ac_status=$?
3301 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3302 test $ac_status = 0; }
3303 then :
3304 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3305 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3306 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3307 # 'rm'.
3308 for ac_file in conftest.exe conftest conftest.*; do
3309 test -f "$ac_file" || continue
3310 case $ac_file in
3311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3312 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3313 break;;
3314 * ) break;;
3315 esac
3316 done
3317 else case e in #(
3318 e) { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3319 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3320 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3321 See 'config.log' for more details" "$LINENO" 5; } ;;
3322 esac
3323 fi
3324 rm -f conftest conftest$ac_cv_exeext
3325 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3326 printf '%s\n' "$ac_cv_exeext" >&6; }
3327
3328 rm -f conftest.$ac_ext
3329 EXEEXT=$ac_cv_exeext
3330 ac_exeext=$EXEEXT
3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332 /* end confdefs.h. */
3333 #include <stdio.h>
3334 int
3335 main (void)
3336 {
3337 FILE *f = fopen ("conftest.out", "w");
3338 if (!f)
3339 return 1;
3340 return ferror (f) || fclose (f) != 0;
3341
3342 ;
3343 return 0;
3344 }
3345 _ACEOF
3346 ac_clean_files="$ac_clean_files conftest.out"
3347 # Check that the compiler produces executables we can run. If not, either
3348 # the compiler is broken, or we cross compile.
3349 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3350 printf %s "checking whether we are cross compiling... " >&6; }
3351 if test "$cross_compiling" != yes; then
3352 { { ac_try="$ac_link"
3353 case "(($ac_try" in
3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 *) ac_try_echo=$ac_try;;
3356 esac
3357 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3358 printf '%s\n' "$ac_try_echo"; } >&5
3359 (eval "$ac_link") 2>&5
3360 ac_status=$?
3361 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3362 test $ac_status = 0; }
3363 if { ac_try='./conftest$ac_cv_exeext'
3364 { { case "(($ac_try" in
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3367 esac
3368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3369 printf '%s\n' "$ac_try_echo"; } >&5
3370 (eval "$ac_try") 2>&5
3371 ac_status=$?
3372 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3373 test $ac_status = 0; }; }; then
3374 cross_compiling=no
3375 else
3376 if test "$cross_compiling" = maybe; then
3377 cross_compiling=yes
3378 else
3379 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3380 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3381 as_fn_error 77 "cannot run C compiled programs.
3382 If you meant to cross compile, use '--host'.
3383 See 'config.log' for more details" "$LINENO" 5; }
3384 fi
3385 fi
3386 fi
3387 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3388 printf '%s\n' "$cross_compiling" >&6; }
3389
3390 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3391 conftest.o conftest.obj conftest.out
3392 ac_clean_files=$ac_clean_files_save
3393 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3394 printf %s "checking for suffix of object files... " >&6; }
3395 if test ${ac_cv_objext+y}
3396 then :
3397 printf %s "(cached) " >&6
3398 else case e in #(
3399 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h. */
3401
3402 int
3403 main (void)
3404 {
3405
3406 ;
3407 return 0;
3408 }
3409 _ACEOF
3410 rm -f conftest.o conftest.obj
3411 if { { ac_try="$ac_compile"
3412 case "(($ac_try" in
3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3415 esac
3416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3417 printf '%s\n' "$ac_try_echo"; } >&5
3418 (eval "$ac_compile") 2>&5
3419 ac_status=$?
3420 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3421 test $ac_status = 0; }
3422 then :
3423 for ac_file in conftest.o conftest.obj conftest.*; do
3424 test -f "$ac_file" || continue;
3425 case $ac_file in
3426 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3427 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3428 break;;
3429 esac
3430 done
3431 else case e in #(
3432 e) printf '%s\n' "$as_me: failed program was:" >&5
3433 sed 's/^/| /' conftest.$ac_ext >&5
3434
3435 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3436 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3437 as_fn_error $? "cannot compute suffix of object files: cannot compile
3438 See 'config.log' for more details" "$LINENO" 5; } ;;
3439 esac
3440 fi
3441 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3442 esac
3443 fi
3444 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3445 printf '%s\n' "$ac_cv_objext" >&6; }
3446 OBJEXT=$ac_cv_objext
3447 ac_objext=$OBJEXT
3448 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3449 printf %s "checking whether the compiler supports GNU C... " >&6; }
3450 if test ${ac_cv_c_compiler_gnu+y}
3451 then :
3452 printf %s "(cached) " >&6
3453 else case e in #(
3454 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3455 /* end confdefs.h. */
3456
3457 int
3458 main (void)
3459 {
3460 #ifndef __GNUC__
3461 choke me
3462 #endif
3463
3464 ;
3465 return 0;
3466 }
3467 _ACEOF
3468 if ac_fn_c_try_compile "$LINENO"
3469 then :
3470 ac_compiler_gnu=yes
3471 else case e in #(
3472 e) ac_compiler_gnu=no ;;
3473 esac
3474 fi
3475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3476 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3477 ;;
3478 esac
3479 fi
3480 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3481 printf '%s\n' "$ac_cv_c_compiler_gnu" >&6; }
3482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3483
3484 if test $ac_compiler_gnu = yes; then
3485 GCC=yes
3486 else
3487 GCC=
3488 fi
3489 ac_test_CFLAGS=${CFLAGS+y}
3490 ac_save_CFLAGS=$CFLAGS
3491 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3492 printf %s "checking whether $CC accepts -g... " >&6; }
3493 if test ${ac_cv_prog_cc_g+y}
3494 then :
3495 printf %s "(cached) " >&6
3496 else case e in #(
3497 e) ac_save_c_werror_flag=$ac_c_werror_flag
3498 ac_c_werror_flag=yes
3499 ac_cv_prog_cc_g=no
3500 CFLAGS="-g"
3501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502 /* end confdefs.h. */
3503
3504 int
3505 main (void)
3506 {
3507
3508 ;
3509 return 0;
3510 }
3511 _ACEOF
3512 if ac_fn_c_try_compile "$LINENO"
3513 then :
3514 ac_cv_prog_cc_g=yes
3515 else case e in #(
3516 e) CFLAGS=""
3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h. */
3519
3520 int
3521 main (void)
3522 {
3523
3524 ;
3525 return 0;
3526 }
3527 _ACEOF
3528 if ac_fn_c_try_compile "$LINENO"
3529 then :
3530
3531 else case e in #(
3532 e) ac_c_werror_flag=$ac_save_c_werror_flag
3533 CFLAGS="-g"
3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h. */
3536
3537 int
3538 main (void)
3539 {
3540
3541 ;
3542 return 0;
3543 }
3544 _ACEOF
3545 if ac_fn_c_try_compile "$LINENO"
3546 then :
3547 ac_cv_prog_cc_g=yes
3548 fi
3549 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3550 esac
3551 fi
3552 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3553 esac
3554 fi
3555 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3556 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3557 esac
3558 fi
3559 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3560 printf '%s\n' "$ac_cv_prog_cc_g" >&6; }
3561 if test $ac_test_CFLAGS; then
3562 CFLAGS=$ac_save_CFLAGS
3563 elif test $ac_cv_prog_cc_g = yes; then
3564 if test "$GCC" = yes; then
3565 CFLAGS="-g -O2"
3566 else
3567 CFLAGS="-g"
3568 fi
3569 else
3570 if test "$GCC" = yes; then
3571 CFLAGS="-O2"
3572 else
3573 CFLAGS=
3574 fi
3575 fi
3576 ac_prog_cc_stdc=no
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 C23 features" >&5
3580 printf %s "checking for $CC option to enable C23 features... " >&6; }
3581 if test ${ac_cv_prog_cc_c23+y}
3582 then :
3583 printf %s "(cached) " >&6
3584 else case e in #(
3585 e) ac_cv_prog_cc_c23=no
3586 ac_save_CC=$CC
3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588 /* end confdefs.h. */
3589 $ac_c_conftest_c23_program
3590 _ACEOF
3591 for ac_arg in '' -std=gnu23
3592 do
3593 CC="$ac_save_CC $ac_arg"
3594 if ac_fn_c_try_compile "$LINENO"
3595 then :
3596 ac_cv_prog_cc_c23=$ac_arg
3597 fi
3598 rm -f core conftest.err conftest.$ac_objext conftest.beam
3599 test "x$ac_cv_prog_cc_c23" != "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_c23" = 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_c23" = 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_c23" >&5
3617 printf '%s\n' "$ac_cv_prog_cc_c23" >&6; }
3618 CC="$CC $ac_cv_prog_cc_c23" ;;
3619 esac
3620 fi
3621 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c23
3622 ac_prog_cc_stdc=c23 ;;
3623 esac
3624 fi
3625 fi
3626 if test x$ac_prog_cc_stdc = xno
3627 then :
3628 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3629 printf %s "checking for $CC option to enable C11 features... " >&6; }
3630 if test ${ac_cv_prog_cc_c11+y}
3631 then :
3632 printf %s "(cached) " >&6
3633 else case e in #(
3634 e) ac_cv_prog_cc_c11=no
3635 ac_save_CC=$CC
3636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3637 /* end confdefs.h. */
3638 $ac_c_conftest_c11_program
3639 _ACEOF
3640 for ac_arg in '' -std=gnu11 -std:c11
3641 do
3642 CC="$ac_save_CC $ac_arg"
3643 if ac_fn_c_try_compile "$LINENO"
3644 then :
3645 ac_cv_prog_cc_c11=$ac_arg
3646 fi
3647 rm -f core conftest.err conftest.$ac_objext conftest.beam
3648 test "x$ac_cv_prog_cc_c11" != "xno" && break
3649 done
3650 rm -f conftest.$ac_ext
3651 CC=$ac_save_CC ;;
3652 esac
3653 fi
3654
3655 if test "x$ac_cv_prog_cc_c11" = xno
3656 then :
3657 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3658 printf '%s\n' "unsupported" >&6; }
3659 else case e in #(
3660 e) if test "x$ac_cv_prog_cc_c11" = x
3661 then :
3662 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3663 printf '%s\n' "none needed" >&6; }
3664 else case e in #(
3665 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3666 printf '%s\n' "$ac_cv_prog_cc_c11" >&6; }
3667 CC="$CC $ac_cv_prog_cc_c11" ;;
3668 esac
3669 fi
3670 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3671 ac_prog_cc_stdc=c11 ;;
3672 esac
3673 fi
3674 fi
3675 if test x$ac_prog_cc_stdc = xno
3676 then :
3677 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3678 printf %s "checking for $CC option to enable C99 features... " >&6; }
3679 if test ${ac_cv_prog_cc_c99+y}
3680 then :
3681 printf %s "(cached) " >&6
3682 else case e in #(
3683 e) ac_cv_prog_cc_c99=no
3684 ac_save_CC=$CC
3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h. */
3687 $ac_c_conftest_c99_program
3688 _ACEOF
3689 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3690 do
3691 CC="$ac_save_CC $ac_arg"
3692 if ac_fn_c_try_compile "$LINENO"
3693 then :
3694 ac_cv_prog_cc_c99=$ac_arg
3695 fi
3696 rm -f core conftest.err conftest.$ac_objext conftest.beam
3697 test "x$ac_cv_prog_cc_c99" != "xno" && break
3698 done
3699 rm -f conftest.$ac_ext
3700 CC=$ac_save_CC ;;
3701 esac
3702 fi
3703
3704 if test "x$ac_cv_prog_cc_c99" = xno
3705 then :
3706 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3707 printf '%s\n' "unsupported" >&6; }
3708 else case e in #(
3709 e) if test "x$ac_cv_prog_cc_c99" = x
3710 then :
3711 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3712 printf '%s\n' "none needed" >&6; }
3713 else case e in #(
3714 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3715 printf '%s\n' "$ac_cv_prog_cc_c99" >&6; }
3716 CC="$CC $ac_cv_prog_cc_c99" ;;
3717 esac
3718 fi
3719 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3720 ac_prog_cc_stdc=c99 ;;
3721 esac
3722 fi
3723 fi
3724 if test x$ac_prog_cc_stdc = xno
3725 then :
3726 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3727 printf %s "checking for $CC option to enable C89 features... " >&6; }
3728 if test ${ac_cv_prog_cc_c89+y}
3729 then :
3730 printf %s "(cached) " >&6
3731 else case e in #(
3732 e) ac_cv_prog_cc_c89=no
3733 ac_save_CC=$CC
3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735 /* end confdefs.h. */
3736 $ac_c_conftest_c89_program
3737 _ACEOF
3738 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3739 do
3740 CC="$ac_save_CC $ac_arg"
3741 if ac_fn_c_try_compile "$LINENO"
3742 then :
3743 ac_cv_prog_cc_c89=$ac_arg
3744 fi
3745 rm -f core conftest.err conftest.$ac_objext conftest.beam
3746 test "x$ac_cv_prog_cc_c89" != "xno" && break
3747 done
3748 rm -f conftest.$ac_ext
3749 CC=$ac_save_CC ;;
3750 esac
3751 fi
3752
3753 if test "x$ac_cv_prog_cc_c89" = xno
3754 then :
3755 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3756 printf '%s\n' "unsupported" >&6; }
3757 else case e in #(
3758 e) if test "x$ac_cv_prog_cc_c89" = x
3759 then :
3760 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3761 printf '%s\n' "none needed" >&6; }
3762 else case e in #(
3763 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3764 printf '%s\n' "$ac_cv_prog_cc_c89" >&6; }
3765 CC="$CC $ac_cv_prog_cc_c89" ;;
3766 esac
3767 fi
3768 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3769 ac_prog_cc_stdc=c89 ;;
3770 esac
3771 fi
3772 fi
3773
3774 ac_ext=c
3775 ac_cpp='$CPP $CPPFLAGS'
3776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3779
3780
3781 ac_ext=c
3782 ac_cpp='$CPP $CPPFLAGS'
3783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3786 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3787 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3788 if test ${am_cv_prog_cc_c_o+y}
3789 then :
3790 printf %s "(cached) " >&6
3791 else case e in #(
3792 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h. */
3794
3795 int
3796 main (void)
3797 {
3798
3799 ;
3800 return 0;
3801 }
3802 _ACEOF
3803 # Make sure it works both with $CC and with simple cc.
3804 # Following AC_PROG_CC_C_O, we do the test twice because some
3805 # compilers refuse to overwrite an existing .o file with -o,
3806 # though they will create one.
3807 am_cv_prog_cc_c_o=yes
3808 for am_i in 1 2; do
3809 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3810 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3811 ac_status=$?
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); } \
3814 && test -f conftest2.$ac_objext; then
3815 : OK
3816 else
3817 am_cv_prog_cc_c_o=no
3818 break
3819 fi
3820 done
3821 # aligned with autoconf, so not including core; see bug#72225.
3822 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
3823 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
3824 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
3825 unset am_i ;;
3826 esac
3827 fi
3828 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3829 printf '%s\n' "$am_cv_prog_cc_c_o" >&6; }
3830 if test "$am_cv_prog_cc_c_o" != yes; then
3831 # Losing compiler, so override with the script.
3832 # FIXME: It is wrong to rewrite CC.
3833 # But if we don't then we get into trouble of one sort or another.
3834 # A longer-term fix would be to have automake use am__CC in this case,
3835 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3836 CC="$am_aux_dir/compile $CC"
3837 fi
3838 ac_ext=c
3839 ac_cpp='$CPP $CPPFLAGS'
3840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3843
3844
3845
3846 ac_header= ac_cache=
3847 for ac_item in $ac_header_c_list
3848 do
3849 if test $ac_cache; then
3850 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3851 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3852 printf '%s\n' "#define $ac_item 1" >> confdefs.h
3853 fi
3854 ac_header= ac_cache=
3855 elif test $ac_header; then
3856 ac_cache=$ac_item
3857 else
3858 ac_header=$ac_item
3859 fi
3860 done
3861
3862
3863
3864
3865
3866
3867
3868
3869 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3870 then :
3871
3872 printf '%s\n' "#define STDC_HEADERS 1" >>confdefs.h
3873
3874 fi
3875
3876
3877
3878
3879
3880
3881 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3882 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3883 if test ${ac_cv_safe_to_define___extensions__+y}
3884 then :
3885 printf %s "(cached) " >&6
3886 else case e in #(
3887 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888 /* end confdefs.h. */
3889
3890 # define __EXTENSIONS__ 1
3891 $ac_includes_default
3892 int
3893 main (void)
3894 {
3895
3896 ;
3897 return 0;
3898 }
3899 _ACEOF
3900 if ac_fn_c_try_compile "$LINENO"
3901 then :
3902 ac_cv_safe_to_define___extensions__=yes
3903 else case e in #(
3904 e) ac_cv_safe_to_define___extensions__=no ;;
3905 esac
3906 fi
3907 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3908 esac
3909 fi
3910 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3911 printf '%s\n' "$ac_cv_safe_to_define___extensions__" >&6; }
3912
3913 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3914 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3915 if test ${ac_cv_should_define__xopen_source+y}
3916 then :
3917 printf %s "(cached) " >&6
3918 else case e in #(
3919 e) ac_cv_should_define__xopen_source=no
3920 if test $ac_cv_header_wchar_h = yes
3921 then :
3922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923 /* end confdefs.h. */
3924
3925 #include <wchar.h>
3926 mbstate_t x;
3927 int
3928 main (void)
3929 {
3930
3931 ;
3932 return 0;
3933 }
3934 _ACEOF
3935 if ac_fn_c_try_compile "$LINENO"
3936 then :
3937
3938 else case e in #(
3939 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3941
3942 #define _XOPEN_SOURCE 500
3943 #include <wchar.h>
3944 mbstate_t x;
3945 int
3946 main (void)
3947 {
3948
3949 ;
3950 return 0;
3951 }
3952 _ACEOF
3953 if ac_fn_c_try_compile "$LINENO"
3954 then :
3955 ac_cv_should_define__xopen_source=yes
3956 fi
3957 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3958 esac
3959 fi
3960 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3961 fi ;;
3962 esac
3963 fi
3964 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3965 printf '%s\n' "$ac_cv_should_define__xopen_source" >&6; }
3966
3967 printf '%s\n' "#define _ALL_SOURCE 1" >>confdefs.h
3968
3969 printf '%s\n' "#define _COSMO_SOURCE 1" >>confdefs.h
3970
3971 printf '%s\n' "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3972
3973 printf '%s\n' "#define _GNU_SOURCE 1" >>confdefs.h
3974
3975 printf '%s\n' "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3976
3977 printf '%s\n' "#define _NETBSD_SOURCE 1" >>confdefs.h
3978
3979 printf '%s\n' "#define _OPENBSD_SOURCE 1" >>confdefs.h
3980
3981 printf '%s\n' "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3982
3983 printf '%s\n' "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3984
3985 printf '%s\n' "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3986
3987 printf '%s\n' "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3988
3989 printf '%s\n' "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
3990
3991 printf '%s\n' "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3992
3993 printf '%s\n' "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3994
3995 printf '%s\n' "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3996
3997 printf '%s\n' "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3998
3999 printf '%s\n' "#define _TANDEM_SOURCE 1" >>confdefs.h
4000
4001 if test $ac_cv_header_minix_config_h = yes
4002 then :
4003 MINIX=yes
4004 printf '%s\n' "#define _MINIX 1" >>confdefs.h
4005
4006 printf '%s\n' "#define _POSIX_SOURCE 1" >>confdefs.h
4007
4008 printf '%s\n' "#define _POSIX_1_SOURCE 2" >>confdefs.h
4009
4010 else case e in #(
4011 e) MINIX= ;;
4012 esac
4013 fi
4014 if test $ac_cv_safe_to_define___extensions__ = yes
4015 then :
4016 printf '%s\n' "#define __EXTENSIONS__ 1" >>confdefs.h
4017
4018 fi
4019 if test $ac_cv_should_define__xopen_source = yes
4020 then :
4021 printf '%s\n' "#define _XOPEN_SOURCE 500" >>confdefs.h
4022
4023 fi
4024
4025
4026 # Initialize Automake
4027 am__api_version='1.18'
4028
4029
4030 # Find a good install program. We prefer a C program (faster),
4031 # so one script is as good as another. But avoid the broken or
4032 # incompatible versions:
4033 # SysV /etc/install, /usr/sbin/install
4034 # SunOS /usr/etc/install
4035 # IRIX /sbin/install
4036 # AIX /bin/install
4037 # AmigaOS /C/install, which installs bootblocks on floppy discs
4038 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4039 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4040 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4041 # OS/2's system install, which has a completely different semantic
4042 # ./install, which can be erroneously created by make from ./install.sh.
4043 # Reject install programs that cannot install multiple files.
4044 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4045 printf %s "checking for a BSD-compatible install... " >&6; }
4046 if test -z "$INSTALL"; then
4047 if test ${ac_cv_path_install+y}
4048 then :
4049 printf %s "(cached) " >&6
4050 else case e in #(
4051 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 for as_dir in $PATH
4053 do
4054 IFS=$as_save_IFS
4055 case $as_dir in #(((
4056 '') as_dir=./ ;;
4057 */) ;;
4058 *) as_dir=$as_dir/ ;;
4059 esac
4060 # Account for fact that we put trailing slashes in our PATH walk.
4061 case $as_dir in #((
4062 ./ | /[cC]/* | \
4063 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4064 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4065 /usr/ucb/* ) ;;
4066 *)
4067 # OSF/1 and SCO ODT 3.0 have their own names for install.
4068 # Don't use installbsd from OSF/1 since it installs stuff as root
4069 # by default.
4070 for ac_prog in ginstall scoinst install; do
4071 for ac_exec_ext in '' $ac_executable_extensions; do
4072 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4073 if test $ac_prog = install &&
4074 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4075 # AIX install. It has an incompatible calling convention.
4076 :
4077 elif test $ac_prog = install &&
4078 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4079 # program-specific install script used by HP pwplus--don't use.
4080 :
4081 else
4082 rm -rf conftest.one conftest.two conftest.dir
4083 echo one > conftest.one
4084 echo two > conftest.two
4085 mkdir conftest.dir
4086 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4087 test -s conftest.one && test -s conftest.two &&
4088 test -s conftest.dir/conftest.one &&
4089 test -s conftest.dir/conftest.two
4090 then
4091 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4092 break 3
4093 fi
4094 fi
4095 fi
4096 done
4097 done
4098 ;;
4099 esac
4100
4101 done
4102 IFS=$as_save_IFS
4103
4104 rm -rf conftest.one conftest.two conftest.dir
4105 ;;
4106 esac
4107 fi
4108 if test ${ac_cv_path_install+y}; then
4109 INSTALL=$ac_cv_path_install
4110 else
4111 # As a last resort, use the slow shell script. Don't cache a
4112 # value for INSTALL within a source directory, because that will
4113 # break other packages using the cache if that directory is
4114 # removed, or if the value is a relative name.
4115 INSTALL=$ac_install_sh
4116 fi
4117 fi
4118 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4119 printf '%s\n' "$INSTALL" >&6; }
4120
4121 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4122 # It thinks the first close brace ends the variable substitution.
4123 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4124
4125 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4126
4127 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4128
4129 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
4130 printf %s "checking whether sleep supports fractional seconds... " >&6; }
4131 if test ${am_cv_sleep_fractional_seconds+y}
4132 then :
4133 printf %s "(cached) " >&6
4134 else case e in #(
4135 e) if sleep 0.001 2>/dev/null
4136 then :
4137 am_cv_sleep_fractional_seconds=yes
4138 else case e in #(
4139 e) am_cv_sleep_fractional_seconds=no ;;
4140 esac
4141 fi
4142 ;;
4143 esac
4144 fi
4145 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
4146 printf '%s\n' "$am_cv_sleep_fractional_seconds" >&6; }
4147
4148 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
4149 printf %s "checking filesystem timestamp resolution... " >&6; }
4150 if test ${am_cv_filesystem_timestamp_resolution+y}
4151 then :
4152 printf %s "(cached) " >&6
4153 else case e in #(
4154 e) # Default to the worst case.
4155 am_cv_filesystem_timestamp_resolution=2
4156
4157 # Only try to go finer than 1 sec if sleep can do it.
4158 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
4159 # - 1 sec is not much of a win compared to 2 sec, and
4160 # - it takes 2 seconds to perform the test whether 1 sec works.
4161 #
4162 # Instead, just use the default 2s on platforms that have 1s resolution,
4163 # accept the extra 1s delay when using $sleep in the Automake tests, in
4164 # exchange for not incurring the 2s delay for running the test for all
4165 # packages.
4166 #
4167 am_try_resolutions=
4168 if test "$am_cv_sleep_fractional_seconds" = yes; then
4169 # Even a millisecond often causes a bunch of false positives,
4170 # so just try a hundredth of a second. The time saved between .001 and
4171 # .01 is not terribly consequential.
4172 am_try_resolutions="0.01 0.1 $am_try_resolutions"
4173 fi
4174
4175 # In order to catch current-generation FAT out, we must *modify* files
4176 # that already exist; the *creation* timestamp is finer. Use names
4177 # that make ls -t sort them differently when they have equal
4178 # timestamps than when they have distinct timestamps, keeping
4179 # in mind that ls -t prints the *newest* file first.
4180 rm -f conftest.ts?
4181 : > conftest.ts1
4182 : > conftest.ts2
4183 : > conftest.ts3
4184
4185 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
4186 # clobber the current shell's arguments. (Outer-level square brackets
4187 # are removed by m4; they're present so that m4 does not expand
4188 # <dollar><star>; be careful, easy to get confused.)
4189 if (
4190 set X `ls -t conftest.ts[12]` &&
4191 {
4192 test "$*" != "X conftest.ts1 conftest.ts2" ||
4193 test "$*" != "X conftest.ts2 conftest.ts1";
4194 }
4195 ); then :; else
4196 # If neither matched, then we have a broken ls. This can happen
4197 # if, for instance, CONFIG_SHELL is bash and it inherits a
4198 # broken ls alias from the environment. This has actually
4199 # happened. Such a system could not be considered "sane".
4200 printf '%s\n' ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
4201 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4202 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4203 as_fn_error $? "ls -t produces unexpected output.
4204 Make sure there is not a broken ls alias in your environment.
4205 See 'config.log' for more details" "$LINENO" 5; }
4206 fi
4207
4208 for am_try_res in $am_try_resolutions; do
4209 # Any one fine-grained sleep might happen to cross the boundary
4210 # between two values of a coarser actual resolution, but if we do
4211 # two fine-grained sleeps in a row, at least one of them will fall
4212 # entirely within a coarse interval.
4213 echo alpha > conftest.ts1
4214 sleep $am_try_res
4215 echo beta > conftest.ts2
4216 sleep $am_try_res
4217 echo gamma > conftest.ts3
4218
4219 # We assume that 'ls -t' will make use of high-resolution
4220 # timestamps if the operating system supports them at all.
4221 if (set X `ls -t conftest.ts?` &&
4222 test "$2" = conftest.ts3 &&
4223 test "$3" = conftest.ts2 &&
4224 test "$4" = conftest.ts1); then
4225 #
4226 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
4227 # because we don't need to test make.
4228 make_ok=true
4229 if test $am_try_res != 1; then
4230 # But if we've succeeded so far with a subsecond resolution, we
4231 # have one more thing to check: make. It can happen that
4232 # everything else supports the subsecond mtimes, but make doesn't;
4233 # notably on macOS, which ships make 3.81 from 2006 (the last one
4234 # released under GPLv2). https://bugs.gnu.org/68808
4235 #
4236 # We test $MAKE if it is defined in the environment, else "make".
4237 # It might get overridden later, but our hope is that in practice
4238 # it does not matter: it is the system "make" which is (by far)
4239 # the most likely to be broken, whereas if the user overrides it,
4240 # probably they did so with a better, or at least not worse, make.
4241 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
4242 #
4243 # Create a Makefile (real tab character here):
4244 rm -f conftest.mk
4245 echo 'conftest.ts1: conftest.ts2' >conftest.mk
4246 echo ' touch conftest.ts2' >>conftest.mk
4247 #
4248 # Now, running
4249 # touch conftest.ts1; touch conftest.ts2; make
4250 # should touch ts1 because ts2 is newer. This could happen by luck,
4251 # but most often, it will fail if make's support is insufficient. So
4252 # test for several consecutive successes.
4253 #
4254 # (We reuse conftest.ts[12] because we still want to modify existing
4255 # files, not create new ones, per above.)
4256 n=0
4257 make=${MAKE-make}
4258 until test $n -eq 3; do
4259 echo one > conftest.ts1
4260 sleep $am_try_res
4261 echo two > conftest.ts2 # ts2 should now be newer than ts1
4262 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
4263 make_ok=false
4264 break # out of $n loop
4265 fi
4266 n=`expr $n + 1`
4267 done
4268 fi
4269 #
4270 if $make_ok; then
4271 # Everything we know to check worked out, so call this resolution good.
4272 am_cv_filesystem_timestamp_resolution=$am_try_res
4273 break # out of $am_try_res loop
4274 fi
4275 # Otherwise, we'll go on to check the next resolution.
4276 fi
4277 done
4278 rm -f conftest.ts?
4279 # (end _am_filesystem_timestamp_resolution)
4280 ;;
4281 esac
4282 fi
4283 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
4284 printf '%s\n' "$am_cv_filesystem_timestamp_resolution" >&6; }
4285
4286 # This check should not be cached, as it may vary across builds of
4287 # different projects.
4288 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4289 printf %s "checking whether build environment is sane... " >&6; }
4290 # Reject unsafe characters in $srcdir or the absolute working directory
4291 # name. Accept space and tab only in the latter.
4292 am_lf='
4293 '
4294 case `pwd` in
4295 *[\\\"\#\$\&\'\`$am_lf]*)
4296 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297 printf '%s\n' "no" >&6; }
4298 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4299 esac
4300 case $srcdir in
4301 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4302 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303 printf '%s\n' "no" >&6; }
4304 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4305 esac
4306
4307 # Do 'set' in a subshell so we don't clobber the current shell's
4308 # arguments. Must try -L first in case configure is actually a
4309 # symlink; some systems play weird games with the mod time of symlinks
4310 # (eg FreeBSD returns the mod time of the symlink's containing
4311 # directory).
4312 am_build_env_is_sane=no
4313 am_has_slept=no
4314 rm -f conftest.file
4315 for am_try in 1 2; do
4316 echo "timestamp, slept: $am_has_slept" > conftest.file
4317 if (
4318 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4319 if test "$*" = "X"; then
4320 # -L didn't work.
4321 set X `ls -t "$srcdir/configure" conftest.file`
4322 fi
4323 test "$2" = conftest.file
4324 ); then
4325 am_build_env_is_sane=yes
4326 break
4327 fi
4328 # Just in case.
4329 sleep "$am_cv_filesystem_timestamp_resolution"
4330 am_has_slept=yes
4331 done
4332
4333 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
4334 printf '%s\n' "$am_build_env_is_sane" >&6; }
4335 if test "$am_build_env_is_sane" = no; then
4336 as_fn_error $? "newly created file is older than distributed files!
4337 Check your system clock" "$LINENO" 5
4338 fi
4339
4340 # If we didn't sleep, we still need to ensure time stamps of config.status and
4341 # generated files are strictly newer.
4342 am_sleep_pid=
4343 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
4344 then :
4345
4346 else case e in #(
4347 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
4348 am_sleep_pid=$!
4349 ;;
4350 esac
4351 fi
4352
4353 rm -f conftest.file
4354
4355 test "$program_prefix" != NONE &&
4356 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4357 # Use a double $ so make ignores it.
4358 test "$program_suffix" != NONE &&
4359 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4360 # Double any \ or $.
4361 # By default was 's,x,x', remove it if useless.
4362 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4363 program_transform_name=`printf '%s\n' "$program_transform_name" | sed "$ac_script"`
4364
4365
4366 if test x"${MISSING+set}" != xset; then
4367 MISSING="\${SHELL} '$am_aux_dir/missing'"
4368 fi
4369 # Use eval to expand $SHELL
4370 if eval "$MISSING --is-lightweight"; then
4371 am_missing_run="$MISSING "
4372 else
4373 am_missing_run=
4374 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4375 printf '%s\n' "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4376 fi
4377
4378 if test x"${install_sh+set}" != xset; then
4379 case $am_aux_dir in
4380 *\ * | *\ *)
4381 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4382 *)
4383 install_sh="\${SHELL} $am_aux_dir/install-sh"
4384 esac
4385 fi
4386
4387 # Installed binaries are usually stripped using 'strip' when the user
4388 # run "make install-strip". However 'strip' might not be the right
4389 # tool to use in cross-compilation environments, therefore Automake
4390 # will honor the 'STRIP' environment variable to overrule this program.
4391 if test "$cross_compiling" != no; then
4392 if test -n "$ac_tool_prefix"; then
4393 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4394 set dummy ${ac_tool_prefix}strip; ac_word=$2
4395 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396 printf %s "checking for $ac_word... " >&6; }
4397 if test ${ac_cv_prog_STRIP+y}
4398 then :
4399 printf %s "(cached) " >&6
4400 else case e in #(
4401 e) if test -n "$STRIP"; then
4402 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4403 else
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 for as_dir in $PATH
4406 do
4407 IFS=$as_save_IFS
4408 case $as_dir in #(((
4409 '') as_dir=./ ;;
4410 */) ;;
4411 *) as_dir=$as_dir/ ;;
4412 esac
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4415 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4416 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4417 break 2
4418 fi
4419 done
4420 done
4421 IFS=$as_save_IFS
4422
4423 fi ;;
4424 esac
4425 fi
4426 STRIP=$ac_cv_prog_STRIP
4427 if test -n "$STRIP"; then
4428 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4429 printf '%s\n' "$STRIP" >&6; }
4430 else
4431 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4432 printf '%s\n' "no" >&6; }
4433 fi
4434
4435
4436 fi
4437 if test -z "$ac_cv_prog_STRIP"; then
4438 ac_ct_STRIP=$STRIP
4439 # Extract the first word of "strip", so it can be a program name with args.
4440 set dummy strip; ac_word=$2
4441 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4442 printf %s "checking for $ac_word... " >&6; }
4443 if test ${ac_cv_prog_ac_ct_STRIP+y}
4444 then :
4445 printf %s "(cached) " >&6
4446 else case e in #(
4447 e) if test -n "$ac_ct_STRIP"; then
4448 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4449 else
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 for as_dir in $PATH
4452 do
4453 IFS=$as_save_IFS
4454 case $as_dir in #(((
4455 '') as_dir=./ ;;
4456 */) ;;
4457 *) as_dir=$as_dir/ ;;
4458 esac
4459 for ac_exec_ext in '' $ac_executable_extensions; do
4460 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4461 ac_cv_prog_ac_ct_STRIP="strip"
4462 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4463 break 2
4464 fi
4465 done
4466 done
4467 IFS=$as_save_IFS
4468
4469 fi ;;
4470 esac
4471 fi
4472 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4473 if test -n "$ac_ct_STRIP"; then
4474 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4475 printf '%s\n' "$ac_ct_STRIP" >&6; }
4476 else
4477 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4478 printf '%s\n' "no" >&6; }
4479 fi
4480
4481 if test "x$ac_ct_STRIP" = x; then
4482 STRIP=":"
4483 else
4484 case $cross_compiling:$ac_tool_warned in
4485 yes:)
4486 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4487 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4488 ac_tool_warned=yes ;;
4489 esac
4490 STRIP=$ac_ct_STRIP
4491 fi
4492 else
4493 STRIP="$ac_cv_prog_STRIP"
4494 fi
4495
4496 fi
4497 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4498
4499
4500 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4501 printf %s "checking for a race-free mkdir -p... " >&6; }
4502 if test -z "$MKDIR_P"; then
4503 if test ${ac_cv_path_mkdir+y}
4504 then :
4505 printf %s "(cached) " >&6
4506 else case e in #(
4507 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4509 do
4510 IFS=$as_save_IFS
4511 case $as_dir in #(((
4512 '') as_dir=./ ;;
4513 */) ;;
4514 *) as_dir=$as_dir/ ;;
4515 esac
4516 for ac_prog in mkdir gmkdir; do
4517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4519 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4520 'mkdir ('*'coreutils) '* | \
4521 *'BusyBox '* | \
4522 'mkdir (fileutils) '4.1*)
4523 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4524 break 3;;
4525 esac
4526 done
4527 done
4528 done
4529 IFS=$as_save_IFS
4530 ;;
4531 esac
4532 fi
4533
4534 test -d ./--version && rmdir ./--version
4535 if test ${ac_cv_path_mkdir+y}; then
4536 MKDIR_P="$ac_cv_path_mkdir -p"
4537 else
4538 # As a last resort, use plain mkdir -p,
4539 # in the hope it doesn't have the bugs of ancient mkdir.
4540 MKDIR_P='mkdir -p'
4541 fi
4542 fi
4543 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4544 printf '%s\n' "$MKDIR_P" >&6; }
4545
4546 for ac_prog in gawk mawk nawk awk 'busybox awk'
4547 do
4548 # Extract the first word of "$ac_prog", so it can be a program name with args.
4549 set dummy $ac_prog; ac_word=$2
4550 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4551 printf %s "checking for $ac_word... " >&6; }
4552 if test ${ac_cv_prog_AWK+y}
4553 then :
4554 printf %s "(cached) " >&6
4555 else case e in #(
4556 e) if test -n "$AWK"; then
4557 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4558 else
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 for as_dir in $PATH
4561 do
4562 IFS=$as_save_IFS
4563 case $as_dir in #(((
4564 '') as_dir=./ ;;
4565 */) ;;
4566 *) as_dir=$as_dir/ ;;
4567 esac
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4570 ac_cv_prog_AWK="$ac_prog"
4571 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4572 break 2
4573 fi
4574 done
4575 done
4576 IFS=$as_save_IFS
4577
4578 fi ;;
4579 esac
4580 fi
4581 AWK=$ac_cv_prog_AWK
4582 if test -n "$AWK"; then
4583 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4584 printf '%s\n' "$AWK" >&6; }
4585 else
4586 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587 printf '%s\n' "no" >&6; }
4588 fi
4589
4590
4591 test -n "$AWK" && break
4592 done
4593
4594 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4595 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4596 set x ${MAKE-make}
4597 ac_make=`printf '%s\n' "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4598 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4599 then :
4600 printf %s "(cached) " >&6
4601 else case e in #(
4602 e) cat >conftest.make <<\_ACEOF
4603 SHELL = /bin/sh
4604 all:
4605 @printf '%s\n' '@@@%%%=$(MAKE)=@@@%%%'
4606 _ACEOF
4607 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4608 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4609 *@@@%%%=?*=@@@%%%*)
4610 eval ac_cv_prog_make_${ac_make}_set=yes;;
4611 *)
4612 eval ac_cv_prog_make_${ac_make}_set=no;;
4613 esac
4614 rm -f conftest.make ;;
4615 esac
4616 fi
4617 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4618 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4619 printf '%s\n' "yes" >&6; }
4620 SET_MAKE=
4621 else
4622 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4623 printf '%s\n' "no" >&6; }
4624 SET_MAKE="MAKE=${MAKE-make}"
4625 fi
4626
4627 rm -rf .tst 2>/dev/null
4628 mkdir .tst 2>/dev/null
4629 if test -d .tst; then
4630 am__leading_dot=.
4631 else
4632 am__leading_dot=_
4633 fi
4634 rmdir .tst 2>/dev/null
4635
4636 DEPDIR="${am__leading_dot}deps"
4637
4638 ac_config_commands="$ac_config_commands depfiles"
4639
4640 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4641 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4642 cat > confinc.mk << 'END'
4643 am__doit:
4644 @echo this is the am__doit target >confinc.out
4645 .PHONY: am__doit
4646 END
4647 am__include="#"
4648 am__quote=
4649 # BSD make does it like this.
4650 echo '.include "confinc.mk" # ignored' > confmf.BSD
4651 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4652 echo 'include confinc.mk # ignored' > confmf.GNU
4653 _am_result=no
4654 for s in GNU BSD; do
4655 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4656 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4657 ac_status=$?
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); }
4660 case $?:`cat confinc.out 2>/dev/null` in #(
4661 '0:this is the am__doit target') :
4662 case $s in #(
4663 BSD) :
4664 am__include='.include' am__quote='"' ;; #(
4665 *) :
4666 am__include='include' am__quote='' ;;
4667 esac ;; #(
4668 *) :
4669 ;;
4670 esac
4671 if test "$am__include" != "#"; then
4672 _am_result="yes ($s style)"
4673 break
4674 fi
4675 done
4676 rm -f confinc.* confmf.*
4677 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4678 printf '%s\n' "${_am_result}" >&6; }
4679
4680 # Check whether --enable-dependency-tracking was given.
4681 if test ${enable_dependency_tracking+y}
4682 then :
4683 enableval=$enable_dependency_tracking;
4684 fi
4685
4686 if test "x$enable_dependency_tracking" != xno; then
4687 am_depcomp="$ac_aux_dir/depcomp"
4688 AMDEPBACKSLASH='\'
4689 am__nodep='_no'
4690 fi
4691 if test "x$enable_dependency_tracking" != xno; then
4692 AMDEP_TRUE=
4693 AMDEP_FALSE='#'
4694 else
4695 AMDEP_TRUE='#'
4696 AMDEP_FALSE=
4697 fi
4698
4699
4700 AM_DEFAULT_VERBOSITY=1
4701 # Check whether --enable-silent-rules was given.
4702 if test ${enable_silent_rules+y}
4703 then :
4704 enableval=$enable_silent_rules;
4705 fi
4706
4707 am_make=${MAKE-make}
4708 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4709 printf %s "checking whether $am_make supports nested variables... " >&6; }
4710 if test ${am_cv_make_support_nested_variables+y}
4711 then :
4712 printf %s "(cached) " >&6
4713 else case e in #(
4714 e) if printf '%s\n' 'TRUE=$(BAR$(V))
4715 BAR0=false
4716 BAR1=true
4717 V=1
4718 am__doit:
4719 @$(TRUE)
4720 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4721 am_cv_make_support_nested_variables=yes
4722 else
4723 am_cv_make_support_nested_variables=no
4724 fi ;;
4725 esac
4726 fi
4727 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4728 printf '%s\n' "$am_cv_make_support_nested_variables" >&6; }
4729 AM_BACKSLASH='\'
4730
4731 am__rm_f_notfound=
4732 if (rm -f && rm -fr && rm -rf) 2>/dev/null
4733 then :
4734
4735 else case e in #(
4736 e) am__rm_f_notfound='""' ;;
4737 esac
4738 fi
4739
4740
4741 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
4742 printf %s "checking xargs -n works... " >&6; }
4743 if test ${am_cv_xargs_n_works+y}
4744 then :
4745 printf %s "(cached) " >&6
4746 else case e in #(
4747 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
4748 3"
4749 then :
4750 am_cv_xargs_n_works=yes
4751 else case e in #(
4752 e) am_cv_xargs_n_works=no ;;
4753 esac
4754 fi ;;
4755 esac
4756 fi
4757 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
4758 printf '%s\n' "$am_cv_xargs_n_works" >&6; }
4759 if test "$am_cv_xargs_n_works" = yes
4760 then :
4761 am__xargs_n='xargs -n'
4762 else case e in #(
4763 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
4764 ;;
4765 esac
4766 fi
4767
4768 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4769 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4770 # is not polluted with repeated "-I."
4771 am__isrc=' -I$(srcdir)'
4772 # test to see if srcdir already configured
4773 if test -f $srcdir/config.status; then
4774 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4775 fi
4776 fi
4777
4778 # test whether we have cygpath
4779 if test -z "$CYGPATH_W"; then
4780 if (cygpath --version) >/dev/null 2>/dev/null; then
4781 CYGPATH_W='cygpath -w'
4782 else
4783 CYGPATH_W=echo
4784 fi
4785 fi
4786
4787
4788 # Define the identity of the package.
4789 PACKAGE='xkbprint'
4790 VERSION='1.0.8'
4791
4792
4793 printf '%s\n' "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4794
4795
4796 printf '%s\n' "#define VERSION \"$VERSION\"" >>confdefs.h
4797
4798 # Some tools Automake needs.
4799
4800 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4801
4802
4803 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4804
4805
4806 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4807
4808
4809 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4810
4811
4812 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4813
4814 # For better backward compatibility. To be removed once Automake 1.9.x
4815 # dies out for good. For more background, see:
4816 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4817 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4818 mkdir_p='$(MKDIR_P)'
4819
4820 # We need awk for the "check" target (and possibly the TAP driver). The
4821 # system "awk" is bad on some platforms.
4822 # Always define AMTAR for backward compatibility. Yes, it's still used
4823 # in the wild :-( We should find a proper way to deprecate it ...
4824 AMTAR='$${TAR-tar}'
4825
4826
4827 # We'll loop over all known methods to create a tar archive until one works.
4828 _am_tools='gnutar plaintar pax cpio none'
4829
4830 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
4831 # There is notably a 21 bits limit for the UID and the GID. In fact,
4832 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
4833 # and bug#13588).
4834 am_max_uid=2097151 # 2^21 - 1
4835 am_max_gid=$am_max_uid
4836 # The $UID and $GID variables are not portable, so we need to resort
4837 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
4838 # below are definitely unexpected, so allow the users to see them
4839 # (that is, avoid stderr redirection).
4840 am_uid=`id -u || echo unknown`
4841 am_gid=`id -g || echo unknown`
4842 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
4843 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
4844 if test x$am_uid = xunknown; then
4845 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
4846 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
4847 elif test $am_uid -le $am_max_uid; then
4848 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4849 printf '%s\n' "yes" >&6; }
4850 else
4851 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852 printf '%s\n' "no" >&6; }
4853 _am_tools=none
4854 fi
4855 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
4856 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
4857 if test x$gm_gid = xunknown; then
4858 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
4859 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
4860 elif test $am_gid -le $am_max_gid; then
4861 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4862 printf '%s\n' "yes" >&6; }
4863 else
4864 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4865 printf '%s\n' "no" >&6; }
4866 _am_tools=none
4867 fi
4868
4869 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4870 printf %s "checking how to create a ustar tar archive... " >&6; }
4871
4872 # Go ahead even if we have the value already cached. We do so because we
4873 # need to set the values for the 'am__tar' and 'am__untar' variables.
4874 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4875
4876 for _am_tool in $_am_tools; do
4877 case $_am_tool in
4878 gnutar)
4879 for _am_tar in tar gnutar gtar; do
4880 { echo "$as_me:$LINENO: $_am_tar --version" >&5
4881 ($_am_tar --version) >&5 2>&5
4882 ac_status=$?
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); } && break
4885 done
4886 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4887 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4888 am__untar="$_am_tar -xf -"
4889 ;;
4890 plaintar)
4891 # Must skip GNU tar: if it does not support --format= it doesn't create
4892 # ustar tarball either.
4893 (tar --version) >/dev/null 2>&1 && continue
4894 am__tar='tar chf - "$$tardir"'
4895 am__tar_='tar chf - "$tardir"'
4896 am__untar='tar xf -'
4897 ;;
4898 pax)
4899 am__tar='pax -L -x ustar -w "$$tardir"'
4900 am__tar_='pax -L -x ustar -w "$tardir"'
4901 am__untar='pax -r'
4902 ;;
4903 cpio)
4904 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4905 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4906 am__untar='cpio -i -H ustar -d'
4907 ;;
4908 none)
4909 am__tar=false
4910 am__tar_=false
4911 am__untar=false
4912 ;;
4913 esac
4914
4915 # If the value was cached, stop now. We just wanted to have am__tar
4916 # and am__untar set.
4917 test -n "${am_cv_prog_tar_ustar}" && break
4918
4919 # tar/untar a dummy directory, and stop if the command works.
4920 rm -rf conftest.dir
4921 mkdir conftest.dir
4922 echo GrepMe > conftest.dir/file
4923 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4924 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4925 ac_status=$?
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }
4928 rm -rf conftest.dir
4929 if test -s conftest.tar; then
4930 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4931 ($am__untar <conftest.tar) >&5 2>&5
4932 ac_status=$?
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); }
4935 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4936 (cat conftest.dir/file) >&5 2>&5
4937 ac_status=$?
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }
4940 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4941 fi
4942 done
4943 rm -rf conftest.dir
4944
4945 if test ${am_cv_prog_tar_ustar+y}
4946 then :
4947 printf %s "(cached) " >&6
4948 else case e in #(
4949 e) am_cv_prog_tar_ustar=$_am_tool ;;
4950 esac
4951 fi
4952
4953 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4954 printf '%s\n' "$am_cv_prog_tar_ustar" >&6; }
4955
4956
4957
4958
4959
4960 depcc="$CC" am_compiler_list=
4961
4962 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4963 printf %s "checking dependency style of $depcc... " >&6; }
4964 if test ${am_cv_CC_dependencies_compiler_type+y}
4965 then :
4966 printf %s "(cached) " >&6
4967 else case e in #(
4968 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4969 # We make a subdir and do the tests there. Otherwise we can end up
4970 # making bogus files that we don't know about and never remove. For
4971 # instance it was reported that on HP-UX the gcc test will end up
4972 # making a dummy file named 'D' -- because '-MD' means "put the output
4973 # in D".
4974 rm -rf conftest.dir
4975 mkdir conftest.dir
4976 # Copy depcomp to subdir because otherwise we won't find it if we're
4977 # using a relative directory.
4978 cp "$am_depcomp" conftest.dir
4979 cd conftest.dir
4980 # We will build objects and dependencies in a subdirectory because
4981 # it helps to detect inapplicable dependency modes. For instance
4982 # both Tru64's cc and ICC support -MD to output dependencies as a
4983 # side effect of compilation, but ICC will put the dependencies in
4984 # the current directory while Tru64 will put them in the object
4985 # directory.
4986 mkdir sub
4987
4988 am_cv_CC_dependencies_compiler_type=none
4989 if test "$am_compiler_list" = ""; then
4990 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4991 fi
4992 am__universal=false
4993 case " $depcc " in #(
4994 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4995 esac
4996
4997 for depmode in $am_compiler_list; do
4998 # Setup a source with many dependencies, because some compilers
4999 # like to wrap large dependency lists on column 80 (with \), and
5000 # we should not choose a depcomp mode which is confused by this.
5001 #
5002 # We need to recreate these files for each test, as the compiler may
5003 # overwrite some of them when testing with obscure command lines.
5004 # This happens at least with the AIX C compiler.
5005 : > sub/conftest.c
5006 for i in 1 2 3 4 5 6; do
5007 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5008 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5009 # Solaris 10 /bin/sh.
5010 echo '/* dummy */' > sub/conftst$i.h
5011 done
5012 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5013
5014 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5015 # mode. It turns out that the SunPro C++ compiler does not properly
5016 # handle '-M -o', and we need to detect this. Also, some Intel
5017 # versions had trouble with output in subdirs.
5018 am__obj=sub/conftest.${OBJEXT-o}
5019 am__minus_obj="-o $am__obj"
5020 case $depmode in
5021 gcc)
5022 # This depmode causes a compiler race in universal mode.
5023 test "$am__universal" = false || continue
5024 ;;
5025 nosideeffect)
5026 # After this tag, mechanisms are not by side-effect, so they'll
5027 # only be used when explicitly requested.
5028 if test "x$enable_dependency_tracking" = xyes; then
5029 continue
5030 else
5031 break
5032 fi
5033 ;;
5034 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5035 # This compiler won't grok '-c -o', but also, the minuso test has
5036 # not run yet. These depmodes are late enough in the game, and
5037 # so weak that their functioning should not be impacted.
5038 am__obj=conftest.${OBJEXT-o}
5039 am__minus_obj=
5040 ;;
5041 none) break ;;
5042 esac
5043 if depmode=$depmode \
5044 source=sub/conftest.c object=$am__obj \
5045 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5046 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5047 >/dev/null 2>conftest.err &&
5048 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5049 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5050 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5051 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5052 # icc doesn't choke on unknown options, it will just issue warnings
5053 # or remarks (even with -Werror). So we grep stderr for any message
5054 # that says an option was ignored or not supported.
5055 # When given -MP, icc 7.0 and 7.1 complain thus:
5056 # icc: Command line warning: ignoring option '-M'; no argument required
5057 # The diagnosis changed in icc 8.0:
5058 # icc: Command line remark: option '-MP' not supported
5059 if (grep 'ignoring option' conftest.err ||
5060 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5061 am_cv_CC_dependencies_compiler_type=$depmode
5062 break
5063 fi
5064 fi
5065 done
5066
5067 cd ..
5068 rm -rf conftest.dir
5069 else
5070 am_cv_CC_dependencies_compiler_type=none
5071 fi
5072 ;;
5073 esac
5074 fi
5075 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5076 printf '%s\n' "$am_cv_CC_dependencies_compiler_type" >&6; }
5077 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5078
5079 if
5080 test "x$enable_dependency_tracking" != xno \
5081 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5082 am__fastdepCC_TRUE=
5083 am__fastdepCC_FALSE='#'
5084 else
5085 am__fastdepCC_TRUE='#'
5086 am__fastdepCC_FALSE=
5087 fi
5088
5089
5090 # Variables for tags utilities; see am/tags.am
5091 if test -z "$CTAGS"; then
5092 CTAGS=ctags
5093 fi
5094
5095 if test -z "$ETAGS"; then
5096 ETAGS=etags
5097 fi
5098
5099 if test -z "$CSCOPE"; then
5100 CSCOPE=cscope
5101 fi
5102
5103
5104
5105
5106
5107
5108
5109
5110 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to detect undeclared functions" >&5
5123 printf %s "checking for $CC options to detect undeclared functions... " >&6; }
5124 if test ${ac_cv_c_undeclared_builtin_options+y}
5125 then :
5126 printf %s "(cached) " >&6
5127 else case e in #(
5128 e) ac_save_CFLAGS=$CFLAGS
5129 ac_cv_c_undeclared_builtin_options='cannot detect'
5130 for ac_arg in '' -fno-builtin; do
5131 CFLAGS="$ac_save_CFLAGS $ac_arg"
5132 # This test program should *not* compile successfully.
5133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5134 /* end confdefs.h. */
5135
5136 int
5137 main (void)
5138 {
5139 (void) strchr;
5140 ;
5141 return 0;
5142 }
5143 _ACEOF
5144 if ac_fn_c_try_compile "$LINENO"
5145 then :
5146
5147 else case e in #(
5148 e) # This test program should compile successfully.
5149 # No library function is consistently available on
5150 # freestanding implementations, so test against a dummy
5151 # declaration. Include always-available headers on the
5152 # off chance that they somehow elicit warnings.
5153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5154 /* end confdefs.h. */
5155 #include <float.h>
5156 #include <limits.h>
5157 #include <stdarg.h>
5158 #include <stddef.h>
5159 extern void ac_decl (int, char *);
5160
5161 int
5162 main (void)
5163 {
5164 (void) ac_decl (0, (char *) 0);
5165 (void) ac_decl;
5166
5167 ;
5168 return 0;
5169 }
5170 _ACEOF
5171 if ac_fn_c_try_compile "$LINENO"
5172 then :
5173 if test x"$ac_arg" = x
5174 then :
5175 ac_cv_c_undeclared_builtin_options='none needed'
5176 else case e in #(
5177 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
5178 esac
5179 fi
5180 break
5181 fi
5182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5183 esac
5184 fi
5185 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5186 done
5187 CFLAGS=$ac_save_CFLAGS
5188 ;;
5189 esac
5190 fi
5191 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
5192 printf '%s\n' "$ac_cv_c_undeclared_builtin_options" >&6; }
5193 case $ac_cv_c_undeclared_builtin_options in #(
5194 'cannot detect') :
5195 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5196 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
5197 as_fn_error $? "cannot make $CC report undeclared builtins
5198 See 'config.log' for more details" "$LINENO" 5; } ;; #(
5199 'none needed') :
5200 ac_c_undeclared_builtin_options='' ;; #(
5201 *) :
5202 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
5203 esac
5204
5205 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to ignore future-version functions" >&5
5206 printf %s "checking for $CC options to ignore future-version functions... " >&6; }
5207 if test ${ac_cv_c_future_darwin_options+y}
5208 then :
5209 printf %s "(cached) " >&6
5210 else case e in #(
5211 e) ac_compile_saved="$ac_compile"
5212 ac_compile="$ac_compile -Werror=unguarded-availability-new"
5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h. */
5215 #if ! (defined __APPLE__ && defined __MACH__)
5216 #error "-Werror=unguarded-availability-new not needed here"
5217 #endif
5218
5219 int
5220 main (void)
5221 {
5222
5223 ;
5224 return 0;
5225 }
5226 _ACEOF
5227 if ac_fn_c_try_compile "$LINENO"
5228 then :
5229 ac_cv_c_future_darwin_options='-Werror=unguarded-availability-new'
5230 else case e in #(
5231 e) ac_cv_c_future_darwin_options='none needed' ;;
5232 esac
5233 fi
5234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5235 ac_compile="$ac_compile_saved"
5236 ;;
5237 esac
5238 fi
5239 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_future_darwin_options" >&5
5240 printf '%s\n' "$ac_cv_c_future_darwin_options" >&6; }
5241 case $ac_cv_c_future_darwin_options in #(
5242 'none needed') :
5243 ac_c_future_darwin_options='' ;; #(
5244 *) :
5245 ac_c_future_darwin_options=$ac_cv_c_future_darwin_options ;;
5246 esac
5247
5248
5249
5250
5251
5252 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
5253 if test "x$ac_cv_have_decl___clang__" = xyes
5254 then :
5255 CLANGCC="yes"
5256 else case e in #(
5257 e) CLANGCC="no" ;;
5258 esac
5259 fi
5260 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
5261 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
5262 then :
5263 INTELCC="yes"
5264 else case e in #(
5265 e) INTELCC="no" ;;
5266 esac
5267 fi
5268 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
5269 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
5270 then :
5271 SUNCC="yes"
5272 else case e in #(
5273 e) SUNCC="no" ;;
5274 esac
5275 fi
5276
5277
5278
5279
5280
5281
5282
5283
5284 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5285 if test -n "$ac_tool_prefix"; then
5286 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5287 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5288 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5289 printf %s "checking for $ac_word... " >&6; }
5290 if test ${ac_cv_path_PKG_CONFIG+y}
5291 then :
5292 printf %s "(cached) " >&6
5293 else case e in #(
5294 e) case $PKG_CONFIG in
5295 [\\/]* | ?:[\\/]*)
5296 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5297 ;;
5298 *)
5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300 for as_dir in $PATH
5301 do
5302 IFS=$as_save_IFS
5303 case $as_dir in #(((
5304 '') as_dir=./ ;;
5305 */) ;;
5306 *) as_dir=$as_dir/ ;;
5307 esac
5308 for ac_exec_ext in '' $ac_executable_extensions; do
5309 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5310 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5311 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5312 break 2
5313 fi
5314 done
5315 done
5316 IFS=$as_save_IFS
5317
5318 ;;
5319 esac ;;
5320 esac
5321 fi
5322 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5323 if test -n "$PKG_CONFIG"; then
5324 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5325 printf '%s\n' "$PKG_CONFIG" >&6; }
5326 else
5327 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5328 printf '%s\n' "no" >&6; }
5329 fi
5330
5331
5332 fi
5333 if test -z "$ac_cv_path_PKG_CONFIG"; then
5334 ac_pt_PKG_CONFIG=$PKG_CONFIG
5335 # Extract the first word of "pkg-config", so it can be a program name with args.
5336 set dummy pkg-config; ac_word=$2
5337 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338 printf %s "checking for $ac_word... " >&6; }
5339 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
5340 then :
5341 printf %s "(cached) " >&6
5342 else case e in #(
5343 e) case $ac_pt_PKG_CONFIG in
5344 [\\/]* | ?:[\\/]*)
5345 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5346 ;;
5347 *)
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $PATH
5350 do
5351 IFS=$as_save_IFS
5352 case $as_dir in #(((
5353 '') as_dir=./ ;;
5354 */) ;;
5355 *) as_dir=$as_dir/ ;;
5356 esac
5357 for ac_exec_ext in '' $ac_executable_extensions; do
5358 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5359 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5360 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5361 break 2
5362 fi
5363 done
5364 done
5365 IFS=$as_save_IFS
5366
5367 ;;
5368 esac ;;
5369 esac
5370 fi
5371 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5372 if test -n "$ac_pt_PKG_CONFIG"; then
5373 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5374 printf '%s\n' "$ac_pt_PKG_CONFIG" >&6; }
5375 else
5376 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5377 printf '%s\n' "no" >&6; }
5378 fi
5379
5380 if test "x$ac_pt_PKG_CONFIG" = x; then
5381 PKG_CONFIG=""
5382 else
5383 case $cross_compiling:$ac_tool_warned in
5384 yes:)
5385 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5386 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5387 ac_tool_warned=yes ;;
5388 esac
5389 PKG_CONFIG=$ac_pt_PKG_CONFIG
5390 fi
5391 else
5392 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5393 fi
5394
5395 fi
5396 if test -n "$PKG_CONFIG"; then
5397 _pkg_min_version=0.9.0
5398 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5399 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5400 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5401 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5402 printf '%s\n' "yes" >&6; }
5403 else
5404 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405 printf '%s\n' "no" >&6; }
5406 PKG_CONFIG=""
5407 fi
5408 fi
5409
5410
5411 # Make sure we can run config.sub.
5412 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5413 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5414
5415 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5416 printf %s "checking build system type... " >&6; }
5417 if test ${ac_cv_build+y}
5418 then :
5419 printf %s "(cached) " >&6
5420 else case e in #(
5421 e) ac_build_alias=$build_alias
5422 test "x$ac_build_alias" = x &&
5423 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5424 test "x$ac_build_alias" = x &&
5425 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5426 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5427 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5428 ;;
5429 esac
5430 fi
5431 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5432 printf '%s\n' "$ac_cv_build" >&6; }
5433 case $ac_cv_build in
5434 *-*-*) ;;
5435 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5436 esac
5437 build=$ac_cv_build
5438 ac_save_IFS=$IFS; IFS='-'
5439 set x $ac_cv_build
5440 shift
5441 build_cpu=$1
5442 build_vendor=$2
5443 shift; shift
5444 # Remember, the first character of IFS is used to create $*,
5445 # except with old shells:
5446 build_os=$*
5447 IFS=$ac_save_IFS
5448 case $build_os in *\ *) build_os=`printf '%s\n' "$build_os" | sed 's/ /-/g'`;; esac
5449
5450
5451 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5452 printf %s "checking host system type... " >&6; }
5453 if test ${ac_cv_host+y}
5454 then :
5455 printf %s "(cached) " >&6
5456 else case e in #(
5457 e) if test "x$host_alias" = x; then
5458 ac_cv_host=$ac_cv_build
5459 else
5460 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5461 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5462 fi
5463 ;;
5464 esac
5465 fi
5466 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5467 printf '%s\n' "$ac_cv_host" >&6; }
5468 case $ac_cv_host in
5469 *-*-*) ;;
5470 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5471 esac
5472 host=$ac_cv_host
5473 ac_save_IFS=$IFS; IFS='-'
5474 set x $ac_cv_host
5475 shift
5476 host_cpu=$1
5477 host_vendor=$2
5478 shift; shift
5479 # Remember, the first character of IFS is used to create $*,
5480 # except with old shells:
5481 host_os=$*
5482 IFS=$ac_save_IFS
5483 case $host_os in *\ *) host_os=`printf '%s\n' "$host_os" | sed 's/ /-/g'`;; esac
5484
5485
5486 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5487 printf %s "checking for a sed that does not truncate output... " >&6; }
5488 if test ${ac_cv_path_SED+y}
5489 then :
5490 printf %s "(cached) " >&6
5491 else case e in #(
5492 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5493 for ac_i in 1 2 3 4 5 6 7; do
5494 ac_script="$ac_script$as_nl$ac_script"
5495 done
5496 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5497 { ac_script=; unset ac_script;}
5498 if test -z "$SED"; then
5499 ac_path_SED_found=false
5500 # Loop through the user's path and test for each of PROGNAME-LIST
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502 for as_dir in $PATH
5503 do
5504 IFS=$as_save_IFS
5505 case $as_dir in #(((
5506 '') as_dir=./ ;;
5507 */) ;;
5508 *) as_dir=$as_dir/ ;;
5509 esac
5510 for ac_prog in sed gsed
5511 do
5512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5514 as_fn_executable_p "$ac_path_SED" || continue
5515 # Check for GNU ac_path_SED and select it if it is found.
5516 # Check for GNU $ac_path_SED
5517 case `"$ac_path_SED" --version 2>&1` in #(
5518 *GNU*)
5519 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5520 #(
5521 *)
5522 ac_count=0
5523 printf %s 0123456789 >"conftest.in"
5524 while :
5525 do
5526 cat "conftest.in" "conftest.in" >"conftest.tmp"
5527 mv "conftest.tmp" "conftest.in"
5528 cp "conftest.in" "conftest.nl"
5529 printf '%s\n' '' >> "conftest.nl"
5530 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5531 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5532 as_fn_arith $ac_count + 1 && ac_count=$as_val
5533 if test $ac_count -gt ${ac_path_SED_max-0}; then
5534 # Best one so far, save it but keep looking for a better one
5535 ac_cv_path_SED="$ac_path_SED"
5536 ac_path_SED_max=$ac_count
5537 fi
5538 # 10*(2^10) chars as input seems more than enough
5539 test $ac_count -gt 10 && break
5540 done
5541 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5542 esac
5543
5544 $ac_path_SED_found && break 3
5545 done
5546 done
5547 done
5548 IFS=$as_save_IFS
5549 if test -z "$ac_cv_path_SED"; then
5550 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5551 fi
5552 else
5553 ac_cv_path_SED=$SED
5554 fi
5555 ;;
5556 esac
5557 fi
5558 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5559 printf '%s\n' "$ac_cv_path_SED" >&6; }
5560 SED="$ac_cv_path_SED"
5561 rm -f conftest.sed
5562
5563
5564
5565
5566
5567
5568 # Check whether --enable-selective-werror was given.
5569 if test ${enable_selective_werror+y}
5570 then :
5571 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5572 else case e in #(
5573 e) SELECTIVE_WERROR=yes ;;
5574 esac
5575 fi
5576
5577
5578
5579
5580
5581 # -v is too short to test reliably with XORG_TESTSET_CFLAG
5582 if test "x$SUNCC" = "xyes"; then
5583 BASE_CFLAGS="-v"
5584 else
5585 BASE_CFLAGS=""
5586 fi
5587
5588 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602 xorg_testset_save_CFLAGS="$CFLAGS"
5603
5604 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5606 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5607 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5608 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5609 then :
5610 printf %s "(cached) " >&6
5611 else case e in #(
5612 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613 /* end confdefs.h. */
5614 int i;
5615 _ACEOF
5616 if ac_fn_c_try_compile "$LINENO"
5617 then :
5618 xorg_cv_cc_flag_unknown_warning_option=yes
5619 else case e in #(
5620 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5621 esac
5622 fi
5623 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5624 esac
5625 fi
5626 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5627 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5628 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5629 CFLAGS="$xorg_testset_save_CFLAGS"
5630 fi
5631
5632 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5635 fi
5636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5637 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5638 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5639 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5640 then :
5641 printf %s "(cached) " >&6
5642 else case e in #(
5643 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644 /* end confdefs.h. */
5645 int i;
5646 _ACEOF
5647 if ac_fn_c_try_compile "$LINENO"
5648 then :
5649 xorg_cv_cc_flag_unused_command_line_argument=yes
5650 else case e in #(
5651 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5652 esac
5653 fi
5654 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5655 esac
5656 fi
5657 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5658 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5659 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5660 CFLAGS="$xorg_testset_save_CFLAGS"
5661 fi
5662
5663 found="no"
5664
5665 if test $found = "no" ; then
5666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5667 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5668 fi
5669
5670 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5672 fi
5673
5674 CFLAGS="$CFLAGS -Wall"
5675
5676 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5677 printf %s "checking if $CC supports -Wall... " >&6; }
5678 cacheid=xorg_cv_cc_flag__Wall
5679 if eval test \${$cacheid+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 int
5687 main (void)
5688 {
5689
5690 ;
5691 return 0;
5692 }
5693 _ACEOF
5694 if ac_fn_c_try_link "$LINENO"
5695 then :
5696 eval $cacheid=yes
5697 else case e in #(
5698 e) eval $cacheid=no ;;
5699 esac
5700 fi
5701 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5702 conftest$ac_exeext conftest.$ac_ext ;;
5703 esac
5704 fi
5705
5706
5707 CFLAGS="$xorg_testset_save_CFLAGS"
5708
5709 eval supported=\$$cacheid
5710 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5711 printf '%s\n' "$supported" >&6; }
5712 if test "$supported" = "yes" ; then
5713 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5714 found="yes"
5715 fi
5716 fi
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732 xorg_testset_save_CFLAGS="$CFLAGS"
5733
5734 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5736 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5737 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5738 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5739 then :
5740 printf %s "(cached) " >&6
5741 else case e in #(
5742 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743 /* end confdefs.h. */
5744 int i;
5745 _ACEOF
5746 if ac_fn_c_try_compile "$LINENO"
5747 then :
5748 xorg_cv_cc_flag_unknown_warning_option=yes
5749 else case e in #(
5750 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5751 esac
5752 fi
5753 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5754 esac
5755 fi
5756 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5757 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5758 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5759 CFLAGS="$xorg_testset_save_CFLAGS"
5760 fi
5761
5762 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5764 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5765 fi
5766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5767 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5768 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5769 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5770 then :
5771 printf %s "(cached) " >&6
5772 else case e in #(
5773 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5774 /* end confdefs.h. */
5775 int i;
5776 _ACEOF
5777 if ac_fn_c_try_compile "$LINENO"
5778 then :
5779 xorg_cv_cc_flag_unused_command_line_argument=yes
5780 else case e in #(
5781 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5782 esac
5783 fi
5784 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5785 esac
5786 fi
5787 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5788 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5789 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5790 CFLAGS="$xorg_testset_save_CFLAGS"
5791 fi
5792
5793 found="no"
5794
5795 if test $found = "no" ; then
5796 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5797 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5798 fi
5799
5800 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5802 fi
5803
5804 CFLAGS="$CFLAGS -Wpointer-arith"
5805
5806 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5807 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5808 cacheid=xorg_cv_cc_flag__Wpointer_arith
5809 if eval test \${$cacheid+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 int
5817 main (void)
5818 {
5819
5820 ;
5821 return 0;
5822 }
5823 _ACEOF
5824 if ac_fn_c_try_link "$LINENO"
5825 then :
5826 eval $cacheid=yes
5827 else case e in #(
5828 e) eval $cacheid=no ;;
5829 esac
5830 fi
5831 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5832 conftest$ac_exeext conftest.$ac_ext ;;
5833 esac
5834 fi
5835
5836
5837 CFLAGS="$xorg_testset_save_CFLAGS"
5838
5839 eval supported=\$$cacheid
5840 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5841 printf '%s\n' "$supported" >&6; }
5842 if test "$supported" = "yes" ; then
5843 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5844 found="yes"
5845 fi
5846 fi
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862 xorg_testset_save_CFLAGS="$CFLAGS"
5863
5864 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5866 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5867 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5868 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5869 then :
5870 printf %s "(cached) " >&6
5871 else case e in #(
5872 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5873 /* end confdefs.h. */
5874 int i;
5875 _ACEOF
5876 if ac_fn_c_try_compile "$LINENO"
5877 then :
5878 xorg_cv_cc_flag_unknown_warning_option=yes
5879 else case e in #(
5880 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5881 esac
5882 fi
5883 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5884 esac
5885 fi
5886 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5887 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5888 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5889 CFLAGS="$xorg_testset_save_CFLAGS"
5890 fi
5891
5892 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5895 fi
5896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5897 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5898 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5899 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5900 then :
5901 printf %s "(cached) " >&6
5902 else case e in #(
5903 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h. */
5905 int i;
5906 _ACEOF
5907 if ac_fn_c_try_compile "$LINENO"
5908 then :
5909 xorg_cv_cc_flag_unused_command_line_argument=yes
5910 else case e in #(
5911 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5912 esac
5913 fi
5914 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5915 esac
5916 fi
5917 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5918 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5919 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5920 CFLAGS="$xorg_testset_save_CFLAGS"
5921 fi
5922
5923 found="no"
5924
5925 if test $found = "no" ; then
5926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5928 fi
5929
5930 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5932 fi
5933
5934 CFLAGS="$CFLAGS -Wmissing-declarations"
5935
5936 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5937 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5938 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5939 if eval test \${$cacheid+y}
5940 then :
5941 printf %s "(cached) " >&6
5942 else case e in #(
5943 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944 /* end confdefs.h. */
5945 int i;
5946 int
5947 main (void)
5948 {
5949
5950 ;
5951 return 0;
5952 }
5953 _ACEOF
5954 if ac_fn_c_try_link "$LINENO"
5955 then :
5956 eval $cacheid=yes
5957 else case e in #(
5958 e) eval $cacheid=no ;;
5959 esac
5960 fi
5961 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5962 conftest$ac_exeext conftest.$ac_ext ;;
5963 esac
5964 fi
5965
5966
5967 CFLAGS="$xorg_testset_save_CFLAGS"
5968
5969 eval supported=\$$cacheid
5970 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5971 printf '%s\n' "$supported" >&6; }
5972 if test "$supported" = "yes" ; then
5973 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5974 found="yes"
5975 fi
5976 fi
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992 xorg_testset_save_CFLAGS="$CFLAGS"
5993
5994 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5996 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5997 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5998 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5999 then :
6000 printf %s "(cached) " >&6
6001 else case e in #(
6002 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6003 /* end confdefs.h. */
6004 int i;
6005 _ACEOF
6006 if ac_fn_c_try_compile "$LINENO"
6007 then :
6008 xorg_cv_cc_flag_unknown_warning_option=yes
6009 else case e in #(
6010 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6011 esac
6012 fi
6013 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6014 esac
6015 fi
6016 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6017 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6018 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6019 CFLAGS="$xorg_testset_save_CFLAGS"
6020 fi
6021
6022 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6025 fi
6026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6027 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6028 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6029 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6030 then :
6031 printf %s "(cached) " >&6
6032 else case e in #(
6033 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034 /* end confdefs.h. */
6035 int i;
6036 _ACEOF
6037 if ac_fn_c_try_compile "$LINENO"
6038 then :
6039 xorg_cv_cc_flag_unused_command_line_argument=yes
6040 else case e in #(
6041 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6042 esac
6043 fi
6044 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6045 esac
6046 fi
6047 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6048 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6049 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6050 CFLAGS="$xorg_testset_save_CFLAGS"
6051 fi
6052
6053 found="no"
6054
6055 if test $found = "no" ; then
6056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6058 fi
6059
6060 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6062 fi
6063
6064 CFLAGS="$CFLAGS -Wformat=2"
6065
6066 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
6067 printf %s "checking if $CC supports -Wformat=2... " >&6; }
6068 cacheid=xorg_cv_cc_flag__Wformat_2
6069 if eval test \${$cacheid+y}
6070 then :
6071 printf %s "(cached) " >&6
6072 else case e in #(
6073 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h. */
6075 int i;
6076 int
6077 main (void)
6078 {
6079
6080 ;
6081 return 0;
6082 }
6083 _ACEOF
6084 if ac_fn_c_try_link "$LINENO"
6085 then :
6086 eval $cacheid=yes
6087 else case e in #(
6088 e) eval $cacheid=no ;;
6089 esac
6090 fi
6091 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6092 conftest$ac_exeext conftest.$ac_ext ;;
6093 esac
6094 fi
6095
6096
6097 CFLAGS="$xorg_testset_save_CFLAGS"
6098
6099 eval supported=\$$cacheid
6100 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6101 printf '%s\n' "$supported" >&6; }
6102 if test "$supported" = "yes" ; then
6103 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
6104 found="yes"
6105 fi
6106 fi
6107
6108 if test $found = "no" ; then
6109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6111 fi
6112
6113 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6115 fi
6116
6117 CFLAGS="$CFLAGS -Wformat"
6118
6119 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
6120 printf %s "checking if $CC supports -Wformat... " >&6; }
6121 cacheid=xorg_cv_cc_flag__Wformat
6122 if eval test \${$cacheid+y}
6123 then :
6124 printf %s "(cached) " >&6
6125 else case e in #(
6126 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6127 /* end confdefs.h. */
6128 int i;
6129 int
6130 main (void)
6131 {
6132
6133 ;
6134 return 0;
6135 }
6136 _ACEOF
6137 if ac_fn_c_try_link "$LINENO"
6138 then :
6139 eval $cacheid=yes
6140 else case e in #(
6141 e) eval $cacheid=no ;;
6142 esac
6143 fi
6144 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6145 conftest$ac_exeext conftest.$ac_ext ;;
6146 esac
6147 fi
6148
6149
6150 CFLAGS="$xorg_testset_save_CFLAGS"
6151
6152 eval supported=\$$cacheid
6153 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6154 printf '%s\n' "$supported" >&6; }
6155 if test "$supported" = "yes" ; then
6156 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
6157 found="yes"
6158 fi
6159 fi
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177 xorg_testset_save_CFLAGS="$CFLAGS"
6178
6179 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6181 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6182 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6183 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6184 then :
6185 printf %s "(cached) " >&6
6186 else case e in #(
6187 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188 /* end confdefs.h. */
6189 int i;
6190 _ACEOF
6191 if ac_fn_c_try_compile "$LINENO"
6192 then :
6193 xorg_cv_cc_flag_unknown_warning_option=yes
6194 else case e in #(
6195 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6196 esac
6197 fi
6198 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6199 esac
6200 fi
6201 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6202 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6203 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6204 CFLAGS="$xorg_testset_save_CFLAGS"
6205 fi
6206
6207 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6210 fi
6211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6212 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6213 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6214 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6215 then :
6216 printf %s "(cached) " >&6
6217 else case e in #(
6218 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6219 /* end confdefs.h. */
6220 int i;
6221 _ACEOF
6222 if ac_fn_c_try_compile "$LINENO"
6223 then :
6224 xorg_cv_cc_flag_unused_command_line_argument=yes
6225 else case e in #(
6226 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6227 esac
6228 fi
6229 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6230 esac
6231 fi
6232 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6233 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6234 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6235 CFLAGS="$xorg_testset_save_CFLAGS"
6236 fi
6237
6238 found="no"
6239
6240 if test $found = "no" ; then
6241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6243 fi
6244
6245 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6247 fi
6248
6249 CFLAGS="$CFLAGS -Wstrict-prototypes"
6250
6251 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
6252 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
6253 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
6254 if eval test \${$cacheid+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 int
6262 main (void)
6263 {
6264
6265 ;
6266 return 0;
6267 }
6268 _ACEOF
6269 if ac_fn_c_try_link "$LINENO"
6270 then :
6271 eval $cacheid=yes
6272 else case e in #(
6273 e) eval $cacheid=no ;;
6274 esac
6275 fi
6276 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6277 conftest$ac_exeext conftest.$ac_ext ;;
6278 esac
6279 fi
6280
6281
6282 CFLAGS="$xorg_testset_save_CFLAGS"
6283
6284 eval supported=\$$cacheid
6285 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6286 printf '%s\n' "$supported" >&6; }
6287 if test "$supported" = "yes" ; then
6288 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
6289 found="yes"
6290 fi
6291 fi
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307 xorg_testset_save_CFLAGS="$CFLAGS"
6308
6309 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6310 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6311 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6312 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6313 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6314 then :
6315 printf %s "(cached) " >&6
6316 else case e in #(
6317 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6318 /* end confdefs.h. */
6319 int i;
6320 _ACEOF
6321 if ac_fn_c_try_compile "$LINENO"
6322 then :
6323 xorg_cv_cc_flag_unknown_warning_option=yes
6324 else case e in #(
6325 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6326 esac
6327 fi
6328 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6329 esac
6330 fi
6331 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6332 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6333 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6334 CFLAGS="$xorg_testset_save_CFLAGS"
6335 fi
6336
6337 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6340 fi
6341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6342 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6343 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6344 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6345 then :
6346 printf %s "(cached) " >&6
6347 else case e in #(
6348 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h. */
6350 int i;
6351 _ACEOF
6352 if ac_fn_c_try_compile "$LINENO"
6353 then :
6354 xorg_cv_cc_flag_unused_command_line_argument=yes
6355 else case e in #(
6356 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6357 esac
6358 fi
6359 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6360 esac
6361 fi
6362 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6363 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6365 CFLAGS="$xorg_testset_save_CFLAGS"
6366 fi
6367
6368 found="no"
6369
6370 if test $found = "no" ; then
6371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6373 fi
6374
6375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6377 fi
6378
6379 CFLAGS="$CFLAGS -Wmissing-prototypes"
6380
6381 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
6382 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
6383 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
6384 if eval test \${$cacheid+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 int
6392 main (void)
6393 {
6394
6395 ;
6396 return 0;
6397 }
6398 _ACEOF
6399 if ac_fn_c_try_link "$LINENO"
6400 then :
6401 eval $cacheid=yes
6402 else case e in #(
6403 e) eval $cacheid=no ;;
6404 esac
6405 fi
6406 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6407 conftest$ac_exeext conftest.$ac_ext ;;
6408 esac
6409 fi
6410
6411
6412 CFLAGS="$xorg_testset_save_CFLAGS"
6413
6414 eval supported=\$$cacheid
6415 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6416 printf '%s\n' "$supported" >&6; }
6417 if test "$supported" = "yes" ; then
6418 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
6419 found="yes"
6420 fi
6421 fi
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437 xorg_testset_save_CFLAGS="$CFLAGS"
6438
6439 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6441 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6442 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6443 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6444 then :
6445 printf %s "(cached) " >&6
6446 else case e in #(
6447 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448 /* end confdefs.h. */
6449 int i;
6450 _ACEOF
6451 if ac_fn_c_try_compile "$LINENO"
6452 then :
6453 xorg_cv_cc_flag_unknown_warning_option=yes
6454 else case e in #(
6455 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6456 esac
6457 fi
6458 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6459 esac
6460 fi
6461 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6462 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6464 CFLAGS="$xorg_testset_save_CFLAGS"
6465 fi
6466
6467 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6470 fi
6471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6472 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6473 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6474 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6475 then :
6476 printf %s "(cached) " >&6
6477 else case e in #(
6478 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479 /* end confdefs.h. */
6480 int i;
6481 _ACEOF
6482 if ac_fn_c_try_compile "$LINENO"
6483 then :
6484 xorg_cv_cc_flag_unused_command_line_argument=yes
6485 else case e in #(
6486 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6487 esac
6488 fi
6489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6490 esac
6491 fi
6492 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6493 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6494 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6495 CFLAGS="$xorg_testset_save_CFLAGS"
6496 fi
6497
6498 found="no"
6499
6500 if test $found = "no" ; then
6501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6503 fi
6504
6505 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6507 fi
6508
6509 CFLAGS="$CFLAGS -Wnested-externs"
6510
6511 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6512 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
6513 cacheid=xorg_cv_cc_flag__Wnested_externs
6514 if eval test \${$cacheid+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 int
6522 main (void)
6523 {
6524
6525 ;
6526 return 0;
6527 }
6528 _ACEOF
6529 if ac_fn_c_try_link "$LINENO"
6530 then :
6531 eval $cacheid=yes
6532 else case e in #(
6533 e) eval $cacheid=no ;;
6534 esac
6535 fi
6536 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6537 conftest$ac_exeext conftest.$ac_ext ;;
6538 esac
6539 fi
6540
6541
6542 CFLAGS="$xorg_testset_save_CFLAGS"
6543
6544 eval supported=\$$cacheid
6545 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6546 printf '%s\n' "$supported" >&6; }
6547 if test "$supported" = "yes" ; then
6548 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6549 found="yes"
6550 fi
6551 fi
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567 xorg_testset_save_CFLAGS="$CFLAGS"
6568
6569 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6570 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6571 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6572 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6573 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6574 then :
6575 printf %s "(cached) " >&6
6576 else case e in #(
6577 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6578 /* end confdefs.h. */
6579 int i;
6580 _ACEOF
6581 if ac_fn_c_try_compile "$LINENO"
6582 then :
6583 xorg_cv_cc_flag_unknown_warning_option=yes
6584 else case e in #(
6585 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6586 esac
6587 fi
6588 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6589 esac
6590 fi
6591 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6592 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6593 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6594 CFLAGS="$xorg_testset_save_CFLAGS"
6595 fi
6596
6597 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6599 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6600 fi
6601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6602 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6603 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6604 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6605 then :
6606 printf %s "(cached) " >&6
6607 else case e in #(
6608 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6609 /* end confdefs.h. */
6610 int i;
6611 _ACEOF
6612 if ac_fn_c_try_compile "$LINENO"
6613 then :
6614 xorg_cv_cc_flag_unused_command_line_argument=yes
6615 else case e in #(
6616 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6617 esac
6618 fi
6619 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6620 esac
6621 fi
6622 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6623 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6624 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6625 CFLAGS="$xorg_testset_save_CFLAGS"
6626 fi
6627
6628 found="no"
6629
6630 if test $found = "no" ; then
6631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6633 fi
6634
6635 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6637 fi
6638
6639 CFLAGS="$CFLAGS -Wbad-function-cast"
6640
6641 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6642 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6643 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6644 if eval test \${$cacheid+y}
6645 then :
6646 printf %s "(cached) " >&6
6647 else case e in #(
6648 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6649 /* end confdefs.h. */
6650 int i;
6651 int
6652 main (void)
6653 {
6654
6655 ;
6656 return 0;
6657 }
6658 _ACEOF
6659 if ac_fn_c_try_link "$LINENO"
6660 then :
6661 eval $cacheid=yes
6662 else case e in #(
6663 e) eval $cacheid=no ;;
6664 esac
6665 fi
6666 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6667 conftest$ac_exeext conftest.$ac_ext ;;
6668 esac
6669 fi
6670
6671
6672 CFLAGS="$xorg_testset_save_CFLAGS"
6673
6674 eval supported=\$$cacheid
6675 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6676 printf '%s\n' "$supported" >&6; }
6677 if test "$supported" = "yes" ; then
6678 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6679 found="yes"
6680 fi
6681 fi
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697 xorg_testset_save_CFLAGS="$CFLAGS"
6698
6699 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6701 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6702 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6703 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6704 then :
6705 printf %s "(cached) " >&6
6706 else case e in #(
6707 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6708 /* end confdefs.h. */
6709 int i;
6710 _ACEOF
6711 if ac_fn_c_try_compile "$LINENO"
6712 then :
6713 xorg_cv_cc_flag_unknown_warning_option=yes
6714 else case e in #(
6715 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6716 esac
6717 fi
6718 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6719 esac
6720 fi
6721 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6722 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6723 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6724 CFLAGS="$xorg_testset_save_CFLAGS"
6725 fi
6726
6727 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6730 fi
6731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6732 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6733 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6734 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6735 then :
6736 printf %s "(cached) " >&6
6737 else case e in #(
6738 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h. */
6740 int i;
6741 _ACEOF
6742 if ac_fn_c_try_compile "$LINENO"
6743 then :
6744 xorg_cv_cc_flag_unused_command_line_argument=yes
6745 else case e in #(
6746 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6747 esac
6748 fi
6749 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6750 esac
6751 fi
6752 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6753 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6754 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6755 CFLAGS="$xorg_testset_save_CFLAGS"
6756 fi
6757
6758 found="no"
6759
6760 if test $found = "no" ; then
6761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6763 fi
6764
6765 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6767 fi
6768
6769 CFLAGS="$CFLAGS -Wold-style-definition"
6770
6771 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6772 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6773 cacheid=xorg_cv_cc_flag__Wold_style_definition
6774 if eval test \${$cacheid+y}
6775 then :
6776 printf %s "(cached) " >&6
6777 else case e in #(
6778 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779 /* end confdefs.h. */
6780 int i;
6781 int
6782 main (void)
6783 {
6784
6785 ;
6786 return 0;
6787 }
6788 _ACEOF
6789 if ac_fn_c_try_link "$LINENO"
6790 then :
6791 eval $cacheid=yes
6792 else case e in #(
6793 e) eval $cacheid=no ;;
6794 esac
6795 fi
6796 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6797 conftest$ac_exeext conftest.$ac_ext ;;
6798 esac
6799 fi
6800
6801
6802 CFLAGS="$xorg_testset_save_CFLAGS"
6803
6804 eval supported=\$$cacheid
6805 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6806 printf '%s\n' "$supported" >&6; }
6807 if test "$supported" = "yes" ; then
6808 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6809 found="yes"
6810 fi
6811 fi
6812
6813 if test $found = "no" ; then
6814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6816 fi
6817
6818 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6820 fi
6821
6822 CFLAGS="$CFLAGS -fd"
6823
6824 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6825 printf %s "checking if $CC supports -fd... " >&6; }
6826 cacheid=xorg_cv_cc_flag__fd
6827 if eval test \${$cacheid+y}
6828 then :
6829 printf %s "(cached) " >&6
6830 else case e in #(
6831 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6832 /* end confdefs.h. */
6833 int i;
6834 int
6835 main (void)
6836 {
6837
6838 ;
6839 return 0;
6840 }
6841 _ACEOF
6842 if ac_fn_c_try_link "$LINENO"
6843 then :
6844 eval $cacheid=yes
6845 else case e in #(
6846 e) eval $cacheid=no ;;
6847 esac
6848 fi
6849 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6850 conftest$ac_exeext conftest.$ac_ext ;;
6851 esac
6852 fi
6853
6854
6855 CFLAGS="$xorg_testset_save_CFLAGS"
6856
6857 eval supported=\$$cacheid
6858 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6859 printf '%s\n' "$supported" >&6; }
6860 if test "$supported" = "yes" ; then
6861 BASE_CFLAGS="$BASE_CFLAGS -fd"
6862 found="yes"
6863 fi
6864 fi
6865
6866
6867
6868
6869
6870 # This chunk adds additional warnings that could catch undesired effects.
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884 xorg_testset_save_CFLAGS="$CFLAGS"
6885
6886 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6888 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6889 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6890 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6891 then :
6892 printf %s "(cached) " >&6
6893 else case e in #(
6894 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h. */
6896 int i;
6897 _ACEOF
6898 if ac_fn_c_try_compile "$LINENO"
6899 then :
6900 xorg_cv_cc_flag_unknown_warning_option=yes
6901 else case e in #(
6902 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6903 esac
6904 fi
6905 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6906 esac
6907 fi
6908 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6909 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6910 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6911 CFLAGS="$xorg_testset_save_CFLAGS"
6912 fi
6913
6914 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6917 fi
6918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6919 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6920 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6921 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6922 then :
6923 printf %s "(cached) " >&6
6924 else case e in #(
6925 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6926 /* end confdefs.h. */
6927 int i;
6928 _ACEOF
6929 if ac_fn_c_try_compile "$LINENO"
6930 then :
6931 xorg_cv_cc_flag_unused_command_line_argument=yes
6932 else case e in #(
6933 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6934 esac
6935 fi
6936 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6937 esac
6938 fi
6939 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6940 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6941 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6942 CFLAGS="$xorg_testset_save_CFLAGS"
6943 fi
6944
6945 found="no"
6946
6947 if test $found = "no" ; then
6948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6949 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6950 fi
6951
6952 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6954 fi
6955
6956 CFLAGS="$CFLAGS -Wunused"
6957
6958 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6959 printf %s "checking if $CC supports -Wunused... " >&6; }
6960 cacheid=xorg_cv_cc_flag__Wunused
6961 if eval test \${$cacheid+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 int
6969 main (void)
6970 {
6971
6972 ;
6973 return 0;
6974 }
6975 _ACEOF
6976 if ac_fn_c_try_link "$LINENO"
6977 then :
6978 eval $cacheid=yes
6979 else case e in #(
6980 e) eval $cacheid=no ;;
6981 esac
6982 fi
6983 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6984 conftest$ac_exeext conftest.$ac_ext ;;
6985 esac
6986 fi
6987
6988
6989 CFLAGS="$xorg_testset_save_CFLAGS"
6990
6991 eval supported=\$$cacheid
6992 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6993 printf '%s\n' "$supported" >&6; }
6994 if test "$supported" = "yes" ; then
6995 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6996 found="yes"
6997 fi
6998 fi
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014 xorg_testset_save_CFLAGS="$CFLAGS"
7015
7016 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7018 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7019 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7020 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7021 then :
7022 printf %s "(cached) " >&6
7023 else case e in #(
7024 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7025 /* end confdefs.h. */
7026 int i;
7027 _ACEOF
7028 if ac_fn_c_try_compile "$LINENO"
7029 then :
7030 xorg_cv_cc_flag_unknown_warning_option=yes
7031 else case e in #(
7032 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7033 esac
7034 fi
7035 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7036 esac
7037 fi
7038 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7039 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7040 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7041 CFLAGS="$xorg_testset_save_CFLAGS"
7042 fi
7043
7044 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7046 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7047 fi
7048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7049 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7050 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7051 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7052 then :
7053 printf %s "(cached) " >&6
7054 else case e in #(
7055 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7056 /* end confdefs.h. */
7057 int i;
7058 _ACEOF
7059 if ac_fn_c_try_compile "$LINENO"
7060 then :
7061 xorg_cv_cc_flag_unused_command_line_argument=yes
7062 else case e in #(
7063 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7064 esac
7065 fi
7066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7067 esac
7068 fi
7069 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7070 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7071 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7072 CFLAGS="$xorg_testset_save_CFLAGS"
7073 fi
7074
7075 found="no"
7076
7077 if test $found = "no" ; then
7078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7080 fi
7081
7082 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7084 fi
7085
7086 CFLAGS="$CFLAGS -Wuninitialized"
7087
7088 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
7089 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
7090 cacheid=xorg_cv_cc_flag__Wuninitialized
7091 if eval test \${$cacheid+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 int
7099 main (void)
7100 {
7101
7102 ;
7103 return 0;
7104 }
7105 _ACEOF
7106 if ac_fn_c_try_link "$LINENO"
7107 then :
7108 eval $cacheid=yes
7109 else case e in #(
7110 e) eval $cacheid=no ;;
7111 esac
7112 fi
7113 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7114 conftest$ac_exeext conftest.$ac_ext ;;
7115 esac
7116 fi
7117
7118
7119 CFLAGS="$xorg_testset_save_CFLAGS"
7120
7121 eval supported=\$$cacheid
7122 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7123 printf '%s\n' "$supported" >&6; }
7124 if test "$supported" = "yes" ; then
7125 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
7126 found="yes"
7127 fi
7128 fi
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144 xorg_testset_save_CFLAGS="$CFLAGS"
7145
7146 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7148 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7149 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7150 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7151 then :
7152 printf %s "(cached) " >&6
7153 else case e in #(
7154 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7155 /* end confdefs.h. */
7156 int i;
7157 _ACEOF
7158 if ac_fn_c_try_compile "$LINENO"
7159 then :
7160 xorg_cv_cc_flag_unknown_warning_option=yes
7161 else case e in #(
7162 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7163 esac
7164 fi
7165 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7166 esac
7167 fi
7168 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7169 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7170 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7171 CFLAGS="$xorg_testset_save_CFLAGS"
7172 fi
7173
7174 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7177 fi
7178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7179 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7180 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7181 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7182 then :
7183 printf %s "(cached) " >&6
7184 else case e in #(
7185 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7186 /* end confdefs.h. */
7187 int i;
7188 _ACEOF
7189 if ac_fn_c_try_compile "$LINENO"
7190 then :
7191 xorg_cv_cc_flag_unused_command_line_argument=yes
7192 else case e in #(
7193 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7194 esac
7195 fi
7196 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7197 esac
7198 fi
7199 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7200 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7201 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7202 CFLAGS="$xorg_testset_save_CFLAGS"
7203 fi
7204
7205 found="no"
7206
7207 if test $found = "no" ; then
7208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7210 fi
7211
7212 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7214 fi
7215
7216 CFLAGS="$CFLAGS -Wshadow"
7217
7218 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
7219 printf %s "checking if $CC supports -Wshadow... " >&6; }
7220 cacheid=xorg_cv_cc_flag__Wshadow
7221 if eval test \${$cacheid+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 int
7229 main (void)
7230 {
7231
7232 ;
7233 return 0;
7234 }
7235 _ACEOF
7236 if ac_fn_c_try_link "$LINENO"
7237 then :
7238 eval $cacheid=yes
7239 else case e in #(
7240 e) eval $cacheid=no ;;
7241 esac
7242 fi
7243 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7244 conftest$ac_exeext conftest.$ac_ext ;;
7245 esac
7246 fi
7247
7248
7249 CFLAGS="$xorg_testset_save_CFLAGS"
7250
7251 eval supported=\$$cacheid
7252 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7253 printf '%s\n' "$supported" >&6; }
7254 if test "$supported" = "yes" ; then
7255 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
7256 found="yes"
7257 fi
7258 fi
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274 xorg_testset_save_CFLAGS="$CFLAGS"
7275
7276 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7277 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7278 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7279 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7280 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7281 then :
7282 printf %s "(cached) " >&6
7283 else case e in #(
7284 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285 /* end confdefs.h. */
7286 int i;
7287 _ACEOF
7288 if ac_fn_c_try_compile "$LINENO"
7289 then :
7290 xorg_cv_cc_flag_unknown_warning_option=yes
7291 else case e in #(
7292 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7293 esac
7294 fi
7295 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7296 esac
7297 fi
7298 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7299 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7300 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7301 CFLAGS="$xorg_testset_save_CFLAGS"
7302 fi
7303
7304 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7306 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7307 fi
7308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7309 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7310 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7311 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7312 then :
7313 printf %s "(cached) " >&6
7314 else case e in #(
7315 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7316 /* end confdefs.h. */
7317 int i;
7318 _ACEOF
7319 if ac_fn_c_try_compile "$LINENO"
7320 then :
7321 xorg_cv_cc_flag_unused_command_line_argument=yes
7322 else case e in #(
7323 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7324 esac
7325 fi
7326 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7327 esac
7328 fi
7329 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7330 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7331 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7332 CFLAGS="$xorg_testset_save_CFLAGS"
7333 fi
7334
7335 found="no"
7336
7337 if test $found = "no" ; then
7338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7340 fi
7341
7342 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7344 fi
7345
7346 CFLAGS="$CFLAGS -Wmissing-noreturn"
7347
7348 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
7349 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
7350 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
7351 if eval test \${$cacheid+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 int
7359 main (void)
7360 {
7361
7362 ;
7363 return 0;
7364 }
7365 _ACEOF
7366 if ac_fn_c_try_link "$LINENO"
7367 then :
7368 eval $cacheid=yes
7369 else case e in #(
7370 e) eval $cacheid=no ;;
7371 esac
7372 fi
7373 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7374 conftest$ac_exeext conftest.$ac_ext ;;
7375 esac
7376 fi
7377
7378
7379 CFLAGS="$xorg_testset_save_CFLAGS"
7380
7381 eval supported=\$$cacheid
7382 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7383 printf '%s\n' "$supported" >&6; }
7384 if test "$supported" = "yes" ; then
7385 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7386 found="yes"
7387 fi
7388 fi
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404 xorg_testset_save_CFLAGS="$CFLAGS"
7405
7406 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7408 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7409 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7410 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7411 then :
7412 printf %s "(cached) " >&6
7413 else case e in #(
7414 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7415 /* end confdefs.h. */
7416 int i;
7417 _ACEOF
7418 if ac_fn_c_try_compile "$LINENO"
7419 then :
7420 xorg_cv_cc_flag_unknown_warning_option=yes
7421 else case e in #(
7422 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7423 esac
7424 fi
7425 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7426 esac
7427 fi
7428 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7429 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7430 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7431 CFLAGS="$xorg_testset_save_CFLAGS"
7432 fi
7433
7434 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7437 fi
7438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7439 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7440 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7441 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7442 then :
7443 printf %s "(cached) " >&6
7444 else case e in #(
7445 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7446 /* end confdefs.h. */
7447 int i;
7448 _ACEOF
7449 if ac_fn_c_try_compile "$LINENO"
7450 then :
7451 xorg_cv_cc_flag_unused_command_line_argument=yes
7452 else case e in #(
7453 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7454 esac
7455 fi
7456 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7457 esac
7458 fi
7459 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7460 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7461 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7462 CFLAGS="$xorg_testset_save_CFLAGS"
7463 fi
7464
7465 found="no"
7466
7467 if test $found = "no" ; then
7468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7470 fi
7471
7472 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7474 fi
7475
7476 CFLAGS="$CFLAGS -Wmissing-format-attribute"
7477
7478 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7479 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7480 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7481 if eval test \${$cacheid+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 int
7489 main (void)
7490 {
7491
7492 ;
7493 return 0;
7494 }
7495 _ACEOF
7496 if ac_fn_c_try_link "$LINENO"
7497 then :
7498 eval $cacheid=yes
7499 else case e in #(
7500 e) eval $cacheid=no ;;
7501 esac
7502 fi
7503 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7504 conftest$ac_exeext conftest.$ac_ext ;;
7505 esac
7506 fi
7507
7508
7509 CFLAGS="$xorg_testset_save_CFLAGS"
7510
7511 eval supported=\$$cacheid
7512 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7513 printf '%s\n' "$supported" >&6; }
7514 if test "$supported" = "yes" ; then
7515 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7516 found="yes"
7517 fi
7518 fi
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534 xorg_testset_save_CFLAGS="$CFLAGS"
7535
7536 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7537 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7538 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7539 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7540 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7541 then :
7542 printf %s "(cached) " >&6
7543 else case e in #(
7544 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7545 /* end confdefs.h. */
7546 int i;
7547 _ACEOF
7548 if ac_fn_c_try_compile "$LINENO"
7549 then :
7550 xorg_cv_cc_flag_unknown_warning_option=yes
7551 else case e in #(
7552 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7553 esac
7554 fi
7555 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7556 esac
7557 fi
7558 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7559 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7560 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7561 CFLAGS="$xorg_testset_save_CFLAGS"
7562 fi
7563
7564 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7565 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7567 fi
7568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7569 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7570 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7571 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7572 then :
7573 printf %s "(cached) " >&6
7574 else case e in #(
7575 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7576 /* end confdefs.h. */
7577 int i;
7578 _ACEOF
7579 if ac_fn_c_try_compile "$LINENO"
7580 then :
7581 xorg_cv_cc_flag_unused_command_line_argument=yes
7582 else case e in #(
7583 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7584 esac
7585 fi
7586 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7587 esac
7588 fi
7589 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7590 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7591 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7592 CFLAGS="$xorg_testset_save_CFLAGS"
7593 fi
7594
7595 found="no"
7596
7597 if test $found = "no" ; then
7598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7599 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7600 fi
7601
7602 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7604 fi
7605
7606 CFLAGS="$CFLAGS -Wredundant-decls"
7607
7608 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7609 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7610 cacheid=xorg_cv_cc_flag__Wredundant_decls
7611 if eval test \${$cacheid+y}
7612 then :
7613 printf %s "(cached) " >&6
7614 else case e in #(
7615 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7616 /* end confdefs.h. */
7617 int i;
7618 int
7619 main (void)
7620 {
7621
7622 ;
7623 return 0;
7624 }
7625 _ACEOF
7626 if ac_fn_c_try_link "$LINENO"
7627 then :
7628 eval $cacheid=yes
7629 else case e in #(
7630 e) eval $cacheid=no ;;
7631 esac
7632 fi
7633 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7634 conftest$ac_exeext conftest.$ac_ext ;;
7635 esac
7636 fi
7637
7638
7639 CFLAGS="$xorg_testset_save_CFLAGS"
7640
7641 eval supported=\$$cacheid
7642 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7643 printf '%s\n' "$supported" >&6; }
7644 if test "$supported" = "yes" ; then
7645 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7646 found="yes"
7647 fi
7648 fi
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664 xorg_testset_save_CFLAGS="$CFLAGS"
7665
7666 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7667 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7668 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7669 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7670 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7671 then :
7672 printf %s "(cached) " >&6
7673 else case e in #(
7674 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675 /* end confdefs.h. */
7676 int i;
7677 _ACEOF
7678 if ac_fn_c_try_compile "$LINENO"
7679 then :
7680 xorg_cv_cc_flag_unknown_warning_option=yes
7681 else case e in #(
7682 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7683 esac
7684 fi
7685 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7686 esac
7687 fi
7688 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7689 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7690 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7691 CFLAGS="$xorg_testset_save_CFLAGS"
7692 fi
7693
7694 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7695 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7696 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7697 fi
7698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7699 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7700 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7701 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7702 then :
7703 printf %s "(cached) " >&6
7704 else case e in #(
7705 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706 /* end confdefs.h. */
7707 int i;
7708 _ACEOF
7709 if ac_fn_c_try_compile "$LINENO"
7710 then :
7711 xorg_cv_cc_flag_unused_command_line_argument=yes
7712 else case e in #(
7713 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7714 esac
7715 fi
7716 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7717 esac
7718 fi
7719 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7720 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7721 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7722 CFLAGS="$xorg_testset_save_CFLAGS"
7723 fi
7724
7725 found="no"
7726
7727 if test $found = "no" ; then
7728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7730 fi
7731
7732 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7734 fi
7735
7736 CFLAGS="$CFLAGS -Wlogical-op"
7737
7738 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7739 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7740 cacheid=xorg_cv_cc_flag__Wlogical_op
7741 if eval test \${$cacheid+y}
7742 then :
7743 printf %s "(cached) " >&6
7744 else case e in #(
7745 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7746 /* end confdefs.h. */
7747 int i;
7748 int
7749 main (void)
7750 {
7751
7752 ;
7753 return 0;
7754 }
7755 _ACEOF
7756 if ac_fn_c_try_link "$LINENO"
7757 then :
7758 eval $cacheid=yes
7759 else case e in #(
7760 e) eval $cacheid=no ;;
7761 esac
7762 fi
7763 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7764 conftest$ac_exeext conftest.$ac_ext ;;
7765 esac
7766 fi
7767
7768
7769 CFLAGS="$xorg_testset_save_CFLAGS"
7770
7771 eval supported=\$$cacheid
7772 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7773 printf '%s\n' "$supported" >&6; }
7774 if test "$supported" = "yes" ; then
7775 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7776 found="yes"
7777 fi
7778 fi
7779
7780
7781
7782 # These are currently disabled because they are noisy. They will be enabled
7783 # in the future once the codebase is sufficiently modernized to silence
7784 # them. For now, I don't want them to drown out the other warnings.
7785 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7786 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7787 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7788
7789 # Turn some warnings into errors, so we don't accidentally get successful builds
7790 # when there are problems that should be fixed.
7791
7792 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806 xorg_testset_save_CFLAGS="$CFLAGS"
7807
7808 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7809 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7810 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7811 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7812 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7813 then :
7814 printf %s "(cached) " >&6
7815 else case e in #(
7816 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7817 /* end confdefs.h. */
7818 int i;
7819 _ACEOF
7820 if ac_fn_c_try_compile "$LINENO"
7821 then :
7822 xorg_cv_cc_flag_unknown_warning_option=yes
7823 else case e in #(
7824 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7825 esac
7826 fi
7827 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7828 esac
7829 fi
7830 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7831 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7832 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7833 CFLAGS="$xorg_testset_save_CFLAGS"
7834 fi
7835
7836 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7839 fi
7840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7841 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7842 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7843 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7844 then :
7845 printf %s "(cached) " >&6
7846 else case e in #(
7847 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848 /* end confdefs.h. */
7849 int i;
7850 _ACEOF
7851 if ac_fn_c_try_compile "$LINENO"
7852 then :
7853 xorg_cv_cc_flag_unused_command_line_argument=yes
7854 else case e in #(
7855 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7856 esac
7857 fi
7858 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7859 esac
7860 fi
7861 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7862 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7863 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7864 CFLAGS="$xorg_testset_save_CFLAGS"
7865 fi
7866
7867 found="no"
7868
7869 if test $found = "no" ; then
7870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7872 fi
7873
7874 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7876 fi
7877
7878 CFLAGS="$CFLAGS -Werror=implicit"
7879
7880 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7881 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7882 cacheid=xorg_cv_cc_flag__Werror_implicit
7883 if eval test \${$cacheid+y}
7884 then :
7885 printf %s "(cached) " >&6
7886 else case e in #(
7887 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7888 /* end confdefs.h. */
7889 int i;
7890 int
7891 main (void)
7892 {
7893
7894 ;
7895 return 0;
7896 }
7897 _ACEOF
7898 if ac_fn_c_try_link "$LINENO"
7899 then :
7900 eval $cacheid=yes
7901 else case e in #(
7902 e) eval $cacheid=no ;;
7903 esac
7904 fi
7905 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7906 conftest$ac_exeext conftest.$ac_ext ;;
7907 esac
7908 fi
7909
7910
7911 CFLAGS="$xorg_testset_save_CFLAGS"
7912
7913 eval supported=\$$cacheid
7914 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7915 printf '%s\n' "$supported" >&6; }
7916 if test "$supported" = "yes" ; then
7917 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7918 found="yes"
7919 fi
7920 fi
7921
7922 if test $found = "no" ; then
7923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7924 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7925 fi
7926
7927 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7929 fi
7930
7931 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7932
7933 { 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
7934 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7935 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7936 if eval test \${$cacheid+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 int
7944 main (void)
7945 {
7946
7947 ;
7948 return 0;
7949 }
7950 _ACEOF
7951 if ac_fn_c_try_link "$LINENO"
7952 then :
7953 eval $cacheid=yes
7954 else case e in #(
7955 e) eval $cacheid=no ;;
7956 esac
7957 fi
7958 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7959 conftest$ac_exeext conftest.$ac_ext ;;
7960 esac
7961 fi
7962
7963
7964 CFLAGS="$xorg_testset_save_CFLAGS"
7965
7966 eval supported=\$$cacheid
7967 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7968 printf '%s\n' "$supported" >&6; }
7969 if test "$supported" = "yes" ; then
7970 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7971 found="yes"
7972 fi
7973 fi
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989 xorg_testset_save_CFLAGS="$CFLAGS"
7990
7991 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7993 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7994 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7995 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7996 then :
7997 printf %s "(cached) " >&6
7998 else case e in #(
7999 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8000 /* end confdefs.h. */
8001 int i;
8002 _ACEOF
8003 if ac_fn_c_try_compile "$LINENO"
8004 then :
8005 xorg_cv_cc_flag_unknown_warning_option=yes
8006 else case e in #(
8007 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8008 esac
8009 fi
8010 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8011 esac
8012 fi
8013 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8014 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8015 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8016 CFLAGS="$xorg_testset_save_CFLAGS"
8017 fi
8018
8019 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8022 fi
8023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8024 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8025 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8026 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8027 then :
8028 printf %s "(cached) " >&6
8029 else case e in #(
8030 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8031 /* end confdefs.h. */
8032 int i;
8033 _ACEOF
8034 if ac_fn_c_try_compile "$LINENO"
8035 then :
8036 xorg_cv_cc_flag_unused_command_line_argument=yes
8037 else case e in #(
8038 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8039 esac
8040 fi
8041 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8042 esac
8043 fi
8044 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8045 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8046 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8047 CFLAGS="$xorg_testset_save_CFLAGS"
8048 fi
8049
8050 found="no"
8051
8052 if test $found = "no" ; then
8053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8054 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8055 fi
8056
8057 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8059 fi
8060
8061 CFLAGS="$CFLAGS -Werror=nonnull"
8062
8063 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
8064 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
8065 cacheid=xorg_cv_cc_flag__Werror_nonnull
8066 if eval test \${$cacheid+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 int
8074 main (void)
8075 {
8076
8077 ;
8078 return 0;
8079 }
8080 _ACEOF
8081 if ac_fn_c_try_link "$LINENO"
8082 then :
8083 eval $cacheid=yes
8084 else case e in #(
8085 e) eval $cacheid=no ;;
8086 esac
8087 fi
8088 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8089 conftest$ac_exeext conftest.$ac_ext ;;
8090 esac
8091 fi
8092
8093
8094 CFLAGS="$xorg_testset_save_CFLAGS"
8095
8096 eval supported=\$$cacheid
8097 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8098 printf '%s\n' "$supported" >&6; }
8099 if test "$supported" = "yes" ; then
8100 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
8101 found="yes"
8102 fi
8103 fi
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119 xorg_testset_save_CFLAGS="$CFLAGS"
8120
8121 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8122 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8123 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8124 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8125 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8126 then :
8127 printf %s "(cached) " >&6
8128 else case e in #(
8129 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8130 /* end confdefs.h. */
8131 int i;
8132 _ACEOF
8133 if ac_fn_c_try_compile "$LINENO"
8134 then :
8135 xorg_cv_cc_flag_unknown_warning_option=yes
8136 else case e in #(
8137 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8138 esac
8139 fi
8140 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8141 esac
8142 fi
8143 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8144 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8145 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8146 CFLAGS="$xorg_testset_save_CFLAGS"
8147 fi
8148
8149 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8152 fi
8153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8154 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8155 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8156 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8157 then :
8158 printf %s "(cached) " >&6
8159 else case e in #(
8160 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8161 /* end confdefs.h. */
8162 int i;
8163 _ACEOF
8164 if ac_fn_c_try_compile "$LINENO"
8165 then :
8166 xorg_cv_cc_flag_unused_command_line_argument=yes
8167 else case e in #(
8168 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8169 esac
8170 fi
8171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8172 esac
8173 fi
8174 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8175 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8176 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8177 CFLAGS="$xorg_testset_save_CFLAGS"
8178 fi
8179
8180 found="no"
8181
8182 if test $found = "no" ; then
8183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8185 fi
8186
8187 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8189 fi
8190
8191 CFLAGS="$CFLAGS -Werror=init-self"
8192
8193 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
8194 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
8195 cacheid=xorg_cv_cc_flag__Werror_init_self
8196 if eval test \${$cacheid+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 int
8204 main (void)
8205 {
8206
8207 ;
8208 return 0;
8209 }
8210 _ACEOF
8211 if ac_fn_c_try_link "$LINENO"
8212 then :
8213 eval $cacheid=yes
8214 else case e in #(
8215 e) eval $cacheid=no ;;
8216 esac
8217 fi
8218 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8219 conftest$ac_exeext conftest.$ac_ext ;;
8220 esac
8221 fi
8222
8223
8224 CFLAGS="$xorg_testset_save_CFLAGS"
8225
8226 eval supported=\$$cacheid
8227 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8228 printf '%s\n' "$supported" >&6; }
8229 if test "$supported" = "yes" ; then
8230 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
8231 found="yes"
8232 fi
8233 fi
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249 xorg_testset_save_CFLAGS="$CFLAGS"
8250
8251 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8252 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8253 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8254 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8255 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8256 then :
8257 printf %s "(cached) " >&6
8258 else case e in #(
8259 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8260 /* end confdefs.h. */
8261 int i;
8262 _ACEOF
8263 if ac_fn_c_try_compile "$LINENO"
8264 then :
8265 xorg_cv_cc_flag_unknown_warning_option=yes
8266 else case e in #(
8267 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8268 esac
8269 fi
8270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8271 esac
8272 fi
8273 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8274 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8275 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8276 CFLAGS="$xorg_testset_save_CFLAGS"
8277 fi
8278
8279 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8281 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8282 fi
8283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8284 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8285 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8286 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8287 then :
8288 printf %s "(cached) " >&6
8289 else case e in #(
8290 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8291 /* end confdefs.h. */
8292 int i;
8293 _ACEOF
8294 if ac_fn_c_try_compile "$LINENO"
8295 then :
8296 xorg_cv_cc_flag_unused_command_line_argument=yes
8297 else case e in #(
8298 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8299 esac
8300 fi
8301 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8302 esac
8303 fi
8304 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8305 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8306 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8307 CFLAGS="$xorg_testset_save_CFLAGS"
8308 fi
8309
8310 found="no"
8311
8312 if test $found = "no" ; then
8313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8315 fi
8316
8317 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8319 fi
8320
8321 CFLAGS="$CFLAGS -Werror=main"
8322
8323 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
8324 printf %s "checking if $CC supports -Werror=main... " >&6; }
8325 cacheid=xorg_cv_cc_flag__Werror_main
8326 if eval test \${$cacheid+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 int
8334 main (void)
8335 {
8336
8337 ;
8338 return 0;
8339 }
8340 _ACEOF
8341 if ac_fn_c_try_link "$LINENO"
8342 then :
8343 eval $cacheid=yes
8344 else case e in #(
8345 e) eval $cacheid=no ;;
8346 esac
8347 fi
8348 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8349 conftest$ac_exeext conftest.$ac_ext ;;
8350 esac
8351 fi
8352
8353
8354 CFLAGS="$xorg_testset_save_CFLAGS"
8355
8356 eval supported=\$$cacheid
8357 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8358 printf '%s\n' "$supported" >&6; }
8359 if test "$supported" = "yes" ; then
8360 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
8361 found="yes"
8362 fi
8363 fi
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379 xorg_testset_save_CFLAGS="$CFLAGS"
8380
8381 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8383 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8384 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8385 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8386 then :
8387 printf %s "(cached) " >&6
8388 else case e in #(
8389 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8390 /* end confdefs.h. */
8391 int i;
8392 _ACEOF
8393 if ac_fn_c_try_compile "$LINENO"
8394 then :
8395 xorg_cv_cc_flag_unknown_warning_option=yes
8396 else case e in #(
8397 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8398 esac
8399 fi
8400 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8401 esac
8402 fi
8403 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8404 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8405 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8406 CFLAGS="$xorg_testset_save_CFLAGS"
8407 fi
8408
8409 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8412 fi
8413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8414 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8415 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8416 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8417 then :
8418 printf %s "(cached) " >&6
8419 else case e in #(
8420 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8421 /* end confdefs.h. */
8422 int i;
8423 _ACEOF
8424 if ac_fn_c_try_compile "$LINENO"
8425 then :
8426 xorg_cv_cc_flag_unused_command_line_argument=yes
8427 else case e in #(
8428 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8429 esac
8430 fi
8431 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8432 esac
8433 fi
8434 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8435 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8436 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8437 CFLAGS="$xorg_testset_save_CFLAGS"
8438 fi
8439
8440 found="no"
8441
8442 if test $found = "no" ; then
8443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8445 fi
8446
8447 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8449 fi
8450
8451 CFLAGS="$CFLAGS -Werror=missing-braces"
8452
8453 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8454 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8455 cacheid=xorg_cv_cc_flag__Werror_missing_braces
8456 if eval test \${$cacheid+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 int
8464 main (void)
8465 {
8466
8467 ;
8468 return 0;
8469 }
8470 _ACEOF
8471 if ac_fn_c_try_link "$LINENO"
8472 then :
8473 eval $cacheid=yes
8474 else case e in #(
8475 e) eval $cacheid=no ;;
8476 esac
8477 fi
8478 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8479 conftest$ac_exeext conftest.$ac_ext ;;
8480 esac
8481 fi
8482
8483
8484 CFLAGS="$xorg_testset_save_CFLAGS"
8485
8486 eval supported=\$$cacheid
8487 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8488 printf '%s\n' "$supported" >&6; }
8489 if test "$supported" = "yes" ; then
8490 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8491 found="yes"
8492 fi
8493 fi
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509 xorg_testset_save_CFLAGS="$CFLAGS"
8510
8511 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8513 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8514 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8515 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8516 then :
8517 printf %s "(cached) " >&6
8518 else case e in #(
8519 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8521 int i;
8522 _ACEOF
8523 if ac_fn_c_try_compile "$LINENO"
8524 then :
8525 xorg_cv_cc_flag_unknown_warning_option=yes
8526 else case e in #(
8527 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8528 esac
8529 fi
8530 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8531 esac
8532 fi
8533 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8534 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8535 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8536 CFLAGS="$xorg_testset_save_CFLAGS"
8537 fi
8538
8539 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8542 fi
8543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8544 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8545 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8546 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8547 then :
8548 printf %s "(cached) " >&6
8549 else case e in #(
8550 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8551 /* end confdefs.h. */
8552 int i;
8553 _ACEOF
8554 if ac_fn_c_try_compile "$LINENO"
8555 then :
8556 xorg_cv_cc_flag_unused_command_line_argument=yes
8557 else case e in #(
8558 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8559 esac
8560 fi
8561 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8562 esac
8563 fi
8564 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8565 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8566 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8567 CFLAGS="$xorg_testset_save_CFLAGS"
8568 fi
8569
8570 found="no"
8571
8572 if test $found = "no" ; then
8573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8575 fi
8576
8577 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8579 fi
8580
8581 CFLAGS="$CFLAGS -Werror=sequence-point"
8582
8583 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8584 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8585 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8586 if eval test \${$cacheid+y}
8587 then :
8588 printf %s "(cached) " >&6
8589 else case e in #(
8590 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8591 /* end confdefs.h. */
8592 int i;
8593 int
8594 main (void)
8595 {
8596
8597 ;
8598 return 0;
8599 }
8600 _ACEOF
8601 if ac_fn_c_try_link "$LINENO"
8602 then :
8603 eval $cacheid=yes
8604 else case e in #(
8605 e) eval $cacheid=no ;;
8606 esac
8607 fi
8608 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8609 conftest$ac_exeext conftest.$ac_ext ;;
8610 esac
8611 fi
8612
8613
8614 CFLAGS="$xorg_testset_save_CFLAGS"
8615
8616 eval supported=\$$cacheid
8617 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8618 printf '%s\n' "$supported" >&6; }
8619 if test "$supported" = "yes" ; then
8620 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8621 found="yes"
8622 fi
8623 fi
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639 xorg_testset_save_CFLAGS="$CFLAGS"
8640
8641 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8642 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8643 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8644 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8645 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8646 then :
8647 printf %s "(cached) " >&6
8648 else case e in #(
8649 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8650 /* end confdefs.h. */
8651 int i;
8652 _ACEOF
8653 if ac_fn_c_try_compile "$LINENO"
8654 then :
8655 xorg_cv_cc_flag_unknown_warning_option=yes
8656 else case e in #(
8657 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8658 esac
8659 fi
8660 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8661 esac
8662 fi
8663 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8664 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8665 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8666 CFLAGS="$xorg_testset_save_CFLAGS"
8667 fi
8668
8669 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8672 fi
8673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8674 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8675 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8676 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8677 then :
8678 printf %s "(cached) " >&6
8679 else case e in #(
8680 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8681 /* end confdefs.h. */
8682 int i;
8683 _ACEOF
8684 if ac_fn_c_try_compile "$LINENO"
8685 then :
8686 xorg_cv_cc_flag_unused_command_line_argument=yes
8687 else case e in #(
8688 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8689 esac
8690 fi
8691 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8692 esac
8693 fi
8694 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8695 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8696 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8697 CFLAGS="$xorg_testset_save_CFLAGS"
8698 fi
8699
8700 found="no"
8701
8702 if test $found = "no" ; then
8703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8704 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8705 fi
8706
8707 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8709 fi
8710
8711 CFLAGS="$CFLAGS -Werror=return-type"
8712
8713 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8714 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8715 cacheid=xorg_cv_cc_flag__Werror_return_type
8716 if eval test \${$cacheid+y}
8717 then :
8718 printf %s "(cached) " >&6
8719 else case e in #(
8720 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8721 /* end confdefs.h. */
8722 int i;
8723 int
8724 main (void)
8725 {
8726
8727 ;
8728 return 0;
8729 }
8730 _ACEOF
8731 if ac_fn_c_try_link "$LINENO"
8732 then :
8733 eval $cacheid=yes
8734 else case e in #(
8735 e) eval $cacheid=no ;;
8736 esac
8737 fi
8738 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8739 conftest$ac_exeext conftest.$ac_ext ;;
8740 esac
8741 fi
8742
8743
8744 CFLAGS="$xorg_testset_save_CFLAGS"
8745
8746 eval supported=\$$cacheid
8747 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8748 printf '%s\n' "$supported" >&6; }
8749 if test "$supported" = "yes" ; then
8750 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8751 found="yes"
8752 fi
8753 fi
8754
8755 if test $found = "no" ; then
8756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8758 fi
8759
8760 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8762 fi
8763
8764 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8765
8766 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8767 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8768 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8769 if eval test \${$cacheid+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 int
8777 main (void)
8778 {
8779
8780 ;
8781 return 0;
8782 }
8783 _ACEOF
8784 if ac_fn_c_try_link "$LINENO"
8785 then :
8786 eval $cacheid=yes
8787 else case e in #(
8788 e) eval $cacheid=no ;;
8789 esac
8790 fi
8791 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8792 conftest$ac_exeext conftest.$ac_ext ;;
8793 esac
8794 fi
8795
8796
8797 CFLAGS="$xorg_testset_save_CFLAGS"
8798
8799 eval supported=\$$cacheid
8800 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8801 printf '%s\n' "$supported" >&6; }
8802 if test "$supported" = "yes" ; then
8803 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8804 found="yes"
8805 fi
8806 fi
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822 xorg_testset_save_CFLAGS="$CFLAGS"
8823
8824 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8826 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8827 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8828 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8829 then :
8830 printf %s "(cached) " >&6
8831 else case e in #(
8832 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8833 /* end confdefs.h. */
8834 int i;
8835 _ACEOF
8836 if ac_fn_c_try_compile "$LINENO"
8837 then :
8838 xorg_cv_cc_flag_unknown_warning_option=yes
8839 else case e in #(
8840 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8841 esac
8842 fi
8843 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8844 esac
8845 fi
8846 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8847 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8848 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8849 CFLAGS="$xorg_testset_save_CFLAGS"
8850 fi
8851
8852 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8855 fi
8856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8857 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8858 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8859 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8860 then :
8861 printf %s "(cached) " >&6
8862 else case e in #(
8863 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8864 /* end confdefs.h. */
8865 int i;
8866 _ACEOF
8867 if ac_fn_c_try_compile "$LINENO"
8868 then :
8869 xorg_cv_cc_flag_unused_command_line_argument=yes
8870 else case e in #(
8871 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8872 esac
8873 fi
8874 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8875 esac
8876 fi
8877 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8878 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8879 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8880 CFLAGS="$xorg_testset_save_CFLAGS"
8881 fi
8882
8883 found="no"
8884
8885 if test $found = "no" ; then
8886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8888 fi
8889
8890 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8892 fi
8893
8894 CFLAGS="$CFLAGS -Werror=trigraphs"
8895
8896 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8897 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8898 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8899 if eval test \${$cacheid+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 int
8907 main (void)
8908 {
8909
8910 ;
8911 return 0;
8912 }
8913 _ACEOF
8914 if ac_fn_c_try_link "$LINENO"
8915 then :
8916 eval $cacheid=yes
8917 else case e in #(
8918 e) eval $cacheid=no ;;
8919 esac
8920 fi
8921 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8922 conftest$ac_exeext conftest.$ac_ext ;;
8923 esac
8924 fi
8925
8926
8927 CFLAGS="$xorg_testset_save_CFLAGS"
8928
8929 eval supported=\$$cacheid
8930 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8931 printf '%s\n' "$supported" >&6; }
8932 if test "$supported" = "yes" ; then
8933 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8934 found="yes"
8935 fi
8936 fi
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952 xorg_testset_save_CFLAGS="$CFLAGS"
8953
8954 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8956 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8957 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8958 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8959 then :
8960 printf %s "(cached) " >&6
8961 else case e in #(
8962 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8963 /* end confdefs.h. */
8964 int i;
8965 _ACEOF
8966 if ac_fn_c_try_compile "$LINENO"
8967 then :
8968 xorg_cv_cc_flag_unknown_warning_option=yes
8969 else case e in #(
8970 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8971 esac
8972 fi
8973 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8974 esac
8975 fi
8976 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8977 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8979 CFLAGS="$xorg_testset_save_CFLAGS"
8980 fi
8981
8982 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8985 fi
8986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8987 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8988 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8989 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8990 then :
8991 printf %s "(cached) " >&6
8992 else case e in #(
8993 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8994 /* end confdefs.h. */
8995 int i;
8996 _ACEOF
8997 if ac_fn_c_try_compile "$LINENO"
8998 then :
8999 xorg_cv_cc_flag_unused_command_line_argument=yes
9000 else case e in #(
9001 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9002 esac
9003 fi
9004 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9005 esac
9006 fi
9007 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9008 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9009 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9010 CFLAGS="$xorg_testset_save_CFLAGS"
9011 fi
9012
9013 found="no"
9014
9015 if test $found = "no" ; then
9016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9018 fi
9019
9020 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9022 fi
9023
9024 CFLAGS="$CFLAGS -Werror=array-bounds"
9025
9026 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
9027 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
9028 cacheid=xorg_cv_cc_flag__Werror_array_bounds
9029 if eval test \${$cacheid+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 int
9037 main (void)
9038 {
9039
9040 ;
9041 return 0;
9042 }
9043 _ACEOF
9044 if ac_fn_c_try_link "$LINENO"
9045 then :
9046 eval $cacheid=yes
9047 else case e in #(
9048 e) eval $cacheid=no ;;
9049 esac
9050 fi
9051 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9052 conftest$ac_exeext conftest.$ac_ext ;;
9053 esac
9054 fi
9055
9056
9057 CFLAGS="$xorg_testset_save_CFLAGS"
9058
9059 eval supported=\$$cacheid
9060 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9061 printf '%s\n' "$supported" >&6; }
9062 if test "$supported" = "yes" ; then
9063 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
9064 found="yes"
9065 fi
9066 fi
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082 xorg_testset_save_CFLAGS="$CFLAGS"
9083
9084 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9086 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9087 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9088 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9089 then :
9090 printf %s "(cached) " >&6
9091 else case e in #(
9092 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9093 /* end confdefs.h. */
9094 int i;
9095 _ACEOF
9096 if ac_fn_c_try_compile "$LINENO"
9097 then :
9098 xorg_cv_cc_flag_unknown_warning_option=yes
9099 else case e in #(
9100 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9101 esac
9102 fi
9103 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9104 esac
9105 fi
9106 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9107 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9108 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9109 CFLAGS="$xorg_testset_save_CFLAGS"
9110 fi
9111
9112 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9115 fi
9116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9117 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9118 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9119 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9120 then :
9121 printf %s "(cached) " >&6
9122 else case e in #(
9123 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9124 /* end confdefs.h. */
9125 int i;
9126 _ACEOF
9127 if ac_fn_c_try_compile "$LINENO"
9128 then :
9129 xorg_cv_cc_flag_unused_command_line_argument=yes
9130 else case e in #(
9131 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9132 esac
9133 fi
9134 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9135 esac
9136 fi
9137 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9138 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9139 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9140 CFLAGS="$xorg_testset_save_CFLAGS"
9141 fi
9142
9143 found="no"
9144
9145 if test $found = "no" ; then
9146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9148 fi
9149
9150 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9152 fi
9153
9154 CFLAGS="$CFLAGS -Werror=write-strings"
9155
9156 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
9157 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
9158 cacheid=xorg_cv_cc_flag__Werror_write_strings
9159 if eval test \${$cacheid+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 int
9167 main (void)
9168 {
9169
9170 ;
9171 return 0;
9172 }
9173 _ACEOF
9174 if ac_fn_c_try_link "$LINENO"
9175 then :
9176 eval $cacheid=yes
9177 else case e in #(
9178 e) eval $cacheid=no ;;
9179 esac
9180 fi
9181 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9182 conftest$ac_exeext conftest.$ac_ext ;;
9183 esac
9184 fi
9185
9186
9187 CFLAGS="$xorg_testset_save_CFLAGS"
9188
9189 eval supported=\$$cacheid
9190 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9191 printf '%s\n' "$supported" >&6; }
9192 if test "$supported" = "yes" ; then
9193 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
9194 found="yes"
9195 fi
9196 fi
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212 xorg_testset_save_CFLAGS="$CFLAGS"
9213
9214 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9216 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9217 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9218 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9219 then :
9220 printf %s "(cached) " >&6
9221 else case e in #(
9222 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9223 /* end confdefs.h. */
9224 int i;
9225 _ACEOF
9226 if ac_fn_c_try_compile "$LINENO"
9227 then :
9228 xorg_cv_cc_flag_unknown_warning_option=yes
9229 else case e in #(
9230 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9231 esac
9232 fi
9233 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9234 esac
9235 fi
9236 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9237 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9238 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9239 CFLAGS="$xorg_testset_save_CFLAGS"
9240 fi
9241
9242 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9245 fi
9246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9247 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9248 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9249 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9250 then :
9251 printf %s "(cached) " >&6
9252 else case e in #(
9253 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9254 /* end confdefs.h. */
9255 int i;
9256 _ACEOF
9257 if ac_fn_c_try_compile "$LINENO"
9258 then :
9259 xorg_cv_cc_flag_unused_command_line_argument=yes
9260 else case e in #(
9261 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9262 esac
9263 fi
9264 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9265 esac
9266 fi
9267 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9268 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9269 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9270 CFLAGS="$xorg_testset_save_CFLAGS"
9271 fi
9272
9273 found="no"
9274
9275 if test $found = "no" ; then
9276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9277 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9278 fi
9279
9280 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9282 fi
9283
9284 CFLAGS="$CFLAGS -Werror=address"
9285
9286 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
9287 printf %s "checking if $CC supports -Werror=address... " >&6; }
9288 cacheid=xorg_cv_cc_flag__Werror_address
9289 if eval test \${$cacheid+y}
9290 then :
9291 printf %s "(cached) " >&6
9292 else case e in #(
9293 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9294 /* end confdefs.h. */
9295 int i;
9296 int
9297 main (void)
9298 {
9299
9300 ;
9301 return 0;
9302 }
9303 _ACEOF
9304 if ac_fn_c_try_link "$LINENO"
9305 then :
9306 eval $cacheid=yes
9307 else case e in #(
9308 e) eval $cacheid=no ;;
9309 esac
9310 fi
9311 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9312 conftest$ac_exeext conftest.$ac_ext ;;
9313 esac
9314 fi
9315
9316
9317 CFLAGS="$xorg_testset_save_CFLAGS"
9318
9319 eval supported=\$$cacheid
9320 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9321 printf '%s\n' "$supported" >&6; }
9322 if test "$supported" = "yes" ; then
9323 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
9324 found="yes"
9325 fi
9326 fi
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342 xorg_testset_save_CFLAGS="$CFLAGS"
9343
9344 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9346 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9347 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9348 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9349 then :
9350 printf %s "(cached) " >&6
9351 else case e in #(
9352 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9353 /* end confdefs.h. */
9354 int i;
9355 _ACEOF
9356 if ac_fn_c_try_compile "$LINENO"
9357 then :
9358 xorg_cv_cc_flag_unknown_warning_option=yes
9359 else case e in #(
9360 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9361 esac
9362 fi
9363 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9364 esac
9365 fi
9366 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9367 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9368 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9369 CFLAGS="$xorg_testset_save_CFLAGS"
9370 fi
9371
9372 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9374 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9375 fi
9376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9377 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9378 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9379 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9380 then :
9381 printf %s "(cached) " >&6
9382 else case e in #(
9383 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9384 /* end confdefs.h. */
9385 int i;
9386 _ACEOF
9387 if ac_fn_c_try_compile "$LINENO"
9388 then :
9389 xorg_cv_cc_flag_unused_command_line_argument=yes
9390 else case e in #(
9391 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9392 esac
9393 fi
9394 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9395 esac
9396 fi
9397 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9398 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9399 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9400 CFLAGS="$xorg_testset_save_CFLAGS"
9401 fi
9402
9403 found="no"
9404
9405 if test $found = "no" ; then
9406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9408 fi
9409
9410 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9412 fi
9413
9414 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
9415
9416 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9417 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
9418 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9419 if eval test \${$cacheid+y}
9420 then :
9421 printf %s "(cached) " >&6
9422 else case e in #(
9423 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424 /* end confdefs.h. */
9425 int i;
9426 int
9427 main (void)
9428 {
9429
9430 ;
9431 return 0;
9432 }
9433 _ACEOF
9434 if ac_fn_c_try_link "$LINENO"
9435 then :
9436 eval $cacheid=yes
9437 else case e in #(
9438 e) eval $cacheid=no ;;
9439 esac
9440 fi
9441 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9442 conftest$ac_exeext conftest.$ac_ext ;;
9443 esac
9444 fi
9445
9446
9447 CFLAGS="$xorg_testset_save_CFLAGS"
9448
9449 eval supported=\$$cacheid
9450 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9451 printf '%s\n' "$supported" >&6; }
9452 if test "$supported" = "yes" ; then
9453 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9454 found="yes"
9455 fi
9456 fi
9457
9458 if test $found = "no" ; then
9459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9460 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9461 fi
9462
9463 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9465 fi
9466
9467 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9468
9469 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9470 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9471 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9472 if eval test \${$cacheid+y}
9473 then :
9474 printf %s "(cached) " >&6
9475 else case e in #(
9476 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477 /* end confdefs.h. */
9478 int i;
9479 int
9480 main (void)
9481 {
9482
9483 ;
9484 return 0;
9485 }
9486 _ACEOF
9487 if ac_fn_c_try_link "$LINENO"
9488 then :
9489 eval $cacheid=yes
9490 else case e in #(
9491 e) eval $cacheid=no ;;
9492 esac
9493 fi
9494 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9495 conftest$ac_exeext conftest.$ac_ext ;;
9496 esac
9497 fi
9498
9499
9500 CFLAGS="$xorg_testset_save_CFLAGS"
9501
9502 eval supported=\$$cacheid
9503 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9504 printf '%s\n' "$supported" >&6; }
9505 if test "$supported" = "yes" ; then
9506 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9507 found="yes"
9508 fi
9509 fi
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525 xorg_testset_save_CFLAGS="$CFLAGS"
9526
9527 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9528 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9529 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9530 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9531 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9532 then :
9533 printf %s "(cached) " >&6
9534 else case e in #(
9535 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9536 /* end confdefs.h. */
9537 int i;
9538 _ACEOF
9539 if ac_fn_c_try_compile "$LINENO"
9540 then :
9541 xorg_cv_cc_flag_unknown_warning_option=yes
9542 else case e in #(
9543 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9544 esac
9545 fi
9546 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9547 esac
9548 fi
9549 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9550 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9551 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9552 CFLAGS="$xorg_testset_save_CFLAGS"
9553 fi
9554
9555 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9558 fi
9559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9560 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9561 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9562 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9563 then :
9564 printf %s "(cached) " >&6
9565 else case e in #(
9566 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9567 /* end confdefs.h. */
9568 int i;
9569 _ACEOF
9570 if ac_fn_c_try_compile "$LINENO"
9571 then :
9572 xorg_cv_cc_flag_unused_command_line_argument=yes
9573 else case e in #(
9574 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9575 esac
9576 fi
9577 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9578 esac
9579 fi
9580 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9581 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9582 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9583 CFLAGS="$xorg_testset_save_CFLAGS"
9584 fi
9585
9586 found="no"
9587
9588 if test $found = "no" ; then
9589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9590 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9591 fi
9592
9593 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9595 fi
9596
9597 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9598
9599 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9600 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9601 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9602 if eval test \${$cacheid+y}
9603 then :
9604 printf %s "(cached) " >&6
9605 else case e in #(
9606 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9607 /* end confdefs.h. */
9608 int i;
9609 int
9610 main (void)
9611 {
9612
9613 ;
9614 return 0;
9615 }
9616 _ACEOF
9617 if ac_fn_c_try_link "$LINENO"
9618 then :
9619 eval $cacheid=yes
9620 else case e in #(
9621 e) eval $cacheid=no ;;
9622 esac
9623 fi
9624 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9625 conftest$ac_exeext conftest.$ac_ext ;;
9626 esac
9627 fi
9628
9629
9630 CFLAGS="$xorg_testset_save_CFLAGS"
9631
9632 eval supported=\$$cacheid
9633 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9634 printf '%s\n' "$supported" >&6; }
9635 if test "$supported" = "yes" ; then
9636 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9637 found="yes"
9638 fi
9639 fi
9640
9641 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9642 else
9643 { 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
9644 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;}
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658 xorg_testset_save_CFLAGS="$CFLAGS"
9659
9660 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9661 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9662 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9663 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9664 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9665 then :
9666 printf %s "(cached) " >&6
9667 else case e in #(
9668 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9669 /* end confdefs.h. */
9670 int i;
9671 _ACEOF
9672 if ac_fn_c_try_compile "$LINENO"
9673 then :
9674 xorg_cv_cc_flag_unknown_warning_option=yes
9675 else case e in #(
9676 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9677 esac
9678 fi
9679 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9680 esac
9681 fi
9682 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9683 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9684 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9685 CFLAGS="$xorg_testset_save_CFLAGS"
9686 fi
9687
9688 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9691 fi
9692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9693 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9694 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9695 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9696 then :
9697 printf %s "(cached) " >&6
9698 else case e in #(
9699 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9700 /* end confdefs.h. */
9701 int i;
9702 _ACEOF
9703 if ac_fn_c_try_compile "$LINENO"
9704 then :
9705 xorg_cv_cc_flag_unused_command_line_argument=yes
9706 else case e in #(
9707 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9708 esac
9709 fi
9710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9711 esac
9712 fi
9713 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9714 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9715 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9716 CFLAGS="$xorg_testset_save_CFLAGS"
9717 fi
9718
9719 found="no"
9720
9721 if test $found = "no" ; then
9722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9724 fi
9725
9726 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9728 fi
9729
9730 CFLAGS="$CFLAGS -Wimplicit"
9731
9732 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9733 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9734 cacheid=xorg_cv_cc_flag__Wimplicit
9735 if eval test \${$cacheid+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 int
9743 main (void)
9744 {
9745
9746 ;
9747 return 0;
9748 }
9749 _ACEOF
9750 if ac_fn_c_try_link "$LINENO"
9751 then :
9752 eval $cacheid=yes
9753 else case e in #(
9754 e) eval $cacheid=no ;;
9755 esac
9756 fi
9757 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9758 conftest$ac_exeext conftest.$ac_ext ;;
9759 esac
9760 fi
9761
9762
9763 CFLAGS="$xorg_testset_save_CFLAGS"
9764
9765 eval supported=\$$cacheid
9766 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9767 printf '%s\n' "$supported" >&6; }
9768 if test "$supported" = "yes" ; then
9769 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9770 found="yes"
9771 fi
9772 fi
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788 xorg_testset_save_CFLAGS="$CFLAGS"
9789
9790 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9792 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9793 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9794 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9795 then :
9796 printf %s "(cached) " >&6
9797 else case e in #(
9798 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9799 /* end confdefs.h. */
9800 int i;
9801 _ACEOF
9802 if ac_fn_c_try_compile "$LINENO"
9803 then :
9804 xorg_cv_cc_flag_unknown_warning_option=yes
9805 else case e in #(
9806 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9807 esac
9808 fi
9809 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9810 esac
9811 fi
9812 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9813 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9814 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9815 CFLAGS="$xorg_testset_save_CFLAGS"
9816 fi
9817
9818 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9821 fi
9822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9823 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9824 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9825 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9826 then :
9827 printf %s "(cached) " >&6
9828 else case e in #(
9829 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9830 /* end confdefs.h. */
9831 int i;
9832 _ACEOF
9833 if ac_fn_c_try_compile "$LINENO"
9834 then :
9835 xorg_cv_cc_flag_unused_command_line_argument=yes
9836 else case e in #(
9837 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9838 esac
9839 fi
9840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9841 esac
9842 fi
9843 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9844 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9845 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9846 CFLAGS="$xorg_testset_save_CFLAGS"
9847 fi
9848
9849 found="no"
9850
9851 if test $found = "no" ; then
9852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9854 fi
9855
9856 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9858 fi
9859
9860 CFLAGS="$CFLAGS -Wnonnull"
9861
9862 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9863 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9864 cacheid=xorg_cv_cc_flag__Wnonnull
9865 if eval test \${$cacheid+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 int
9873 main (void)
9874 {
9875
9876 ;
9877 return 0;
9878 }
9879 _ACEOF
9880 if ac_fn_c_try_link "$LINENO"
9881 then :
9882 eval $cacheid=yes
9883 else case e in #(
9884 e) eval $cacheid=no ;;
9885 esac
9886 fi
9887 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9888 conftest$ac_exeext conftest.$ac_ext ;;
9889 esac
9890 fi
9891
9892
9893 CFLAGS="$xorg_testset_save_CFLAGS"
9894
9895 eval supported=\$$cacheid
9896 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9897 printf '%s\n' "$supported" >&6; }
9898 if test "$supported" = "yes" ; then
9899 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9900 found="yes"
9901 fi
9902 fi
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918 xorg_testset_save_CFLAGS="$CFLAGS"
9919
9920 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9922 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9923 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9924 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9925 then :
9926 printf %s "(cached) " >&6
9927 else case e in #(
9928 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9929 /* end confdefs.h. */
9930 int i;
9931 _ACEOF
9932 if ac_fn_c_try_compile "$LINENO"
9933 then :
9934 xorg_cv_cc_flag_unknown_warning_option=yes
9935 else case e in #(
9936 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9937 esac
9938 fi
9939 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9940 esac
9941 fi
9942 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9943 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9944 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9945 CFLAGS="$xorg_testset_save_CFLAGS"
9946 fi
9947
9948 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9951 fi
9952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9953 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9954 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9955 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9956 then :
9957 printf %s "(cached) " >&6
9958 else case e in #(
9959 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9960 /* end confdefs.h. */
9961 int i;
9962 _ACEOF
9963 if ac_fn_c_try_compile "$LINENO"
9964 then :
9965 xorg_cv_cc_flag_unused_command_line_argument=yes
9966 else case e in #(
9967 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9968 esac
9969 fi
9970 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9971 esac
9972 fi
9973 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9974 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9975 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9976 CFLAGS="$xorg_testset_save_CFLAGS"
9977 fi
9978
9979 found="no"
9980
9981 if test $found = "no" ; then
9982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9984 fi
9985
9986 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9988 fi
9989
9990 CFLAGS="$CFLAGS -Winit-self"
9991
9992 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9993 printf %s "checking if $CC supports -Winit-self... " >&6; }
9994 cacheid=xorg_cv_cc_flag__Winit_self
9995 if eval test \${$cacheid+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 int
10003 main (void)
10004 {
10005
10006 ;
10007 return 0;
10008 }
10009 _ACEOF
10010 if ac_fn_c_try_link "$LINENO"
10011 then :
10012 eval $cacheid=yes
10013 else case e in #(
10014 e) eval $cacheid=no ;;
10015 esac
10016 fi
10017 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10018 conftest$ac_exeext conftest.$ac_ext ;;
10019 esac
10020 fi
10021
10022
10023 CFLAGS="$xorg_testset_save_CFLAGS"
10024
10025 eval supported=\$$cacheid
10026 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10027 printf '%s\n' "$supported" >&6; }
10028 if test "$supported" = "yes" ; then
10029 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
10030 found="yes"
10031 fi
10032 fi
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048 xorg_testset_save_CFLAGS="$CFLAGS"
10049
10050 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10052 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10053 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10054 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10055 then :
10056 printf %s "(cached) " >&6
10057 else case e in #(
10058 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10059 /* end confdefs.h. */
10060 int i;
10061 _ACEOF
10062 if ac_fn_c_try_compile "$LINENO"
10063 then :
10064 xorg_cv_cc_flag_unknown_warning_option=yes
10065 else case e in #(
10066 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10067 esac
10068 fi
10069 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10070 esac
10071 fi
10072 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10073 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10074 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10075 CFLAGS="$xorg_testset_save_CFLAGS"
10076 fi
10077
10078 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10081 fi
10082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10083 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10084 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10085 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10086 then :
10087 printf %s "(cached) " >&6
10088 else case e in #(
10089 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10090 /* end confdefs.h. */
10091 int i;
10092 _ACEOF
10093 if ac_fn_c_try_compile "$LINENO"
10094 then :
10095 xorg_cv_cc_flag_unused_command_line_argument=yes
10096 else case e in #(
10097 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10098 esac
10099 fi
10100 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10101 esac
10102 fi
10103 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10104 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10105 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10106 CFLAGS="$xorg_testset_save_CFLAGS"
10107 fi
10108
10109 found="no"
10110
10111 if test $found = "no" ; then
10112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10114 fi
10115
10116 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10118 fi
10119
10120 CFLAGS="$CFLAGS -Wmain"
10121
10122 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
10123 printf %s "checking if $CC supports -Wmain... " >&6; }
10124 cacheid=xorg_cv_cc_flag__Wmain
10125 if eval test \${$cacheid+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 int
10133 main (void)
10134 {
10135
10136 ;
10137 return 0;
10138 }
10139 _ACEOF
10140 if ac_fn_c_try_link "$LINENO"
10141 then :
10142 eval $cacheid=yes
10143 else case e in #(
10144 e) eval $cacheid=no ;;
10145 esac
10146 fi
10147 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10148 conftest$ac_exeext conftest.$ac_ext ;;
10149 esac
10150 fi
10151
10152
10153 CFLAGS="$xorg_testset_save_CFLAGS"
10154
10155 eval supported=\$$cacheid
10156 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10157 printf '%s\n' "$supported" >&6; }
10158 if test "$supported" = "yes" ; then
10159 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
10160 found="yes"
10161 fi
10162 fi
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178 xorg_testset_save_CFLAGS="$CFLAGS"
10179
10180 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10181 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10182 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10183 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10184 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10185 then :
10186 printf %s "(cached) " >&6
10187 else case e in #(
10188 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10189 /* end confdefs.h. */
10190 int i;
10191 _ACEOF
10192 if ac_fn_c_try_compile "$LINENO"
10193 then :
10194 xorg_cv_cc_flag_unknown_warning_option=yes
10195 else case e in #(
10196 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10197 esac
10198 fi
10199 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10200 esac
10201 fi
10202 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10203 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10204 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10205 CFLAGS="$xorg_testset_save_CFLAGS"
10206 fi
10207
10208 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10211 fi
10212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10213 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10214 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10215 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10216 then :
10217 printf %s "(cached) " >&6
10218 else case e in #(
10219 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10220 /* end confdefs.h. */
10221 int i;
10222 _ACEOF
10223 if ac_fn_c_try_compile "$LINENO"
10224 then :
10225 xorg_cv_cc_flag_unused_command_line_argument=yes
10226 else case e in #(
10227 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10228 esac
10229 fi
10230 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10231 esac
10232 fi
10233 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10234 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10235 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10236 CFLAGS="$xorg_testset_save_CFLAGS"
10237 fi
10238
10239 found="no"
10240
10241 if test $found = "no" ; then
10242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10243 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10244 fi
10245
10246 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10248 fi
10249
10250 CFLAGS="$CFLAGS -Wmissing-braces"
10251
10252 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
10253 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
10254 cacheid=xorg_cv_cc_flag__Wmissing_braces
10255 if eval test \${$cacheid+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 int
10263 main (void)
10264 {
10265
10266 ;
10267 return 0;
10268 }
10269 _ACEOF
10270 if ac_fn_c_try_link "$LINENO"
10271 then :
10272 eval $cacheid=yes
10273 else case e in #(
10274 e) eval $cacheid=no ;;
10275 esac
10276 fi
10277 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10278 conftest$ac_exeext conftest.$ac_ext ;;
10279 esac
10280 fi
10281
10282
10283 CFLAGS="$xorg_testset_save_CFLAGS"
10284
10285 eval supported=\$$cacheid
10286 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10287 printf '%s\n' "$supported" >&6; }
10288 if test "$supported" = "yes" ; then
10289 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
10290 found="yes"
10291 fi
10292 fi
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308 xorg_testset_save_CFLAGS="$CFLAGS"
10309
10310 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10312 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10313 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10314 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10315 then :
10316 printf %s "(cached) " >&6
10317 else case e in #(
10318 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10319 /* end confdefs.h. */
10320 int i;
10321 _ACEOF
10322 if ac_fn_c_try_compile "$LINENO"
10323 then :
10324 xorg_cv_cc_flag_unknown_warning_option=yes
10325 else case e in #(
10326 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10327 esac
10328 fi
10329 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10330 esac
10331 fi
10332 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10333 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10334 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10335 CFLAGS="$xorg_testset_save_CFLAGS"
10336 fi
10337
10338 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10341 fi
10342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10343 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10344 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10345 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10346 then :
10347 printf %s "(cached) " >&6
10348 else case e in #(
10349 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10350 /* end confdefs.h. */
10351 int i;
10352 _ACEOF
10353 if ac_fn_c_try_compile "$LINENO"
10354 then :
10355 xorg_cv_cc_flag_unused_command_line_argument=yes
10356 else case e in #(
10357 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10358 esac
10359 fi
10360 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10361 esac
10362 fi
10363 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10364 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10365 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10366 CFLAGS="$xorg_testset_save_CFLAGS"
10367 fi
10368
10369 found="no"
10370
10371 if test $found = "no" ; then
10372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10373 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10374 fi
10375
10376 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10378 fi
10379
10380 CFLAGS="$CFLAGS -Wsequence-point"
10381
10382 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
10383 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
10384 cacheid=xorg_cv_cc_flag__Wsequence_point
10385 if eval test \${$cacheid+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 int
10393 main (void)
10394 {
10395
10396 ;
10397 return 0;
10398 }
10399 _ACEOF
10400 if ac_fn_c_try_link "$LINENO"
10401 then :
10402 eval $cacheid=yes
10403 else case e in #(
10404 e) eval $cacheid=no ;;
10405 esac
10406 fi
10407 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10408 conftest$ac_exeext conftest.$ac_ext ;;
10409 esac
10410 fi
10411
10412
10413 CFLAGS="$xorg_testset_save_CFLAGS"
10414
10415 eval supported=\$$cacheid
10416 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10417 printf '%s\n' "$supported" >&6; }
10418 if test "$supported" = "yes" ; then
10419 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
10420 found="yes"
10421 fi
10422 fi
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438 xorg_testset_save_CFLAGS="$CFLAGS"
10439
10440 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10441 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10442 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10443 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10444 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10445 then :
10446 printf %s "(cached) " >&6
10447 else case e in #(
10448 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449 /* end confdefs.h. */
10450 int i;
10451 _ACEOF
10452 if ac_fn_c_try_compile "$LINENO"
10453 then :
10454 xorg_cv_cc_flag_unknown_warning_option=yes
10455 else case e in #(
10456 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10457 esac
10458 fi
10459 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10460 esac
10461 fi
10462 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10463 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10464 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10465 CFLAGS="$xorg_testset_save_CFLAGS"
10466 fi
10467
10468 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10470 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10471 fi
10472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10473 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10474 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10475 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10476 then :
10477 printf %s "(cached) " >&6
10478 else case e in #(
10479 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10480 /* end confdefs.h. */
10481 int i;
10482 _ACEOF
10483 if ac_fn_c_try_compile "$LINENO"
10484 then :
10485 xorg_cv_cc_flag_unused_command_line_argument=yes
10486 else case e in #(
10487 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10488 esac
10489 fi
10490 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10491 esac
10492 fi
10493 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10494 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10495 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10496 CFLAGS="$xorg_testset_save_CFLAGS"
10497 fi
10498
10499 found="no"
10500
10501 if test $found = "no" ; then
10502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10504 fi
10505
10506 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10508 fi
10509
10510 CFLAGS="$CFLAGS -Wreturn-type"
10511
10512 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10513 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10514 cacheid=xorg_cv_cc_flag__Wreturn_type
10515 if eval test \${$cacheid+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 int
10523 main (void)
10524 {
10525
10526 ;
10527 return 0;
10528 }
10529 _ACEOF
10530 if ac_fn_c_try_link "$LINENO"
10531 then :
10532 eval $cacheid=yes
10533 else case e in #(
10534 e) eval $cacheid=no ;;
10535 esac
10536 fi
10537 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10538 conftest$ac_exeext conftest.$ac_ext ;;
10539 esac
10540 fi
10541
10542
10543 CFLAGS="$xorg_testset_save_CFLAGS"
10544
10545 eval supported=\$$cacheid
10546 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10547 printf '%s\n' "$supported" >&6; }
10548 if test "$supported" = "yes" ; then
10549 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10550 found="yes"
10551 fi
10552 fi
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568 xorg_testset_save_CFLAGS="$CFLAGS"
10569
10570 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10572 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10573 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10574 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10575 then :
10576 printf %s "(cached) " >&6
10577 else case e in #(
10578 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10579 /* end confdefs.h. */
10580 int i;
10581 _ACEOF
10582 if ac_fn_c_try_compile "$LINENO"
10583 then :
10584 xorg_cv_cc_flag_unknown_warning_option=yes
10585 else case e in #(
10586 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10587 esac
10588 fi
10589 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10590 esac
10591 fi
10592 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10593 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10594 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10595 CFLAGS="$xorg_testset_save_CFLAGS"
10596 fi
10597
10598 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10600 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10601 fi
10602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10603 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10604 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10605 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10606 then :
10607 printf %s "(cached) " >&6
10608 else case e in #(
10609 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10610 /* end confdefs.h. */
10611 int i;
10612 _ACEOF
10613 if ac_fn_c_try_compile "$LINENO"
10614 then :
10615 xorg_cv_cc_flag_unused_command_line_argument=yes
10616 else case e in #(
10617 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10618 esac
10619 fi
10620 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10621 esac
10622 fi
10623 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10624 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10625 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10626 CFLAGS="$xorg_testset_save_CFLAGS"
10627 fi
10628
10629 found="no"
10630
10631 if test $found = "no" ; then
10632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10634 fi
10635
10636 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10638 fi
10639
10640 CFLAGS="$CFLAGS -Wtrigraphs"
10641
10642 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10643 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10644 cacheid=xorg_cv_cc_flag__Wtrigraphs
10645 if eval test \${$cacheid+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 int
10653 main (void)
10654 {
10655
10656 ;
10657 return 0;
10658 }
10659 _ACEOF
10660 if ac_fn_c_try_link "$LINENO"
10661 then :
10662 eval $cacheid=yes
10663 else case e in #(
10664 e) eval $cacheid=no ;;
10665 esac
10666 fi
10667 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10668 conftest$ac_exeext conftest.$ac_ext ;;
10669 esac
10670 fi
10671
10672
10673 CFLAGS="$xorg_testset_save_CFLAGS"
10674
10675 eval supported=\$$cacheid
10676 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10677 printf '%s\n' "$supported" >&6; }
10678 if test "$supported" = "yes" ; then
10679 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10680 found="yes"
10681 fi
10682 fi
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698 xorg_testset_save_CFLAGS="$CFLAGS"
10699
10700 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10702 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10703 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10704 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10705 then :
10706 printf %s "(cached) " >&6
10707 else case e in #(
10708 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h. */
10710 int i;
10711 _ACEOF
10712 if ac_fn_c_try_compile "$LINENO"
10713 then :
10714 xorg_cv_cc_flag_unknown_warning_option=yes
10715 else case e in #(
10716 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10717 esac
10718 fi
10719 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10720 esac
10721 fi
10722 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10723 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10724 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10725 CFLAGS="$xorg_testset_save_CFLAGS"
10726 fi
10727
10728 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10731 fi
10732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10733 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10734 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10735 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10736 then :
10737 printf %s "(cached) " >&6
10738 else case e in #(
10739 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10740 /* end confdefs.h. */
10741 int i;
10742 _ACEOF
10743 if ac_fn_c_try_compile "$LINENO"
10744 then :
10745 xorg_cv_cc_flag_unused_command_line_argument=yes
10746 else case e in #(
10747 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10748 esac
10749 fi
10750 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10751 esac
10752 fi
10753 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10754 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10755 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10756 CFLAGS="$xorg_testset_save_CFLAGS"
10757 fi
10758
10759 found="no"
10760
10761 if test $found = "no" ; then
10762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10764 fi
10765
10766 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10768 fi
10769
10770 CFLAGS="$CFLAGS -Warray-bounds"
10771
10772 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10773 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10774 cacheid=xorg_cv_cc_flag__Warray_bounds
10775 if eval test \${$cacheid+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 int
10783 main (void)
10784 {
10785
10786 ;
10787 return 0;
10788 }
10789 _ACEOF
10790 if ac_fn_c_try_link "$LINENO"
10791 then :
10792 eval $cacheid=yes
10793 else case e in #(
10794 e) eval $cacheid=no ;;
10795 esac
10796 fi
10797 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10798 conftest$ac_exeext conftest.$ac_ext ;;
10799 esac
10800 fi
10801
10802
10803 CFLAGS="$xorg_testset_save_CFLAGS"
10804
10805 eval supported=\$$cacheid
10806 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10807 printf '%s\n' "$supported" >&6; }
10808 if test "$supported" = "yes" ; then
10809 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10810 found="yes"
10811 fi
10812 fi
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828 xorg_testset_save_CFLAGS="$CFLAGS"
10829
10830 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10831 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10832 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10833 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10834 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10835 then :
10836 printf %s "(cached) " >&6
10837 else case e in #(
10838 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10839 /* end confdefs.h. */
10840 int i;
10841 _ACEOF
10842 if ac_fn_c_try_compile "$LINENO"
10843 then :
10844 xorg_cv_cc_flag_unknown_warning_option=yes
10845 else case e in #(
10846 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10847 esac
10848 fi
10849 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10850 esac
10851 fi
10852 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10853 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10854 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10855 CFLAGS="$xorg_testset_save_CFLAGS"
10856 fi
10857
10858 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10861 fi
10862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10863 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10864 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10865 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10866 then :
10867 printf %s "(cached) " >&6
10868 else case e in #(
10869 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10870 /* end confdefs.h. */
10871 int i;
10872 _ACEOF
10873 if ac_fn_c_try_compile "$LINENO"
10874 then :
10875 xorg_cv_cc_flag_unused_command_line_argument=yes
10876 else case e in #(
10877 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10878 esac
10879 fi
10880 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10881 esac
10882 fi
10883 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10884 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10885 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10886 CFLAGS="$xorg_testset_save_CFLAGS"
10887 fi
10888
10889 found="no"
10890
10891 if test $found = "no" ; then
10892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10893 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10894 fi
10895
10896 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10898 fi
10899
10900 CFLAGS="$CFLAGS -Wwrite-strings"
10901
10902 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10903 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10904 cacheid=xorg_cv_cc_flag__Wwrite_strings
10905 if eval test \${$cacheid+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 int
10913 main (void)
10914 {
10915
10916 ;
10917 return 0;
10918 }
10919 _ACEOF
10920 if ac_fn_c_try_link "$LINENO"
10921 then :
10922 eval $cacheid=yes
10923 else case e in #(
10924 e) eval $cacheid=no ;;
10925 esac
10926 fi
10927 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10928 conftest$ac_exeext conftest.$ac_ext ;;
10929 esac
10930 fi
10931
10932
10933 CFLAGS="$xorg_testset_save_CFLAGS"
10934
10935 eval supported=\$$cacheid
10936 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10937 printf '%s\n' "$supported" >&6; }
10938 if test "$supported" = "yes" ; then
10939 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10940 found="yes"
10941 fi
10942 fi
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958 xorg_testset_save_CFLAGS="$CFLAGS"
10959
10960 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10962 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10963 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10964 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10965 then :
10966 printf %s "(cached) " >&6
10967 else case e in #(
10968 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10969 /* end confdefs.h. */
10970 int i;
10971 _ACEOF
10972 if ac_fn_c_try_compile "$LINENO"
10973 then :
10974 xorg_cv_cc_flag_unknown_warning_option=yes
10975 else case e in #(
10976 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10977 esac
10978 fi
10979 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10980 esac
10981 fi
10982 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10983 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10984 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10985 CFLAGS="$xorg_testset_save_CFLAGS"
10986 fi
10987
10988 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10991 fi
10992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10993 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10994 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10995 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10996 then :
10997 printf %s "(cached) " >&6
10998 else case e in #(
10999 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11000 /* end confdefs.h. */
11001 int i;
11002 _ACEOF
11003 if ac_fn_c_try_compile "$LINENO"
11004 then :
11005 xorg_cv_cc_flag_unused_command_line_argument=yes
11006 else case e in #(
11007 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11008 esac
11009 fi
11010 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11011 esac
11012 fi
11013 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11014 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11015 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11016 CFLAGS="$xorg_testset_save_CFLAGS"
11017 fi
11018
11019 found="no"
11020
11021 if test $found = "no" ; then
11022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11024 fi
11025
11026 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11028 fi
11029
11030 CFLAGS="$CFLAGS -Waddress"
11031
11032 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
11033 printf %s "checking if $CC supports -Waddress... " >&6; }
11034 cacheid=xorg_cv_cc_flag__Waddress
11035 if eval test \${$cacheid+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 int
11043 main (void)
11044 {
11045
11046 ;
11047 return 0;
11048 }
11049 _ACEOF
11050 if ac_fn_c_try_link "$LINENO"
11051 then :
11052 eval $cacheid=yes
11053 else case e in #(
11054 e) eval $cacheid=no ;;
11055 esac
11056 fi
11057 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11058 conftest$ac_exeext conftest.$ac_ext ;;
11059 esac
11060 fi
11061
11062
11063 CFLAGS="$xorg_testset_save_CFLAGS"
11064
11065 eval supported=\$$cacheid
11066 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11067 printf '%s\n' "$supported" >&6; }
11068 if test "$supported" = "yes" ; then
11069 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
11070 found="yes"
11071 fi
11072 fi
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088 xorg_testset_save_CFLAGS="$CFLAGS"
11089
11090 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11092 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11093 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11094 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11095 then :
11096 printf %s "(cached) " >&6
11097 else case e in #(
11098 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11099 /* end confdefs.h. */
11100 int i;
11101 _ACEOF
11102 if ac_fn_c_try_compile "$LINENO"
11103 then :
11104 xorg_cv_cc_flag_unknown_warning_option=yes
11105 else case e in #(
11106 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11107 esac
11108 fi
11109 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11110 esac
11111 fi
11112 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11113 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11114 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11115 CFLAGS="$xorg_testset_save_CFLAGS"
11116 fi
11117
11118 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11121 fi
11122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11123 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11124 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11125 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11126 then :
11127 printf %s "(cached) " >&6
11128 else case e in #(
11129 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11130 /* end confdefs.h. */
11131 int i;
11132 _ACEOF
11133 if ac_fn_c_try_compile "$LINENO"
11134 then :
11135 xorg_cv_cc_flag_unused_command_line_argument=yes
11136 else case e in #(
11137 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11138 esac
11139 fi
11140 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11141 esac
11142 fi
11143 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11144 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11145 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11146 CFLAGS="$xorg_testset_save_CFLAGS"
11147 fi
11148
11149 found="no"
11150
11151 if test $found = "no" ; then
11152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11154 fi
11155
11156 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11158 fi
11159
11160 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
11161
11162 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
11163 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
11164 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
11165 if eval test \${$cacheid+y}
11166 then :
11167 printf %s "(cached) " >&6
11168 else case e in #(
11169 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11170 /* end confdefs.h. */
11171 int i;
11172 int
11173 main (void)
11174 {
11175
11176 ;
11177 return 0;
11178 }
11179 _ACEOF
11180 if ac_fn_c_try_link "$LINENO"
11181 then :
11182 eval $cacheid=yes
11183 else case e in #(
11184 e) eval $cacheid=no ;;
11185 esac
11186 fi
11187 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11188 conftest$ac_exeext conftest.$ac_ext ;;
11189 esac
11190 fi
11191
11192
11193 CFLAGS="$xorg_testset_save_CFLAGS"
11194
11195 eval supported=\$$cacheid
11196 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11197 printf '%s\n' "$supported" >&6; }
11198 if test "$supported" = "yes" ; then
11199 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
11200 found="yes"
11201 fi
11202 fi
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218 xorg_testset_save_CFLAGS="$CFLAGS"
11219
11220 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11222 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11223 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11224 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11225 then :
11226 printf %s "(cached) " >&6
11227 else case e in #(
11228 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11229 /* end confdefs.h. */
11230 int i;
11231 _ACEOF
11232 if ac_fn_c_try_compile "$LINENO"
11233 then :
11234 xorg_cv_cc_flag_unknown_warning_option=yes
11235 else case e in #(
11236 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11237 esac
11238 fi
11239 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11240 esac
11241 fi
11242 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11243 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11244 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11245 CFLAGS="$xorg_testset_save_CFLAGS"
11246 fi
11247
11248 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11251 fi
11252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11253 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11254 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11255 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11256 then :
11257 printf %s "(cached) " >&6
11258 else case e in #(
11259 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11260 /* end confdefs.h. */
11261 int i;
11262 _ACEOF
11263 if ac_fn_c_try_compile "$LINENO"
11264 then :
11265 xorg_cv_cc_flag_unused_command_line_argument=yes
11266 else case e in #(
11267 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11268 esac
11269 fi
11270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11271 esac
11272 fi
11273 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11274 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11275 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11276 CFLAGS="$xorg_testset_save_CFLAGS"
11277 fi
11278
11279 found="no"
11280
11281 if test $found = "no" ; then
11282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11283 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11284 fi
11285
11286 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11288 fi
11289
11290 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
11291
11292 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
11293 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
11294 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
11295 if eval test \${$cacheid+y}
11296 then :
11297 printf %s "(cached) " >&6
11298 else case e in #(
11299 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11300 /* end confdefs.h. */
11301 int i;
11302 int
11303 main (void)
11304 {
11305
11306 ;
11307 return 0;
11308 }
11309 _ACEOF
11310 if ac_fn_c_try_link "$LINENO"
11311 then :
11312 eval $cacheid=yes
11313 else case e in #(
11314 e) eval $cacheid=no ;;
11315 esac
11316 fi
11317 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11318 conftest$ac_exeext conftest.$ac_ext ;;
11319 esac
11320 fi
11321
11322
11323 CFLAGS="$xorg_testset_save_CFLAGS"
11324
11325 eval supported=\$$cacheid
11326 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11327 printf '%s\n' "$supported" >&6; }
11328 if test "$supported" = "yes" ; then
11329 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
11330 found="yes"
11331 fi
11332 fi
11333
11334
11335 fi
11336
11337
11338
11339
11340
11341
11342
11343 CWARNFLAGS="$BASE_CFLAGS"
11344 if test "x$GCC" = xyes ; then
11345 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
11346 fi
11347
11348
11349
11350
11351
11352
11353
11354
11355 # Check whether --enable-strict-compilation was given.
11356 if test ${enable_strict_compilation+y}
11357 then :
11358 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11359 else case e in #(
11360 e) STRICT_COMPILE=no ;;
11361 esac
11362 fi
11363
11364
11365
11366
11367
11368
11369 STRICT_CFLAGS=""
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383 xorg_testset_save_CFLAGS="$CFLAGS"
11384
11385 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11386 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11387 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11388 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11389 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11390 then :
11391 printf %s "(cached) " >&6
11392 else case e in #(
11393 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11394 /* end confdefs.h. */
11395 int i;
11396 _ACEOF
11397 if ac_fn_c_try_compile "$LINENO"
11398 then :
11399 xorg_cv_cc_flag_unknown_warning_option=yes
11400 else case e in #(
11401 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11402 esac
11403 fi
11404 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11405 esac
11406 fi
11407 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11408 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11409 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11410 CFLAGS="$xorg_testset_save_CFLAGS"
11411 fi
11412
11413 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11416 fi
11417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11418 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11419 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11420 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11421 then :
11422 printf %s "(cached) " >&6
11423 else case e in #(
11424 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11425 /* end confdefs.h. */
11426 int i;
11427 _ACEOF
11428 if ac_fn_c_try_compile "$LINENO"
11429 then :
11430 xorg_cv_cc_flag_unused_command_line_argument=yes
11431 else case e in #(
11432 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11433 esac
11434 fi
11435 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11436 esac
11437 fi
11438 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11439 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11440 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11441 CFLAGS="$xorg_testset_save_CFLAGS"
11442 fi
11443
11444 found="no"
11445
11446 if test $found = "no" ; then
11447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11448 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11449 fi
11450
11451 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11453 fi
11454
11455 CFLAGS="$CFLAGS -pedantic"
11456
11457 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11458 printf %s "checking if $CC supports -pedantic... " >&6; }
11459 cacheid=xorg_cv_cc_flag__pedantic
11460 if eval test \${$cacheid+y}
11461 then :
11462 printf %s "(cached) " >&6
11463 else case e in #(
11464 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11465 /* end confdefs.h. */
11466 int i;
11467 int
11468 main (void)
11469 {
11470
11471 ;
11472 return 0;
11473 }
11474 _ACEOF
11475 if ac_fn_c_try_link "$LINENO"
11476 then :
11477 eval $cacheid=yes
11478 else case e in #(
11479 e) eval $cacheid=no ;;
11480 esac
11481 fi
11482 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11483 conftest$ac_exeext conftest.$ac_ext ;;
11484 esac
11485 fi
11486
11487
11488 CFLAGS="$xorg_testset_save_CFLAGS"
11489
11490 eval supported=\$$cacheid
11491 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11492 printf '%s\n' "$supported" >&6; }
11493 if test "$supported" = "yes" ; then
11494 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11495 found="yes"
11496 fi
11497 fi
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513 xorg_testset_save_CFLAGS="$CFLAGS"
11514
11515 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11517 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11518 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11519 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11520 then :
11521 printf %s "(cached) " >&6
11522 else case e in #(
11523 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11524 /* end confdefs.h. */
11525 int i;
11526 _ACEOF
11527 if ac_fn_c_try_compile "$LINENO"
11528 then :
11529 xorg_cv_cc_flag_unknown_warning_option=yes
11530 else case e in #(
11531 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11532 esac
11533 fi
11534 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11535 esac
11536 fi
11537 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11538 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11539 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11540 CFLAGS="$xorg_testset_save_CFLAGS"
11541 fi
11542
11543 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11545 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11546 fi
11547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11548 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11549 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11550 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11551 then :
11552 printf %s "(cached) " >&6
11553 else case e in #(
11554 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11555 /* end confdefs.h. */
11556 int i;
11557 _ACEOF
11558 if ac_fn_c_try_compile "$LINENO"
11559 then :
11560 xorg_cv_cc_flag_unused_command_line_argument=yes
11561 else case e in #(
11562 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11563 esac
11564 fi
11565 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11566 esac
11567 fi
11568 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11569 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11570 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11571 CFLAGS="$xorg_testset_save_CFLAGS"
11572 fi
11573
11574 found="no"
11575
11576 if test $found = "no" ; then
11577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11578 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11579 fi
11580
11581 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11583 fi
11584
11585 CFLAGS="$CFLAGS -Werror"
11586
11587 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11588 printf %s "checking if $CC supports -Werror... " >&6; }
11589 cacheid=xorg_cv_cc_flag__Werror
11590 if eval test \${$cacheid+y}
11591 then :
11592 printf %s "(cached) " >&6
11593 else case e in #(
11594 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11595 /* end confdefs.h. */
11596 int i;
11597 int
11598 main (void)
11599 {
11600
11601 ;
11602 return 0;
11603 }
11604 _ACEOF
11605 if ac_fn_c_try_link "$LINENO"
11606 then :
11607 eval $cacheid=yes
11608 else case e in #(
11609 e) eval $cacheid=no ;;
11610 esac
11611 fi
11612 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11613 conftest$ac_exeext conftest.$ac_ext ;;
11614 esac
11615 fi
11616
11617
11618 CFLAGS="$xorg_testset_save_CFLAGS"
11619
11620 eval supported=\$$cacheid
11621 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11622 printf '%s\n' "$supported" >&6; }
11623 if test "$supported" = "yes" ; then
11624 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11625 found="yes"
11626 fi
11627 fi
11628
11629 if test $found = "no" ; then
11630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11632 fi
11633
11634 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11636 fi
11637
11638 CFLAGS="$CFLAGS -errwarn"
11639
11640 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11641 printf %s "checking if $CC supports -errwarn... " >&6; }
11642 cacheid=xorg_cv_cc_flag__errwarn
11643 if eval test \${$cacheid+y}
11644 then :
11645 printf %s "(cached) " >&6
11646 else case e in #(
11647 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11648 /* end confdefs.h. */
11649 int i;
11650 int
11651 main (void)
11652 {
11653
11654 ;
11655 return 0;
11656 }
11657 _ACEOF
11658 if ac_fn_c_try_link "$LINENO"
11659 then :
11660 eval $cacheid=yes
11661 else case e in #(
11662 e) eval $cacheid=no ;;
11663 esac
11664 fi
11665 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11666 conftest$ac_exeext conftest.$ac_ext ;;
11667 esac
11668 fi
11669
11670
11671 CFLAGS="$xorg_testset_save_CFLAGS"
11672
11673 eval supported=\$$cacheid
11674 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11675 printf '%s\n' "$supported" >&6; }
11676 if test "$supported" = "yes" ; then
11677 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11678 found="yes"
11679 fi
11680 fi
11681
11682
11683
11684 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11685 # activate it with -Werror, so we add it here explicitly.
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699 xorg_testset_save_CFLAGS="$CFLAGS"
11700
11701 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11703 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11704 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11705 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11706 then :
11707 printf %s "(cached) " >&6
11708 else case e in #(
11709 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11710 /* end confdefs.h. */
11711 int i;
11712 _ACEOF
11713 if ac_fn_c_try_compile "$LINENO"
11714 then :
11715 xorg_cv_cc_flag_unknown_warning_option=yes
11716 else case e in #(
11717 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11718 esac
11719 fi
11720 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11721 esac
11722 fi
11723 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11724 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11725 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11726 CFLAGS="$xorg_testset_save_CFLAGS"
11727 fi
11728
11729 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11731 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11732 fi
11733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11734 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11735 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11736 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11737 then :
11738 printf %s "(cached) " >&6
11739 else case e in #(
11740 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11741 /* end confdefs.h. */
11742 int i;
11743 _ACEOF
11744 if ac_fn_c_try_compile "$LINENO"
11745 then :
11746 xorg_cv_cc_flag_unused_command_line_argument=yes
11747 else case e in #(
11748 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11749 esac
11750 fi
11751 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11752 esac
11753 fi
11754 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11755 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11756 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11757 CFLAGS="$xorg_testset_save_CFLAGS"
11758 fi
11759
11760 found="no"
11761
11762 if test $found = "no" ; then
11763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11764 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11765 fi
11766
11767 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11769 fi
11770
11771 CFLAGS="$CFLAGS -Werror=attributes"
11772
11773 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11774 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11775 cacheid=xorg_cv_cc_flag__Werror_attributes
11776 if eval test \${$cacheid+y}
11777 then :
11778 printf %s "(cached) " >&6
11779 else case e in #(
11780 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11781 /* end confdefs.h. */
11782 int i;
11783 int
11784 main (void)
11785 {
11786
11787 ;
11788 return 0;
11789 }
11790 _ACEOF
11791 if ac_fn_c_try_link "$LINENO"
11792 then :
11793 eval $cacheid=yes
11794 else case e in #(
11795 e) eval $cacheid=no ;;
11796 esac
11797 fi
11798 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11799 conftest$ac_exeext conftest.$ac_ext ;;
11800 esac
11801 fi
11802
11803
11804 CFLAGS="$xorg_testset_save_CFLAGS"
11805
11806 eval supported=\$$cacheid
11807 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11808 printf '%s\n' "$supported" >&6; }
11809 if test "$supported" = "yes" ; then
11810 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11811 found="yes"
11812 fi
11813 fi
11814
11815
11816
11817 if test "x$STRICT_COMPILE" = "xyes"; then
11818 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11819 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11820 fi
11821
11822
11823
11824
11825
11826
11827
11828
11829 cat >>confdefs.h <<_ACEOF
11830 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11831 _ACEOF
11832
11833 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11834 if test "x$PVM" = "x"; then
11835 PVM="0"
11836 fi
11837
11838 printf '%s\n' "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11839
11840 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11841 if test "x$PVP" = "x"; then
11842 PVP="0"
11843 fi
11844
11845 printf '%s\n' "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11846
11847
11848
11849 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11850 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11851 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11852 touch \$(top_srcdir)/ChangeLog; \
11853 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11854
11855
11856
11857
11858 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11859 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11860 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11861 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11862 touch \$(top_srcdir)/INSTALL; \
11863 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11864
11865
11866
11867
11868
11869
11870 case $host_os in
11871 solaris*)
11872 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11873 # check for a man page file found in later versions that use
11874 # traditional section numbers instead
11875 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11876 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11877 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11878 then :
11879 printf %s "(cached) " >&6
11880 else case e in #(
11881 e) test "$cross_compiling" = yes &&
11882 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11883 if test -r "/usr/share/man/man7/attributes.7"; then
11884 ac_cv_file__usr_share_man_man7_attributes_7=yes
11885 else
11886 ac_cv_file__usr_share_man_man7_attributes_7=no
11887 fi ;;
11888 esac
11889 fi
11890 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11891 printf '%s\n' "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11892 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11893 then :
11894 SYSV_MAN_SECTIONS=false
11895 else case e in #(
11896 e) SYSV_MAN_SECTIONS=true ;;
11897 esac
11898 fi
11899
11900 ;;
11901 *) SYSV_MAN_SECTIONS=false ;;
11902 esac
11903
11904 if test x$APP_MAN_SUFFIX = x ; then
11905 APP_MAN_SUFFIX=1
11906 fi
11907 if test x$APP_MAN_DIR = x ; then
11908 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11909 fi
11910
11911 if test x$LIB_MAN_SUFFIX = x ; then
11912 LIB_MAN_SUFFIX=3
11913 fi
11914 if test x$LIB_MAN_DIR = x ; then
11915 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11916 fi
11917
11918 if test x$FILE_MAN_SUFFIX = x ; then
11919 case $SYSV_MAN_SECTIONS in
11920 true) FILE_MAN_SUFFIX=4 ;;
11921 *) FILE_MAN_SUFFIX=5 ;;
11922 esac
11923 fi
11924 if test x$FILE_MAN_DIR = x ; then
11925 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11926 fi
11927
11928 if test x$MISC_MAN_SUFFIX = x ; then
11929 case $SYSV_MAN_SECTIONS in
11930 true) MISC_MAN_SUFFIX=5 ;;
11931 *) MISC_MAN_SUFFIX=7 ;;
11932 esac
11933 fi
11934 if test x$MISC_MAN_DIR = x ; then
11935 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11936 fi
11937
11938 if test x$DRIVER_MAN_SUFFIX = x ; then
11939 case $SYSV_MAN_SECTIONS in
11940 true) DRIVER_MAN_SUFFIX=7 ;;
11941 *) DRIVER_MAN_SUFFIX=4 ;;
11942 esac
11943 fi
11944 if test x$DRIVER_MAN_DIR = x ; then
11945 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11946 fi
11947
11948 if test x$ADMIN_MAN_SUFFIX = x ; then
11949 case $SYSV_MAN_SECTIONS in
11950 true) ADMIN_MAN_SUFFIX=1m ;;
11951 *) ADMIN_MAN_SUFFIX=8 ;;
11952 esac
11953 fi
11954 if test x$ADMIN_MAN_DIR = x ; then
11955 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11956 fi
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972 XORG_MAN_PAGE="X Version 11"
11973
11974 MAN_SUBSTS="\
11975 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11976 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11977 -e 's|__xservername__|Xorg|g' \
11978 -e 's|__xconfigfile__|xorg.conf|g' \
11979 -e 's|__projectroot__|\$(prefix)|g' \
11980 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11981 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11982 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11983 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11984 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11985 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11986 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11987
11988
11989
11990
11991 AM_DEFAULT_VERBOSITY=0
11992
11993
11994
11995
11996
11997 # Checks for library functions.
11998 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
11999 if test "x$ac_cv_func_asprintf" = xyes
12000 then :
12001 printf '%s\n' "#define HAVE_ASPRINTF 1" >>confdefs.h
12002
12003 fi
12004
12005
12006 # Checks for typedefs, structures, and compiler characteristics.
12007 # Check whether --enable-largefile was given.
12008 if test ${enable_largefile+y}
12009 then :
12010 enableval=$enable_largefile;
12011 fi
12012 if test "$enable_largefile,$enable_year2038" != no,no
12013 then :
12014 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to support large files" >&5
12015 printf %s "checking for $CC option to support large files... " >&6; }
12016 if test ${ac_cv_sys_largefile_opts+y}
12017 then :
12018 printf %s "(cached) " >&6
12019 else case e in #(
12020 e) ac_save_CPPFLAGS=$CPPFLAGS
12021 ac_opt_found=no
12022 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1"; do
12023 if test x"$ac_opt" != x"none needed"
12024 then :
12025 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
12026 fi
12027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12028 /* end confdefs.h. */
12029 #include <sys/types.h>
12030 #ifndef FTYPE
12031 # define FTYPE off_t
12032 #endif
12033 /* Check that FTYPE can represent 2**63 - 1 correctly.
12034 We can't simply define LARGE_FTYPE to be 9223372036854775807,
12035 since some C++ compilers masquerading as C compilers
12036 incorrectly reject 9223372036854775807. */
12037 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
12038 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
12039 && LARGE_FTYPE % 2147483647 == 1)
12040 ? 1 : -1];
12041 int
12042 main (void)
12043 {
12044
12045 ;
12046 return 0;
12047 }
12048 _ACEOF
12049 if ac_fn_c_try_compile "$LINENO"
12050 then :
12051 if test x"$ac_opt" = x"none needed"
12052 then :
12053 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
12054 CPPFLAGS="$CPPFLAGS -DFTYPE=ino_t"
12055 if ac_fn_c_try_compile "$LINENO"
12056 then :
12057
12058 else case e in #(
12059 e) CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
12060 if ac_fn_c_try_compile "$LINENO"
12061 then :
12062 ac_opt='-D_FILE_OFFSET_BITS=64'
12063 fi
12064 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
12065 esac
12066 fi
12067 rm -f core conftest.err conftest.$ac_objext conftest.beam
12068 fi
12069 ac_cv_sys_largefile_opts=$ac_opt
12070 ac_opt_found=yes
12071 fi
12072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12073 test $ac_opt_found = no || break
12074 done
12075 CPPFLAGS=$ac_save_CPPFLAGS
12076
12077 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
12078 esac
12079 fi
12080 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
12081 printf '%s\n' "$ac_cv_sys_largefile_opts" >&6; }
12082
12083 ac_have_largefile=yes
12084 case $ac_cv_sys_largefile_opts in #(
12085 "none needed") :
12086 ;; #(
12087 "supported through gnulib") :
12088 ;; #(
12089 "support not detected") :
12090 ac_have_largefile=no ;; #(
12091 "-D_FILE_OFFSET_BITS=64") :
12092
12093 printf '%s\n' "#define _FILE_OFFSET_BITS 64" >>confdefs.h
12094 ;; #(
12095 "-D_LARGE_FILES=1") :
12096
12097 printf '%s\n' "#define _LARGE_FILES 1" >>confdefs.h
12098 ;; #(
12099 *) :
12100 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
12101 esac
12102
12103 if test "$enable_year2038" != no
12104 then :
12105 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to support timestamps after 2038" >&5
12106 printf %s "checking for $CC option to support timestamps after 2038... " >&6; }
12107 if test ${ac_cv_sys_year2038_opts+y}
12108 then :
12109 printf %s "(cached) " >&6
12110 else case e in #(
12111 e) ac_save_CPPFLAGS="$CPPFLAGS"
12112 ac_opt_found=no
12113 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
12114 if test x"$ac_opt" != x"none needed"
12115 then :
12116 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
12117 fi
12118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12119 /* end confdefs.h. */
12120
12121 #include <time.h>
12122 /* Check that time_t can represent 2**32 - 1 correctly. */
12123 #define LARGE_TIME_T \\
12124 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
12125 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
12126 && LARGE_TIME_T % 65537 == 0)
12127 ? 1 : -1];
12128
12129 int
12130 main (void)
12131 {
12132
12133 ;
12134 return 0;
12135 }
12136 _ACEOF
12137 if ac_fn_c_try_compile "$LINENO"
12138 then :
12139 ac_cv_sys_year2038_opts="$ac_opt"
12140 ac_opt_found=yes
12141 fi
12142 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12143 test $ac_opt_found = no || break
12144 done
12145 CPPFLAGS="$ac_save_CPPFLAGS"
12146 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
12147 esac
12148 fi
12149 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
12150 printf '%s\n' "$ac_cv_sys_year2038_opts" >&6; }
12151
12152 ac_have_year2038=yes
12153 case $ac_cv_sys_year2038_opts in #(
12154 "none needed") :
12155 ;; #(
12156 "support not detected") :
12157 ac_have_year2038=no ;; #(
12158 "-D_TIME_BITS=64") :
12159
12160 printf '%s\n' "#define _TIME_BITS 64" >>confdefs.h
12161 ;; #(
12162 "-D__MINGW_USE_VC2005_COMPAT") :
12163
12164 printf '%s\n' "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
12165 ;; #(
12166 "-U_USE_32_BIT_TIME_T"*) :
12167 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12168 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
12169 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
12170 will stop working after mid-January 2038. Remove
12171 _USE_32BIT_TIME_T from the compiler flags.
12172 See 'config.log' for more details" "$LINENO" 5; } ;; #(
12173 *) :
12174 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
12175 esac
12176
12177 fi
12178
12179 fi
12180
12181 # Checks for pkg-config packages
12182
12183 pkg_failed=no
12184 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for XKBPRINT" >&5
12185 printf %s "checking for XKBPRINT... " >&6; }
12186
12187 if test -n "$XKBPRINT_CFLAGS"; then
12188 pkg_cv_XKBPRINT_CFLAGS="$XKBPRINT_CFLAGS"
12189 elif test -n "$PKG_CONFIG"; then
12190 if test -n "$PKG_CONFIG" && \
12191 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11 xproto >= 7.0.17\""; } >&5
12192 ($PKG_CONFIG --exists --print-errors "xkbfile x11 xproto >= 7.0.17") 2>&5
12193 ac_status=$?
12194 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12195 test $ac_status = 0; }; then
12196 pkg_cv_XKBPRINT_CFLAGS=`$PKG_CONFIG --cflags "xkbfile x11 xproto >= 7.0.17" 2>/dev/null`
12197 test "x$?" != "x0" && pkg_failed=yes
12198 else
12199 pkg_failed=yes
12200 fi
12201 else
12202 pkg_failed=untried
12203 fi
12204 if test -n "$XKBPRINT_LIBS"; then
12205 pkg_cv_XKBPRINT_LIBS="$XKBPRINT_LIBS"
12206 elif test -n "$PKG_CONFIG"; then
12207 if test -n "$PKG_CONFIG" && \
12208 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11 xproto >= 7.0.17\""; } >&5
12209 ($PKG_CONFIG --exists --print-errors "xkbfile x11 xproto >= 7.0.17") 2>&5
12210 ac_status=$?
12211 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12212 test $ac_status = 0; }; then
12213 pkg_cv_XKBPRINT_LIBS=`$PKG_CONFIG --libs "xkbfile x11 xproto >= 7.0.17" 2>/dev/null`
12214 test "x$?" != "x0" && pkg_failed=yes
12215 else
12216 pkg_failed=yes
12217 fi
12218 else
12219 pkg_failed=untried
12220 fi
12221
12222
12223
12224 if test $pkg_failed = yes; then
12225 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
12226 printf '%s\n' "no" >&6; }
12227
12228 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12229 _pkg_short_errors_supported=yes
12230 else
12231 _pkg_short_errors_supported=no
12232 fi
12233 if test $_pkg_short_errors_supported = yes; then
12234 XKBPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xkbfile x11 xproto >= 7.0.17" 2>&1`
12235 else
12236 XKBPRINT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xkbfile x11 xproto >= 7.0.17" 2>&1`
12237 fi
12238 # Put the nasty error message in config.log where it belongs
12239 echo "$XKBPRINT_PKG_ERRORS" >&5
12240
12241 as_fn_error $? "Package requirements (xkbfile x11 xproto >= 7.0.17) were not met:
12242
12243 $XKBPRINT_PKG_ERRORS
12244
12245 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12246 installed software in a non-standard prefix.
12247
12248 Alternatively, you may set the environment variables XKBPRINT_CFLAGS
12249 and XKBPRINT_LIBS to avoid the need to call pkg-config.
12250 See the pkg-config man page for more details." "$LINENO" 5
12251 elif test $pkg_failed = untried; then
12252 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
12253 printf '%s\n' "no" >&6; }
12254 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12255 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
12256 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12257 is in your PATH or set the PKG_CONFIG environment variable to the full
12258 path to pkg-config.
12259
12260 Alternatively, you may set the environment variables XKBPRINT_CFLAGS
12261 and XKBPRINT_LIBS to avoid the need to call pkg-config.
12262 See the pkg-config man page for more details.
12263
12264 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12265 See 'config.log' for more details" "$LINENO" 5; }
12266 else
12267 XKBPRINT_CFLAGS=$pkg_cv_XKBPRINT_CFLAGS
12268 XKBPRINT_LIBS=$pkg_cv_XKBPRINT_LIBS
12269 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12270 printf '%s\n' "yes" >&6; }
12271
12272 fi
12273
12274 ac_config_files="$ac_config_files Makefile man/Makefile"
12275
12276 cat >confcache <<\_ACEOF
12277 # This file is a shell script that caches the results of configure
12278 # tests run on this system so they can be shared between configure
12279 # scripts and configure runs, see configure's option --config-cache.
12280 # It is not useful on other systems. If it contains results you don't
12281 # want to keep, you may remove or edit it.
12282 #
12283 # config.status only pays attention to the cache file if you give it
12284 # the --recheck option to rerun configure.
12285 #
12286 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
12287 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
12288 # following values.
12289
12290 _ACEOF
12291
12292 ac_cache_dump |
12293 sed '
12294 /^ac_cv_env_/b end
12295 t clear
12296 :clear
12297 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12298 t end
12299 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12300 :end' >>confcache
12301 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12302 if test -w "$cache_file"; then
12303 if test "x$cache_file" != "x/dev/null"; then
12304 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12305 printf '%s\n' "$as_me: updating cache $cache_file" >&6;}
12306 if test ! -f "$cache_file" || test -h "$cache_file"; then
12307 cat confcache >"$cache_file"
12308 else
12309 case $cache_file in #(
12310 */* | ?:*)
12311 mv -f confcache "$cache_file"$$ &&
12312 mv -f "$cache_file"$$ "$cache_file" ;; #(
12313 *)
12314 mv -f confcache "$cache_file" ;;
12315 esac
12316 fi
12317 fi
12318 else
12319 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12320 printf '%s\n' "$as_me: not updating unwritable cache $cache_file" >&6;}
12321 fi
12322 fi
12323 rm -f confcache
12324
12325 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12326 # Let make expand exec_prefix.
12327 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12328
12329 DEFS=-DHAVE_CONFIG_H
12330
12331 ac_libobjs=
12332 ac_ltlibobjs=
12333 U=
12334 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12335 # 1. Remove the extension, and $U if already installed.
12336 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12337 ac_i=`printf '%s\n' "$ac_i" | sed "$ac_script"`
12338 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12339 # will be set to the directory where LIBOBJS objects are built.
12340 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12341 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12342 done
12343 LIBOBJS=$ac_libobjs
12344
12345 LTLIBOBJS=$ac_ltlibobjs
12346
12347
12348 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12349 printf %s "checking that generated files are newer than configure... " >&6; }
12350 if test -n "$am_sleep_pid"; then
12351 # Hide warnings about reused PIDs.
12352 wait $am_sleep_pid 2>/dev/null
12353 fi
12354 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: done" >&5
12355 printf '%s\n' "done" >&6; }
12356 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12357 as_fn_error $? "conditional \"AMDEP\" was never defined.
12358 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12359 fi
12360 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12361 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12363 fi
12364 case $enable_silent_rules in # (((
12365 yes) AM_DEFAULT_VERBOSITY=0;;
12366 no) AM_DEFAULT_VERBOSITY=1;;
12367 esac
12368 if test $am_cv_make_support_nested_variables = yes; then
12369 AM_V='$(V)'
12370 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12371 else
12372 AM_V=$AM_DEFAULT_VERBOSITY
12373 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12374 fi
12375
12376 if test -n "$EXEEXT"; then
12377 am__EXEEXT_TRUE=
12378 am__EXEEXT_FALSE='#'
12379 else
12380 am__EXEEXT_TRUE='#'
12381 am__EXEEXT_FALSE=
12382 fi
12383
12384 # Check whether --enable-year2038 was given.
12385 if test ${enable_year2038+y}
12386 then :
12387 enableval=$enable_year2038;
12388 fi
12389
12390
12391 : "${CONFIG_STATUS=./config.status}"
12392 case $CONFIG_STATUS in #(
12393 -*) :
12394 CONFIG_STATUS=./$CONFIG_STATUS ;; #(
12395 */*) :
12396 ;; #(
12397 *) :
12398 CONFIG_STATUS=./$CONFIG_STATUS ;;
12399 esac
12400
12401 ac_write_fail=0
12402 ac_clean_CONFIG_STATUS='"$CONFIG_STATUS"'
12403 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12404 printf '%s\n' "$as_me: creating $CONFIG_STATUS" >&6;}
12405 as_write_fail=0
12406 cat >"$CONFIG_STATUS" <<_ASEOF || as_write_fail=1
12407 #! $SHELL
12408 # Generated by $as_me.
12409 # Run this file to recreate the current configuration.
12410 # Compiler output produced by configure, useful for debugging
12411 # configure, is in config.log if it exists.
12412
12413 debug=false
12414 ac_cs_recheck=false
12415 ac_cs_silent=false
12416
12417 SHELL=\${CONFIG_SHELL-$SHELL}
12418 export SHELL
12419 _ASEOF
12420 cat >>"$CONFIG_STATUS" <<\_ASEOF || as_write_fail=1
12421 ## -------------------- ##
12422 ## M4sh Initialization. ##
12423 ## -------------------- ##
12424
12425 # Be more Bourne compatible
12426 DUALCASE=1; export DUALCASE # for MKS sh
12427 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12428 then :
12429 emulate sh
12430 NULLCMD=:
12431 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12432 # contradicts POSIX and common usage. Disable this.
12433 alias -g '${1+"$@"}'='"$@"'
12434 setopt NO_GLOB_SUBST
12435 else case e in #(
12436 e) case `(set -o) 2>/dev/null` in #(
12437 *posix*) :
12438 set -o posix ;; #(
12439 *) :
12440 ;;
12441 esac ;;
12442 esac
12443 fi
12444
12445
12446
12447 # Reset variables that may have inherited troublesome values from
12448 # the environment.
12449
12450 # IFS needs to be set, to space, tab, and newline, in precisely that order.
12451 # (If _AS_PATH_WALK were called with IFS unset, it would have the
12452 # side effect of setting IFS to empty, thus disabling word splitting.)
12453 # Quoting is to prevent editors from complaining about space-tab.
12454 as_nl='
12455 '
12456 export as_nl
12457 IFS=" "" $as_nl"
12458
12459 PS1='$ '
12460 PS2='> '
12461 PS4='+ '
12462
12463 # Ensure predictable behavior from utilities with locale-dependent output.
12464 LC_ALL=C
12465 export LC_ALL
12466 LANGUAGE=C
12467 export LANGUAGE
12468
12469 # We cannot yet rely on "unset" to work, but we need these variables
12470 # to be unset--not just set to an empty or harmless value--now, to
12471 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
12472 # also avoids known problems related to "unset" and subshell syntax
12473 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12474 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12475 do eval test \${$as_var+y} \
12476 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12477 done
12478
12479 # Ensure that fds 0, 1, and 2 are open.
12480 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12481 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12482 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
12483
12484 # The user is always right.
12485 if ${PATH_SEPARATOR+false} :; then
12486 PATH_SEPARATOR=:
12487 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12488 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12489 PATH_SEPARATOR=';'
12490 }
12491 fi
12492
12493
12494 # Find who we are. Look in the path if we contain no directory separator.
12495 as_myself=
12496 case $0 in #((
12497 *[\\/]* ) as_myself=$0 ;;
12498 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12499 for as_dir in $PATH
12500 do
12501 IFS=$as_save_IFS
12502 case $as_dir in #(((
12503 '') as_dir=./ ;;
12504 */) ;;
12505 *) as_dir=$as_dir/ ;;
12506 esac
12507 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12508 done
12509 IFS=$as_save_IFS
12510
12511 ;;
12512 esac
12513 # We did not find ourselves, most probably we were run as 'sh COMMAND'
12514 # in which case we are not to be found in the path.
12515 if test "x$as_myself" = x; then
12516 as_myself=$0
12517 fi
12518 if test ! -f "$as_myself"; then
12519 printf '%s\n' "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12520 exit 1
12521 fi
12522
12523
12524
12525 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12526 # ----------------------------------------
12527 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12528 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12529 # script with STATUS, using 1 if that was 0.
12530 as_fn_error ()
12531 {
12532 as_status=$1; test $as_status -eq 0 && as_status=1
12533 if test "$4"; then
12534 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12535 printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12536 fi
12537 printf '%s\n' "$as_me: error: $2" >&2
12538 as_fn_exit $as_status
12539 } # as_fn_error
12540
12541
12542 # as_fn_set_status STATUS
12543 # -----------------------
12544 # Set $? to STATUS, without forking.
12545 as_fn_set_status ()
12546 {
12547 return $1
12548 } # as_fn_set_status
12549
12550 # as_fn_exit STATUS
12551 # -----------------
12552 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12553 as_fn_exit ()
12554 {
12555 set +e
12556 as_fn_set_status $1
12557 exit $1
12558 } # as_fn_exit
12559
12560 # as_fn_unset VAR
12561 # ---------------
12562 # Portably unset VAR.
12563 as_fn_unset ()
12564 {
12565 { eval $1=; unset $1;}
12566 }
12567 as_unset=as_fn_unset
12568
12569 # as_fn_append VAR VALUE
12570 # ----------------------
12571 # Append the text in VALUE to the end of the definition contained in VAR. Take
12572 # advantage of any shell optimizations that allow amortized linear growth over
12573 # repeated appends, instead of the typical quadratic growth present in naive
12574 # implementations.
12575 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12576 then :
12577 eval 'as_fn_append ()
12578 {
12579 eval $1+=\$2
12580 }'
12581 else case e in #(
12582 e) as_fn_append ()
12583 {
12584 eval $1=\$$1\$2
12585 } ;;
12586 esac
12587 fi # as_fn_append
12588
12589 # as_fn_arith ARG...
12590 # ------------------
12591 # Perform arithmetic evaluation on the ARGs, and store the result in the
12592 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12593 # must be portable across $(()) and expr.
12594 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12595 then :
12596 eval 'as_fn_arith ()
12597 {
12598 as_val=$(( $* ))
12599 }'
12600 else case e in #(
12601 e) as_fn_arith ()
12602 {
12603 as_val=`expr "$@" || test $? -eq 1`
12604 } ;;
12605 esac
12606 fi # as_fn_arith
12607
12608
12609 if expr a : '\(a\)' >/dev/null 2>&1 &&
12610 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12611 as_expr=expr
12612 else
12613 as_expr=false
12614 fi
12615
12616 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12617 as_basename=basename
12618 else
12619 as_basename=false
12620 fi
12621
12622 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12623 as_dirname=dirname
12624 else
12625 as_dirname=false
12626 fi
12627
12628 as_me=`$as_basename -- "$0" ||
12629 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12630 X"$0" : 'X\(//\)$' \| \
12631 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12632 printf '%s\n' X/"$0" |
12633 sed '/^.*\/\([^/][^/]*\)\/*$/{
12634 s//\1/
12635 q
12636 }
12637 /^X\/\(\/\/\)$/{
12638 s//\1/
12639 q
12640 }
12641 /^X\/\(\/\).*/{
12642 s//\1/
12643 q
12644 }
12645 s/.*/./; q'`
12646
12647 # Avoid depending upon Character Ranges.
12648 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12649 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12650 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12651 as_cr_digits='0123456789'
12652 as_cr_alnum=$as_cr_Letters$as_cr_digits
12653
12654 rm -f conf$$ conf$$.exe conf$$.file
12655 if test -d conf$$.dir; then
12656 rm -f conf$$.dir/conf$$.file
12657 else
12658 rm -f conf$$.dir
12659 mkdir conf$$.dir 2>/dev/null
12660 fi
12661 if (echo >conf$$.file) 2>/dev/null; then
12662 if ln -s conf$$.file conf$$ 2>/dev/null; then
12663 as_ln_s='ln -s'
12664 # ... but there are two gotchas:
12665 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12666 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12667 # In both cases, we have to default to 'cp -pR'.
12668 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12669 as_ln_s='cp -pR'
12670 elif ln conf$$.file conf$$ 2>/dev/null; then
12671 as_ln_s=ln
12672 else
12673 as_ln_s='cp -pR'
12674 fi
12675 else
12676 as_ln_s='cp -pR'
12677 fi
12678 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12679 rmdir conf$$.dir 2>/dev/null
12680
12681
12682 # as_fn_mkdir_p
12683 # -------------
12684 # Create "$as_dir" as a directory, including parents if necessary.
12685 as_fn_mkdir_p ()
12686 {
12687
12688 case $as_dir in #(
12689 -*) as_dir=./$as_dir;;
12690 esac
12691 test -d "$as_dir" || eval $as_mkdir_p || {
12692 as_dirs=
12693 while :; do
12694 case $as_dir in #(
12695 *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12696 *) as_qdir=$as_dir;;
12697 esac
12698 as_dirs="'$as_qdir' $as_dirs"
12699 as_dir=`$as_dirname -- "$as_dir" ||
12700 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12701 X"$as_dir" : 'X\(//\)[^/]' \| \
12702 X"$as_dir" : 'X\(//\)$' \| \
12703 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12704 printf '%s\n' X"$as_dir" |
12705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12706 s//\1/
12707 q
12708 }
12709 /^X\(\/\/\)[^/].*/{
12710 s//\1/
12711 q
12712 }
12713 /^X\(\/\/\)$/{
12714 s//\1/
12715 q
12716 }
12717 /^X\(\/\).*/{
12718 s//\1/
12719 q
12720 }
12721 s/.*/./; q'`
12722 test -d "$as_dir" && break
12723 done
12724 test -z "$as_dirs" || eval "mkdir $as_dirs"
12725 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12726
12727
12728 } # as_fn_mkdir_p
12729 if mkdir -p . 2>/dev/null; then
12730 as_mkdir_p='mkdir -p "$as_dir"'
12731 else
12732 test -d ./-p && rmdir ./-p
12733 as_mkdir_p=false
12734 fi
12735
12736
12737 # as_fn_executable_p FILE
12738 # -----------------------
12739 # Test if FILE is an executable regular file.
12740 as_fn_executable_p ()
12741 {
12742 test -f "$1" && test -x "$1"
12743 } # as_fn_executable_p
12744 as_test_x='test -x'
12745 as_executable_p=as_fn_executable_p
12746
12747 # Sed expression to map a string onto a valid CPP name.
12748 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12749 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12750
12751 # Sed expression to map a string onto a valid variable name.
12752 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12753 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12754
12755
12756 exec 6>&1
12757 ## ------------------------------------- ##
12758 ## Main body of "$CONFIG_STATUS" script. ##
12759 ## ------------------------------------- ##
12760 _ASEOF
12761 test $as_write_fail = 0 && chmod +x "$CONFIG_STATUS" || ac_write_fail=1
12762
12763 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12764 # Save the log message, to keep $0 and so on meaningful, and to
12765 # report actual input values of CONFIG_FILES etc. instead of their
12766 # values after options handling.
12767 ac_log="
12768 This file was extended by xkbprint $as_me 1.0.8, which was
12769 generated by GNU Autoconf 2.73. Invocation command line was
12770
12771 CONFIG_FILES = $CONFIG_FILES
12772 CONFIG_HEADERS = $CONFIG_HEADERS
12773 CONFIG_LINKS = $CONFIG_LINKS
12774 CONFIG_COMMANDS = $CONFIG_COMMANDS
12775 $ $0 $@
12776
12777 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12778 "
12779
12780 _ACEOF
12781
12782 case $ac_config_files in *"
12783 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12784 esac
12785
12786 case $ac_config_headers in *"
12787 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12788 esac
12789
12790
12791 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12792 # Files that config.status was made for.
12793 config_files="$ac_config_files"
12794 config_headers="$ac_config_headers"
12795 config_commands="$ac_config_commands"
12796
12797 _ACEOF
12798
12799 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12800 ac_cs_usage="\
12801 '$as_me' instantiates files and other configuration actions
12802 from templates according to the current configuration. Unless the files
12803 and actions are specified as TAGs, all are instantiated by default.
12804
12805 Usage: $0 [OPTION]... [TAG]...
12806
12807 -h, --help print this help, then exit
12808 -V, --version print version number and configuration settings, then exit
12809 --config print configuration, then exit
12810 -q, --quiet, --silent
12811 do not print progress messages
12812 -d, --debug don't remove temporary files
12813 --recheck update $as_me by reconfiguring in the same conditions
12814 --file=FILE[:TEMPLATE]
12815 instantiate the configuration file FILE
12816 --header=FILE[:TEMPLATE]
12817 instantiate the configuration header FILE
12818
12819 Configuration files:
12820 $config_files
12821
12822 Configuration headers:
12823 $config_headers
12824
12825 Configuration commands:
12826 $config_commands
12827
12828 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbprint/-/issues>."
12829
12830 _ACEOF
12831 ac_cs_config=`printf '%s\n' "$ac_configure_args" | sed "$ac_safe_unquote"`
12832 ac_cs_config_escaped=`printf '%s\n' "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12833 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12834 ac_cs_config='$ac_cs_config_escaped'
12835 ac_cs_version="\\
12836 xkbprint config.status 1.0.8
12837 configured by $0, generated by GNU Autoconf 2.73,
12838 with options \\"\$ac_cs_config\\"
12839
12840 Copyright (C) 2026 Free Software Foundation, Inc.
12841 This config.status script is free software; the Free Software Foundation
12842 gives unlimited permission to copy, distribute and modify it."
12843
12844 ac_pwd='$ac_pwd'
12845 srcdir='$srcdir'
12846 INSTALL='$INSTALL'
12847 MKDIR_P='$MKDIR_P'
12848 AWK='$AWK'
12849 test -n "\$AWK" || {
12850 awk '' </dev/null ||
12851 as_fn_error \$? "try installing gawk"
12852 AWK=awk
12853 }
12854 _ACEOF
12855
12856 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12857 # The default lists apply if the user does not specify any file.
12858 ac_need_defaults=:
12859 while test $# != 0
12860 do
12861 case $1 in
12862 --*=?*)
12863 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12864 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12865 ac_shift=:
12866 ;;
12867 --*=)
12868 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12869 ac_optarg=
12870 ac_shift=:
12871 ;;
12872 *)
12873 ac_option=$1
12874 ac_optarg=$2
12875 ac_shift=shift
12876 ;;
12877 esac
12878
12879 case $ac_option in
12880 # Handling of the options.
12881 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12882 ac_cs_recheck=: ;;
12883 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12884 printf '%s\n' "$ac_cs_version"; exit ;;
12885 --config | --confi | --conf | --con | --co | --c )
12886 printf '%s\n' "$ac_cs_config"; exit ;;
12887 --debug | --debu | --deb | --de | --d | -d )
12888 debug=: ;;
12889 --file | --fil | --fi | --f )
12890 $ac_shift
12891 case $ac_optarg in
12892 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12893 '') as_fn_error $? "missing file argument" ;;
12894 esac
12895 as_fn_append CONFIG_FILES " '$ac_optarg'"
12896 ac_need_defaults=false;;
12897 --header | --heade | --head | --hea )
12898 $ac_shift
12899 case $ac_optarg in
12900 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12901 esac
12902 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12903 ac_need_defaults=false;;
12904 --he | --h)
12905 # Conflict between --help and --header
12906 as_fn_error $? "ambiguous option: '$1'
12907 Try '$0 --help' for more information.";;
12908 --help | --hel | -h )
12909 printf '%s\n' "$ac_cs_usage"; exit ;;
12910 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12911 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12912 ac_cs_silent=: ;;
12913
12914 # This is an error.
12915 -*) as_fn_error $? "unrecognized option: '$1'
12916 Try '$0 --help' for more information." ;;
12917
12918 *) as_fn_append ac_config_targets " $1"
12919 ac_need_defaults=false ;;
12920
12921 esac
12922 shift
12923 done
12924
12925 ac_configure_extra_args=
12926
12927 if $ac_cs_silent; then
12928 exec 6>/dev/null
12929 ac_configure_extra_args="$ac_configure_extra_args --silent"
12930 fi
12931
12932 _ACEOF
12933 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12934 if \$ac_cs_recheck; then
12935 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12936 shift
12937 \printf '%s\n' "running CONFIG_SHELL=$SHELL \$*" >&6
12938 CONFIG_SHELL='$SHELL'
12939 export CONFIG_SHELL
12940 exec "\$@"
12941 fi
12942
12943 _ACEOF
12944 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12945 exec 5>>config.log
12946 {
12947 echo
12948 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12949 ## Running $as_me. ##
12950 _ASBOX
12951 printf '%s\n' "$ac_log"
12952 } >&5
12953
12954 _ACEOF
12955 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12956 #
12957 # INIT-COMMANDS
12958 #
12959 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12960
12961 _ACEOF
12962
12963 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12964
12965 # Handling of arguments.
12966 for ac_config_target in $ac_config_targets
12967 do
12968 case $ac_config_target in
12969 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12970 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12971 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12972 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12973
12974 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12975 esac
12976 done
12977
12978
12979 # If the user did not use the arguments to specify the items to instantiate,
12980 # then the envvar interface is used. Set only those that are not.
12981 # We use the long form for the default assignment because of an extremely
12982 # bizarre bug on SunOS 4.1.3.
12983 if $ac_need_defaults; then
12984 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12985 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12986 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12987 fi
12988
12989 # Have a temporary directory for convenience. Make it in the build tree
12990 # simply because there is no reason against having it here, and in addition,
12991 # creating and moving files from /tmp can sometimes cause problems.
12992 # Hook for its removal unless debugging.
12993 # Note that there is a small window in which the directory will not be cleaned:
12994 # after its creation but before its name has been assigned to '$tmp'.
12995 $debug ||
12996 {
12997 tmp= ac_tmp=
12998 trap 'exit_status=$?
12999 : "${ac_tmp:=$tmp}"
13000 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13001 ' 0
13002 trap 'as_fn_exit 1' 1 2 13 15
13003 }
13004 # Create a (secure) tmp directory for tmp files.
13005
13006 {
13007 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13008 test -d "$tmp"
13009 } ||
13010 {
13011 tmp=./conf$$-$RANDOM
13012 (umask 077 && mkdir "$tmp")
13013 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13014 ac_tmp=$tmp
13015
13016 # Set up the scripts for CONFIG_FILES section.
13017 # No need to generate them if there are no CONFIG_FILES.
13018 # This happens for instance with './config.status config.h'.
13019 if test -n "$CONFIG_FILES"; then
13020
13021
13022 ac_cr=`echo X | tr X '\015'`
13023 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13024 # But we know of no other shell where ac_cr would be empty at this
13025 # point, so we can use a bashism as a fallback.
13026 if test "x$ac_cr" = x; then
13027 eval ac_cr=\$\'\\r\'
13028 fi
13029 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13030 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13031 ac_cs_awk_cr='\\r'
13032 else
13033 ac_cs_awk_cr=$ac_cr
13034 fi
13035
13036 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13037 _ACEOF
13038
13039
13040 {
13041 echo "cat >conf$$subs.awk <<_ACEOF" &&
13042 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13043 echo "_ACEOF"
13044 } >conf$$subs.sh ||
13045 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13046 ac_delim_num=`echo "$ac_subst_vars" | sed -n '$='`
13047 ac_delim='%!_!# '
13048 for ac_last_try in false false false false false :; do
13049 . ./conf$$subs.sh ||
13050 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13051
13052 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | sed -n '$='`
13053 if test $ac_delim_n = $ac_delim_num; then
13054 break
13055 elif $ac_last_try; then
13056 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13057 else
13058 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13059 fi
13060 done
13061 rm -f conf$$subs.sh
13062
13063 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13064 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13065 _ACEOF
13066 sed -n '
13067 h
13068 s/^/S["/; s/!.*/"]=/
13069 p
13070 g
13071 s/^[^!]*!//
13072 :repl
13073 t repl
13074 s/'"$ac_delim"'$//
13075 t delim
13076 :nl
13077 h
13078 s/\(.\{148\}\)..*/\1/
13079 t more1
13080 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13081 p
13082 n
13083 b repl
13084 :more1
13085 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13086 p
13087 g
13088 s/.\{148\}//
13089 t nl
13090 :delim
13091 h
13092 s/\(.\{148\}\)..*/\1/
13093 t more2
13094 s/["\\]/\\&/g; s/^/"/; s/$/"/
13095 p
13096 b
13097 :more2
13098 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13099 p
13100 g
13101 s/.\{148\}//
13102 t delim
13103 ' <conf$$subs.awk | sed '
13104 /^[^""]/{
13105 N
13106 s/\n//
13107 }
13108 ' >>"$CONFIG_STATUS" || ac_write_fail=1
13109 rm -f conf$$subs.awk
13110 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13111 _ACAWK
13112 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13113 for (key in S) S_is_set[key] = 1
13114 FS = ""
13115
13116 }
13117 {
13118 line = $ 0
13119 nfields = split(line, field, "@")
13120 substed = 0
13121 len = length(field[1])
13122 for (i = 2; i < nfields; i++) {
13123 key = field[i]
13124 keylen = length(key)
13125 if (S_is_set[key]) {
13126 value = S[key]
13127 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13128 len += length(value) + length(field[++i])
13129 substed = 1
13130 } else
13131 len += 1 + keylen
13132 }
13133
13134 print line
13135 }
13136
13137 _ACAWK
13138 _ACEOF
13139 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13140 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13141 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13142 else
13143 cat
13144 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13145 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13146 _ACEOF
13147
13148 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13149 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13150 # trailing colons and then remove the whole line if VPATH becomes empty
13151 # (actually we leave an empty line to preserve line numbers).
13152 if test "x$srcdir" = x.; then
13153 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13154 h
13155 s///
13156 s/^/:/
13157 s/[ ]*$/:/
13158 s/:\$(srcdir):/:/g
13159 s/:\${srcdir}:/:/g
13160 s/:@srcdir@:/:/g
13161 s/^:*//
13162 s/:*$//
13163 x
13164 s/\(=[ ]*\).*/\1/
13165 G
13166 s/\n//
13167 s/^[^=]*=[ ]*$//
13168 }'
13169 fi
13170
13171 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13172 fi # test -n "$CONFIG_FILES"
13173
13174 # Set up the scripts for CONFIG_HEADERS section.
13175 # No need to generate them if there are no CONFIG_HEADERS.
13176 # This happens for instance with './config.status Makefile'.
13177 if test -n "$CONFIG_HEADERS"; then
13178 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13179 BEGIN {
13180 _ACEOF
13181
13182 # Transform confdefs.h into an awk script 'defines.awk', embedded as
13183 # here-document in config.status, that substitutes the proper values into
13184 # config.h.in to produce config.h.
13185
13186 # Create a delimiter string that does not exist in confdefs.h, to ease
13187 # handling of long lines.
13188 ac_delim='%!_!# '
13189 for ac_last_try in false false :; do
13190 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13191 if test -z "$ac_tt"; then
13192 break
13193 elif $ac_last_try; then
13194 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13195 else
13196 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13197 fi
13198 done
13199
13200 # For the awk script, D is an array of macro values keyed by name,
13201 # likewise P contains macro parameters if any. Preserve backslash
13202 # newline sequences.
13203
13204 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13205 sed -n '
13206 s/.\{148\}/&'"$ac_delim"'/g
13207 t rset
13208 :rset
13209 s/^[ ]*#[ ]*define[ ][ ]*/ /
13210 t def
13211 d
13212 :def
13213 s/\\$//
13214 t bsnl
13215 s/["\\]/\\&/g
13216 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13217 D["\1"]=" \3"/p
13218 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13219 d
13220 :bsnl
13221 s/["\\]/\\&/g
13222 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13223 D["\1"]=" \3\\\\\\n"\\/p
13224 t cont
13225 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13226 t cont
13227 d
13228 :cont
13229 n
13230 s/.\{148\}/&'"$ac_delim"'/g
13231 t clear
13232 :clear
13233 s/\\$//
13234 t bsnlc
13235 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13236 d
13237 :bsnlc
13238 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13239 b cont
13240 ' <confdefs.h | sed '
13241 s/'"$ac_delim"'/"\\\
13242 "/g' >>"$CONFIG_STATUS" || ac_write_fail=1
13243
13244 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13245 for (key in D) D_is_set[key] = 1
13246 FS = ""
13247 }
13248 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13249 line = \$ 0
13250 split(line, arg, " ")
13251 if (arg[1] == "#") {
13252 defundef = arg[2]
13253 mac1 = arg[3]
13254 } else {
13255 defundef = substr(arg[1], 2)
13256 mac1 = arg[2]
13257 }
13258 split(mac1, mac2, "(") #)
13259 macro = mac2[1]
13260 prefix = substr(line, 1, index(line, defundef) - 1)
13261 if (D_is_set[macro]) {
13262 suffix = P[macro] D[macro]
13263 while (suffix ~ /[\t ]$/) {
13264 suffix = substr(suffix, 1, length(suffix) - 1)
13265 }
13266 # Preserve the white space surrounding the "#".
13267 print prefix "define", macro suffix
13268 next
13269 } else {
13270 # Replace #undef with comments. This is necessary, for example,
13271 # in the case of _POSIX_SOURCE, which is predefined and required
13272 # on some systems where configure will not decide to define it.
13273 if (defundef == "undef") {
13274 print "/*", prefix defundef, macro, "*/"
13275 next
13276 }
13277 }
13278 }
13279 { print }
13280 _ACAWK
13281 _ACEOF
13282 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13283 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13284 fi # test -n "$CONFIG_HEADERS"
13285
13286
13287 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13288 shift
13289 for ac_tag
13290 do
13291 case $ac_tag in
13292 :[FHLC]) ac_mode=$ac_tag; continue;;
13293 esac
13294 case $ac_mode$ac_tag in
13295 :[FHL]*:*);;
13296 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
13297 :[FH]-) ac_tag=-:-;;
13298 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13299 esac
13300 ac_save_IFS=$IFS
13301 IFS=:
13302 set x $ac_tag
13303 IFS=$ac_save_IFS
13304 shift
13305 ac_file=$1
13306 shift
13307
13308 case $ac_mode in
13309 :L) ac_source=$1;;
13310 :[FH])
13311 ac_file_inputs=
13312 for ac_f
13313 do
13314 case $ac_f in
13315 -) ac_f="$ac_tmp/stdin";;
13316 *) # Look for the file first in the build tree, then in the source tree
13317 # (if the path is not absolute). The absolute path cannot be DOS-style,
13318 # because $ac_f cannot contain ':'.
13319 test -f "$ac_f" ||
13320 case $ac_f in
13321 [\\/$]*) false;;
13322 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13323 esac ||
13324 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
13325 esac
13326 case $ac_f in *\'*) ac_f=`printf '%s\n' "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13327 as_fn_append ac_file_inputs " '$ac_f'"
13328 done
13329
13330 # Let's still pretend it is 'configure' which instantiates (i.e., don't
13331 # use $as_me), people would be surprised to read:
13332 # /* config.h. Generated by config.status. */
13333 configure_input='Generated from '`
13334 printf '%s\n' "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13335 `' by configure.'
13336 if test x"$ac_file" != x-; then
13337 configure_input="$ac_file. $configure_input"
13338 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13339 printf '%s\n' "$as_me: creating $ac_file" >&6;}
13340 fi
13341 # Neutralize special characters interpreted by sed in replacement strings.
13342 case $configure_input in #(
13343 *\&* | *\|* | *\\* )
13344 ac_sed_conf_input=`printf '%s\n' "$configure_input" |
13345 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13346 *) ac_sed_conf_input=$configure_input;;
13347 esac
13348
13349 case $ac_tag in
13350 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13351 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13352 esac
13353 ;;
13354 esac
13355
13356 ac_dir=`$as_dirname -- "$ac_file" ||
13357 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13358 X"$ac_file" : 'X\(//\)[^/]' \| \
13359 X"$ac_file" : 'X\(//\)$' \| \
13360 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13361 printf '%s\n' X"$ac_file" |
13362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13363 s//\1/
13364 q
13365 }
13366 /^X\(\/\/\)[^/].*/{
13367 s//\1/
13368 q
13369 }
13370 /^X\(\/\/\)$/{
13371 s//\1/
13372 q
13373 }
13374 /^X\(\/\).*/{
13375 s//\1/
13376 q
13377 }
13378 s/.*/./; q'`
13379 as_dir="$ac_dir"; as_fn_mkdir_p
13380 ac_builddir=.
13381
13382 case "$ac_dir" in
13383 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13384 *)
13385 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'`
13386 # A ".." for each directory in $ac_dir_suffix.
13387 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13388 case $ac_top_builddir_sub in
13389 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13390 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13391 esac ;;
13392 esac
13393 ac_abs_top_builddir=$ac_pwd
13394 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13395 # for backward compatibility:
13396 ac_top_builddir=$ac_top_build_prefix
13397
13398 case $srcdir in
13399 .) # We are building in place.
13400 ac_srcdir=.
13401 ac_top_srcdir=$ac_top_builddir_sub
13402 ac_abs_top_srcdir=$ac_pwd ;;
13403 [\\/]* | ?:[\\/]* ) # Absolute name.
13404 ac_srcdir=$srcdir$ac_dir_suffix;
13405 ac_top_srcdir=$srcdir
13406 ac_abs_top_srcdir=$srcdir ;;
13407 *) # Relative name.
13408 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13409 ac_top_srcdir=$ac_top_build_prefix$srcdir
13410 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13411 esac
13412 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13413
13414
13415 case $ac_mode in
13416 :F)
13417 #
13418 # CONFIG_FILE
13419 #
13420
13421 case $INSTALL in
13422 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13423 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13424 esac
13425 ac_MKDIR_P=$MKDIR_P
13426 case $MKDIR_P in
13427 [\\/$]* | ?:[\\/]* ) ;;
13428 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13429 esac
13430 _ACEOF
13431
13432 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13433 # If the template does not know about datarootdir, expand it.
13434 # FIXME: This hack should be removed a few years after 2.60.
13435 ac_datarootdir_hack=; ac_datarootdir_seen=
13436 ac_sed_dataroot='
13437 /datarootdir/ {
13438 p
13439 q
13440 }
13441 /@datadir@/p
13442 /@docdir@/p
13443 /@infodir@/p
13444 /@localedir@/p
13445 /@mandir@/p'
13446 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13447 *datarootdir*) ac_datarootdir_seen=yes;;
13448 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13449 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13450 printf '%s\n' "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13451 _ACEOF
13452 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13453 ac_datarootdir_hack='
13454 s&@datadir@&$datadir&g
13455 s&@docdir@&$docdir&g
13456 s&@infodir@&$infodir&g
13457 s&@localedir@&$localedir&g
13458 s&@mandir@&$mandir&g
13459 s&\\\${datarootdir}&$datarootdir&g' ;;
13460 esac
13461 _ACEOF
13462
13463 # Neutralize VPATH when '$srcdir' = '.'.
13464 # Shell code in configure.ac might set extrasub.
13465 # FIXME: do we really want to maintain this feature?
13466 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13467 ac_sed_extra="$ac_vpsub
13468 $extrasub
13469 _ACEOF
13470 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13471 :t
13472 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13473 s|@configure_input@|$ac_sed_conf_input|;t t
13474 s&@top_builddir@&$ac_top_builddir_sub&;t t
13475 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13476 s&@srcdir@&$ac_srcdir&;t t
13477 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13478 s&@top_srcdir@&$ac_top_srcdir&;t t
13479 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13480 s&@builddir@&$ac_builddir&;t t
13481 s&@abs_builddir@&$ac_abs_builddir&;t t
13482 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13483 s&@INSTALL@&$ac_INSTALL&;t t
13484 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13485 $ac_datarootdir_hack
13486 "
13487 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13488 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13489
13490 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13491 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13492 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13493 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13494 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13495 which seems to be undefined. Please make sure it is defined" >&5
13496 printf '%s\n' "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13497 which seems to be undefined. Please make sure it is defined" >&2;}
13498
13499 rm -f "$ac_tmp/stdin"
13500 case $ac_file in
13501 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13502 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13503 esac \
13504 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13505 ;;
13506 :H)
13507 #
13508 # CONFIG_HEADER
13509 #
13510 if test x"$ac_file" != x-; then
13511 {
13512 printf '%s\n' "/* $configure_input */" >&1 \
13513 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13514 } >"$ac_tmp/config.h" \
13515 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13516 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13517 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13518 printf '%s\n' "$as_me: $ac_file is unchanged" >&6;}
13519 else
13520 rm -f "$ac_file"
13521 mv "$ac_tmp/config.h" "$ac_file" \
13522 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13523 fi
13524 else
13525 printf '%s\n' "/* $configure_input */" >&1 \
13526 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13527 || as_fn_error $? "could not create -" "$LINENO" 5
13528 fi
13529 # Compute "$ac_file"'s index in $config_headers.
13530 _am_arg="$ac_file"
13531 _am_stamp_count=1
13532 for _am_header in $config_headers :; do
13533 case $_am_header in
13534 $_am_arg | $_am_arg:* )
13535 break ;;
13536 * )
13537 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13538 esac
13539 done
13540 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13541 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13542 X"$_am_arg" : 'X\(//\)[^/]' \| \
13543 X"$_am_arg" : 'X\(//\)$' \| \
13544 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13545 printf '%s\n' X"$_am_arg" |
13546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13547 s//\1/
13548 q
13549 }
13550 /^X\(\/\/\)[^/].*/{
13551 s//\1/
13552 q
13553 }
13554 /^X\(\/\/\)$/{
13555 s//\1/
13556 q
13557 }
13558 /^X\(\/\).*/{
13559 s//\1/
13560 q
13561 }
13562 s/.*/./; q'`/stamp-h$_am_stamp_count
13563 ;;
13564
13565 :C) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13566 printf '%s\n' "$as_me: executing $ac_file commands" >&6;}
13567 ;;
13568 esac
13569
13570
13571 case $ac_file$ac_mode in
13572 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13573 # Older Autoconf quotes --file arguments for eval, but not when files
13574 # are listed without --file. Let's play safe and only enable the eval
13575 # if we detect the quoting.
13576 # TODO: see whether this extra hack can be removed once we start
13577 # requiring Autoconf 2.70 or later.
13578 case $CONFIG_FILES in #(
13579 *\'*) :
13580 eval set x "$CONFIG_FILES" ;; #(
13581 *) :
13582 set x $CONFIG_FILES ;; #(
13583 *) :
13584 ;;
13585 esac
13586 shift
13587 # Used to flag and report bootstrapping failures.
13588 am_rc=0
13589 for am_mf
13590 do
13591 # Strip MF so we end up with the name of the file.
13592 am_mf=`printf '%s\n' "$am_mf" | sed -e 's/:.*$//'`
13593 # Check whether this is an Automake generated Makefile which includes
13594 # dependency-tracking related rules and includes.
13595 # Grep'ing the whole file directly is not great: AIX grep has a line
13596 # limit of 2048, but all sed's we know have understand at least 4000.
13597 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13598 || continue
13599 am_dirpart=`$as_dirname -- "$am_mf" ||
13600 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13601 X"$am_mf" : 'X\(//\)[^/]' \| \
13602 X"$am_mf" : 'X\(//\)$' \| \
13603 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13604 printf '%s\n' X"$am_mf" |
13605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13606 s//\1/
13607 q
13608 }
13609 /^X\(\/\/\)[^/].*/{
13610 s//\1/
13611 q
13612 }
13613 /^X\(\/\/\)$/{
13614 s//\1/
13615 q
13616 }
13617 /^X\(\/\).*/{
13618 s//\1/
13619 q
13620 }
13621 s/.*/./; q'`
13622 am_filepart=`$as_basename -- "$am_mf" ||
13623 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13624 X"$am_mf" : 'X\(//\)$' \| \
13625 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13626 printf '%s\n' X/"$am_mf" |
13627 sed '/^.*\/\([^/][^/]*\)\/*$/{
13628 s//\1/
13629 q
13630 }
13631 /^X\/\(\/\/\)$/{
13632 s//\1/
13633 q
13634 }
13635 /^X\/\(\/\).*/{
13636 s//\1/
13637 q
13638 }
13639 s/.*/./; q'`
13640 { echo "$as_me:$LINENO: cd "$am_dirpart" \
13641 && sed -e '/# am--include-marker/d' "$am_filepart" \
13642 | $MAKE -f - am--depfiles" >&5
13643 (cd "$am_dirpart" \
13644 && sed -e '/# am--include-marker/d' "$am_filepart" \
13645 | $MAKE -f - am--depfiles) >&5 2>&5
13646 ac_status=$?
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); } || am_rc=$?
13649 done
13650 if test $am_rc -ne 0; then
13651 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13652 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
13653 as_fn_error $? "Something went wrong bootstrapping makefile fragments
13654 for automatic dependency tracking. If GNU make was not used, consider
13655 re-running the configure script with MAKE=\"gmake\" (or whatever is
13656 necessary). You can also try re-running configure with the
13657 '--disable-dependency-tracking' option to at least be able to build
13658 the package (albeit without support for automatic dependency tracking).
13659 See 'config.log' for more details" "$LINENO" 5; }
13660 fi
13661 { am_dirpart=; unset am_dirpart;}
13662 { am_filepart=; unset am_filepart;}
13663 { am_mf=; unset am_mf;}
13664 { am_rc=; unset am_rc;}
13665 rm -f conftest-deps.mk
13666 }
13667 ;;
13668
13669 esac
13670 done # for ac_tag
13671
13672
13673 as_fn_exit 0
13674 _ACEOF
13675 ac_clean_CONFIG_STATUS=
13676
13677 test $ac_write_fail = 0 ||
13678 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13679
13680
13681 # configure is writing to config.log, and then calls config.status.
13682 # config.status does its own redirection, appending to config.log.
13683 # Unfortunately, on DOS this fails, as config.log is still kept open
13684 # by configure, so config.status won't be able to write to it; its
13685 # output is simply discarded. So we exec the FD to /dev/null,
13686 # effectively closing config.log, so it can be properly (re)opened and
13687 # appended to by config.status. When coming back to configure, we
13688 # need to make the FD available again.
13689 if test "$no_create" != yes; then
13690 ac_cs_success=:
13691 case $CONFIG_STATUS in #(
13692 -*) :
13693 ac_no_opts=-- ;; #(
13694 *) :
13695 ac_no_opts= ;;
13696 esac
13697 ac_config_status_args=
13698 test "$silent" = yes &&
13699 ac_config_status_args="$ac_config_status_args --quiet"
13700 exec 5>/dev/null
13701 $SHELL $ac_no_opts "$CONFIG_STATUS" $ac_config_status_args ||
13702 ac_cs_success=false
13703 exec 5>>config.log
13704 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13705 # would make configure fail if this is the last instruction.
13706 $ac_cs_success || as_fn_exit 1
13707 fi
13708 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13709 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13710 printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13711 fi
13712
13713
13714