configure revision 1.1.1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for xkbprint 1.0.6.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbprint/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev/null
188 then :
189 as_have_required=yes
190 else $as_nop
191 as_have_required=no
192 fi
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
195
196 else $as_nop
197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 as_found=false
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 do
201 IFS=$as_save_IFS
202 case $as_dir in #(((
203 '') as_dir=./ ;;
204 */) ;;
205 *) as_dir=$as_dir/ ;;
206 esac
207 as_found=:
208 case $as_dir in #(
209 /*)
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
212 as_shell=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215 then :
216 CONFIG_SHELL=$as_shell as_have_required=yes
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218 then :
219 break 2
220 fi
221 fi
222 done;;
223 esac
224 as_found=false
225 done
226 IFS=$as_save_IFS
227 if $as_found
228 then :
229
230 else $as_nop
231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi
236 fi
237
238
239 if test "x$CONFIG_SHELL" != x
240 then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno
263 then :
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
271 $0: https://gitlab.freedesktop.org/xorg/app/xkbprint/-/issues
272 $0: about your system, including any error possibly output
273 $0: before this message. Then install a modern shell, or
274 $0: manually run the script under such a shell if you do
275 $0: have one."
276 fi
277 exit 1
278 fi
279 fi
280 fi
281 SHELL=${CONFIG_SHELL-/bin/sh}
282 export SHELL
283 # Unset more variables known to interfere with behavior of common tools.
284 CLICOLOR_FORCE= GREP_OPTIONS=
285 unset CLICOLOR_FORCE GREP_OPTIONS
286
287 ## --------------------- ##
288 ## M4sh Shell Functions. ##
289 ## --------------------- ##
290 # as_fn_unset VAR
291 # ---------------
292 # Portably unset VAR.
293 as_fn_unset ()
294 {
295 { eval $1=; unset $1;}
296 }
297 as_unset=as_fn_unset
298
299
300 # as_fn_set_status STATUS
301 # -----------------------
302 # Set $? to STATUS, without forking.
303 as_fn_set_status ()
304 {
305 return $1
306 } # as_fn_set_status
307
308 # as_fn_exit STATUS
309 # -----------------
310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311 as_fn_exit ()
312 {
313 set +e
314 as_fn_set_status $1
315 exit $1
316 } # as_fn_exit
317 # as_fn_nop
318 # ---------
319 # Do nothing but, unlike ":", preserve the value of $?.
320 as_fn_nop ()
321 {
322 return $?
323 }
324 as_nop=as_fn_nop
325
326 # as_fn_mkdir_p
327 # -------------
328 # Create "$as_dir" as a directory, including parents if necessary.
329 as_fn_mkdir_p ()
330 {
331
332 case $as_dir in #(
333 -*) as_dir=./$as_dir;;
334 esac
335 test -d "$as_dir" || eval $as_mkdir_p || {
336 as_dirs=
337 while :; do
338 case $as_dir in #(
339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 *) as_qdir=$as_dir;;
341 esac
342 as_dirs="'$as_qdir' $as_dirs"
343 as_dir=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)[^/].*/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\).*/{
362 s//\1/
363 q
364 }
365 s/.*/./; q'`
366 test -d "$as_dir" && break
367 done
368 test -z "$as_dirs" || eval "mkdir $as_dirs"
369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372 } # as_fn_mkdir_p
373
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p ()
378 {
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
386 # implementations.
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else $as_nop
394 as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 }
398 fi # as_fn_append
399
400 # as_fn_arith ARG...
401 # ------------------
402 # Perform arithmetic evaluation on the ARGs, and store the result in the
403 # global $as_val. Take advantage of shells that can avoid forks. The arguments
404 # must be portable across $(()) and expr.
405 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
406 then :
407 eval 'as_fn_arith ()
408 {
409 as_val=$(( $* ))
410 }'
411 else $as_nop
412 as_fn_arith ()
413 {
414 as_val=`expr "$@" || test $? -eq 1`
415 }
416 fi # as_fn_arith
417
418 # as_fn_nop
419 # ---------
420 # Do nothing but, unlike ":", preserve the value of $?.
421 as_fn_nop ()
422 {
423 return $?
424 }
425 as_nop=as_fn_nop
426
427 # as_fn_error STATUS ERROR [LINENO LOG_FD]
428 # ----------------------------------------
429 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
430 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
431 # script with STATUS, using 1 if that was 0.
432 as_fn_error ()
433 {
434 as_status=$1; test $as_status -eq 0 && as_status=1
435 if test "$4"; then
436 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438 fi
439 printf "%s\n" "$as_me: error: $2" >&2
440 as_fn_exit $as_status
441 } # as_fn_error
442
443 if expr a : '\(a\)' >/dev/null 2>&1 &&
444 test "X`expr 00001 : '.*\(...\)'`" = X001; then
445 as_expr=expr
446 else
447 as_expr=false
448 fi
449
450 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
451 as_basename=basename
452 else
453 as_basename=false
454 fi
455
456 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
457 as_dirname=dirname
458 else
459 as_dirname=false
460 fi
461
462 as_me=`$as_basename -- "$0" ||
463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
464 X"$0" : 'X\(//\)$' \| \
465 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
466 printf "%s\n" X/"$0" |
467 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 s//\1/
469 q
470 }
471 /^X\/\(\/\/\)$/{
472 s//\1/
473 q
474 }
475 /^X\/\(\/\).*/{
476 s//\1/
477 q
478 }
479 s/.*/./; q'`
480
481 # Avoid depending upon Character Ranges.
482 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
483 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
484 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
485 as_cr_digits='0123456789'
486 as_cr_alnum=$as_cr_Letters$as_cr_digits
487
488
489 as_lineno_1=$LINENO as_lineno_1a=$LINENO
490 as_lineno_2=$LINENO as_lineno_2a=$LINENO
491 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
492 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
493 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
494 sed -n '
495 p
496 /[$]LINENO/=
497 ' <$as_myself |
498 sed '
499 s/[$]LINENO.*/&-/
500 t lineno
501 b
502 :lineno
503 N
504 :loop
505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506 t loop
507 s/-\n.*//
508 ' >$as_me.lineno &&
509 chmod +x "$as_me.lineno" ||
510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513 # already done that, so ensure we don't try to do so again and fall
514 # in an infinite loop. This has already happened in practice.
515 _as_can_reexec=no; export _as_can_reexec
516 # Don't try to exec as it changes $[0], causing all sort of problems
517 # (the dirname of $[0] is not the place where we might find the
518 # original and so on. Autoconf is especially sensitive to this).
519 . "./$as_me.lineno"
520 # Exit status is that of the last command.
521 exit
522 }
523
524
525 # Determine whether it's possible to make 'echo' print without a newline.
526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527 # for compatibility with existing Makefiles.
528 ECHO_C= ECHO_N= ECHO_T=
529 case `echo -n x` in #(((((
530 -n*)
531 case `echo 'xy\c'` in
532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
533 xy) ECHO_C='\c';;
534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
535 ECHO_T=' ';;
536 esac;;
537 *)
538 ECHO_N='-n';;
539 esac
540
541 # For backward compatibility with old third-party macros, we provide
542 # the shell variables $as_echo and $as_echo_n. New code should use
543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544 as_echo='printf %s\n'
545 as_echo_n='printf %s'
546
547
548 rm -f conf$$ conf$$.exe conf$$.file
549 if test -d conf$$.dir; then
550 rm -f conf$$.dir/conf$$.file
551 else
552 rm -f conf$$.dir
553 mkdir conf$$.dir 2>/dev/null
554 fi
555 if (echo >conf$$.file) 2>/dev/null; then
556 if ln -s conf$$.file conf$$ 2>/dev/null; then
557 as_ln_s='ln -s'
558 # ... but there are two gotchas:
559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
561 # In both cases, we have to default to `cp -pR'.
562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
563 as_ln_s='cp -pR'
564 elif ln conf$$.file conf$$ 2>/dev/null; then
565 as_ln_s=ln
566 else
567 as_ln_s='cp -pR'
568 fi
569 else
570 as_ln_s='cp -pR'
571 fi
572 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
573 rmdir conf$$.dir 2>/dev/null
574
575 if mkdir -p . 2>/dev/null; then
576 as_mkdir_p='mkdir -p "$as_dir"'
577 else
578 test -d ./-p && rmdir ./-p
579 as_mkdir_p=false
580 fi
581
582 as_test_x='test -x'
583 as_executable_p=as_fn_executable_p
584
585 # Sed expression to map a string onto a valid CPP name.
586 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587
588 # Sed expression to map a string onto a valid variable name.
589 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590
591
592 test -n "$DJDIR" || exec 7<&0 </dev/null
593 exec 6>&1
594
595 # Name of the host.
596 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
597 # so uname gets run too.
598 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
599
600 #
601 # Initializations.
602 #
603 ac_default_prefix=/usr/local
604 ac_clean_files=
605 ac_config_libobj_dir=.
606 LIBOBJS=
607 cross_compiling=no
608 subdirs=
609 MFLAGS=
610 MAKEFLAGS=
611
612 # Identity of this package.
613 PACKAGE_NAME='xkbprint'
614 PACKAGE_TARNAME='xkbprint'
615 PACKAGE_VERSION='1.0.6'
616 PACKAGE_STRING='xkbprint 1.0.6'
617 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xkbprint/-/issues'
618 PACKAGE_URL=''
619
620 ac_unique_file="Makefile.am"
621 # Factoring default headers for most tests.
622 ac_includes_default="\
623 #include <stddef.h>
624 #ifdef HAVE_STDIO_H
625 # include <stdio.h>
626 #endif
627 #ifdef HAVE_STDLIB_H
628 # include <stdlib.h>
629 #endif
630 #ifdef HAVE_STRING_H
631 # include <string.h>
632 #endif
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
635 #endif
636 #ifdef HAVE_STDINT_H
637 # include <stdint.h>
638 #endif
639 #ifdef HAVE_STRINGS_H
640 # include <strings.h>
641 #endif
642 #ifdef HAVE_SYS_TYPES_H
643 # include <sys/types.h>
644 #endif
645 #ifdef HAVE_SYS_STAT_H
646 # include <sys/stat.h>
647 #endif
648 #ifdef HAVE_UNISTD_H
649 # include <unistd.h>
650 #endif"
651
652 ac_header_c_list=
653 ac_subst_vars='am__EXEEXT_FALSE
654 am__EXEEXT_TRUE
655 LTLIBOBJS
656 LIBOBJS
657 XKBPRINT_LIBS
658 XKBPRINT_CFLAGS
659 MAN_SUBSTS
660 XORG_MAN_PAGE
661 ADMIN_MAN_DIR
662 DRIVER_MAN_DIR
663 MISC_MAN_DIR
664 FILE_MAN_DIR
665 LIB_MAN_DIR
666 APP_MAN_DIR
667 ADMIN_MAN_SUFFIX
668 DRIVER_MAN_SUFFIX
669 MISC_MAN_SUFFIX
670 FILE_MAN_SUFFIX
671 LIB_MAN_SUFFIX
672 APP_MAN_SUFFIX
673 SED
674 host_os
675 host_vendor
676 host_cpu
677 host
678 build_os
679 build_vendor
680 build_cpu
681 build
682 INSTALL_CMD
683 PKG_CONFIG_LIBDIR
684 PKG_CONFIG_PATH
685 PKG_CONFIG
686 CHANGELOG_CMD
687 STRICT_CFLAGS
688 CWARNFLAGS
689 BASE_CFLAGS
690 AM_BACKSLASH
691 AM_DEFAULT_VERBOSITY
692 AM_DEFAULT_V
693 AM_V
694 CSCOPE
695 ETAGS
696 CTAGS
697 am__fastdepCC_FALSE
698 am__fastdepCC_TRUE
699 CCDEPMODE
700 am__nodep
701 AMDEPBACKSLASH
702 AMDEP_FALSE
703 AMDEP_TRUE
704 am__include
705 DEPDIR
706 am__untar
707 am__tar
708 AMTAR
709 am__leading_dot
710 SET_MAKE
711 AWK
712 mkdir_p
713 MKDIR_P
714 INSTALL_STRIP_PROGRAM
715 STRIP
716 install_sh
717 MAKEINFO
718 AUTOHEADER
719 AUTOMAKE
720 AUTOCONF
721 ACLOCAL
722 VERSION
723 PACKAGE
724 CYGPATH_W
725 am__isrc
726 INSTALL_DATA
727 INSTALL_SCRIPT
728 INSTALL_PROGRAM
729 OBJEXT
730 EXEEXT
731 ac_ct_CC
732 CPPFLAGS
733 LDFLAGS
734 CFLAGS
735 CC
736 target_alias
737 host_alias
738 build_alias
739 LIBS
740 ECHO_T
741 ECHO_N
742 ECHO_C
743 DEFS
744 mandir
745 localedir
746 libdir
747 psdir
748 pdfdir
749 dvidir
750 htmldir
751 infodir
752 docdir
753 oldincludedir
754 includedir
755 runstatedir
756 localstatedir
757 sharedstatedir
758 sysconfdir
759 datadir
760 datarootdir
761 libexecdir
762 sbindir
763 bindir
764 program_transform_name
765 prefix
766 exec_prefix
767 PACKAGE_URL
768 PACKAGE_BUGREPORT
769 PACKAGE_STRING
770 PACKAGE_VERSION
771 PACKAGE_TARNAME
772 PACKAGE_NAME
773 PATH_SEPARATOR
774 SHELL
775 am__quote'
776 ac_subst_files=''
777 ac_user_opts='
778 enable_option_checking
779 enable_dependency_tracking
780 enable_silent_rules
781 enable_selective_werror
782 enable_strict_compilation
783 '
784 ac_precious_vars='build_alias
785 host_alias
786 target_alias
787 CC
788 CFLAGS
789 LDFLAGS
790 LIBS
791 CPPFLAGS
792 PKG_CONFIG
793 PKG_CONFIG_PATH
794 PKG_CONFIG_LIBDIR
795 XKBPRINT_CFLAGS
796 XKBPRINT_LIBS'
797
798
799 # Initialize some variables set by options.
800 ac_init_help=
801 ac_init_version=false
802 ac_unrecognized_opts=
803 ac_unrecognized_sep=
804 # The variables have the same names as the options, with
805 # dashes changed to underlines.
806 cache_file=/dev/null
807 exec_prefix=NONE
808 no_create=
809 no_recursion=
810 prefix=NONE
811 program_prefix=NONE
812 program_suffix=NONE
813 program_transform_name=s,x,x,
814 silent=
815 site=
816 srcdir=
817 verbose=
818 x_includes=NONE
819 x_libraries=NONE
820
821 # Installation directory options.
822 # These are left unexpanded so users can "make install exec_prefix=/foo"
823 # and all the variables that are supposed to be based on exec_prefix
824 # by default will actually change.
825 # Use braces instead of parens because sh, perl, etc. also accept them.
826 # (The list follows the same order as the GNU Coding Standards.)
827 bindir='${exec_prefix}/bin'
828 sbindir='${exec_prefix}/sbin'
829 libexecdir='${exec_prefix}/libexec'
830 datarootdir='${prefix}/share'
831 datadir='${datarootdir}'
832 sysconfdir='${prefix}/etc'
833 sharedstatedir='${prefix}/com'
834 localstatedir='${prefix}/var'
835 runstatedir='${localstatedir}/run'
836 includedir='${prefix}/include'
837 oldincludedir='/usr/include'
838 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839 infodir='${datarootdir}/info'
840 htmldir='${docdir}'
841 dvidir='${docdir}'
842 pdfdir='${docdir}'
843 psdir='${docdir}'
844 libdir='${exec_prefix}/lib'
845 localedir='${datarootdir}/locale'
846 mandir='${datarootdir}/man'
847
848 ac_prev=
849 ac_dashdash=
850 for ac_option
851 do
852 # If the previous option needs an argument, assign it.
853 if test -n "$ac_prev"; then
854 eval $ac_prev=\$ac_option
855 ac_prev=
856 continue
857 fi
858
859 case $ac_option in
860 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861 *=) ac_optarg= ;;
862 *) ac_optarg=yes ;;
863 esac
864
865 case $ac_dashdash$ac_option in
866 --)
867 ac_dashdash=yes ;;
868
869 -bindir | --bindir | --bindi | --bind | --bin | --bi)
870 ac_prev=bindir ;;
871 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
872 bindir=$ac_optarg ;;
873
874 -build | --build | --buil | --bui | --bu)
875 ac_prev=build_alias ;;
876 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
877 build_alias=$ac_optarg ;;
878
879 -cache-file | --cache-file | --cache-fil | --cache-fi \
880 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
881 ac_prev=cache_file ;;
882 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
883 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
884 cache_file=$ac_optarg ;;
885
886 --config-cache | -C)
887 cache_file=config.cache ;;
888
889 -datadir | --datadir | --datadi | --datad)
890 ac_prev=datadir ;;
891 -datadir=* | --datadir=* | --datadi=* | --datad=*)
892 datadir=$ac_optarg ;;
893
894 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
895 | --dataroo | --dataro | --datar)
896 ac_prev=datarootdir ;;
897 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
898 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
899 datarootdir=$ac_optarg ;;
900
901 -disable-* | --disable-*)
902 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
903 # Reject names that are not valid shell variable names.
904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905 as_fn_error $? "invalid feature name: \`$ac_useropt'"
906 ac_useropt_orig=$ac_useropt
907 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
908 case $ac_user_opts in
909 *"
910 "enable_$ac_useropt"
911 "*) ;;
912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
913 ac_unrecognized_sep=', ';;
914 esac
915 eval enable_$ac_useropt=no ;;
916
917 -docdir | --docdir | --docdi | --doc | --do)
918 ac_prev=docdir ;;
919 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
920 docdir=$ac_optarg ;;
921
922 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
923 ac_prev=dvidir ;;
924 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
925 dvidir=$ac_optarg ;;
926
927 -enable-* | --enable-*)
928 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
929 # Reject names that are not valid shell variable names.
930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931 as_fn_error $? "invalid feature name: \`$ac_useropt'"
932 ac_useropt_orig=$ac_useropt
933 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
934 case $ac_user_opts in
935 *"
936 "enable_$ac_useropt"
937 "*) ;;
938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
939 ac_unrecognized_sep=', ';;
940 esac
941 eval enable_$ac_useropt=\$ac_optarg ;;
942
943 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
944 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
945 | --exec | --exe | --ex)
946 ac_prev=exec_prefix ;;
947 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
948 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
949 | --exec=* | --exe=* | --ex=*)
950 exec_prefix=$ac_optarg ;;
951
952 -gas | --gas | --ga | --g)
953 # Obsolete; use --with-gas.
954 with_gas=yes ;;
955
956 -help | --help | --hel | --he | -h)
957 ac_init_help=long ;;
958 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
959 ac_init_help=recursive ;;
960 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
961 ac_init_help=short ;;
962
963 -host | --host | --hos | --ho)
964 ac_prev=host_alias ;;
965 -host=* | --host=* | --hos=* | --ho=*)
966 host_alias=$ac_optarg ;;
967
968 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
969 ac_prev=htmldir ;;
970 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
971 | --ht=*)
972 htmldir=$ac_optarg ;;
973
974 -includedir | --includedir | --includedi | --included | --include \
975 | --includ | --inclu | --incl | --inc)
976 ac_prev=includedir ;;
977 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
978 | --includ=* | --inclu=* | --incl=* | --inc=*)
979 includedir=$ac_optarg ;;
980
981 -infodir | --infodir | --infodi | --infod | --info | --inf)
982 ac_prev=infodir ;;
983 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
984 infodir=$ac_optarg ;;
985
986 -libdir | --libdir | --libdi | --libd)
987 ac_prev=libdir ;;
988 -libdir=* | --libdir=* | --libdi=* | --libd=*)
989 libdir=$ac_optarg ;;
990
991 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
992 | --libexe | --libex | --libe)
993 ac_prev=libexecdir ;;
994 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
995 | --libexe=* | --libex=* | --libe=*)
996 libexecdir=$ac_optarg ;;
997
998 -localedir | --localedir | --localedi | --localed | --locale)
999 ac_prev=localedir ;;
1000 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1001 localedir=$ac_optarg ;;
1002
1003 -localstatedir | --localstatedir | --localstatedi | --localstated \
1004 | --localstate | --localstat | --localsta | --localst | --locals)
1005 ac_prev=localstatedir ;;
1006 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1007 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1008 localstatedir=$ac_optarg ;;
1009
1010 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1011 ac_prev=mandir ;;
1012 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1013 mandir=$ac_optarg ;;
1014
1015 -nfp | --nfp | --nf)
1016 # Obsolete; use --without-fp.
1017 with_fp=no ;;
1018
1019 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1020 | --no-cr | --no-c | -n)
1021 no_create=yes ;;
1022
1023 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025 no_recursion=yes ;;
1026
1027 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1028 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1029 | --oldin | --oldi | --old | --ol | --o)
1030 ac_prev=oldincludedir ;;
1031 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1032 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1033 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1034 oldincludedir=$ac_optarg ;;
1035
1036 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1037 ac_prev=prefix ;;
1038 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1039 prefix=$ac_optarg ;;
1040
1041 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1042 | --program-pre | --program-pr | --program-p)
1043 ac_prev=program_prefix ;;
1044 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1045 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1046 program_prefix=$ac_optarg ;;
1047
1048 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1049 | --program-suf | --program-su | --program-s)
1050 ac_prev=program_suffix ;;
1051 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1052 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1053 program_suffix=$ac_optarg ;;
1054
1055 -program-transform-name | --program-transform-name \
1056 | --program-transform-nam | --program-transform-na \
1057 | --program-transform-n | --program-transform- \
1058 | --program-transform | --program-transfor \
1059 | --program-transfo | --program-transf \
1060 | --program-trans | --program-tran \
1061 | --progr-tra | --program-tr | --program-t)
1062 ac_prev=program_transform_name ;;
1063 -program-transform-name=* | --program-transform-name=* \
1064 | --program-transform-nam=* | --program-transform-na=* \
1065 | --program-transform-n=* | --program-transform-=* \
1066 | --program-transform=* | --program-transfor=* \
1067 | --program-transfo=* | --program-transf=* \
1068 | --program-trans=* | --program-tran=* \
1069 | --progr-tra=* | --program-tr=* | --program-t=*)
1070 program_transform_name=$ac_optarg ;;
1071
1072 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1073 ac_prev=pdfdir ;;
1074 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1075 pdfdir=$ac_optarg ;;
1076
1077 -psdir | --psdir | --psdi | --psd | --ps)
1078 ac_prev=psdir ;;
1079 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1080 psdir=$ac_optarg ;;
1081
1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083 | -silent | --silent | --silen | --sile | --sil)
1084 silent=yes ;;
1085
1086 -runstatedir | --runstatedir | --runstatedi | --runstated \
1087 | --runstate | --runstat | --runsta | --runst | --runs \
1088 | --run | --ru | --r)
1089 ac_prev=runstatedir ;;
1090 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1091 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1092 | --run=* | --ru=* | --r=*)
1093 runstatedir=$ac_optarg ;;
1094
1095 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096 ac_prev=sbindir ;;
1097 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098 | --sbi=* | --sb=*)
1099 sbindir=$ac_optarg ;;
1100
1101 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103 | --sharedst | --shareds | --shared | --share | --shar \
1104 | --sha | --sh)
1105 ac_prev=sharedstatedir ;;
1106 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109 | --sha=* | --sh=*)
1110 sharedstatedir=$ac_optarg ;;
1111
1112 -site | --site | --sit)
1113 ac_prev=site ;;
1114 -site=* | --site=* | --sit=*)
1115 site=$ac_optarg ;;
1116
1117 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118 ac_prev=srcdir ;;
1119 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120 srcdir=$ac_optarg ;;
1121
1122 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123 | --syscon | --sysco | --sysc | --sys | --sy)
1124 ac_prev=sysconfdir ;;
1125 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127 sysconfdir=$ac_optarg ;;
1128
1129 -target | --target | --targe | --targ | --tar | --ta | --t)
1130 ac_prev=target_alias ;;
1131 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132 target_alias=$ac_optarg ;;
1133
1134 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135 verbose=yes ;;
1136
1137 -version | --version | --versio | --versi | --vers | -V)
1138 ac_init_version=: ;;
1139
1140 -with-* | --with-*)
1141 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 as_fn_error $? "invalid package name: \`$ac_useropt'"
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1148 *"
1149 "with_$ac_useropt"
1150 "*) ;;
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1153 esac
1154 eval with_$ac_useropt=\$ac_optarg ;;
1155
1156 -without-* | --without-*)
1157 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 as_fn_error $? "invalid package name: \`$ac_useropt'"
1161 ac_useropt_orig=$ac_useropt
1162 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1164 *"
1165 "with_$ac_useropt"
1166 "*) ;;
1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1168 ac_unrecognized_sep=', ';;
1169 esac
1170 eval with_$ac_useropt=no ;;
1171
1172 --x)
1173 # Obsolete; use --with-x.
1174 with_x=yes ;;
1175
1176 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1177 | --x-incl | --x-inc | --x-in | --x-i)
1178 ac_prev=x_includes ;;
1179 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1180 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1181 x_includes=$ac_optarg ;;
1182
1183 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1184 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1185 ac_prev=x_libraries ;;
1186 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1187 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1188 x_libraries=$ac_optarg ;;
1189
1190 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1191 Try \`$0 --help' for more information"
1192 ;;
1193
1194 *=*)
1195 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196 # Reject names that are not valid shell variable names.
1197 case $ac_envvar in #(
1198 '' | [0-9]* | *[!_$as_cr_alnum]* )
1199 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1200 esac
1201 eval $ac_envvar=\$ac_optarg
1202 export $ac_envvar ;;
1203
1204 *)
1205 # FIXME: should be removed in autoconf 3.0.
1206 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1207 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1209 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1210 ;;
1211
1212 esac
1213 done
1214
1215 if test -n "$ac_prev"; then
1216 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1217 as_fn_error $? "missing argument to $ac_option"
1218 fi
1219
1220 if test -n "$ac_unrecognized_opts"; then
1221 case $enable_option_checking in
1222 no) ;;
1223 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1224 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1225 esac
1226 fi
1227
1228 # Check all directory arguments for consistency.
1229 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230 datadir sysconfdir sharedstatedir localstatedir includedir \
1231 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232 libdir localedir mandir runstatedir
1233 do
1234 eval ac_val=\$$ac_var
1235 # Remove trailing slashes.
1236 case $ac_val in
1237 */ )
1238 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1239 eval $ac_var=\$ac_val;;
1240 esac
1241 # Be sure to have absolute directory names.
1242 case $ac_val in
1243 [\\/$]* | ?:[\\/]* ) continue;;
1244 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1245 esac
1246 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1247 done
1248
1249 # There might be people who depend on the old broken behavior: `$host'
1250 # used to hold the argument of --host etc.
1251 # FIXME: To remove some day.
1252 build=$build_alias
1253 host=$host_alias
1254 target=$target_alias
1255
1256 # FIXME: To remove some day.
1257 if test "x$host_alias" != x; then
1258 if test "x$build_alias" = x; then
1259 cross_compiling=maybe
1260 elif test "x$build_alias" != "x$host_alias"; then
1261 cross_compiling=yes
1262 fi
1263 fi
1264
1265 ac_tool_prefix=
1266 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1267
1268 test "$silent" = yes && exec 6>/dev/null
1269
1270
1271 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1272 ac_ls_di=`ls -di .` &&
1273 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1274 as_fn_error $? "working directory cannot be determined"
1275 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276 as_fn_error $? "pwd does not report name of working directory"
1277
1278
1279 # Find the source files, if location was not specified.
1280 if test -z "$srcdir"; then
1281 ac_srcdir_defaulted=yes
1282 # Try the directory containing this script, then the parent directory.
1283 ac_confdir=`$as_dirname -- "$as_myself" ||
1284 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285 X"$as_myself" : 'X\(//\)[^/]' \| \
1286 X"$as_myself" : 'X\(//\)$' \| \
1287 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288 printf "%s\n" X"$as_myself" |
1289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290 s//\1/
1291 q
1292 }
1293 /^X\(\/\/\)[^/].*/{
1294 s//\1/
1295 q
1296 }
1297 /^X\(\/\/\)$/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\).*/{
1302 s//\1/
1303 q
1304 }
1305 s/.*/./; q'`
1306 srcdir=$ac_confdir
1307 if test ! -r "$srcdir/$ac_unique_file"; then
1308 srcdir=..
1309 fi
1310 else
1311 ac_srcdir_defaulted=no
1312 fi
1313 if test ! -r "$srcdir/$ac_unique_file"; then
1314 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1315 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1316 fi
1317 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1318 ac_abs_confdir=`(
1319 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1320 pwd)`
1321 # When building in place, set srcdir=.
1322 if test "$ac_abs_confdir" = "$ac_pwd"; then
1323 srcdir=.
1324 fi
1325 # Remove unnecessary trailing slashes from srcdir.
1326 # Double slashes in file names in object file debugging info
1327 # mess up M-x gdb in Emacs.
1328 case $srcdir in
1329 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330 esac
1331 for ac_var in $ac_precious_vars; do
1332 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1333 eval ac_env_${ac_var}_value=\$${ac_var}
1334 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1336 done
1337
1338 #
1339 # Report the --help message.
1340 #
1341 if test "$ac_init_help" = "long"; then
1342 # Omit some internal or obsolete options to make the list less imposing.
1343 # This message is too long to be a string in the A/UX 3.1 sh.
1344 cat <<_ACEOF
1345 \`configure' configures xkbprint 1.0.6 to adapt to many kinds of systems.
1346
1347 Usage: $0 [OPTION]... [VAR=VALUE]...
1348
1349 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1350 VAR=VALUE. See below for descriptions of some of the useful variables.
1351
1352 Defaults for the options are specified in brackets.
1353
1354 Configuration:
1355 -h, --help display this help and exit
1356 --help=short display options specific to this package
1357 --help=recursive display the short help of all the included packages
1358 -V, --version display version information and exit
1359 -q, --quiet, --silent do not print \`checking ...' messages
1360 --cache-file=FILE cache test results in FILE [disabled]
1361 -C, --config-cache alias for \`--cache-file=config.cache'
1362 -n, --no-create do not create output files
1363 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1364
1365 Installation directories:
1366 --prefix=PREFIX install architecture-independent files in PREFIX
1367 [$ac_default_prefix]
1368 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1369 [PREFIX]
1370
1371 By default, \`make install' will install all the files in
1372 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1373 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1374 for instance \`--prefix=\$HOME'.
1375
1376 For better control, use the options below.
1377
1378 Fine tuning of the installation directories:
1379 --bindir=DIR user executables [EPREFIX/bin]
1380 --sbindir=DIR system admin executables [EPREFIX/sbin]
1381 --libexecdir=DIR program executables [EPREFIX/libexec]
1382 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1383 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1384 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1385 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1386 --libdir=DIR object code libraries [EPREFIX/lib]
1387 --includedir=DIR C header files [PREFIX/include]
1388 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1389 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1390 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1391 --infodir=DIR info documentation [DATAROOTDIR/info]
1392 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1393 --mandir=DIR man documentation [DATAROOTDIR/man]
1394 --docdir=DIR documentation root [DATAROOTDIR/doc/xkbprint]
1395 --htmldir=DIR html documentation [DOCDIR]
1396 --dvidir=DIR dvi documentation [DOCDIR]
1397 --pdfdir=DIR pdf documentation [DOCDIR]
1398 --psdir=DIR ps documentation [DOCDIR]
1399 _ACEOF
1400
1401 cat <<\_ACEOF
1402
1403 Program names:
1404 --program-prefix=PREFIX prepend PREFIX to installed program names
1405 --program-suffix=SUFFIX append SUFFIX to installed program names
1406 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1407
1408 System types:
1409 --build=BUILD configure for building on BUILD [guessed]
1410 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1411 _ACEOF
1412 fi
1413
1414 if test -n "$ac_init_help"; then
1415 case $ac_init_help in
1416 short | recursive ) echo "Configuration of xkbprint 1.0.6:";;
1417 esac
1418 cat <<\_ACEOF
1419
1420 Optional Features:
1421 --disable-option-checking ignore unrecognized --enable/--with options
1422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1423 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1424 --enable-dependency-tracking
1425 do not reject slow dependency extractors
1426 --disable-dependency-tracking
1427 speeds up one-time build
1428 --enable-silent-rules less verbose build output (undo: "make V=1")
1429 --disable-silent-rules verbose build output (undo: "make V=0")
1430 --disable-selective-werror
1431 Turn off selective compiler errors. (default:
1432 enabled)
1433 --enable-strict-compilation
1434 Enable all warnings from compiler and make them
1435 errors (default: disabled)
1436
1437 Some influential environment variables:
1438 CC C compiler command
1439 CFLAGS C compiler flags
1440 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1441 nonstandard directory <lib dir>
1442 LIBS libraries to pass to the linker, e.g. -l<library>
1443 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1444 you have headers in a nonstandard directory <include dir>
1445 PKG_CONFIG path to pkg-config utility
1446 PKG_CONFIG_PATH
1447 directories to add to pkg-config's search path
1448 PKG_CONFIG_LIBDIR
1449 path overriding pkg-config's built-in search path
1450 XKBPRINT_CFLAGS
1451 C compiler flags for XKBPRINT, overriding pkg-config
1452 XKBPRINT_LIBS
1453 linker flags for XKBPRINT, overriding pkg-config
1454
1455 Use these variables to override the choices made by `configure' or to help
1456 it to find libraries and programs with nonstandard names/locations.
1457
1458 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbprint/-/issues>.
1459 _ACEOF
1460 ac_status=$?
1461 fi
1462
1463 if test "$ac_init_help" = "recursive"; then
1464 # If there are subdirs, report their specific --help.
1465 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1466 test -d "$ac_dir" ||
1467 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1468 continue
1469 ac_builddir=.
1470
1471 case "$ac_dir" in
1472 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 *)
1474 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1475 # A ".." for each directory in $ac_dir_suffix.
1476 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1477 case $ac_top_builddir_sub in
1478 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1480 esac ;;
1481 esac
1482 ac_abs_top_builddir=$ac_pwd
1483 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1484 # for backward compatibility:
1485 ac_top_builddir=$ac_top_build_prefix
1486
1487 case $srcdir in
1488 .) # We are building in place.
1489 ac_srcdir=.
1490 ac_top_srcdir=$ac_top_builddir_sub
1491 ac_abs_top_srcdir=$ac_pwd ;;
1492 [\\/]* | ?:[\\/]* ) # Absolute name.
1493 ac_srcdir=$srcdir$ac_dir_suffix;
1494 ac_top_srcdir=$srcdir
1495 ac_abs_top_srcdir=$srcdir ;;
1496 *) # Relative name.
1497 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1498 ac_top_srcdir=$ac_top_build_prefix$srcdir
1499 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1500 esac
1501 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1502
1503 cd "$ac_dir" || { ac_status=$?; continue; }
1504 # Check for configure.gnu first; this name is used for a wrapper for
1505 # Metaconfig's "Configure" on case-insensitive file systems.
1506 if test -f "$ac_srcdir/configure.gnu"; then
1507 echo &&
1508 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1509 elif test -f "$ac_srcdir/configure"; then
1510 echo &&
1511 $SHELL "$ac_srcdir/configure" --help=recursive
1512 else
1513 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1514 fi || ac_status=$?
1515 cd "$ac_pwd" || { ac_status=$?; break; }
1516 done
1517 fi
1518
1519 test -n "$ac_init_help" && exit $ac_status
1520 if $ac_init_version; then
1521 cat <<\_ACEOF
1522 xkbprint configure 1.0.6
1523 generated by GNU Autoconf 2.71
1524
1525 Copyright (C) 2021 Free Software Foundation, Inc.
1526 This configure script is free software; the Free Software Foundation
1527 gives unlimited permission to copy, distribute and modify it.
1528 _ACEOF
1529 exit
1530 fi
1531
1532 ## ------------------------ ##
1533 ## Autoconf initialization. ##
1534 ## ------------------------ ##
1535
1536 # ac_fn_c_try_compile LINENO
1537 # --------------------------
1538 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1539 ac_fn_c_try_compile ()
1540 {
1541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542 rm -f conftest.$ac_objext conftest.beam
1543 if { { ac_try="$ac_compile"
1544 case "(($ac_try" in
1545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546 *) ac_try_echo=$ac_try;;
1547 esac
1548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549 printf "%s\n" "$ac_try_echo"; } >&5
1550 (eval "$ac_compile") 2>conftest.err
1551 ac_status=$?
1552 if test -s conftest.err; then
1553 grep -v '^ *+' conftest.err >conftest.er1
1554 cat conftest.er1 >&5
1555 mv -f conftest.er1 conftest.err
1556 fi
1557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558 test $ac_status = 0; } && {
1559 test -z "$ac_c_werror_flag" ||
1560 test ! -s conftest.err
1561 } && test -s conftest.$ac_objext
1562 then :
1563 ac_retval=0
1564 else $as_nop
1565 printf "%s\n" "$as_me: failed program was:" >&5
1566 sed 's/^/| /' conftest.$ac_ext >&5
1567
1568 ac_retval=1
1569 fi
1570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1571 as_fn_set_status $ac_retval
1572
1573 } # ac_fn_c_try_compile
1574
1575 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1576 # -------------------------------------------------------
1577 # Tests whether HEADER exists and can be compiled using the include files in
1578 # INCLUDES, setting the cache variable VAR accordingly.
1579 ac_fn_c_check_header_compile ()
1580 {
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1583 printf %s "checking for $2... " >&6; }
1584 if eval test \${$3+y}
1585 then :
1586 printf %s "(cached) " >&6
1587 else $as_nop
1588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1589 /* end confdefs.h. */
1590 $4
1591 #include <$2>
1592 _ACEOF
1593 if ac_fn_c_try_compile "$LINENO"
1594 then :
1595 eval "$3=yes"
1596 else $as_nop
1597 eval "$3=no"
1598 fi
1599 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1600 fi
1601 eval ac_res=\$$3
1602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1603 printf "%s\n" "$ac_res" >&6; }
1604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605
1606 } # ac_fn_c_check_header_compile
1607
1608 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1609 # ------------------------------------------------------------------
1610 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1611 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1612 ac_fn_check_decl ()
1613 {
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 as_decl_name=`echo $2|sed 's/ *(.*//'`
1616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1617 printf %s "checking whether $as_decl_name is declared... " >&6; }
1618 if eval test \${$3+y}
1619 then :
1620 printf %s "(cached) " >&6
1621 else $as_nop
1622 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1623 eval ac_save_FLAGS=\$$6
1624 as_fn_append $6 " $5"
1625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1626 /* end confdefs.h. */
1627 $4
1628 int
1629 main (void)
1630 {
1631 #ifndef $as_decl_name
1632 #ifdef __cplusplus
1633 (void) $as_decl_use;
1634 #else
1635 (void) $as_decl_name;
1636 #endif
1637 #endif
1638
1639 ;
1640 return 0;
1641 }
1642 _ACEOF
1643 if ac_fn_c_try_compile "$LINENO"
1644 then :
1645 eval "$3=yes"
1646 else $as_nop
1647 eval "$3=no"
1648 fi
1649 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1650 eval $6=\$ac_save_FLAGS
1651
1652 fi
1653 eval ac_res=\$$3
1654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1655 printf "%s\n" "$ac_res" >&6; }
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657
1658 } # ac_fn_check_decl
1659
1660 # ac_fn_c_try_link LINENO
1661 # -----------------------
1662 # Try to link conftest.$ac_ext, and return whether this succeeded.
1663 ac_fn_c_try_link ()
1664 {
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1667 if { { ac_try="$ac_link"
1668 case "(($ac_try" in
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1671 esac
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 printf "%s\n" "$ac_try_echo"; } >&5
1674 (eval "$ac_link") 2>conftest.err
1675 ac_status=$?
1676 if test -s conftest.err; then
1677 grep -v '^ *+' conftest.err >conftest.er1
1678 cat conftest.er1 >&5
1679 mv -f conftest.er1 conftest.err
1680 fi
1681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } && {
1683 test -z "$ac_c_werror_flag" ||
1684 test ! -s conftest.err
1685 } && test -s conftest$ac_exeext && {
1686 test "$cross_compiling" = yes ||
1687 test -x conftest$ac_exeext
1688 }
1689 then :
1690 ac_retval=0
1691 else $as_nop
1692 printf "%s\n" "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=1
1696 fi
1697 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1698 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1699 # interfere with the next link command; also delete a directory that is
1700 # left behind by Apple's compiler. We do this before executing the actions.
1701 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 as_fn_set_status $ac_retval
1704
1705 } # ac_fn_c_try_link
1706
1707 # ac_fn_c_check_func LINENO FUNC VAR
1708 # ----------------------------------
1709 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1710 ac_fn_c_check_func ()
1711 {
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714 printf %s "checking for $2... " >&6; }
1715 if eval test \${$3+y}
1716 then :
1717 printf %s "(cached) " >&6
1718 else $as_nop
1719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720 /* end confdefs.h. */
1721 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1723 #define $2 innocuous_$2
1724
1725 /* System header to define __stub macros and hopefully few prototypes,
1726 which can conflict with char $2 (); below. */
1727
1728 #include <limits.h>
1729 #undef $2
1730
1731 /* Override any GCC internal prototype to avoid an error.
1732 Use char because int might match the return type of a GCC
1733 builtin and then its argument prototype would still apply. */
1734 #ifdef __cplusplus
1735 extern "C"
1736 #endif
1737 char $2 ();
1738 /* The GNU C library defines this for functions which it implements
1739 to always fail with ENOSYS. Some functions are actually named
1740 something starting with __ and the normal name is an alias. */
1741 #if defined __stub_$2 || defined __stub___$2
1742 choke me
1743 #endif
1744
1745 int
1746 main (void)
1747 {
1748 return $2 ();
1749 ;
1750 return 0;
1751 }
1752 _ACEOF
1753 if ac_fn_c_try_link "$LINENO"
1754 then :
1755 eval "$3=yes"
1756 else $as_nop
1757 eval "$3=no"
1758 fi
1759 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1760 conftest$ac_exeext conftest.$ac_ext
1761 fi
1762 eval ac_res=\$$3
1763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1764 printf "%s\n" "$ac_res" >&6; }
1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766
1767 } # ac_fn_c_check_func
1768 ac_configure_args_raw=
1769 for ac_arg
1770 do
1771 case $ac_arg in
1772 *\'*)
1773 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1774 esac
1775 as_fn_append ac_configure_args_raw " '$ac_arg'"
1776 done
1777
1778 case $ac_configure_args_raw in
1779 *$as_nl*)
1780 ac_safe_unquote= ;;
1781 *)
1782 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1783 ac_unsafe_a="$ac_unsafe_z#~"
1784 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1785 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1786 esac
1787
1788 cat >config.log <<_ACEOF
1789 This file contains any messages produced by compilers while
1790 running configure, to aid debugging if configure makes a mistake.
1791
1792 It was created by xkbprint $as_me 1.0.6, which was
1793 generated by GNU Autoconf 2.71. Invocation command line was
1794
1795 $ $0$ac_configure_args_raw
1796
1797 _ACEOF
1798 exec 5>>config.log
1799 {
1800 cat <<_ASUNAME
1801 ## --------- ##
1802 ## Platform. ##
1803 ## --------- ##
1804
1805 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1806 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1807 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1808 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1809 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1810
1811 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1812 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1813
1814 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1815 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1816 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1817 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1818 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1819 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1820 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1821
1822 _ASUNAME
1823
1824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1825 for as_dir in $PATH
1826 do
1827 IFS=$as_save_IFS
1828 case $as_dir in #(((
1829 '') as_dir=./ ;;
1830 */) ;;
1831 *) as_dir=$as_dir/ ;;
1832 esac
1833 printf "%s\n" "PATH: $as_dir"
1834 done
1835 IFS=$as_save_IFS
1836
1837 } >&5
1838
1839 cat >&5 <<_ACEOF
1840
1841
1842 ## ----------- ##
1843 ## Core tests. ##
1844 ## ----------- ##
1845
1846 _ACEOF
1847
1848
1849 # Keep a trace of the command line.
1850 # Strip out --no-create and --no-recursion so they do not pile up.
1851 # Strip out --silent because we don't want to record it for future runs.
1852 # Also quote any args containing shell meta-characters.
1853 # Make two passes to allow for proper duplicate-argument suppression.
1854 ac_configure_args=
1855 ac_configure_args0=
1856 ac_configure_args1=
1857 ac_must_keep_next=false
1858 for ac_pass in 1 2
1859 do
1860 for ac_arg
1861 do
1862 case $ac_arg in
1863 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1864 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1865 | -silent | --silent | --silen | --sile | --sil)
1866 continue ;;
1867 *\'*)
1868 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1869 esac
1870 case $ac_pass in
1871 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1872 2)
1873 as_fn_append ac_configure_args1 " '$ac_arg'"
1874 if test $ac_must_keep_next = true; then
1875 ac_must_keep_next=false # Got value, back to normal.
1876 else
1877 case $ac_arg in
1878 *=* | --config-cache | -C | -disable-* | --disable-* \
1879 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1880 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1881 | -with-* | --with-* | -without-* | --without-* | --x)
1882 case "$ac_configure_args0 " in
1883 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1884 esac
1885 ;;
1886 -* ) ac_must_keep_next=true ;;
1887 esac
1888 fi
1889 as_fn_append ac_configure_args " '$ac_arg'"
1890 ;;
1891 esac
1892 done
1893 done
1894 { ac_configure_args0=; unset ac_configure_args0;}
1895 { ac_configure_args1=; unset ac_configure_args1;}
1896
1897 # When interrupted or exit'd, cleanup temporary files, and complete
1898 # config.log. We remove comments because anyway the quotes in there
1899 # would cause problems or look ugly.
1900 # WARNING: Use '\'' to represent an apostrophe within the trap.
1901 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1902 trap 'exit_status=$?
1903 # Sanitize IFS.
1904 IFS=" "" $as_nl"
1905 # Save into config.log some information that might help in debugging.
1906 {
1907 echo
1908
1909 printf "%s\n" "## ---------------- ##
1910 ## Cache variables. ##
1911 ## ---------------- ##"
1912 echo
1913 # The following way of writing the cache mishandles newlines in values,
1914 (
1915 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1916 eval ac_val=\$$ac_var
1917 case $ac_val in #(
1918 *${as_nl}*)
1919 case $ac_var in #(
1920 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1921 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1922 esac
1923 case $ac_var in #(
1924 _ | IFS | as_nl) ;; #(
1925 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1926 *) { eval $ac_var=; unset $ac_var;} ;;
1927 esac ;;
1928 esac
1929 done
1930 (set) 2>&1 |
1931 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1932 *${as_nl}ac_space=\ *)
1933 sed -n \
1934 "s/'\''/'\''\\\\'\'''\''/g;
1935 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1936 ;; #(
1937 *)
1938 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1939 ;;
1940 esac |
1941 sort
1942 )
1943 echo
1944
1945 printf "%s\n" "## ----------------- ##
1946 ## Output variables. ##
1947 ## ----------------- ##"
1948 echo
1949 for ac_var in $ac_subst_vars
1950 do
1951 eval ac_val=\$$ac_var
1952 case $ac_val in
1953 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1954 esac
1955 printf "%s\n" "$ac_var='\''$ac_val'\''"
1956 done | sort
1957 echo
1958
1959 if test -n "$ac_subst_files"; then
1960 printf "%s\n" "## ------------------- ##
1961 ## File substitutions. ##
1962 ## ------------------- ##"
1963 echo
1964 for ac_var in $ac_subst_files
1965 do
1966 eval ac_val=\$$ac_var
1967 case $ac_val in
1968 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1969 esac
1970 printf "%s\n" "$ac_var='\''$ac_val'\''"
1971 done | sort
1972 echo
1973 fi
1974
1975 if test -s confdefs.h; then
1976 printf "%s\n" "## ----------- ##
1977 ## confdefs.h. ##
1978 ## ----------- ##"
1979 echo
1980 cat confdefs.h
1981 echo
1982 fi
1983 test "$ac_signal" != 0 &&
1984 printf "%s\n" "$as_me: caught signal $ac_signal"
1985 printf "%s\n" "$as_me: exit $exit_status"
1986 } >&5
1987 rm -f core *.core core.conftest.* &&
1988 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1989 exit $exit_status
1990 ' 0
1991 for ac_signal in 1 2 13 15; do
1992 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1993 done
1994 ac_signal=0
1995
1996 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1997 rm -f -r conftest* confdefs.h
1998
1999 printf "%s\n" "/* confdefs.h */" > confdefs.h
2000
2001 # Predefined preprocessor variables.
2002
2003 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2004
2005 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2006
2007 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2008
2009 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2010
2011 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2012
2013 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2014
2015
2016 # Let the site file select an alternate cache file if it wants to.
2017 # Prefer an explicitly selected file to automatically selected ones.
2018 if test -n "$CONFIG_SITE"; then
2019 ac_site_files="$CONFIG_SITE"
2020 elif test "x$prefix" != xNONE; then
2021 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2022 else
2023 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2024 fi
2025
2026 for ac_site_file in $ac_site_files
2027 do
2028 case $ac_site_file in #(
2029 */*) :
2030 ;; #(
2031 *) :
2032 ac_site_file=./$ac_site_file ;;
2033 esac
2034 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2036 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2037 sed 's/^/| /' "$ac_site_file" >&5
2038 . "$ac_site_file" \
2039 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2040 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2041 as_fn_error $? "failed to load site script $ac_site_file
2042 See \`config.log' for more details" "$LINENO" 5; }
2043 fi
2044 done
2045
2046 if test -r "$cache_file"; then
2047 # Some versions of bash will fail to source /dev/null (special files
2048 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2049 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2051 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2052 case $cache_file in
2053 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2054 *) . "./$cache_file";;
2055 esac
2056 fi
2057 else
2058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2059 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2060 >$cache_file
2061 fi
2062
2063 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2064 # Test code for whether the C compiler supports C89 (global declarations)
2065 ac_c_conftest_c89_globals='
2066 /* Does the compiler advertise C89 conformance?
2067 Do not test the value of __STDC__, because some compilers set it to 0
2068 while being otherwise adequately conformant. */
2069 #if !defined __STDC__
2070 # error "Compiler does not advertise C89 conformance"
2071 #endif
2072
2073 #include <stddef.h>
2074 #include <stdarg.h>
2075 struct stat;
2076 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2077 struct buf { int x; };
2078 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2079 static char *e (p, i)
2080 char **p;
2081 int i;
2082 {
2083 return p[i];
2084 }
2085 static char *f (char * (*g) (char **, int), char **p, ...)
2086 {
2087 char *s;
2088 va_list v;
2089 va_start (v,p);
2090 s = g (p, va_arg (v,int));
2091 va_end (v);
2092 return s;
2093 }
2094
2095 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2096 function prototypes and stuff, but not \xHH hex character constants.
2097 These do not provoke an error unfortunately, instead are silently treated
2098 as an "x". The following induces an error, until -std is added to get
2099 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2100 array size at least. It is necessary to write \x00 == 0 to get something
2101 that is true only with -std. */
2102 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2103
2104 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2105 inside strings and character constants. */
2106 #define FOO(x) '\''x'\''
2107 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2108
2109 int test (int i, double x);
2110 struct s1 {int (*f) (int a);};
2111 struct s2 {int (*f) (double a);};
2112 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2113 int, int);'
2114
2115 # Test code for whether the C compiler supports C89 (body of main).
2116 ac_c_conftest_c89_main='
2117 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2118 '
2119
2120 # Test code for whether the C compiler supports C99 (global declarations)
2121 ac_c_conftest_c99_globals='
2122 // Does the compiler advertise C99 conformance?
2123 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2124 # error "Compiler does not advertise C99 conformance"
2125 #endif
2126
2127 #include <stdbool.h>
2128 extern int puts (const char *);
2129 extern int printf (const char *, ...);
2130 extern int dprintf (int, const char *, ...);
2131 extern void *malloc (size_t);
2132
2133 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2134 // dprintf is used instead of fprintf to avoid needing to declare
2135 // FILE and stderr.
2136 #define debug(...) dprintf (2, __VA_ARGS__)
2137 #define showlist(...) puts (#__VA_ARGS__)
2138 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2139 static void
2140 test_varargs_macros (void)
2141 {
2142 int x = 1234;
2143 int y = 5678;
2144 debug ("Flag");
2145 debug ("X = %d\n", x);
2146 showlist (The first, second, and third items.);
2147 report (x>y, "x is %d but y is %d", x, y);
2148 }
2149
2150 // Check long long types.
2151 #define BIG64 18446744073709551615ull
2152 #define BIG32 4294967295ul
2153 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2154 #if !BIG_OK
2155 #error "your preprocessor is broken"
2156 #endif
2157 #if BIG_OK
2158 #else
2159 #error "your preprocessor is broken"
2160 #endif
2161 static long long int bignum = -9223372036854775807LL;
2162 static unsigned long long int ubignum = BIG64;
2163
2164 struct incomplete_array
2165 {
2166 int datasize;
2167 double data[];
2168 };
2169
2170 struct named_init {
2171 int number;
2172 const wchar_t *name;
2173 double average;
2174 };
2175
2176 typedef const char *ccp;
2177
2178 static inline int
2179 test_restrict (ccp restrict text)
2180 {
2181 // See if C++-style comments work.
2182 // Iterate through items via the restricted pointer.
2183 // Also check for declarations in for loops.
2184 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2185 continue;
2186 return 0;
2187 }
2188
2189 // Check varargs and va_copy.
2190 static bool
2191 test_varargs (const char *format, ...)
2192 {
2193 va_list args;
2194 va_start (args, format);
2195 va_list args_copy;
2196 va_copy (args_copy, args);
2197
2198 const char *str = "";
2199 int number = 0;
2200 float fnumber = 0;
2201
2202 while (*format)
2203 {
2204 switch (*format++)
2205 {
2206 case '\''s'\'': // string
2207 str = va_arg (args_copy, const char *);
2208 break;
2209 case '\''d'\'': // int
2210 number = va_arg (args_copy, int);
2211 break;
2212 case '\''f'\'': // float
2213 fnumber = va_arg (args_copy, double);
2214 break;
2215 default:
2216 break;
2217 }
2218 }
2219 va_end (args_copy);
2220 va_end (args);
2221
2222 return *str && number && fnumber;
2223 }
2224 '
2225
2226 # Test code for whether the C compiler supports C99 (body of main).
2227 ac_c_conftest_c99_main='
2228 // Check bool.
2229 _Bool success = false;
2230 success |= (argc != 0);
2231
2232 // Check restrict.
2233 if (test_restrict ("String literal") == 0)
2234 success = true;
2235 char *restrict newvar = "Another string";
2236
2237 // Check varargs.
2238 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2239 test_varargs_macros ();
2240
2241 // Check flexible array members.
2242 struct incomplete_array *ia =
2243 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2244 ia->datasize = 10;
2245 for (int i = 0; i < ia->datasize; ++i)
2246 ia->data[i] = i * 1.234;
2247
2248 // Check named initializers.
2249 struct named_init ni = {
2250 .number = 34,
2251 .name = L"Test wide string",
2252 .average = 543.34343,
2253 };
2254
2255 ni.number = 58;
2256
2257 int dynamic_array[ni.number];
2258 dynamic_array[0] = argv[0][0];
2259 dynamic_array[ni.number - 1] = 543;
2260
2261 // work around unused variable warnings
2262 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2263 || dynamic_array[ni.number - 1] != 543);
2264 '
2265
2266 # Test code for whether the C compiler supports C11 (global declarations)
2267 ac_c_conftest_c11_globals='
2268 // Does the compiler advertise C11 conformance?
2269 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2270 # error "Compiler does not advertise C11 conformance"
2271 #endif
2272
2273 // Check _Alignas.
2274 char _Alignas (double) aligned_as_double;
2275 char _Alignas (0) no_special_alignment;
2276 extern char aligned_as_int;
2277 char _Alignas (0) _Alignas (int) aligned_as_int;
2278
2279 // Check _Alignof.
2280 enum
2281 {
2282 int_alignment = _Alignof (int),
2283 int_array_alignment = _Alignof (int[100]),
2284 char_alignment = _Alignof (char)
2285 };
2286 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2287
2288 // Check _Noreturn.
2289 int _Noreturn does_not_return (void) { for (;;) continue; }
2290
2291 // Check _Static_assert.
2292 struct test_static_assert
2293 {
2294 int x;
2295 _Static_assert (sizeof (int) <= sizeof (long int),
2296 "_Static_assert does not work in struct");
2297 long int y;
2298 };
2299
2300 // Check UTF-8 literals.
2301 #define u8 syntax error!
2302 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2303
2304 // Check duplicate typedefs.
2305 typedef long *long_ptr;
2306 typedef long int *long_ptr;
2307 typedef long_ptr long_ptr;
2308
2309 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2310 struct anonymous
2311 {
2312 union {
2313 struct { int i; int j; };
2314 struct { int k; long int l; } w;
2315 };
2316 int m;
2317 } v1;
2318 '
2319
2320 # Test code for whether the C compiler supports C11 (body of main).
2321 ac_c_conftest_c11_main='
2322 _Static_assert ((offsetof (struct anonymous, i)
2323 == offsetof (struct anonymous, w.k)),
2324 "Anonymous union alignment botch");
2325 v1.i = 2;
2326 v1.w.k = 5;
2327 ok |= v1.i != 5;
2328 '
2329
2330 # Test code for whether the C compiler supports C11 (complete).
2331 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2332 ${ac_c_conftest_c99_globals}
2333 ${ac_c_conftest_c11_globals}
2334
2335 int
2336 main (int argc, char **argv)
2337 {
2338 int ok = 0;
2339 ${ac_c_conftest_c89_main}
2340 ${ac_c_conftest_c99_main}
2341 ${ac_c_conftest_c11_main}
2342 return ok;
2343 }
2344 "
2345
2346 # Test code for whether the C compiler supports C99 (complete).
2347 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2348 ${ac_c_conftest_c99_globals}
2349
2350 int
2351 main (int argc, char **argv)
2352 {
2353 int ok = 0;
2354 ${ac_c_conftest_c89_main}
2355 ${ac_c_conftest_c99_main}
2356 return ok;
2357 }
2358 "
2359
2360 # Test code for whether the C compiler supports C89 (complete).
2361 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2362
2363 int
2364 main (int argc, char **argv)
2365 {
2366 int ok = 0;
2367 ${ac_c_conftest_c89_main}
2368 return ok;
2369 }
2370 "
2371
2372 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2373 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2374 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2375 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2376 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2377 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2378 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2379 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2380 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2381 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2382
2383 # Auxiliary files required by this configure script.
2384 ac_aux_files="config.guess config.sub missing install-sh compile"
2385
2386 # Locations in which to look for auxiliary files.
2387 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2388
2389 # Search for a directory containing all of the required auxiliary files,
2390 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2391 # If we don't find one directory that contains all the files we need,
2392 # we report the set of missing files from the *first* directory in
2393 # $ac_aux_dir_candidates and give up.
2394 ac_missing_aux_files=""
2395 ac_first_candidate=:
2396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 as_found=false
2399 for as_dir in $ac_aux_dir_candidates
2400 do
2401 IFS=$as_save_IFS
2402 case $as_dir in #(((
2403 '') as_dir=./ ;;
2404 */) ;;
2405 *) as_dir=$as_dir/ ;;
2406 esac
2407 as_found=:
2408
2409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2410 ac_aux_dir_found=yes
2411 ac_install_sh=
2412 for ac_aux in $ac_aux_files
2413 do
2414 # As a special case, if "install-sh" is required, that requirement
2415 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2416 # and $ac_install_sh is set appropriately for whichever one is found.
2417 if test x"$ac_aux" = x"install-sh"
2418 then
2419 if test -f "${as_dir}install-sh"; then
2420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2421 ac_install_sh="${as_dir}install-sh -c"
2422 elif test -f "${as_dir}install.sh"; then
2423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2424 ac_install_sh="${as_dir}install.sh -c"
2425 elif test -f "${as_dir}shtool"; then
2426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2427 ac_install_sh="${as_dir}shtool install -c"
2428 else
2429 ac_aux_dir_found=no
2430 if $ac_first_candidate; then
2431 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2432 else
2433 break
2434 fi
2435 fi
2436 else
2437 if test -f "${as_dir}${ac_aux}"; then
2438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2439 else
2440 ac_aux_dir_found=no
2441 if $ac_first_candidate; then
2442 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2443 else
2444 break
2445 fi
2446 fi
2447 fi
2448 done
2449 if test "$ac_aux_dir_found" = yes; then
2450 ac_aux_dir="$as_dir"
2451 break
2452 fi
2453 ac_first_candidate=false
2454
2455 as_found=false
2456 done
2457 IFS=$as_save_IFS
2458 if $as_found
2459 then :
2460
2461 else $as_nop
2462 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2463 fi
2464
2465
2466 # These three variables are undocumented and unsupported,
2467 # and are intended to be withdrawn in a future Autoconf release.
2468 # They can cause serious problems if a builder's source tree is in a directory
2469 # whose full name contains unusual characters.
2470 if test -f "${ac_aux_dir}config.guess"; then
2471 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2472 fi
2473 if test -f "${ac_aux_dir}config.sub"; then
2474 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2475 fi
2476 if test -f "$ac_aux_dir/configure"; then
2477 ac_configure="$SHELL ${ac_aux_dir}configure"
2478 fi
2479
2480 # Check that the precious variables saved in the cache have kept the same
2481 # value.
2482 ac_cache_corrupted=false
2483 for ac_var in $ac_precious_vars; do
2484 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2485 eval ac_new_set=\$ac_env_${ac_var}_set
2486 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2487 eval ac_new_val=\$ac_env_${ac_var}_value
2488 case $ac_old_set,$ac_new_set in
2489 set,)
2490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2491 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2492 ac_cache_corrupted=: ;;
2493 ,set)
2494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2495 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2496 ac_cache_corrupted=: ;;
2497 ,);;
2498 *)
2499 if test "x$ac_old_val" != "x$ac_new_val"; then
2500 # differences in whitespace do not lead to failure.
2501 ac_old_val_w=`echo x $ac_old_val`
2502 ac_new_val_w=`echo x $ac_new_val`
2503 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2505 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2506 ac_cache_corrupted=:
2507 else
2508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2509 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2510 eval $ac_var=\$ac_old_val
2511 fi
2512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2513 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2515 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2516 fi;;
2517 esac
2518 # Pass precious variables to config.status.
2519 if test "$ac_new_set" = set; then
2520 case $ac_new_val in
2521 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2522 *) ac_arg=$ac_var=$ac_new_val ;;
2523 esac
2524 case " $ac_configure_args " in
2525 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2526 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2527 esac
2528 fi
2529 done
2530 if $ac_cache_corrupted; then
2531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2532 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2534 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2535 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2536 and start over" "$LINENO" 5
2537 fi
2538 ## -------------------- ##
2539 ## Main body of script. ##
2540 ## -------------------- ##
2541
2542 ac_ext=c
2543 ac_cpp='$CPP $CPPFLAGS'
2544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2547
2548
2549
2550 ac_config_headers="$ac_config_headers config.h"
2551
2552 # Needed for asprintf on GNU libc
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564 # Expand $ac_aux_dir to an absolute path.
2565 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2566
2567 ac_ext=c
2568 ac_cpp='$CPP $CPPFLAGS'
2569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2572 if test -n "$ac_tool_prefix"; then
2573 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2574 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2576 printf %s "checking for $ac_word... " >&6; }
2577 if test ${ac_cv_prog_CC+y}
2578 then :
2579 printf %s "(cached) " >&6
2580 else $as_nop
2581 if test -n "$CC"; then
2582 ac_cv_prog_CC="$CC" # Let the user override the test.
2583 else
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 for as_dir in $PATH
2586 do
2587 IFS=$as_save_IFS
2588 case $as_dir in #(((
2589 '') as_dir=./ ;;
2590 */) ;;
2591 *) as_dir=$as_dir/ ;;
2592 esac
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2595 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2597 break 2
2598 fi
2599 done
2600 done
2601 IFS=$as_save_IFS
2602
2603 fi
2604 fi
2605 CC=$ac_cv_prog_CC
2606 if test -n "$CC"; then
2607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2608 printf "%s\n" "$CC" >&6; }
2609 else
2610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2611 printf "%s\n" "no" >&6; }
2612 fi
2613
2614
2615 fi
2616 if test -z "$ac_cv_prog_CC"; then
2617 ac_ct_CC=$CC
2618 # Extract the first word of "gcc", so it can be a program name with args.
2619 set dummy gcc; ac_word=$2
2620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2621 printf %s "checking for $ac_word... " >&6; }
2622 if test ${ac_cv_prog_ac_ct_CC+y}
2623 then :
2624 printf %s "(cached) " >&6
2625 else $as_nop
2626 if test -n "$ac_ct_CC"; then
2627 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2628 else
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH
2631 do
2632 IFS=$as_save_IFS
2633 case $as_dir in #(((
2634 '') as_dir=./ ;;
2635 */) ;;
2636 *) as_dir=$as_dir/ ;;
2637 esac
2638 for ac_exec_ext in '' $ac_executable_extensions; do
2639 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2640 ac_cv_prog_ac_ct_CC="gcc"
2641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2642 break 2
2643 fi
2644 done
2645 done
2646 IFS=$as_save_IFS
2647
2648 fi
2649 fi
2650 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2651 if test -n "$ac_ct_CC"; then
2652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2653 printf "%s\n" "$ac_ct_CC" >&6; }
2654 else
2655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2656 printf "%s\n" "no" >&6; }
2657 fi
2658
2659 if test "x$ac_ct_CC" = x; then
2660 CC=""
2661 else
2662 case $cross_compiling:$ac_tool_warned in
2663 yes:)
2664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2665 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2666 ac_tool_warned=yes ;;
2667 esac
2668 CC=$ac_ct_CC
2669 fi
2670 else
2671 CC="$ac_cv_prog_CC"
2672 fi
2673
2674 if test -z "$CC"; then
2675 if test -n "$ac_tool_prefix"; then
2676 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2677 set dummy ${ac_tool_prefix}cc; ac_word=$2
2678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2679 printf %s "checking for $ac_word... " >&6; }
2680 if test ${ac_cv_prog_CC+y}
2681 then :
2682 printf %s "(cached) " >&6
2683 else $as_nop
2684 if test -n "$CC"; then
2685 ac_cv_prog_CC="$CC" # Let the user override the test.
2686 else
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 for as_dir in $PATH
2689 do
2690 IFS=$as_save_IFS
2691 case $as_dir in #(((
2692 '') as_dir=./ ;;
2693 */) ;;
2694 *) as_dir=$as_dir/ ;;
2695 esac
2696 for ac_exec_ext in '' $ac_executable_extensions; do
2697 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2698 ac_cv_prog_CC="${ac_tool_prefix}cc"
2699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2700 break 2
2701 fi
2702 done
2703 done
2704 IFS=$as_save_IFS
2705
2706 fi
2707 fi
2708 CC=$ac_cv_prog_CC
2709 if test -n "$CC"; then
2710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2711 printf "%s\n" "$CC" >&6; }
2712 else
2713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2714 printf "%s\n" "no" >&6; }
2715 fi
2716
2717
2718 fi
2719 fi
2720 if test -z "$CC"; then
2721 # Extract the first word of "cc", so it can be a program name with args.
2722 set dummy cc; 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 $as_nop
2729 if test -n "$CC"; then
2730 ac_cv_prog_CC="$CC" # Let the user override the test.
2731 else
2732 ac_prog_rejected=no
2733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734 for as_dir in $PATH
2735 do
2736 IFS=$as_save_IFS
2737 case $as_dir in #(((
2738 '') as_dir=./ ;;
2739 */) ;;
2740 *) as_dir=$as_dir/ ;;
2741 esac
2742 for ac_exec_ext in '' $ac_executable_extensions; do
2743 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2744 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2745 ac_prog_rejected=yes
2746 continue
2747 fi
2748 ac_cv_prog_CC="cc"
2749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2750 break 2
2751 fi
2752 done
2753 done
2754 IFS=$as_save_IFS
2755
2756 if test $ac_prog_rejected = yes; then
2757 # We found a bogon in the path, so make sure we never use it.
2758 set dummy $ac_cv_prog_CC
2759 shift
2760 if test $# != 0; then
2761 # We chose a different compiler from the bogus one.
2762 # However, it has the same basename, so the bogon will be chosen
2763 # first if we set CC to just the basename; use the full file name.
2764 shift
2765 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2766 fi
2767 fi
2768 fi
2769 fi
2770 CC=$ac_cv_prog_CC
2771 if test -n "$CC"; then
2772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2773 printf "%s\n" "$CC" >&6; }
2774 else
2775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2776 printf "%s\n" "no" >&6; }
2777 fi
2778
2779
2780 fi
2781 if test -z "$CC"; then
2782 if test -n "$ac_tool_prefix"; then
2783 for ac_prog in cl.exe
2784 do
2785 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2786 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2788 printf %s "checking for $ac_word... " >&6; }
2789 if test ${ac_cv_prog_CC+y}
2790 then :
2791 printf %s "(cached) " >&6
2792 else $as_nop
2793 if test -n "$CC"; then
2794 ac_cv_prog_CC="$CC" # Let the user override the test.
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2798 do
2799 IFS=$as_save_IFS
2800 case $as_dir in #(((
2801 '') as_dir=./ ;;
2802 */) ;;
2803 *) as_dir=$as_dir/ ;;
2804 esac
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2807 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2809 break 2
2810 fi
2811 done
2812 done
2813 IFS=$as_save_IFS
2814
2815 fi
2816 fi
2817 CC=$ac_cv_prog_CC
2818 if test -n "$CC"; then
2819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2820 printf "%s\n" "$CC" >&6; }
2821 else
2822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823 printf "%s\n" "no" >&6; }
2824 fi
2825
2826
2827 test -n "$CC" && break
2828 done
2829 fi
2830 if test -z "$CC"; then
2831 ac_ct_CC=$CC
2832 for ac_prog in cl.exe
2833 do
2834 # Extract the first word of "$ac_prog", so it can be a program name with args.
2835 set dummy $ac_prog; ac_word=$2
2836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2837 printf %s "checking for $ac_word... " >&6; }
2838 if test ${ac_cv_prog_ac_ct_CC+y}
2839 then :
2840 printf %s "(cached) " >&6
2841 else $as_nop
2842 if test -n "$ac_ct_CC"; then
2843 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2844 else
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 for as_dir in $PATH
2847 do
2848 IFS=$as_save_IFS
2849 case $as_dir in #(((
2850 '') as_dir=./ ;;
2851 */) ;;
2852 *) as_dir=$as_dir/ ;;
2853 esac
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2856 ac_cv_prog_ac_ct_CC="$ac_prog"
2857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2858 break 2
2859 fi
2860 done
2861 done
2862 IFS=$as_save_IFS
2863
2864 fi
2865 fi
2866 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2867 if test -n "$ac_ct_CC"; then
2868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2869 printf "%s\n" "$ac_ct_CC" >&6; }
2870 else
2871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872 printf "%s\n" "no" >&6; }
2873 fi
2874
2875
2876 test -n "$ac_ct_CC" && break
2877 done
2878
2879 if test "x$ac_ct_CC" = x; then
2880 CC=""
2881 else
2882 case $cross_compiling:$ac_tool_warned in
2883 yes:)
2884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2885 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2886 ac_tool_warned=yes ;;
2887 esac
2888 CC=$ac_ct_CC
2889 fi
2890 fi
2891
2892 fi
2893 if test -z "$CC"; then
2894 if test -n "$ac_tool_prefix"; then
2895 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2896 set dummy ${ac_tool_prefix}clang; ac_word=$2
2897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898 printf %s "checking for $ac_word... " >&6; }
2899 if test ${ac_cv_prog_CC+y}
2900 then :
2901 printf %s "(cached) " >&6
2902 else $as_nop
2903 if test -n "$CC"; then
2904 ac_cv_prog_CC="$CC" # Let the user override the test.
2905 else
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 for as_dir in $PATH
2908 do
2909 IFS=$as_save_IFS
2910 case $as_dir in #(((
2911 '') as_dir=./ ;;
2912 */) ;;
2913 *) as_dir=$as_dir/ ;;
2914 esac
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2917 ac_cv_prog_CC="${ac_tool_prefix}clang"
2918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2919 break 2
2920 fi
2921 done
2922 done
2923 IFS=$as_save_IFS
2924
2925 fi
2926 fi
2927 CC=$ac_cv_prog_CC
2928 if test -n "$CC"; then
2929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2930 printf "%s\n" "$CC" >&6; }
2931 else
2932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 printf "%s\n" "no" >&6; }
2934 fi
2935
2936
2937 fi
2938 if test -z "$ac_cv_prog_CC"; then
2939 ac_ct_CC=$CC
2940 # Extract the first word of "clang", so it can be a program name with args.
2941 set dummy clang; ac_word=$2
2942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943 printf %s "checking for $ac_word... " >&6; }
2944 if test ${ac_cv_prog_ac_ct_CC+y}
2945 then :
2946 printf %s "(cached) " >&6
2947 else $as_nop
2948 if test -n "$ac_ct_CC"; then
2949 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2950 else
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 for as_dir in $PATH
2953 do
2954 IFS=$as_save_IFS
2955 case $as_dir in #(((
2956 '') as_dir=./ ;;
2957 */) ;;
2958 *) as_dir=$as_dir/ ;;
2959 esac
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2962 ac_cv_prog_ac_ct_CC="clang"
2963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2964 break 2
2965 fi
2966 done
2967 done
2968 IFS=$as_save_IFS
2969
2970 fi
2971 fi
2972 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2973 if test -n "$ac_ct_CC"; then
2974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2975 printf "%s\n" "$ac_ct_CC" >&6; }
2976 else
2977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 printf "%s\n" "no" >&6; }
2979 fi
2980
2981 if test "x$ac_ct_CC" = x; then
2982 CC=""
2983 else
2984 case $cross_compiling:$ac_tool_warned in
2985 yes:)
2986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2987 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2988 ac_tool_warned=yes ;;
2989 esac
2990 CC=$ac_ct_CC
2991 fi
2992 else
2993 CC="$ac_cv_prog_CC"
2994 fi
2995
2996 fi
2997
2998
2999 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3000 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3001 as_fn_error $? "no acceptable C compiler found in \$PATH
3002 See \`config.log' for more details" "$LINENO" 5; }
3003
3004 # Provide some information about the compiler.
3005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3006 set X $ac_compile
3007 ac_compiler=$2
3008 for ac_option in --version -v -V -qversion -version; do
3009 { { ac_try="$ac_compiler $ac_option >&5"
3010 case "(($ac_try" in
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3013 esac
3014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3015 printf "%s\n" "$ac_try_echo"; } >&5
3016 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3017 ac_status=$?
3018 if test -s conftest.err; then
3019 sed '10a\
3020 ... rest of stderr output deleted ...
3021 10q' conftest.err >conftest.er1
3022 cat conftest.er1 >&5
3023 fi
3024 rm -f conftest.er1 conftest.err
3025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3026 test $ac_status = 0; }
3027 done
3028
3029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3030 /* end confdefs.h. */
3031
3032 int
3033 main (void)
3034 {
3035
3036 ;
3037 return 0;
3038 }
3039 _ACEOF
3040 ac_clean_files_save=$ac_clean_files
3041 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3042 # Try to create an executable without -o first, disregard a.out.
3043 # It will help us diagnose broken compilers, and finding out an intuition
3044 # of exeext.
3045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3046 printf %s "checking whether the C compiler works... " >&6; }
3047 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3048
3049 # The possible output files:
3050 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3051
3052 ac_rmfiles=
3053 for ac_file in $ac_files
3054 do
3055 case $ac_file in
3056 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3057 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3058 esac
3059 done
3060 rm -f $ac_rmfiles
3061
3062 if { { ac_try="$ac_link_default"
3063 case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3066 esac
3067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3068 printf "%s\n" "$ac_try_echo"; } >&5
3069 (eval "$ac_link_default") 2>&5
3070 ac_status=$?
3071 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3072 test $ac_status = 0; }
3073 then :
3074 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3075 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3076 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3077 # so that the user can short-circuit this test for compilers unknown to
3078 # Autoconf.
3079 for ac_file in $ac_files ''
3080 do
3081 test -f "$ac_file" || continue
3082 case $ac_file in
3083 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3084 ;;
3085 [ab].out )
3086 # We found the default executable, but exeext='' is most
3087 # certainly right.
3088 break;;
3089 *.* )
3090 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3091 then :; else
3092 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3093 fi
3094 # We set ac_cv_exeext here because the later test for it is not
3095 # safe: cross compilers may not add the suffix if given an `-o'
3096 # argument, so we may need to know it at that point already.
3097 # Even if this section looks crufty: it has the advantage of
3098 # actually working.
3099 break;;
3100 * )
3101 break;;
3102 esac
3103 done
3104 test "$ac_cv_exeext" = no && ac_cv_exeext=
3105
3106 else $as_nop
3107 ac_file=''
3108 fi
3109 if test -z "$ac_file"
3110 then :
3111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112 printf "%s\n" "no" >&6; }
3113 printf "%s\n" "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3115
3116 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3117 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3118 as_fn_error 77 "C compiler cannot create executables
3119 See \`config.log' for more details" "$LINENO" 5; }
3120 else $as_nop
3121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3122 printf "%s\n" "yes" >&6; }
3123 fi
3124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3125 printf %s "checking for C compiler default output file name... " >&6; }
3126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3127 printf "%s\n" "$ac_file" >&6; }
3128 ac_exeext=$ac_cv_exeext
3129
3130 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3131 ac_clean_files=$ac_clean_files_save
3132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3133 printf %s "checking for suffix of executables... " >&6; }
3134 if { { ac_try="$ac_link"
3135 case "(($ac_try" in
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3138 esac
3139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3140 printf "%s\n" "$ac_try_echo"; } >&5
3141 (eval "$ac_link") 2>&5
3142 ac_status=$?
3143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3144 test $ac_status = 0; }
3145 then :
3146 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3147 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3148 # work properly (i.e., refer to `conftest.exe'), while it won't with
3149 # `rm'.
3150 for ac_file in conftest.exe conftest conftest.*; do
3151 test -f "$ac_file" || continue
3152 case $ac_file in
3153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3154 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3155 break;;
3156 * ) break;;
3157 esac
3158 done
3159 else $as_nop
3160 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3161 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3162 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3163 See \`config.log' for more details" "$LINENO" 5; }
3164 fi
3165 rm -f conftest conftest$ac_cv_exeext
3166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3167 printf "%s\n" "$ac_cv_exeext" >&6; }
3168
3169 rm -f conftest.$ac_ext
3170 EXEEXT=$ac_cv_exeext
3171 ac_exeext=$EXEEXT
3172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3173 /* end confdefs.h. */
3174 #include <stdio.h>
3175 int
3176 main (void)
3177 {
3178 FILE *f = fopen ("conftest.out", "w");
3179 return ferror (f) || fclose (f) != 0;
3180
3181 ;
3182 return 0;
3183 }
3184 _ACEOF
3185 ac_clean_files="$ac_clean_files conftest.out"
3186 # Check that the compiler produces executables we can run. If not, either
3187 # the compiler is broken, or we cross compile.
3188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3189 printf %s "checking whether we are cross compiling... " >&6; }
3190 if test "$cross_compiling" != yes; then
3191 { { ac_try="$ac_link"
3192 case "(($ac_try" in
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3195 esac
3196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3197 printf "%s\n" "$ac_try_echo"; } >&5
3198 (eval "$ac_link") 2>&5
3199 ac_status=$?
3200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3201 test $ac_status = 0; }
3202 if { ac_try='./conftest$ac_cv_exeext'
3203 { { case "(($ac_try" in
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3206 esac
3207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3208 printf "%s\n" "$ac_try_echo"; } >&5
3209 (eval "$ac_try") 2>&5
3210 ac_status=$?
3211 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3212 test $ac_status = 0; }; }; then
3213 cross_compiling=no
3214 else
3215 if test "$cross_compiling" = maybe; then
3216 cross_compiling=yes
3217 else
3218 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3219 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3220 as_fn_error 77 "cannot run C compiled programs.
3221 If you meant to cross compile, use \`--host'.
3222 See \`config.log' for more details" "$LINENO" 5; }
3223 fi
3224 fi
3225 fi
3226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3227 printf "%s\n" "$cross_compiling" >&6; }
3228
3229 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3230 ac_clean_files=$ac_clean_files_save
3231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3232 printf %s "checking for suffix of object files... " >&6; }
3233 if test ${ac_cv_objext+y}
3234 then :
3235 printf %s "(cached) " >&6
3236 else $as_nop
3237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238 /* end confdefs.h. */
3239
3240 int
3241 main (void)
3242 {
3243
3244 ;
3245 return 0;
3246 }
3247 _ACEOF
3248 rm -f conftest.o conftest.obj
3249 if { { ac_try="$ac_compile"
3250 case "(($ac_try" in
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3253 esac
3254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3255 printf "%s\n" "$ac_try_echo"; } >&5
3256 (eval "$ac_compile") 2>&5
3257 ac_status=$?
3258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3259 test $ac_status = 0; }
3260 then :
3261 for ac_file in conftest.o conftest.obj conftest.*; do
3262 test -f "$ac_file" || continue;
3263 case $ac_file in
3264 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3265 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3266 break;;
3267 esac
3268 done
3269 else $as_nop
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 $? "cannot compute suffix of object files: cannot compile
3276 See \`config.log' for more details" "$LINENO" 5; }
3277 fi
3278 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3279 fi
3280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3281 printf "%s\n" "$ac_cv_objext" >&6; }
3282 OBJEXT=$ac_cv_objext
3283 ac_objext=$OBJEXT
3284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3285 printf %s "checking whether the compiler supports GNU C... " >&6; }
3286 if test ${ac_cv_c_compiler_gnu+y}
3287 then :
3288 printf %s "(cached) " >&6
3289 else $as_nop
3290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3291 /* end confdefs.h. */
3292
3293 int
3294 main (void)
3295 {
3296 #ifndef __GNUC__
3297 choke me
3298 #endif
3299
3300 ;
3301 return 0;
3302 }
3303 _ACEOF
3304 if ac_fn_c_try_compile "$LINENO"
3305 then :
3306 ac_compiler_gnu=yes
3307 else $as_nop
3308 ac_compiler_gnu=no
3309 fi
3310 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3311 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3312
3313 fi
3314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3315 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3317
3318 if test $ac_compiler_gnu = yes; then
3319 GCC=yes
3320 else
3321 GCC=
3322 fi
3323 ac_test_CFLAGS=${CFLAGS+y}
3324 ac_save_CFLAGS=$CFLAGS
3325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3326 printf %s "checking whether $CC accepts -g... " >&6; }
3327 if test ${ac_cv_prog_cc_g+y}
3328 then :
3329 printf %s "(cached) " >&6
3330 else $as_nop
3331 ac_save_c_werror_flag=$ac_c_werror_flag
3332 ac_c_werror_flag=yes
3333 ac_cv_prog_cc_g=no
3334 CFLAGS="-g"
3335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3336 /* end confdefs.h. */
3337
3338 int
3339 main (void)
3340 {
3341
3342 ;
3343 return 0;
3344 }
3345 _ACEOF
3346 if ac_fn_c_try_compile "$LINENO"
3347 then :
3348 ac_cv_prog_cc_g=yes
3349 else $as_nop
3350 CFLAGS=""
3351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352 /* end confdefs.h. */
3353
3354 int
3355 main (void)
3356 {
3357
3358 ;
3359 return 0;
3360 }
3361 _ACEOF
3362 if ac_fn_c_try_compile "$LINENO"
3363 then :
3364
3365 else $as_nop
3366 ac_c_werror_flag=$ac_save_c_werror_flag
3367 CFLAGS="-g"
3368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369 /* end confdefs.h. */
3370
3371 int
3372 main (void)
3373 {
3374
3375 ;
3376 return 0;
3377 }
3378 _ACEOF
3379 if ac_fn_c_try_compile "$LINENO"
3380 then :
3381 ac_cv_prog_cc_g=yes
3382 fi
3383 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3384 fi
3385 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3386 fi
3387 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3388 ac_c_werror_flag=$ac_save_c_werror_flag
3389 fi
3390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3391 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3392 if test $ac_test_CFLAGS; then
3393 CFLAGS=$ac_save_CFLAGS
3394 elif test $ac_cv_prog_cc_g = yes; then
3395 if test "$GCC" = yes; then
3396 CFLAGS="-g -O2"
3397 else
3398 CFLAGS="-g"
3399 fi
3400 else
3401 if test "$GCC" = yes; then
3402 CFLAGS="-O2"
3403 else
3404 CFLAGS=
3405 fi
3406 fi
3407 ac_prog_cc_stdc=no
3408 if test x$ac_prog_cc_stdc = xno
3409 then :
3410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3411 printf %s "checking for $CC option to enable C11 features... " >&6; }
3412 if test ${ac_cv_prog_cc_c11+y}
3413 then :
3414 printf %s "(cached) " >&6
3415 else $as_nop
3416 ac_cv_prog_cc_c11=no
3417 ac_save_CC=$CC
3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h. */
3420 $ac_c_conftest_c11_program
3421 _ACEOF
3422 for ac_arg in '' -std=gnu11
3423 do
3424 CC="$ac_save_CC $ac_arg"
3425 if ac_fn_c_try_compile "$LINENO"
3426 then :
3427 ac_cv_prog_cc_c11=$ac_arg
3428 fi
3429 rm -f core conftest.err conftest.$ac_objext conftest.beam
3430 test "x$ac_cv_prog_cc_c11" != "xno" && break
3431 done
3432 rm -f conftest.$ac_ext
3433 CC=$ac_save_CC
3434 fi
3435
3436 if test "x$ac_cv_prog_cc_c11" = xno
3437 then :
3438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3439 printf "%s\n" "unsupported" >&6; }
3440 else $as_nop
3441 if test "x$ac_cv_prog_cc_c11" = x
3442 then :
3443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3444 printf "%s\n" "none needed" >&6; }
3445 else $as_nop
3446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3447 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3448 CC="$CC $ac_cv_prog_cc_c11"
3449 fi
3450 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3451 ac_prog_cc_stdc=c11
3452 fi
3453 fi
3454 if test x$ac_prog_cc_stdc = xno
3455 then :
3456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3457 printf %s "checking for $CC option to enable C99 features... " >&6; }
3458 if test ${ac_cv_prog_cc_c99+y}
3459 then :
3460 printf %s "(cached) " >&6
3461 else $as_nop
3462 ac_cv_prog_cc_c99=no
3463 ac_save_CC=$CC
3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465 /* end confdefs.h. */
3466 $ac_c_conftest_c99_program
3467 _ACEOF
3468 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3469 do
3470 CC="$ac_save_CC $ac_arg"
3471 if ac_fn_c_try_compile "$LINENO"
3472 then :
3473 ac_cv_prog_cc_c99=$ac_arg
3474 fi
3475 rm -f core conftest.err conftest.$ac_objext conftest.beam
3476 test "x$ac_cv_prog_cc_c99" != "xno" && break
3477 done
3478 rm -f conftest.$ac_ext
3479 CC=$ac_save_CC
3480 fi
3481
3482 if test "x$ac_cv_prog_cc_c99" = xno
3483 then :
3484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3485 printf "%s\n" "unsupported" >&6; }
3486 else $as_nop
3487 if test "x$ac_cv_prog_cc_c99" = x
3488 then :
3489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3490 printf "%s\n" "none needed" >&6; }
3491 else $as_nop
3492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3493 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3494 CC="$CC $ac_cv_prog_cc_c99"
3495 fi
3496 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3497 ac_prog_cc_stdc=c99
3498 fi
3499 fi
3500 if test x$ac_prog_cc_stdc = xno
3501 then :
3502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3503 printf %s "checking for $CC option to enable C89 features... " >&6; }
3504 if test ${ac_cv_prog_cc_c89+y}
3505 then :
3506 printf %s "(cached) " >&6
3507 else $as_nop
3508 ac_cv_prog_cc_c89=no
3509 ac_save_CC=$CC
3510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511 /* end confdefs.h. */
3512 $ac_c_conftest_c89_program
3513 _ACEOF
3514 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3515 do
3516 CC="$ac_save_CC $ac_arg"
3517 if ac_fn_c_try_compile "$LINENO"
3518 then :
3519 ac_cv_prog_cc_c89=$ac_arg
3520 fi
3521 rm -f core conftest.err conftest.$ac_objext conftest.beam
3522 test "x$ac_cv_prog_cc_c89" != "xno" && break
3523 done
3524 rm -f conftest.$ac_ext
3525 CC=$ac_save_CC
3526 fi
3527
3528 if test "x$ac_cv_prog_cc_c89" = xno
3529 then :
3530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3531 printf "%s\n" "unsupported" >&6; }
3532 else $as_nop
3533 if test "x$ac_cv_prog_cc_c89" = x
3534 then :
3535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3536 printf "%s\n" "none needed" >&6; }
3537 else $as_nop
3538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3539 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3540 CC="$CC $ac_cv_prog_cc_c89"
3541 fi
3542 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3543 ac_prog_cc_stdc=c89
3544 fi
3545 fi
3546
3547 ac_ext=c
3548 ac_cpp='$CPP $CPPFLAGS'
3549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3552
3553
3554 ac_ext=c
3555 ac_cpp='$CPP $CPPFLAGS'
3556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3560 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3561 if test ${am_cv_prog_cc_c_o+y}
3562 then :
3563 printf %s "(cached) " >&6
3564 else $as_nop
3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566 /* end confdefs.h. */
3567
3568 int
3569 main (void)
3570 {
3571
3572 ;
3573 return 0;
3574 }
3575 _ACEOF
3576 # Make sure it works both with $CC and with simple cc.
3577 # Following AC_PROG_CC_C_O, we do the test twice because some
3578 # compilers refuse to overwrite an existing .o file with -o,
3579 # though they will create one.
3580 am_cv_prog_cc_c_o=yes
3581 for am_i in 1 2; do
3582 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3583 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3584 ac_status=$?
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); } \
3587 && test -f conftest2.$ac_objext; then
3588 : OK
3589 else
3590 am_cv_prog_cc_c_o=no
3591 break
3592 fi
3593 done
3594 rm -f core conftest*
3595 unset am_i
3596 fi
3597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3598 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3599 if test "$am_cv_prog_cc_c_o" != yes; then
3600 # Losing compiler, so override with the script.
3601 # FIXME: It is wrong to rewrite CC.
3602 # But if we don't then we get into trouble of one sort or another.
3603 # A longer-term fix would be to have automake use am__CC in this case,
3604 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3605 CC="$am_aux_dir/compile $CC"
3606 fi
3607 ac_ext=c
3608 ac_cpp='$CPP $CPPFLAGS'
3609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3612
3613
3614
3615 ac_header= ac_cache=
3616 for ac_item in $ac_header_c_list
3617 do
3618 if test $ac_cache; then
3619 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3620 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3621 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3622 fi
3623 ac_header= ac_cache=
3624 elif test $ac_header; then
3625 ac_cache=$ac_item
3626 else
3627 ac_header=$ac_item
3628 fi
3629 done
3630
3631
3632
3633
3634
3635
3636
3637
3638 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3639 then :
3640
3641 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3642
3643 fi
3644
3645
3646
3647
3648
3649
3650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3651 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3652 if test ${ac_cv_safe_to_define___extensions__+y}
3653 then :
3654 printf %s "(cached) " >&6
3655 else $as_nop
3656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657 /* end confdefs.h. */
3658
3659 # define __EXTENSIONS__ 1
3660 $ac_includes_default
3661 int
3662 main (void)
3663 {
3664
3665 ;
3666 return 0;
3667 }
3668 _ACEOF
3669 if ac_fn_c_try_compile "$LINENO"
3670 then :
3671 ac_cv_safe_to_define___extensions__=yes
3672 else $as_nop
3673 ac_cv_safe_to_define___extensions__=no
3674 fi
3675 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3676 fi
3677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3678 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3679
3680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3681 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3682 if test ${ac_cv_should_define__xopen_source+y}
3683 then :
3684 printf %s "(cached) " >&6
3685 else $as_nop
3686 ac_cv_should_define__xopen_source=no
3687 if test $ac_cv_header_wchar_h = yes
3688 then :
3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h. */
3691
3692 #include <wchar.h>
3693 mbstate_t x;
3694 int
3695 main (void)
3696 {
3697
3698 ;
3699 return 0;
3700 }
3701 _ACEOF
3702 if ac_fn_c_try_compile "$LINENO"
3703 then :
3704
3705 else $as_nop
3706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3707 /* end confdefs.h. */
3708
3709 #define _XOPEN_SOURCE 500
3710 #include <wchar.h>
3711 mbstate_t x;
3712 int
3713 main (void)
3714 {
3715
3716 ;
3717 return 0;
3718 }
3719 _ACEOF
3720 if ac_fn_c_try_compile "$LINENO"
3721 then :
3722 ac_cv_should_define__xopen_source=yes
3723 fi
3724 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3725 fi
3726 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3727 fi
3728 fi
3729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3730 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3731
3732 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3733
3734 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3735
3736 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3737
3738 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3739
3740 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3741
3742 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3743
3744 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3745
3746 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3747
3748 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3749
3750 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3751
3752 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3753
3754 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3755
3756 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3757
3758 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3759
3760 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3761
3762 if test $ac_cv_header_minix_config_h = yes
3763 then :
3764 MINIX=yes
3765 printf "%s\n" "#define _MINIX 1" >>confdefs.h
3766
3767 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3768
3769 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3770
3771 else $as_nop
3772 MINIX=
3773 fi
3774 if test $ac_cv_safe_to_define___extensions__ = yes
3775 then :
3776 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3777
3778 fi
3779 if test $ac_cv_should_define__xopen_source = yes
3780 then :
3781 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3782
3783 fi
3784
3785
3786 # Initialize Automake
3787 am__api_version='1.16'
3788
3789
3790 # Find a good install program. We prefer a C program (faster),
3791 # so one script is as good as another. But avoid the broken or
3792 # incompatible versions:
3793 # SysV /etc/install, /usr/sbin/install
3794 # SunOS /usr/etc/install
3795 # IRIX /sbin/install
3796 # AIX /bin/install
3797 # AmigaOS /C/install, which installs bootblocks on floppy discs
3798 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3799 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3800 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3801 # OS/2's system install, which has a completely different semantic
3802 # ./install, which can be erroneously created by make from ./install.sh.
3803 # Reject install programs that cannot install multiple files.
3804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3805 printf %s "checking for a BSD-compatible install... " >&6; }
3806 if test -z "$INSTALL"; then
3807 if test ${ac_cv_path_install+y}
3808 then :
3809 printf %s "(cached) " >&6
3810 else $as_nop
3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812 for as_dir in $PATH
3813 do
3814 IFS=$as_save_IFS
3815 case $as_dir in #(((
3816 '') as_dir=./ ;;
3817 */) ;;
3818 *) as_dir=$as_dir/ ;;
3819 esac
3820 # Account for fact that we put trailing slashes in our PATH walk.
3821 case $as_dir in #((
3822 ./ | /[cC]/* | \
3823 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3824 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3825 /usr/ucb/* ) ;;
3826 *)
3827 # OSF1 and SCO ODT 3.0 have their own names for install.
3828 # Don't use installbsd from OSF since it installs stuff as root
3829 # by default.
3830 for ac_prog in ginstall scoinst install; do
3831 for ac_exec_ext in '' $ac_executable_extensions; do
3832 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3833 if test $ac_prog = install &&
3834 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3835 # AIX install. It has an incompatible calling convention.
3836 :
3837 elif test $ac_prog = install &&
3838 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3839 # program-specific install script used by HP pwplus--don't use.
3840 :
3841 else
3842 rm -rf conftest.one conftest.two conftest.dir
3843 echo one > conftest.one
3844 echo two > conftest.two
3845 mkdir conftest.dir
3846 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3847 test -s conftest.one && test -s conftest.two &&
3848 test -s conftest.dir/conftest.one &&
3849 test -s conftest.dir/conftest.two
3850 then
3851 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3852 break 3
3853 fi
3854 fi
3855 fi
3856 done
3857 done
3858 ;;
3859 esac
3860
3861 done
3862 IFS=$as_save_IFS
3863
3864 rm -rf conftest.one conftest.two conftest.dir
3865
3866 fi
3867 if test ${ac_cv_path_install+y}; then
3868 INSTALL=$ac_cv_path_install
3869 else
3870 # As a last resort, use the slow shell script. Don't cache a
3871 # value for INSTALL within a source directory, because that will
3872 # break other packages using the cache if that directory is
3873 # removed, or if the value is a relative name.
3874 INSTALL=$ac_install_sh
3875 fi
3876 fi
3877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3878 printf "%s\n" "$INSTALL" >&6; }
3879
3880 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3881 # It thinks the first close brace ends the variable substitution.
3882 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3883
3884 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3885
3886 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3887
3888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3889 printf %s "checking whether build environment is sane... " >&6; }
3890 # Reject unsafe characters in $srcdir or the absolute working directory
3891 # name. Accept space and tab only in the latter.
3892 am_lf='
3893 '
3894 case `pwd` in
3895 *[\\\"\#\$\&\'\`$am_lf]*)
3896 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3897 esac
3898 case $srcdir in
3899 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3900 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3901 esac
3902
3903 # Do 'set' in a subshell so we don't clobber the current shell's
3904 # arguments. Must try -L first in case configure is actually a
3905 # symlink; some systems play weird games with the mod time of symlinks
3906 # (eg FreeBSD returns the mod time of the symlink's containing
3907 # directory).
3908 if (
3909 am_has_slept=no
3910 for am_try in 1 2; do
3911 echo "timestamp, slept: $am_has_slept" > conftest.file
3912 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3913 if test "$*" = "X"; then
3914 # -L didn't work.
3915 set X `ls -t "$srcdir/configure" conftest.file`
3916 fi
3917 if test "$*" != "X $srcdir/configure conftest.file" \
3918 && test "$*" != "X conftest.file $srcdir/configure"; then
3919
3920 # If neither matched, then we have a broken ls. This can happen
3921 # if, for instance, CONFIG_SHELL is bash and it inherits a
3922 # broken ls alias from the environment. This has actually
3923 # happened. Such a system could not be considered "sane".
3924 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3925 alias in your environment" "$LINENO" 5
3926 fi
3927 if test "$2" = conftest.file || test $am_try -eq 2; then
3928 break
3929 fi
3930 # Just in case.
3931 sleep 1
3932 am_has_slept=yes
3933 done
3934 test "$2" = conftest.file
3935 )
3936 then
3937 # Ok.
3938 :
3939 else
3940 as_fn_error $? "newly created file is older than distributed files!
3941 Check your system clock" "$LINENO" 5
3942 fi
3943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3944 printf "%s\n" "yes" >&6; }
3945 # If we didn't sleep, we still need to ensure time stamps of config.status and
3946 # generated files are strictly newer.
3947 am_sleep_pid=
3948 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3949 ( sleep 1 ) &
3950 am_sleep_pid=$!
3951 fi
3952
3953 rm -f conftest.file
3954
3955 test "$program_prefix" != NONE &&
3956 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3957 # Use a double $ so make ignores it.
3958 test "$program_suffix" != NONE &&
3959 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3960 # Double any \ or $.
3961 # By default was `s,x,x', remove it if useless.
3962 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3963 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3964
3965
3966 if test x"${MISSING+set}" != xset; then
3967 MISSING="\${SHELL} '$am_aux_dir/missing'"
3968 fi
3969 # Use eval to expand $SHELL
3970 if eval "$MISSING --is-lightweight"; then
3971 am_missing_run="$MISSING "
3972 else
3973 am_missing_run=
3974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3975 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3976 fi
3977
3978 if test x"${install_sh+set}" != xset; then
3979 case $am_aux_dir in
3980 *\ * | *\ *)
3981 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3982 *)
3983 install_sh="\${SHELL} $am_aux_dir/install-sh"
3984 esac
3985 fi
3986
3987 # Installed binaries are usually stripped using 'strip' when the user
3988 # run "make install-strip". However 'strip' might not be the right
3989 # tool to use in cross-compilation environments, therefore Automake
3990 # will honor the 'STRIP' environment variable to overrule this program.
3991 if test "$cross_compiling" != no; then
3992 if test -n "$ac_tool_prefix"; then
3993 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3994 set dummy ${ac_tool_prefix}strip; ac_word=$2
3995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3996 printf %s "checking for $ac_word... " >&6; }
3997 if test ${ac_cv_prog_STRIP+y}
3998 then :
3999 printf %s "(cached) " >&6
4000 else $as_nop
4001 if test -n "$STRIP"; then
4002 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4003 else
4004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005 for as_dir in $PATH
4006 do
4007 IFS=$as_save_IFS
4008 case $as_dir in #(((
4009 '') as_dir=./ ;;
4010 */) ;;
4011 *) as_dir=$as_dir/ ;;
4012 esac
4013 for ac_exec_ext in '' $ac_executable_extensions; do
4014 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4015 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4017 break 2
4018 fi
4019 done
4020 done
4021 IFS=$as_save_IFS
4022
4023 fi
4024 fi
4025 STRIP=$ac_cv_prog_STRIP
4026 if test -n "$STRIP"; then
4027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4028 printf "%s\n" "$STRIP" >&6; }
4029 else
4030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4031 printf "%s\n" "no" >&6; }
4032 fi
4033
4034
4035 fi
4036 if test -z "$ac_cv_prog_STRIP"; then
4037 ac_ct_STRIP=$STRIP
4038 # Extract the first word of "strip", so it can be a program name with args.
4039 set dummy strip; ac_word=$2
4040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4041 printf %s "checking for $ac_word... " >&6; }
4042 if test ${ac_cv_prog_ac_ct_STRIP+y}
4043 then :
4044 printf %s "(cached) " >&6
4045 else $as_nop
4046 if test -n "$ac_ct_STRIP"; then
4047 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4048 else
4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050 for as_dir in $PATH
4051 do
4052 IFS=$as_save_IFS
4053 case $as_dir in #(((
4054 '') as_dir=./ ;;
4055 */) ;;
4056 *) as_dir=$as_dir/ ;;
4057 esac
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4060 ac_cv_prog_ac_ct_STRIP="strip"
4061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4062 break 2
4063 fi
4064 done
4065 done
4066 IFS=$as_save_IFS
4067
4068 fi
4069 fi
4070 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4071 if test -n "$ac_ct_STRIP"; then
4072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4073 printf "%s\n" "$ac_ct_STRIP" >&6; }
4074 else
4075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4076 printf "%s\n" "no" >&6; }
4077 fi
4078
4079 if test "x$ac_ct_STRIP" = x; then
4080 STRIP=":"
4081 else
4082 case $cross_compiling:$ac_tool_warned in
4083 yes:)
4084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4085 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4086 ac_tool_warned=yes ;;
4087 esac
4088 STRIP=$ac_ct_STRIP
4089 fi
4090 else
4091 STRIP="$ac_cv_prog_STRIP"
4092 fi
4093
4094 fi
4095 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4096
4097
4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4099 printf %s "checking for a race-free mkdir -p... " >&6; }
4100 if test -z "$MKDIR_P"; then
4101 if test ${ac_cv_path_mkdir+y}
4102 then :
4103 printf %s "(cached) " >&6
4104 else $as_nop
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4107 do
4108 IFS=$as_save_IFS
4109 case $as_dir in #(((
4110 '') as_dir=./ ;;
4111 */) ;;
4112 *) as_dir=$as_dir/ ;;
4113 esac
4114 for ac_prog in mkdir gmkdir; do
4115 for ac_exec_ext in '' $ac_executable_extensions; do
4116 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4117 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4118 'mkdir ('*'coreutils) '* | \
4119 'BusyBox '* | \
4120 'mkdir (fileutils) '4.1*)
4121 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4122 break 3;;
4123 esac
4124 done
4125 done
4126 done
4127 IFS=$as_save_IFS
4128
4129 fi
4130
4131 test -d ./--version && rmdir ./--version
4132 if test ${ac_cv_path_mkdir+y}; then
4133 MKDIR_P="$ac_cv_path_mkdir -p"
4134 else
4135 # As a last resort, use the slow shell script. Don't cache a
4136 # value for MKDIR_P within a source directory, because that will
4137 # break other packages using the cache if that directory is
4138 # removed, or if the value is a relative name.
4139 MKDIR_P="$ac_install_sh -d"
4140 fi
4141 fi
4142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4143 printf "%s\n" "$MKDIR_P" >&6; }
4144
4145 for ac_prog in gawk mawk nawk awk
4146 do
4147 # Extract the first word of "$ac_prog", so it can be a program name with args.
4148 set dummy $ac_prog; ac_word=$2
4149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4150 printf %s "checking for $ac_word... " >&6; }
4151 if test ${ac_cv_prog_AWK+y}
4152 then :
4153 printf %s "(cached) " >&6
4154 else $as_nop
4155 if test -n "$AWK"; then
4156 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4157 else
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159 for as_dir in $PATH
4160 do
4161 IFS=$as_save_IFS
4162 case $as_dir in #(((
4163 '') as_dir=./ ;;
4164 */) ;;
4165 *) as_dir=$as_dir/ ;;
4166 esac
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4169 ac_cv_prog_AWK="$ac_prog"
4170 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4171 break 2
4172 fi
4173 done
4174 done
4175 IFS=$as_save_IFS
4176
4177 fi
4178 fi
4179 AWK=$ac_cv_prog_AWK
4180 if test -n "$AWK"; then
4181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4182 printf "%s\n" "$AWK" >&6; }
4183 else
4184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4185 printf "%s\n" "no" >&6; }
4186 fi
4187
4188
4189 test -n "$AWK" && break
4190 done
4191
4192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4193 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4194 set x ${MAKE-make}
4195 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4196 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4197 then :
4198 printf %s "(cached) " >&6
4199 else $as_nop
4200 cat >conftest.make <<\_ACEOF
4201 SHELL = /bin/sh
4202 all:
4203 @echo '@@@%%%=$(MAKE)=@@@%%%'
4204 _ACEOF
4205 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4206 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4207 *@@@%%%=?*=@@@%%%*)
4208 eval ac_cv_prog_make_${ac_make}_set=yes;;
4209 *)
4210 eval ac_cv_prog_make_${ac_make}_set=no;;
4211 esac
4212 rm -f conftest.make
4213 fi
4214 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4216 printf "%s\n" "yes" >&6; }
4217 SET_MAKE=
4218 else
4219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4220 printf "%s\n" "no" >&6; }
4221 SET_MAKE="MAKE=${MAKE-make}"
4222 fi
4223
4224 rm -rf .tst 2>/dev/null
4225 mkdir .tst 2>/dev/null
4226 if test -d .tst; then
4227 am__leading_dot=.
4228 else
4229 am__leading_dot=_
4230 fi
4231 rmdir .tst 2>/dev/null
4232
4233 DEPDIR="${am__leading_dot}deps"
4234
4235 ac_config_commands="$ac_config_commands depfiles"
4236
4237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4238 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4239 cat > confinc.mk << 'END'
4240 am__doit:
4241 @echo this is the am__doit target >confinc.out
4242 .PHONY: am__doit
4243 END
4244 am__include="#"
4245 am__quote=
4246 # BSD make does it like this.
4247 echo '.include "confinc.mk" # ignored' > confmf.BSD
4248 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4249 echo 'include confinc.mk # ignored' > confmf.GNU
4250 _am_result=no
4251 for s in GNU BSD; do
4252 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4253 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4254 ac_status=$?
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); }
4257 case $?:`cat confinc.out 2>/dev/null` in #(
4258 '0:this is the am__doit target') :
4259 case $s in #(
4260 BSD) :
4261 am__include='.include' am__quote='"' ;; #(
4262 *) :
4263 am__include='include' am__quote='' ;;
4264 esac ;; #(
4265 *) :
4266 ;;
4267 esac
4268 if test "$am__include" != "#"; then
4269 _am_result="yes ($s style)"
4270 break
4271 fi
4272 done
4273 rm -f confinc.* confmf.*
4274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4275 printf "%s\n" "${_am_result}" >&6; }
4276
4277 # Check whether --enable-dependency-tracking was given.
4278 if test ${enable_dependency_tracking+y}
4279 then :
4280 enableval=$enable_dependency_tracking;
4281 fi
4282
4283 if test "x$enable_dependency_tracking" != xno; then
4284 am_depcomp="$ac_aux_dir/depcomp"
4285 AMDEPBACKSLASH='\'
4286 am__nodep='_no'
4287 fi
4288 if test "x$enable_dependency_tracking" != xno; then
4289 AMDEP_TRUE=
4290 AMDEP_FALSE='#'
4291 else
4292 AMDEP_TRUE='#'
4293 AMDEP_FALSE=
4294 fi
4295
4296
4297 # Check whether --enable-silent-rules was given.
4298 if test ${enable_silent_rules+y}
4299 then :
4300 enableval=$enable_silent_rules;
4301 fi
4302
4303 case $enable_silent_rules in # (((
4304 yes) AM_DEFAULT_VERBOSITY=0;;
4305 no) AM_DEFAULT_VERBOSITY=1;;
4306 *) AM_DEFAULT_VERBOSITY=1;;
4307 esac
4308 am_make=${MAKE-make}
4309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4310 printf %s "checking whether $am_make supports nested variables... " >&6; }
4311 if test ${am_cv_make_support_nested_variables+y}
4312 then :
4313 printf %s "(cached) " >&6
4314 else $as_nop
4315 if printf "%s\n" 'TRUE=$(BAR$(V))
4316 BAR0=false
4317 BAR1=true
4318 V=1
4319 am__doit:
4320 @$(TRUE)
4321 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4322 am_cv_make_support_nested_variables=yes
4323 else
4324 am_cv_make_support_nested_variables=no
4325 fi
4326 fi
4327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4328 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4329 if test $am_cv_make_support_nested_variables = yes; then
4330 AM_V='$(V)'
4331 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4332 else
4333 AM_V=$AM_DEFAULT_VERBOSITY
4334 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4335 fi
4336 AM_BACKSLASH='\'
4337
4338 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4339 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4340 # is not polluted with repeated "-I."
4341 am__isrc=' -I$(srcdir)'
4342 # test to see if srcdir already configured
4343 if test -f $srcdir/config.status; then
4344 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4345 fi
4346 fi
4347
4348 # test whether we have cygpath
4349 if test -z "$CYGPATH_W"; then
4350 if (cygpath --version) >/dev/null 2>/dev/null; then
4351 CYGPATH_W='cygpath -w'
4352 else
4353 CYGPATH_W=echo
4354 fi
4355 fi
4356
4357
4358 # Define the identity of the package.
4359 PACKAGE='xkbprint'
4360 VERSION='1.0.6'
4361
4362
4363 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4364
4365
4366 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4367
4368 # Some tools Automake needs.
4369
4370 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4371
4372
4373 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4374
4375
4376 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4377
4378
4379 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4380
4381
4382 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4383
4384 # For better backward compatibility. To be removed once Automake 1.9.x
4385 # dies out for good. For more background, see:
4386 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4387 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4388 mkdir_p='$(MKDIR_P)'
4389
4390 # We need awk for the "check" target (and possibly the TAP driver). The
4391 # system "awk" is bad on some platforms.
4392 # Always define AMTAR for backward compatibility. Yes, it's still used
4393 # in the wild :-( We should find a proper way to deprecate it ...
4394 AMTAR='$${TAR-tar}'
4395
4396
4397 # We'll loop over all known methods to create a tar archive until one works.
4398 _am_tools='gnutar pax cpio none'
4399
4400 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4401
4402
4403
4404
4405
4406 depcc="$CC" am_compiler_list=
4407
4408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4409 printf %s "checking dependency style of $depcc... " >&6; }
4410 if test ${am_cv_CC_dependencies_compiler_type+y}
4411 then :
4412 printf %s "(cached) " >&6
4413 else $as_nop
4414 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4415 # We make a subdir and do the tests there. Otherwise we can end up
4416 # making bogus files that we don't know about and never remove. For
4417 # instance it was reported that on HP-UX the gcc test will end up
4418 # making a dummy file named 'D' -- because '-MD' means "put the output
4419 # in D".
4420 rm -rf conftest.dir
4421 mkdir conftest.dir
4422 # Copy depcomp to subdir because otherwise we won't find it if we're
4423 # using a relative directory.
4424 cp "$am_depcomp" conftest.dir
4425 cd conftest.dir
4426 # We will build objects and dependencies in a subdirectory because
4427 # it helps to detect inapplicable dependency modes. For instance
4428 # both Tru64's cc and ICC support -MD to output dependencies as a
4429 # side effect of compilation, but ICC will put the dependencies in
4430 # the current directory while Tru64 will put them in the object
4431 # directory.
4432 mkdir sub
4433
4434 am_cv_CC_dependencies_compiler_type=none
4435 if test "$am_compiler_list" = ""; then
4436 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4437 fi
4438 am__universal=false
4439 case " $depcc " in #(
4440 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4441 esac
4442
4443 for depmode in $am_compiler_list; do
4444 # Setup a source with many dependencies, because some compilers
4445 # like to wrap large dependency lists on column 80 (with \), and
4446 # we should not choose a depcomp mode which is confused by this.
4447 #
4448 # We need to recreate these files for each test, as the compiler may
4449 # overwrite some of them when testing with obscure command lines.
4450 # This happens at least with the AIX C compiler.
4451 : > sub/conftest.c
4452 for i in 1 2 3 4 5 6; do
4453 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4454 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4455 # Solaris 10 /bin/sh.
4456 echo '/* dummy */' > sub/conftst$i.h
4457 done
4458 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4459
4460 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4461 # mode. It turns out that the SunPro C++ compiler does not properly
4462 # handle '-M -o', and we need to detect this. Also, some Intel
4463 # versions had trouble with output in subdirs.
4464 am__obj=sub/conftest.${OBJEXT-o}
4465 am__minus_obj="-o $am__obj"
4466 case $depmode in
4467 gcc)
4468 # This depmode causes a compiler race in universal mode.
4469 test "$am__universal" = false || continue
4470 ;;
4471 nosideeffect)
4472 # After this tag, mechanisms are not by side-effect, so they'll
4473 # only be used when explicitly requested.
4474 if test "x$enable_dependency_tracking" = xyes; then
4475 continue
4476 else
4477 break
4478 fi
4479 ;;
4480 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4481 # This compiler won't grok '-c -o', but also, the minuso test has
4482 # not run yet. These depmodes are late enough in the game, and
4483 # so weak that their functioning should not be impacted.
4484 am__obj=conftest.${OBJEXT-o}
4485 am__minus_obj=
4486 ;;
4487 none) break ;;
4488 esac
4489 if depmode=$depmode \
4490 source=sub/conftest.c object=$am__obj \
4491 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4492 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4493 >/dev/null 2>conftest.err &&
4494 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4495 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4496 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4497 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4498 # icc doesn't choke on unknown options, it will just issue warnings
4499 # or remarks (even with -Werror). So we grep stderr for any message
4500 # that says an option was ignored or not supported.
4501 # When given -MP, icc 7.0 and 7.1 complain thusly:
4502 # icc: Command line warning: ignoring option '-M'; no argument required
4503 # The diagnosis changed in icc 8.0:
4504 # icc: Command line remark: option '-MP' not supported
4505 if (grep 'ignoring option' conftest.err ||
4506 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4507 am_cv_CC_dependencies_compiler_type=$depmode
4508 break
4509 fi
4510 fi
4511 done
4512
4513 cd ..
4514 rm -rf conftest.dir
4515 else
4516 am_cv_CC_dependencies_compiler_type=none
4517 fi
4518
4519 fi
4520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4521 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4522 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4523
4524 if
4525 test "x$enable_dependency_tracking" != xno \
4526 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4527 am__fastdepCC_TRUE=
4528 am__fastdepCC_FALSE='#'
4529 else
4530 am__fastdepCC_TRUE='#'
4531 am__fastdepCC_FALSE=
4532 fi
4533
4534
4535 # Variables for tags utilities; see am/tags.am
4536 if test -z "$CTAGS"; then
4537 CTAGS=ctags
4538 fi
4539
4540 if test -z "$ETAGS"; then
4541 ETAGS=etags
4542 fi
4543
4544 if test -z "$CSCOPE"; then
4545 CSCOPE=cscope
4546 fi
4547
4548
4549
4550 # POSIX will say in a future version that running "rm -f" with no argument
4551 # is OK; and we want to be able to make that assumption in our Makefile
4552 # recipes. So use an aggressive probe to check that the usage we want is
4553 # actually supported "in the wild" to an acceptable degree.
4554 # See automake bug#10828.
4555 # To make any issue more visible, cause the running configure to be aborted
4556 # by default if the 'rm' program in use doesn't match our expectations; the
4557 # user can still override this though.
4558 if rm -f && rm -fr && rm -rf; then : OK; else
4559 cat >&2 <<'END'
4560 Oops!
4561
4562 Your 'rm' program seems unable to run without file operands specified
4563 on the command line, even when the '-f' option is present. This is contrary
4564 to the behaviour of most rm programs out there, and not conforming with
4565 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4566
4567 Please tell bug-automake@gnu.org about your system, including the value
4568 of your $PATH and any error possibly output before this message. This
4569 can help us improve future automake versions.
4570
4571 END
4572 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4573 echo 'Configuration will proceed anyway, since you have set the' >&2
4574 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4575 echo >&2
4576 else
4577 cat >&2 <<'END'
4578 Aborting the configuration process, to ensure you take notice of the issue.
4579
4580 You can download and install GNU coreutils to get an 'rm' implementation
4581 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4582
4583 If you want to complete the configuration process using your problematic
4584 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4585 to "yes", and re-run configure.
4586
4587 END
4588 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4589 fi
4590 fi
4591
4592
4593 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4607 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4608 if test ${ac_cv_c_undeclared_builtin_options+y}
4609 then :
4610 printf %s "(cached) " >&6
4611 else $as_nop
4612 ac_save_CFLAGS=$CFLAGS
4613 ac_cv_c_undeclared_builtin_options='cannot detect'
4614 for ac_arg in '' -fno-builtin; do
4615 CFLAGS="$ac_save_CFLAGS $ac_arg"
4616 # This test program should *not* compile successfully.
4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h. */
4619
4620 int
4621 main (void)
4622 {
4623 (void) strchr;
4624 ;
4625 return 0;
4626 }
4627 _ACEOF
4628 if ac_fn_c_try_compile "$LINENO"
4629 then :
4630
4631 else $as_nop
4632 # This test program should compile successfully.
4633 # No library function is consistently available on
4634 # freestanding implementations, so test against a dummy
4635 # declaration. Include always-available headers on the
4636 # off chance that they somehow elicit warnings.
4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4639 #include <float.h>
4640 #include <limits.h>
4641 #include <stdarg.h>
4642 #include <stddef.h>
4643 extern void ac_decl (int, char *);
4644
4645 int
4646 main (void)
4647 {
4648 (void) ac_decl (0, (char *) 0);
4649 (void) ac_decl;
4650
4651 ;
4652 return 0;
4653 }
4654 _ACEOF
4655 if ac_fn_c_try_compile "$LINENO"
4656 then :
4657 if test x"$ac_arg" = x
4658 then :
4659 ac_cv_c_undeclared_builtin_options='none needed'
4660 else $as_nop
4661 ac_cv_c_undeclared_builtin_options=$ac_arg
4662 fi
4663 break
4664 fi
4665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4666 fi
4667 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4668 done
4669 CFLAGS=$ac_save_CFLAGS
4670
4671 fi
4672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4673 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4674 case $ac_cv_c_undeclared_builtin_options in #(
4675 'cannot detect') :
4676 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4677 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4678 as_fn_error $? "cannot make $CC report undeclared builtins
4679 See \`config.log' for more details" "$LINENO" 5; } ;; #(
4680 'none needed') :
4681 ac_c_undeclared_builtin_options='' ;; #(
4682 *) :
4683 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4684 esac
4685
4686
4687
4688
4689
4690 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4691 if test "x$ac_cv_have_decl___clang__" = xyes
4692 then :
4693 CLANGCC="yes"
4694 else $as_nop
4695 CLANGCC="no"
4696 fi
4697 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4698 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4699 then :
4700 INTELCC="yes"
4701 else $as_nop
4702 INTELCC="no"
4703 fi
4704 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4705 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4706 then :
4707 SUNCC="yes"
4708 else $as_nop
4709 SUNCC="no"
4710 fi
4711
4712
4713
4714
4715
4716
4717
4718
4719 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4720 if test -n "$ac_tool_prefix"; then
4721 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4722 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4724 printf %s "checking for $ac_word... " >&6; }
4725 if test ${ac_cv_path_PKG_CONFIG+y}
4726 then :
4727 printf %s "(cached) " >&6
4728 else $as_nop
4729 case $PKG_CONFIG in
4730 [\\/]* | ?:[\\/]*)
4731 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4732 ;;
4733 *)
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 for as_dir in $PATH
4736 do
4737 IFS=$as_save_IFS
4738 case $as_dir in #(((
4739 '') as_dir=./ ;;
4740 */) ;;
4741 *) as_dir=$as_dir/ ;;
4742 esac
4743 for ac_exec_ext in '' $ac_executable_extensions; do
4744 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4745 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4747 break 2
4748 fi
4749 done
4750 done
4751 IFS=$as_save_IFS
4752
4753 ;;
4754 esac
4755 fi
4756 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4757 if test -n "$PKG_CONFIG"; then
4758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4759 printf "%s\n" "$PKG_CONFIG" >&6; }
4760 else
4761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4762 printf "%s\n" "no" >&6; }
4763 fi
4764
4765
4766 fi
4767 if test -z "$ac_cv_path_PKG_CONFIG"; then
4768 ac_pt_PKG_CONFIG=$PKG_CONFIG
4769 # Extract the first word of "pkg-config", so it can be a program name with args.
4770 set dummy pkg-config; ac_word=$2
4771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4772 printf %s "checking for $ac_word... " >&6; }
4773 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4774 then :
4775 printf %s "(cached) " >&6
4776 else $as_nop
4777 case $ac_pt_PKG_CONFIG in
4778 [\\/]* | ?:[\\/]*)
4779 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4780 ;;
4781 *)
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 for as_dir in $PATH
4784 do
4785 IFS=$as_save_IFS
4786 case $as_dir in #(((
4787 '') as_dir=./ ;;
4788 */) ;;
4789 *) as_dir=$as_dir/ ;;
4790 esac
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4793 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4795 break 2
4796 fi
4797 done
4798 done
4799 IFS=$as_save_IFS
4800
4801 ;;
4802 esac
4803 fi
4804 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4805 if test -n "$ac_pt_PKG_CONFIG"; then
4806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4807 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4808 else
4809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810 printf "%s\n" "no" >&6; }
4811 fi
4812
4813 if test "x$ac_pt_PKG_CONFIG" = x; then
4814 PKG_CONFIG=""
4815 else
4816 case $cross_compiling:$ac_tool_warned in
4817 yes:)
4818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4819 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4820 ac_tool_warned=yes ;;
4821 esac
4822 PKG_CONFIG=$ac_pt_PKG_CONFIG
4823 fi
4824 else
4825 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4826 fi
4827
4828 fi
4829 if test -n "$PKG_CONFIG"; then
4830 _pkg_min_version=0.9.0
4831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4832 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4833 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4835 printf "%s\n" "yes" >&6; }
4836 else
4837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838 printf "%s\n" "no" >&6; }
4839 PKG_CONFIG=""
4840 fi
4841 fi
4842
4843
4844 # Make sure we can run config.sub.
4845 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4846 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4847
4848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4849 printf %s "checking build system type... " >&6; }
4850 if test ${ac_cv_build+y}
4851 then :
4852 printf %s "(cached) " >&6
4853 else $as_nop
4854 ac_build_alias=$build_alias
4855 test "x$ac_build_alias" = x &&
4856 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4857 test "x$ac_build_alias" = x &&
4858 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4859 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4860 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4861
4862 fi
4863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4864 printf "%s\n" "$ac_cv_build" >&6; }
4865 case $ac_cv_build in
4866 *-*-*) ;;
4867 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4868 esac
4869 build=$ac_cv_build
4870 ac_save_IFS=$IFS; IFS='-'
4871 set x $ac_cv_build
4872 shift
4873 build_cpu=$1
4874 build_vendor=$2
4875 shift; shift
4876 # Remember, the first character of IFS is used to create $*,
4877 # except with old shells:
4878 build_os=$*
4879 IFS=$ac_save_IFS
4880 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4881
4882
4883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4884 printf %s "checking host system type... " >&6; }
4885 if test ${ac_cv_host+y}
4886 then :
4887 printf %s "(cached) " >&6
4888 else $as_nop
4889 if test "x$host_alias" = x; then
4890 ac_cv_host=$ac_cv_build
4891 else
4892 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4893 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4894 fi
4895
4896 fi
4897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4898 printf "%s\n" "$ac_cv_host" >&6; }
4899 case $ac_cv_host in
4900 *-*-*) ;;
4901 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4902 esac
4903 host=$ac_cv_host
4904 ac_save_IFS=$IFS; IFS='-'
4905 set x $ac_cv_host
4906 shift
4907 host_cpu=$1
4908 host_vendor=$2
4909 shift; shift
4910 # Remember, the first character of IFS is used to create $*,
4911 # except with old shells:
4912 host_os=$*
4913 IFS=$ac_save_IFS
4914 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4915
4916
4917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4918 printf %s "checking for a sed that does not truncate output... " >&6; }
4919 if test ${ac_cv_path_SED+y}
4920 then :
4921 printf %s "(cached) " >&6
4922 else $as_nop
4923 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4924 for ac_i in 1 2 3 4 5 6 7; do
4925 ac_script="$ac_script$as_nl$ac_script"
4926 done
4927 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4928 { ac_script=; unset ac_script;}
4929 if test -z "$SED"; then
4930 ac_path_SED_found=false
4931 # Loop through the user's path and test for each of PROGNAME-LIST
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH
4934 do
4935 IFS=$as_save_IFS
4936 case $as_dir in #(((
4937 '') as_dir=./ ;;
4938 */) ;;
4939 *) as_dir=$as_dir/ ;;
4940 esac
4941 for ac_prog in sed gsed
4942 do
4943 for ac_exec_ext in '' $ac_executable_extensions; do
4944 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4945 as_fn_executable_p "$ac_path_SED" || continue
4946 # Check for GNU ac_path_SED and select it if it is found.
4947 # Check for GNU $ac_path_SED
4948 case `"$ac_path_SED" --version 2>&1` in
4949 *GNU*)
4950 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4951 *)
4952 ac_count=0
4953 printf %s 0123456789 >"conftest.in"
4954 while :
4955 do
4956 cat "conftest.in" "conftest.in" >"conftest.tmp"
4957 mv "conftest.tmp" "conftest.in"
4958 cp "conftest.in" "conftest.nl"
4959 printf "%s\n" '' >> "conftest.nl"
4960 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4961 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4962 as_fn_arith $ac_count + 1 && ac_count=$as_val
4963 if test $ac_count -gt ${ac_path_SED_max-0}; then
4964 # Best one so far, save it but keep looking for a better one
4965 ac_cv_path_SED="$ac_path_SED"
4966 ac_path_SED_max=$ac_count
4967 fi
4968 # 10*(2^10) chars as input seems more than enough
4969 test $ac_count -gt 10 && break
4970 done
4971 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4972 esac
4973
4974 $ac_path_SED_found && break 3
4975 done
4976 done
4977 done
4978 IFS=$as_save_IFS
4979 if test -z "$ac_cv_path_SED"; then
4980 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4981 fi
4982 else
4983 ac_cv_path_SED=$SED
4984 fi
4985
4986 fi
4987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4988 printf "%s\n" "$ac_cv_path_SED" >&6; }
4989 SED="$ac_cv_path_SED"
4990 rm -f conftest.sed
4991
4992
4993
4994
4995
4996
4997 # Check whether --enable-selective-werror was given.
4998 if test ${enable_selective_werror+y}
4999 then :
5000 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5001 else $as_nop
5002 SELECTIVE_WERROR=yes
5003 fi
5004
5005
5006
5007
5008
5009 # -v is too short to test reliably with XORG_TESTSET_CFLAG
5010 if test "x$SUNCC" = "xyes"; then
5011 BASE_CFLAGS="-v"
5012 else
5013 BASE_CFLAGS=""
5014 fi
5015
5016 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030 xorg_testset_save_CFLAGS="$CFLAGS"
5031
5032 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5033 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5035 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5036 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5037 then :
5038 printf %s "(cached) " >&6
5039 else $as_nop
5040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5041 /* end confdefs.h. */
5042 int i;
5043 _ACEOF
5044 if ac_fn_c_try_compile "$LINENO"
5045 then :
5046 xorg_cv_cc_flag_unknown_warning_option=yes
5047 else $as_nop
5048 xorg_cv_cc_flag_unknown_warning_option=no
5049 fi
5050 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5051 fi
5052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5053 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5054 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5055 CFLAGS="$xorg_testset_save_CFLAGS"
5056 fi
5057
5058 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5061 fi
5062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5064 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5065 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5066 then :
5067 printf %s "(cached) " >&6
5068 else $as_nop
5069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5070 /* end confdefs.h. */
5071 int i;
5072 _ACEOF
5073 if ac_fn_c_try_compile "$LINENO"
5074 then :
5075 xorg_cv_cc_flag_unused_command_line_argument=yes
5076 else $as_nop
5077 xorg_cv_cc_flag_unused_command_line_argument=no
5078 fi
5079 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5080 fi
5081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5082 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5083 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5084 CFLAGS="$xorg_testset_save_CFLAGS"
5085 fi
5086
5087 found="no"
5088
5089 if test $found = "no" ; then
5090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5092 fi
5093
5094 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5096 fi
5097
5098 CFLAGS="$CFLAGS -Wall"
5099
5100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5101 printf %s "checking if $CC supports -Wall... " >&6; }
5102 cacheid=xorg_cv_cc_flag__Wall
5103 if eval test \${$cacheid+y}
5104 then :
5105 printf %s "(cached) " >&6
5106 else $as_nop
5107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5108 /* end confdefs.h. */
5109 int i;
5110 int
5111 main (void)
5112 {
5113
5114 ;
5115 return 0;
5116 }
5117 _ACEOF
5118 if ac_fn_c_try_link "$LINENO"
5119 then :
5120 eval $cacheid=yes
5121 else $as_nop
5122 eval $cacheid=no
5123 fi
5124 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5125 conftest$ac_exeext conftest.$ac_ext
5126 fi
5127
5128
5129 CFLAGS="$xorg_testset_save_CFLAGS"
5130
5131 eval supported=\$$cacheid
5132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5133 printf "%s\n" "$supported" >&6; }
5134 if test "$supported" = "yes" ; then
5135 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5136 found="yes"
5137 fi
5138 fi
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154 xorg_testset_save_CFLAGS="$CFLAGS"
5155
5156 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5159 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5160 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5161 then :
5162 printf %s "(cached) " >&6
5163 else $as_nop
5164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5165 /* end confdefs.h. */
5166 int i;
5167 _ACEOF
5168 if ac_fn_c_try_compile "$LINENO"
5169 then :
5170 xorg_cv_cc_flag_unknown_warning_option=yes
5171 else $as_nop
5172 xorg_cv_cc_flag_unknown_warning_option=no
5173 fi
5174 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5175 fi
5176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5177 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5178 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5179 CFLAGS="$xorg_testset_save_CFLAGS"
5180 fi
5181
5182 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5185 fi
5186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5188 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5189 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5190 then :
5191 printf %s "(cached) " >&6
5192 else $as_nop
5193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5194 /* end confdefs.h. */
5195 int i;
5196 _ACEOF
5197 if ac_fn_c_try_compile "$LINENO"
5198 then :
5199 xorg_cv_cc_flag_unused_command_line_argument=yes
5200 else $as_nop
5201 xorg_cv_cc_flag_unused_command_line_argument=no
5202 fi
5203 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5204 fi
5205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5206 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5207 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5208 CFLAGS="$xorg_testset_save_CFLAGS"
5209 fi
5210
5211 found="no"
5212
5213 if test $found = "no" ; then
5214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5216 fi
5217
5218 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5220 fi
5221
5222 CFLAGS="$CFLAGS -Wpointer-arith"
5223
5224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5225 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5226 cacheid=xorg_cv_cc_flag__Wpointer_arith
5227 if eval test \${$cacheid+y}
5228 then :
5229 printf %s "(cached) " >&6
5230 else $as_nop
5231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232 /* end confdefs.h. */
5233 int i;
5234 int
5235 main (void)
5236 {
5237
5238 ;
5239 return 0;
5240 }
5241 _ACEOF
5242 if ac_fn_c_try_link "$LINENO"
5243 then :
5244 eval $cacheid=yes
5245 else $as_nop
5246 eval $cacheid=no
5247 fi
5248 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5249 conftest$ac_exeext conftest.$ac_ext
5250 fi
5251
5252
5253 CFLAGS="$xorg_testset_save_CFLAGS"
5254
5255 eval supported=\$$cacheid
5256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5257 printf "%s\n" "$supported" >&6; }
5258 if test "$supported" = "yes" ; then
5259 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5260 found="yes"
5261 fi
5262 fi
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278 xorg_testset_save_CFLAGS="$CFLAGS"
5279
5280 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5281 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5283 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5284 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5285 then :
5286 printf %s "(cached) " >&6
5287 else $as_nop
5288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h. */
5290 int i;
5291 _ACEOF
5292 if ac_fn_c_try_compile "$LINENO"
5293 then :
5294 xorg_cv_cc_flag_unknown_warning_option=yes
5295 else $as_nop
5296 xorg_cv_cc_flag_unknown_warning_option=no
5297 fi
5298 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5299 fi
5300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5301 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5302 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5303 CFLAGS="$xorg_testset_save_CFLAGS"
5304 fi
5305
5306 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5307 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5308 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5309 fi
5310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5312 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5313 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5314 then :
5315 printf %s "(cached) " >&6
5316 else $as_nop
5317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5318 /* end confdefs.h. */
5319 int i;
5320 _ACEOF
5321 if ac_fn_c_try_compile "$LINENO"
5322 then :
5323 xorg_cv_cc_flag_unused_command_line_argument=yes
5324 else $as_nop
5325 xorg_cv_cc_flag_unused_command_line_argument=no
5326 fi
5327 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5328 fi
5329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5330 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5331 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5332 CFLAGS="$xorg_testset_save_CFLAGS"
5333 fi
5334
5335 found="no"
5336
5337 if test $found = "no" ; then
5338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5340 fi
5341
5342 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5344 fi
5345
5346 CFLAGS="$CFLAGS -Wmissing-declarations"
5347
5348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5349 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5350 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5351 if eval test \${$cacheid+y}
5352 then :
5353 printf %s "(cached) " >&6
5354 else $as_nop
5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h. */
5357 int i;
5358 int
5359 main (void)
5360 {
5361
5362 ;
5363 return 0;
5364 }
5365 _ACEOF
5366 if ac_fn_c_try_link "$LINENO"
5367 then :
5368 eval $cacheid=yes
5369 else $as_nop
5370 eval $cacheid=no
5371 fi
5372 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5373 conftest$ac_exeext conftest.$ac_ext
5374 fi
5375
5376
5377 CFLAGS="$xorg_testset_save_CFLAGS"
5378
5379 eval supported=\$$cacheid
5380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5381 printf "%s\n" "$supported" >&6; }
5382 if test "$supported" = "yes" ; then
5383 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5384 found="yes"
5385 fi
5386 fi
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402 xorg_testset_save_CFLAGS="$CFLAGS"
5403
5404 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5407 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5408 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5409 then :
5410 printf %s "(cached) " >&6
5411 else $as_nop
5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413 /* end confdefs.h. */
5414 int i;
5415 _ACEOF
5416 if ac_fn_c_try_compile "$LINENO"
5417 then :
5418 xorg_cv_cc_flag_unknown_warning_option=yes
5419 else $as_nop
5420 xorg_cv_cc_flag_unknown_warning_option=no
5421 fi
5422 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5423 fi
5424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5425 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5426 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5427 CFLAGS="$xorg_testset_save_CFLAGS"
5428 fi
5429
5430 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5433 fi
5434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5436 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5437 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5438 then :
5439 printf %s "(cached) " >&6
5440 else $as_nop
5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442 /* end confdefs.h. */
5443 int i;
5444 _ACEOF
5445 if ac_fn_c_try_compile "$LINENO"
5446 then :
5447 xorg_cv_cc_flag_unused_command_line_argument=yes
5448 else $as_nop
5449 xorg_cv_cc_flag_unused_command_line_argument=no
5450 fi
5451 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5452 fi
5453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5454 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5455 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5456 CFLAGS="$xorg_testset_save_CFLAGS"
5457 fi
5458
5459 found="no"
5460
5461 if test $found = "no" ; then
5462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5464 fi
5465
5466 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5468 fi
5469
5470 CFLAGS="$CFLAGS -Wformat=2"
5471
5472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5473 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5474 cacheid=xorg_cv_cc_flag__Wformat_2
5475 if eval test \${$cacheid+y}
5476 then :
5477 printf %s "(cached) " >&6
5478 else $as_nop
5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h. */
5481 int i;
5482 int
5483 main (void)
5484 {
5485
5486 ;
5487 return 0;
5488 }
5489 _ACEOF
5490 if ac_fn_c_try_link "$LINENO"
5491 then :
5492 eval $cacheid=yes
5493 else $as_nop
5494 eval $cacheid=no
5495 fi
5496 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5497 conftest$ac_exeext conftest.$ac_ext
5498 fi
5499
5500
5501 CFLAGS="$xorg_testset_save_CFLAGS"
5502
5503 eval supported=\$$cacheid
5504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5505 printf "%s\n" "$supported" >&6; }
5506 if test "$supported" = "yes" ; then
5507 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5508 found="yes"
5509 fi
5510 fi
5511
5512 if test $found = "no" ; then
5513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5515 fi
5516
5517 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5519 fi
5520
5521 CFLAGS="$CFLAGS -Wformat"
5522
5523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5524 printf %s "checking if $CC supports -Wformat... " >&6; }
5525 cacheid=xorg_cv_cc_flag__Wformat
5526 if eval test \${$cacheid+y}
5527 then :
5528 printf %s "(cached) " >&6
5529 else $as_nop
5530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5531 /* end confdefs.h. */
5532 int i;
5533 int
5534 main (void)
5535 {
5536
5537 ;
5538 return 0;
5539 }
5540 _ACEOF
5541 if ac_fn_c_try_link "$LINENO"
5542 then :
5543 eval $cacheid=yes
5544 else $as_nop
5545 eval $cacheid=no
5546 fi
5547 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5548 conftest$ac_exeext conftest.$ac_ext
5549 fi
5550
5551
5552 CFLAGS="$xorg_testset_save_CFLAGS"
5553
5554 eval supported=\$$cacheid
5555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5556 printf "%s\n" "$supported" >&6; }
5557 if test "$supported" = "yes" ; then
5558 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5559 found="yes"
5560 fi
5561 fi
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579 xorg_testset_save_CFLAGS="$CFLAGS"
5580
5581 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5584 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5585 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5586 then :
5587 printf %s "(cached) " >&6
5588 else $as_nop
5589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5590 /* end confdefs.h. */
5591 int i;
5592 _ACEOF
5593 if ac_fn_c_try_compile "$LINENO"
5594 then :
5595 xorg_cv_cc_flag_unknown_warning_option=yes
5596 else $as_nop
5597 xorg_cv_cc_flag_unknown_warning_option=no
5598 fi
5599 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5600 fi
5601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5602 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5603 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5604 CFLAGS="$xorg_testset_save_CFLAGS"
5605 fi
5606
5607 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5610 fi
5611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5613 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5614 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5615 then :
5616 printf %s "(cached) " >&6
5617 else $as_nop
5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619 /* end confdefs.h. */
5620 int i;
5621 _ACEOF
5622 if ac_fn_c_try_compile "$LINENO"
5623 then :
5624 xorg_cv_cc_flag_unused_command_line_argument=yes
5625 else $as_nop
5626 xorg_cv_cc_flag_unused_command_line_argument=no
5627 fi
5628 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5629 fi
5630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5631 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5632 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5633 CFLAGS="$xorg_testset_save_CFLAGS"
5634 fi
5635
5636 found="no"
5637
5638 if test $found = "no" ; then
5639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5641 fi
5642
5643 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5645 fi
5646
5647 CFLAGS="$CFLAGS -Wstrict-prototypes"
5648
5649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5650 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5651 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5652 if eval test \${$cacheid+y}
5653 then :
5654 printf %s "(cached) " >&6
5655 else $as_nop
5656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657 /* end confdefs.h. */
5658 int i;
5659 int
5660 main (void)
5661 {
5662
5663 ;
5664 return 0;
5665 }
5666 _ACEOF
5667 if ac_fn_c_try_link "$LINENO"
5668 then :
5669 eval $cacheid=yes
5670 else $as_nop
5671 eval $cacheid=no
5672 fi
5673 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5674 conftest$ac_exeext conftest.$ac_ext
5675 fi
5676
5677
5678 CFLAGS="$xorg_testset_save_CFLAGS"
5679
5680 eval supported=\$$cacheid
5681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5682 printf "%s\n" "$supported" >&6; }
5683 if test "$supported" = "yes" ; then
5684 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5685 found="yes"
5686 fi
5687 fi
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703 xorg_testset_save_CFLAGS="$CFLAGS"
5704
5705 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5708 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5709 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5710 then :
5711 printf %s "(cached) " >&6
5712 else $as_nop
5713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h. */
5715 int i;
5716 _ACEOF
5717 if ac_fn_c_try_compile "$LINENO"
5718 then :
5719 xorg_cv_cc_flag_unknown_warning_option=yes
5720 else $as_nop
5721 xorg_cv_cc_flag_unknown_warning_option=no
5722 fi
5723 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5724 fi
5725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5726 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5727 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5728 CFLAGS="$xorg_testset_save_CFLAGS"
5729 fi
5730
5731 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5733 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5734 fi
5735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5737 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5738 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5739 then :
5740 printf %s "(cached) " >&6
5741 else $as_nop
5742 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_unused_command_line_argument=yes
5749 else $as_nop
5750 xorg_cv_cc_flag_unused_command_line_argument=no
5751 fi
5752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5753 fi
5754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5755 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5756 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5757 CFLAGS="$xorg_testset_save_CFLAGS"
5758 fi
5759
5760 found="no"
5761
5762 if test $found = "no" ; then
5763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5764 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5765 fi
5766
5767 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5769 fi
5770
5771 CFLAGS="$CFLAGS -Wmissing-prototypes"
5772
5773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5774 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5775 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5776 if eval test \${$cacheid+y}
5777 then :
5778 printf %s "(cached) " >&6
5779 else $as_nop
5780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5781 /* end confdefs.h. */
5782 int i;
5783 int
5784 main (void)
5785 {
5786
5787 ;
5788 return 0;
5789 }
5790 _ACEOF
5791 if ac_fn_c_try_link "$LINENO"
5792 then :
5793 eval $cacheid=yes
5794 else $as_nop
5795 eval $cacheid=no
5796 fi
5797 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5798 conftest$ac_exeext conftest.$ac_ext
5799 fi
5800
5801
5802 CFLAGS="$xorg_testset_save_CFLAGS"
5803
5804 eval supported=\$$cacheid
5805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5806 printf "%s\n" "$supported" >&6; }
5807 if test "$supported" = "yes" ; then
5808 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5809 found="yes"
5810 fi
5811 fi
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827 xorg_testset_save_CFLAGS="$CFLAGS"
5828
5829 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5832 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5833 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5834 then :
5835 printf %s "(cached) " >&6
5836 else $as_nop
5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838 /* end confdefs.h. */
5839 int i;
5840 _ACEOF
5841 if ac_fn_c_try_compile "$LINENO"
5842 then :
5843 xorg_cv_cc_flag_unknown_warning_option=yes
5844 else $as_nop
5845 xorg_cv_cc_flag_unknown_warning_option=no
5846 fi
5847 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5848 fi
5849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5850 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5851 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5852 CFLAGS="$xorg_testset_save_CFLAGS"
5853 fi
5854
5855 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5858 fi
5859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5861 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5862 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5863 then :
5864 printf %s "(cached) " >&6
5865 else $as_nop
5866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5867 /* end confdefs.h. */
5868 int i;
5869 _ACEOF
5870 if ac_fn_c_try_compile "$LINENO"
5871 then :
5872 xorg_cv_cc_flag_unused_command_line_argument=yes
5873 else $as_nop
5874 xorg_cv_cc_flag_unused_command_line_argument=no
5875 fi
5876 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5877 fi
5878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5879 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5880 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5881 CFLAGS="$xorg_testset_save_CFLAGS"
5882 fi
5883
5884 found="no"
5885
5886 if test $found = "no" ; then
5887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5889 fi
5890
5891 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5893 fi
5894
5895 CFLAGS="$CFLAGS -Wnested-externs"
5896
5897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5898 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5899 cacheid=xorg_cv_cc_flag__Wnested_externs
5900 if eval test \${$cacheid+y}
5901 then :
5902 printf %s "(cached) " >&6
5903 else $as_nop
5904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5905 /* end confdefs.h. */
5906 int i;
5907 int
5908 main (void)
5909 {
5910
5911 ;
5912 return 0;
5913 }
5914 _ACEOF
5915 if ac_fn_c_try_link "$LINENO"
5916 then :
5917 eval $cacheid=yes
5918 else $as_nop
5919 eval $cacheid=no
5920 fi
5921 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5922 conftest$ac_exeext conftest.$ac_ext
5923 fi
5924
5925
5926 CFLAGS="$xorg_testset_save_CFLAGS"
5927
5928 eval supported=\$$cacheid
5929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5930 printf "%s\n" "$supported" >&6; }
5931 if test "$supported" = "yes" ; then
5932 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5933 found="yes"
5934 fi
5935 fi
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951 xorg_testset_save_CFLAGS="$CFLAGS"
5952
5953 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5956 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5957 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5958 then :
5959 printf %s "(cached) " >&6
5960 else $as_nop
5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h. */
5963 int i;
5964 _ACEOF
5965 if ac_fn_c_try_compile "$LINENO"
5966 then :
5967 xorg_cv_cc_flag_unknown_warning_option=yes
5968 else $as_nop
5969 xorg_cv_cc_flag_unknown_warning_option=no
5970 fi
5971 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5972 fi
5973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5974 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5975 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5976 CFLAGS="$xorg_testset_save_CFLAGS"
5977 fi
5978
5979 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5982 fi
5983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5985 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5986 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5987 then :
5988 printf %s "(cached) " >&6
5989 else $as_nop
5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h. */
5992 int i;
5993 _ACEOF
5994 if ac_fn_c_try_compile "$LINENO"
5995 then :
5996 xorg_cv_cc_flag_unused_command_line_argument=yes
5997 else $as_nop
5998 xorg_cv_cc_flag_unused_command_line_argument=no
5999 fi
6000 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6001 fi
6002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6003 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6004 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6005 CFLAGS="$xorg_testset_save_CFLAGS"
6006 fi
6007
6008 found="no"
6009
6010 if test $found = "no" ; then
6011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6013 fi
6014
6015 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6017 fi
6018
6019 CFLAGS="$CFLAGS -Wbad-function-cast"
6020
6021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6022 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6023 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6024 if eval test \${$cacheid+y}
6025 then :
6026 printf %s "(cached) " >&6
6027 else $as_nop
6028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029 /* end confdefs.h. */
6030 int i;
6031 int
6032 main (void)
6033 {
6034
6035 ;
6036 return 0;
6037 }
6038 _ACEOF
6039 if ac_fn_c_try_link "$LINENO"
6040 then :
6041 eval $cacheid=yes
6042 else $as_nop
6043 eval $cacheid=no
6044 fi
6045 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6046 conftest$ac_exeext conftest.$ac_ext
6047 fi
6048
6049
6050 CFLAGS="$xorg_testset_save_CFLAGS"
6051
6052 eval supported=\$$cacheid
6053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6054 printf "%s\n" "$supported" >&6; }
6055 if test "$supported" = "yes" ; then
6056 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6057 found="yes"
6058 fi
6059 fi
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075 xorg_testset_save_CFLAGS="$CFLAGS"
6076
6077 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6080 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6081 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6082 then :
6083 printf %s "(cached) " >&6
6084 else $as_nop
6085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6086 /* end confdefs.h. */
6087 int i;
6088 _ACEOF
6089 if ac_fn_c_try_compile "$LINENO"
6090 then :
6091 xorg_cv_cc_flag_unknown_warning_option=yes
6092 else $as_nop
6093 xorg_cv_cc_flag_unknown_warning_option=no
6094 fi
6095 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6096 fi
6097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6098 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6099 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6100 CFLAGS="$xorg_testset_save_CFLAGS"
6101 fi
6102
6103 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6106 fi
6107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6109 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6110 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6111 then :
6112 printf %s "(cached) " >&6
6113 else $as_nop
6114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6115 /* end confdefs.h. */
6116 int i;
6117 _ACEOF
6118 if ac_fn_c_try_compile "$LINENO"
6119 then :
6120 xorg_cv_cc_flag_unused_command_line_argument=yes
6121 else $as_nop
6122 xorg_cv_cc_flag_unused_command_line_argument=no
6123 fi
6124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6125 fi
6126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6127 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6129 CFLAGS="$xorg_testset_save_CFLAGS"
6130 fi
6131
6132 found="no"
6133
6134 if test $found = "no" ; then
6135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6137 fi
6138
6139 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6141 fi
6142
6143 CFLAGS="$CFLAGS -Wold-style-definition"
6144
6145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6146 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6147 cacheid=xorg_cv_cc_flag__Wold_style_definition
6148 if eval test \${$cacheid+y}
6149 then :
6150 printf %s "(cached) " >&6
6151 else $as_nop
6152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6153 /* end confdefs.h. */
6154 int i;
6155 int
6156 main (void)
6157 {
6158
6159 ;
6160 return 0;
6161 }
6162 _ACEOF
6163 if ac_fn_c_try_link "$LINENO"
6164 then :
6165 eval $cacheid=yes
6166 else $as_nop
6167 eval $cacheid=no
6168 fi
6169 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6170 conftest$ac_exeext conftest.$ac_ext
6171 fi
6172
6173
6174 CFLAGS="$xorg_testset_save_CFLAGS"
6175
6176 eval supported=\$$cacheid
6177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6178 printf "%s\n" "$supported" >&6; }
6179 if test "$supported" = "yes" ; then
6180 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6181 found="yes"
6182 fi
6183 fi
6184
6185 if test $found = "no" ; then
6186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6188 fi
6189
6190 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6192 fi
6193
6194 CFLAGS="$CFLAGS -fd"
6195
6196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6197 printf %s "checking if $CC supports -fd... " >&6; }
6198 cacheid=xorg_cv_cc_flag__fd
6199 if eval test \${$cacheid+y}
6200 then :
6201 printf %s "(cached) " >&6
6202 else $as_nop
6203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6204 /* end confdefs.h. */
6205 int i;
6206 int
6207 main (void)
6208 {
6209
6210 ;
6211 return 0;
6212 }
6213 _ACEOF
6214 if ac_fn_c_try_link "$LINENO"
6215 then :
6216 eval $cacheid=yes
6217 else $as_nop
6218 eval $cacheid=no
6219 fi
6220 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6221 conftest$ac_exeext conftest.$ac_ext
6222 fi
6223
6224
6225 CFLAGS="$xorg_testset_save_CFLAGS"
6226
6227 eval supported=\$$cacheid
6228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6229 printf "%s\n" "$supported" >&6; }
6230 if test "$supported" = "yes" ; then
6231 BASE_CFLAGS="$BASE_CFLAGS -fd"
6232 found="yes"
6233 fi
6234 fi
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250 xorg_testset_save_CFLAGS="$CFLAGS"
6251
6252 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6255 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6256 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6257 then :
6258 printf %s "(cached) " >&6
6259 else $as_nop
6260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261 /* end confdefs.h. */
6262 int i;
6263 _ACEOF
6264 if ac_fn_c_try_compile "$LINENO"
6265 then :
6266 xorg_cv_cc_flag_unknown_warning_option=yes
6267 else $as_nop
6268 xorg_cv_cc_flag_unknown_warning_option=no
6269 fi
6270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6271 fi
6272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6273 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6274 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6275 CFLAGS="$xorg_testset_save_CFLAGS"
6276 fi
6277
6278 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6280 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6281 fi
6282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6284 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6285 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6286 then :
6287 printf %s "(cached) " >&6
6288 else $as_nop
6289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6290 /* end confdefs.h. */
6291 int i;
6292 _ACEOF
6293 if ac_fn_c_try_compile "$LINENO"
6294 then :
6295 xorg_cv_cc_flag_unused_command_line_argument=yes
6296 else $as_nop
6297 xorg_cv_cc_flag_unused_command_line_argument=no
6298 fi
6299 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6300 fi
6301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6302 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6303 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6304 CFLAGS="$xorg_testset_save_CFLAGS"
6305 fi
6306
6307 found="no"
6308
6309 if test $found = "no" ; then
6310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6312 fi
6313
6314 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6316 fi
6317
6318 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6319
6320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6321 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6322 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6323 if eval test \${$cacheid+y}
6324 then :
6325 printf %s "(cached) " >&6
6326 else $as_nop
6327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328 /* end confdefs.h. */
6329 int i;
6330 int
6331 main (void)
6332 {
6333
6334 ;
6335 return 0;
6336 }
6337 _ACEOF
6338 if ac_fn_c_try_link "$LINENO"
6339 then :
6340 eval $cacheid=yes
6341 else $as_nop
6342 eval $cacheid=no
6343 fi
6344 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6345 conftest$ac_exeext conftest.$ac_ext
6346 fi
6347
6348
6349 CFLAGS="$xorg_testset_save_CFLAGS"
6350
6351 eval supported=\$$cacheid
6352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6353 printf "%s\n" "$supported" >&6; }
6354 if test "$supported" = "yes" ; then
6355 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6356 found="yes"
6357 fi
6358 fi
6359
6360
6361
6362
6363
6364 # This chunk adds additional warnings that could catch undesired effects.
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378 xorg_testset_save_CFLAGS="$CFLAGS"
6379
6380 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6383 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6384 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6385 then :
6386 printf %s "(cached) " >&6
6387 else $as_nop
6388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6389 /* end confdefs.h. */
6390 int i;
6391 _ACEOF
6392 if ac_fn_c_try_compile "$LINENO"
6393 then :
6394 xorg_cv_cc_flag_unknown_warning_option=yes
6395 else $as_nop
6396 xorg_cv_cc_flag_unknown_warning_option=no
6397 fi
6398 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6399 fi
6400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6401 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6402 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6403 CFLAGS="$xorg_testset_save_CFLAGS"
6404 fi
6405
6406 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6408 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6409 fi
6410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6412 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6413 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6414 then :
6415 printf %s "(cached) " >&6
6416 else $as_nop
6417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6418 /* end confdefs.h. */
6419 int i;
6420 _ACEOF
6421 if ac_fn_c_try_compile "$LINENO"
6422 then :
6423 xorg_cv_cc_flag_unused_command_line_argument=yes
6424 else $as_nop
6425 xorg_cv_cc_flag_unused_command_line_argument=no
6426 fi
6427 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6428 fi
6429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6430 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6431 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6432 CFLAGS="$xorg_testset_save_CFLAGS"
6433 fi
6434
6435 found="no"
6436
6437 if test $found = "no" ; then
6438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6440 fi
6441
6442 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6444 fi
6445
6446 CFLAGS="$CFLAGS -Wunused"
6447
6448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6449 printf %s "checking if $CC supports -Wunused... " >&6; }
6450 cacheid=xorg_cv_cc_flag__Wunused
6451 if eval test \${$cacheid+y}
6452 then :
6453 printf %s "(cached) " >&6
6454 else $as_nop
6455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6456 /* end confdefs.h. */
6457 int i;
6458 int
6459 main (void)
6460 {
6461
6462 ;
6463 return 0;
6464 }
6465 _ACEOF
6466 if ac_fn_c_try_link "$LINENO"
6467 then :
6468 eval $cacheid=yes
6469 else $as_nop
6470 eval $cacheid=no
6471 fi
6472 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6473 conftest$ac_exeext conftest.$ac_ext
6474 fi
6475
6476
6477 CFLAGS="$xorg_testset_save_CFLAGS"
6478
6479 eval supported=\$$cacheid
6480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6481 printf "%s\n" "$supported" >&6; }
6482 if test "$supported" = "yes" ; then
6483 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6484 found="yes"
6485 fi
6486 fi
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502 xorg_testset_save_CFLAGS="$CFLAGS"
6503
6504 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6507 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6508 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6509 then :
6510 printf %s "(cached) " >&6
6511 else $as_nop
6512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6513 /* end confdefs.h. */
6514 int i;
6515 _ACEOF
6516 if ac_fn_c_try_compile "$LINENO"
6517 then :
6518 xorg_cv_cc_flag_unknown_warning_option=yes
6519 else $as_nop
6520 xorg_cv_cc_flag_unknown_warning_option=no
6521 fi
6522 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6523 fi
6524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6525 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6526 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6527 CFLAGS="$xorg_testset_save_CFLAGS"
6528 fi
6529
6530 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6533 fi
6534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6536 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6537 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6538 then :
6539 printf %s "(cached) " >&6
6540 else $as_nop
6541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6542 /* end confdefs.h. */
6543 int i;
6544 _ACEOF
6545 if ac_fn_c_try_compile "$LINENO"
6546 then :
6547 xorg_cv_cc_flag_unused_command_line_argument=yes
6548 else $as_nop
6549 xorg_cv_cc_flag_unused_command_line_argument=no
6550 fi
6551 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6552 fi
6553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6554 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6555 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6556 CFLAGS="$xorg_testset_save_CFLAGS"
6557 fi
6558
6559 found="no"
6560
6561 if test $found = "no" ; then
6562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6564 fi
6565
6566 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6568 fi
6569
6570 CFLAGS="$CFLAGS -Wuninitialized"
6571
6572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6573 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6574 cacheid=xorg_cv_cc_flag__Wuninitialized
6575 if eval test \${$cacheid+y}
6576 then :
6577 printf %s "(cached) " >&6
6578 else $as_nop
6579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580 /* end confdefs.h. */
6581 int i;
6582 int
6583 main (void)
6584 {
6585
6586 ;
6587 return 0;
6588 }
6589 _ACEOF
6590 if ac_fn_c_try_link "$LINENO"
6591 then :
6592 eval $cacheid=yes
6593 else $as_nop
6594 eval $cacheid=no
6595 fi
6596 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6597 conftest$ac_exeext conftest.$ac_ext
6598 fi
6599
6600
6601 CFLAGS="$xorg_testset_save_CFLAGS"
6602
6603 eval supported=\$$cacheid
6604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6605 printf "%s\n" "$supported" >&6; }
6606 if test "$supported" = "yes" ; then
6607 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6608 found="yes"
6609 fi
6610 fi
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626 xorg_testset_save_CFLAGS="$CFLAGS"
6627
6628 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6631 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6632 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6633 then :
6634 printf %s "(cached) " >&6
6635 else $as_nop
6636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6637 /* end confdefs.h. */
6638 int i;
6639 _ACEOF
6640 if ac_fn_c_try_compile "$LINENO"
6641 then :
6642 xorg_cv_cc_flag_unknown_warning_option=yes
6643 else $as_nop
6644 xorg_cv_cc_flag_unknown_warning_option=no
6645 fi
6646 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6647 fi
6648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6649 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6650 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6651 CFLAGS="$xorg_testset_save_CFLAGS"
6652 fi
6653
6654 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6656 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6657 fi
6658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6660 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6661 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6662 then :
6663 printf %s "(cached) " >&6
6664 else $as_nop
6665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666 /* end confdefs.h. */
6667 int i;
6668 _ACEOF
6669 if ac_fn_c_try_compile "$LINENO"
6670 then :
6671 xorg_cv_cc_flag_unused_command_line_argument=yes
6672 else $as_nop
6673 xorg_cv_cc_flag_unused_command_line_argument=no
6674 fi
6675 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6676 fi
6677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6678 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6679 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6680 CFLAGS="$xorg_testset_save_CFLAGS"
6681 fi
6682
6683 found="no"
6684
6685 if test $found = "no" ; then
6686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6688 fi
6689
6690 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6692 fi
6693
6694 CFLAGS="$CFLAGS -Wshadow"
6695
6696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6697 printf %s "checking if $CC supports -Wshadow... " >&6; }
6698 cacheid=xorg_cv_cc_flag__Wshadow
6699 if eval test \${$cacheid+y}
6700 then :
6701 printf %s "(cached) " >&6
6702 else $as_nop
6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h. */
6705 int i;
6706 int
6707 main (void)
6708 {
6709
6710 ;
6711 return 0;
6712 }
6713 _ACEOF
6714 if ac_fn_c_try_link "$LINENO"
6715 then :
6716 eval $cacheid=yes
6717 else $as_nop
6718 eval $cacheid=no
6719 fi
6720 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6721 conftest$ac_exeext conftest.$ac_ext
6722 fi
6723
6724
6725 CFLAGS="$xorg_testset_save_CFLAGS"
6726
6727 eval supported=\$$cacheid
6728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6729 printf "%s\n" "$supported" >&6; }
6730 if test "$supported" = "yes" ; then
6731 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6732 found="yes"
6733 fi
6734 fi
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750 xorg_testset_save_CFLAGS="$CFLAGS"
6751
6752 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6755 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6756 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6757 then :
6758 printf %s "(cached) " >&6
6759 else $as_nop
6760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761 /* end confdefs.h. */
6762 int i;
6763 _ACEOF
6764 if ac_fn_c_try_compile "$LINENO"
6765 then :
6766 xorg_cv_cc_flag_unknown_warning_option=yes
6767 else $as_nop
6768 xorg_cv_cc_flag_unknown_warning_option=no
6769 fi
6770 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6771 fi
6772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6773 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6774 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6775 CFLAGS="$xorg_testset_save_CFLAGS"
6776 fi
6777
6778 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6781 fi
6782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6784 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6785 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6786 then :
6787 printf %s "(cached) " >&6
6788 else $as_nop
6789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790 /* end confdefs.h. */
6791 int i;
6792 _ACEOF
6793 if ac_fn_c_try_compile "$LINENO"
6794 then :
6795 xorg_cv_cc_flag_unused_command_line_argument=yes
6796 else $as_nop
6797 xorg_cv_cc_flag_unused_command_line_argument=no
6798 fi
6799 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6800 fi
6801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6802 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6803 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6804 CFLAGS="$xorg_testset_save_CFLAGS"
6805 fi
6806
6807 found="no"
6808
6809 if test $found = "no" ; then
6810 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6811 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6812 fi
6813
6814 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6816 fi
6817
6818 CFLAGS="$CFLAGS -Wmissing-noreturn"
6819
6820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6821 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6822 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6823 if eval test \${$cacheid+y}
6824 then :
6825 printf %s "(cached) " >&6
6826 else $as_nop
6827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6828 /* end confdefs.h. */
6829 int i;
6830 int
6831 main (void)
6832 {
6833
6834 ;
6835 return 0;
6836 }
6837 _ACEOF
6838 if ac_fn_c_try_link "$LINENO"
6839 then :
6840 eval $cacheid=yes
6841 else $as_nop
6842 eval $cacheid=no
6843 fi
6844 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6845 conftest$ac_exeext conftest.$ac_ext
6846 fi
6847
6848
6849 CFLAGS="$xorg_testset_save_CFLAGS"
6850
6851 eval supported=\$$cacheid
6852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6853 printf "%s\n" "$supported" >&6; }
6854 if test "$supported" = "yes" ; then
6855 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6856 found="yes"
6857 fi
6858 fi
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874 xorg_testset_save_CFLAGS="$CFLAGS"
6875
6876 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6879 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6880 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6881 then :
6882 printf %s "(cached) " >&6
6883 else $as_nop
6884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6885 /* end confdefs.h. */
6886 int i;
6887 _ACEOF
6888 if ac_fn_c_try_compile "$LINENO"
6889 then :
6890 xorg_cv_cc_flag_unknown_warning_option=yes
6891 else $as_nop
6892 xorg_cv_cc_flag_unknown_warning_option=no
6893 fi
6894 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6895 fi
6896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6897 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6898 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6899 CFLAGS="$xorg_testset_save_CFLAGS"
6900 fi
6901
6902 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6905 fi
6906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6908 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6909 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6910 then :
6911 printf %s "(cached) " >&6
6912 else $as_nop
6913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914 /* end confdefs.h. */
6915 int i;
6916 _ACEOF
6917 if ac_fn_c_try_compile "$LINENO"
6918 then :
6919 xorg_cv_cc_flag_unused_command_line_argument=yes
6920 else $as_nop
6921 xorg_cv_cc_flag_unused_command_line_argument=no
6922 fi
6923 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6924 fi
6925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6926 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6927 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6928 CFLAGS="$xorg_testset_save_CFLAGS"
6929 fi
6930
6931 found="no"
6932
6933 if test $found = "no" ; then
6934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6935 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6936 fi
6937
6938 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6940 fi
6941
6942 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6943
6944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6945 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6946 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6947 if eval test \${$cacheid+y}
6948 then :
6949 printf %s "(cached) " >&6
6950 else $as_nop
6951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6952 /* end confdefs.h. */
6953 int i;
6954 int
6955 main (void)
6956 {
6957
6958 ;
6959 return 0;
6960 }
6961 _ACEOF
6962 if ac_fn_c_try_link "$LINENO"
6963 then :
6964 eval $cacheid=yes
6965 else $as_nop
6966 eval $cacheid=no
6967 fi
6968 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6969 conftest$ac_exeext conftest.$ac_ext
6970 fi
6971
6972
6973 CFLAGS="$xorg_testset_save_CFLAGS"
6974
6975 eval supported=\$$cacheid
6976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6977 printf "%s\n" "$supported" >&6; }
6978 if test "$supported" = "yes" ; then
6979 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6980 found="yes"
6981 fi
6982 fi
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998 xorg_testset_save_CFLAGS="$CFLAGS"
6999
7000 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7003 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7004 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7005 then :
7006 printf %s "(cached) " >&6
7007 else $as_nop
7008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7009 /* end confdefs.h. */
7010 int i;
7011 _ACEOF
7012 if ac_fn_c_try_compile "$LINENO"
7013 then :
7014 xorg_cv_cc_flag_unknown_warning_option=yes
7015 else $as_nop
7016 xorg_cv_cc_flag_unknown_warning_option=no
7017 fi
7018 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7019 fi
7020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7021 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7022 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7023 CFLAGS="$xorg_testset_save_CFLAGS"
7024 fi
7025
7026 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7029 fi
7030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7032 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7033 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7034 then :
7035 printf %s "(cached) " >&6
7036 else $as_nop
7037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7038 /* end confdefs.h. */
7039 int i;
7040 _ACEOF
7041 if ac_fn_c_try_compile "$LINENO"
7042 then :
7043 xorg_cv_cc_flag_unused_command_line_argument=yes
7044 else $as_nop
7045 xorg_cv_cc_flag_unused_command_line_argument=no
7046 fi
7047 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7048 fi
7049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7050 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7051 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7052 CFLAGS="$xorg_testset_save_CFLAGS"
7053 fi
7054
7055 found="no"
7056
7057 if test $found = "no" ; then
7058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7060 fi
7061
7062 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7064 fi
7065
7066 CFLAGS="$CFLAGS -Wredundant-decls"
7067
7068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7069 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7070 cacheid=xorg_cv_cc_flag__Wredundant_decls
7071 if eval test \${$cacheid+y}
7072 then :
7073 printf %s "(cached) " >&6
7074 else $as_nop
7075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7076 /* end confdefs.h. */
7077 int i;
7078 int
7079 main (void)
7080 {
7081
7082 ;
7083 return 0;
7084 }
7085 _ACEOF
7086 if ac_fn_c_try_link "$LINENO"
7087 then :
7088 eval $cacheid=yes
7089 else $as_nop
7090 eval $cacheid=no
7091 fi
7092 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7093 conftest$ac_exeext conftest.$ac_ext
7094 fi
7095
7096
7097 CFLAGS="$xorg_testset_save_CFLAGS"
7098
7099 eval supported=\$$cacheid
7100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7101 printf "%s\n" "$supported" >&6; }
7102 if test "$supported" = "yes" ; then
7103 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7104 found="yes"
7105 fi
7106 fi
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122 xorg_testset_save_CFLAGS="$CFLAGS"
7123
7124 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7125 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7127 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7128 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7129 then :
7130 printf %s "(cached) " >&6
7131 else $as_nop
7132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133 /* end confdefs.h. */
7134 int i;
7135 _ACEOF
7136 if ac_fn_c_try_compile "$LINENO"
7137 then :
7138 xorg_cv_cc_flag_unknown_warning_option=yes
7139 else $as_nop
7140 xorg_cv_cc_flag_unknown_warning_option=no
7141 fi
7142 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7143 fi
7144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7145 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7146 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7147 CFLAGS="$xorg_testset_save_CFLAGS"
7148 fi
7149
7150 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7153 fi
7154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7156 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7157 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7158 then :
7159 printf %s "(cached) " >&6
7160 else $as_nop
7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162 /* end confdefs.h. */
7163 int i;
7164 _ACEOF
7165 if ac_fn_c_try_compile "$LINENO"
7166 then :
7167 xorg_cv_cc_flag_unused_command_line_argument=yes
7168 else $as_nop
7169 xorg_cv_cc_flag_unused_command_line_argument=no
7170 fi
7171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7172 fi
7173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7174 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7175 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7176 CFLAGS="$xorg_testset_save_CFLAGS"
7177 fi
7178
7179 found="no"
7180
7181 if test $found = "no" ; then
7182 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7184 fi
7185
7186 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7188 fi
7189
7190 CFLAGS="$CFLAGS -Wlogical-op"
7191
7192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7193 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7194 cacheid=xorg_cv_cc_flag__Wlogical_op
7195 if eval test \${$cacheid+y}
7196 then :
7197 printf %s "(cached) " >&6
7198 else $as_nop
7199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7200 /* end confdefs.h. */
7201 int i;
7202 int
7203 main (void)
7204 {
7205
7206 ;
7207 return 0;
7208 }
7209 _ACEOF
7210 if ac_fn_c_try_link "$LINENO"
7211 then :
7212 eval $cacheid=yes
7213 else $as_nop
7214 eval $cacheid=no
7215 fi
7216 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7217 conftest$ac_exeext conftest.$ac_ext
7218 fi
7219
7220
7221 CFLAGS="$xorg_testset_save_CFLAGS"
7222
7223 eval supported=\$$cacheid
7224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7225 printf "%s\n" "$supported" >&6; }
7226 if test "$supported" = "yes" ; then
7227 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7228 found="yes"
7229 fi
7230 fi
7231
7232
7233
7234 # These are currently disabled because they are noisy. They will be enabled
7235 # in the future once the codebase is sufficiently modernized to silence
7236 # them. For now, I don't want them to drown out the other warnings.
7237 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7238 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7239 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7240
7241 # Turn some warnings into errors, so we don't accidently get successful builds
7242 # when there are problems that should be fixed.
7243
7244 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258 xorg_testset_save_CFLAGS="$CFLAGS"
7259
7260 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7261 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7263 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7264 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7265 then :
7266 printf %s "(cached) " >&6
7267 else $as_nop
7268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269 /* end confdefs.h. */
7270 int i;
7271 _ACEOF
7272 if ac_fn_c_try_compile "$LINENO"
7273 then :
7274 xorg_cv_cc_flag_unknown_warning_option=yes
7275 else $as_nop
7276 xorg_cv_cc_flag_unknown_warning_option=no
7277 fi
7278 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7279 fi
7280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7281 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7282 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7283 CFLAGS="$xorg_testset_save_CFLAGS"
7284 fi
7285
7286 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7289 fi
7290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7292 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7293 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7294 then :
7295 printf %s "(cached) " >&6
7296 else $as_nop
7297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298 /* end confdefs.h. */
7299 int i;
7300 _ACEOF
7301 if ac_fn_c_try_compile "$LINENO"
7302 then :
7303 xorg_cv_cc_flag_unused_command_line_argument=yes
7304 else $as_nop
7305 xorg_cv_cc_flag_unused_command_line_argument=no
7306 fi
7307 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7308 fi
7309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7310 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7311 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7312 CFLAGS="$xorg_testset_save_CFLAGS"
7313 fi
7314
7315 found="no"
7316
7317 if test $found = "no" ; then
7318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7320 fi
7321
7322 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7324 fi
7325
7326 CFLAGS="$CFLAGS -Werror=implicit"
7327
7328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7329 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7330 cacheid=xorg_cv_cc_flag__Werror_implicit
7331 if eval test \${$cacheid+y}
7332 then :
7333 printf %s "(cached) " >&6
7334 else $as_nop
7335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7336 /* end confdefs.h. */
7337 int i;
7338 int
7339 main (void)
7340 {
7341
7342 ;
7343 return 0;
7344 }
7345 _ACEOF
7346 if ac_fn_c_try_link "$LINENO"
7347 then :
7348 eval $cacheid=yes
7349 else $as_nop
7350 eval $cacheid=no
7351 fi
7352 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7353 conftest$ac_exeext conftest.$ac_ext
7354 fi
7355
7356
7357 CFLAGS="$xorg_testset_save_CFLAGS"
7358
7359 eval supported=\$$cacheid
7360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7361 printf "%s\n" "$supported" >&6; }
7362 if test "$supported" = "yes" ; then
7363 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7364 found="yes"
7365 fi
7366 fi
7367
7368 if test $found = "no" ; then
7369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7370 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7371 fi
7372
7373 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7375 fi
7376
7377 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7378
7379 { 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
7380 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7381 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7382 if eval test \${$cacheid+y}
7383 then :
7384 printf %s "(cached) " >&6
7385 else $as_nop
7386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7387 /* end confdefs.h. */
7388 int i;
7389 int
7390 main (void)
7391 {
7392
7393 ;
7394 return 0;
7395 }
7396 _ACEOF
7397 if ac_fn_c_try_link "$LINENO"
7398 then :
7399 eval $cacheid=yes
7400 else $as_nop
7401 eval $cacheid=no
7402 fi
7403 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7404 conftest$ac_exeext conftest.$ac_ext
7405 fi
7406
7407
7408 CFLAGS="$xorg_testset_save_CFLAGS"
7409
7410 eval supported=\$$cacheid
7411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7412 printf "%s\n" "$supported" >&6; }
7413 if test "$supported" = "yes" ; then
7414 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7415 found="yes"
7416 fi
7417 fi
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433 xorg_testset_save_CFLAGS="$CFLAGS"
7434
7435 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7438 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7439 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7440 then :
7441 printf %s "(cached) " >&6
7442 else $as_nop
7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444 /* end confdefs.h. */
7445 int i;
7446 _ACEOF
7447 if ac_fn_c_try_compile "$LINENO"
7448 then :
7449 xorg_cv_cc_flag_unknown_warning_option=yes
7450 else $as_nop
7451 xorg_cv_cc_flag_unknown_warning_option=no
7452 fi
7453 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7454 fi
7455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7456 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7457 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7458 CFLAGS="$xorg_testset_save_CFLAGS"
7459 fi
7460
7461 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7464 fi
7465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7467 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7468 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7469 then :
7470 printf %s "(cached) " >&6
7471 else $as_nop
7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473 /* end confdefs.h. */
7474 int i;
7475 _ACEOF
7476 if ac_fn_c_try_compile "$LINENO"
7477 then :
7478 xorg_cv_cc_flag_unused_command_line_argument=yes
7479 else $as_nop
7480 xorg_cv_cc_flag_unused_command_line_argument=no
7481 fi
7482 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7483 fi
7484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7485 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7486 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7487 CFLAGS="$xorg_testset_save_CFLAGS"
7488 fi
7489
7490 found="no"
7491
7492 if test $found = "no" ; then
7493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7495 fi
7496
7497 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7499 fi
7500
7501 CFLAGS="$CFLAGS -Werror=nonnull"
7502
7503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7504 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7505 cacheid=xorg_cv_cc_flag__Werror_nonnull
7506 if eval test \${$cacheid+y}
7507 then :
7508 printf %s "(cached) " >&6
7509 else $as_nop
7510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7511 /* end confdefs.h. */
7512 int i;
7513 int
7514 main (void)
7515 {
7516
7517 ;
7518 return 0;
7519 }
7520 _ACEOF
7521 if ac_fn_c_try_link "$LINENO"
7522 then :
7523 eval $cacheid=yes
7524 else $as_nop
7525 eval $cacheid=no
7526 fi
7527 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7528 conftest$ac_exeext conftest.$ac_ext
7529 fi
7530
7531
7532 CFLAGS="$xorg_testset_save_CFLAGS"
7533
7534 eval supported=\$$cacheid
7535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7536 printf "%s\n" "$supported" >&6; }
7537 if test "$supported" = "yes" ; then
7538 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7539 found="yes"
7540 fi
7541 fi
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557 xorg_testset_save_CFLAGS="$CFLAGS"
7558
7559 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7562 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7563 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7564 then :
7565 printf %s "(cached) " >&6
7566 else $as_nop
7567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7568 /* end confdefs.h. */
7569 int i;
7570 _ACEOF
7571 if ac_fn_c_try_compile "$LINENO"
7572 then :
7573 xorg_cv_cc_flag_unknown_warning_option=yes
7574 else $as_nop
7575 xorg_cv_cc_flag_unknown_warning_option=no
7576 fi
7577 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7578 fi
7579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7580 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7581 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7582 CFLAGS="$xorg_testset_save_CFLAGS"
7583 fi
7584
7585 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7588 fi
7589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7591 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7592 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7593 then :
7594 printf %s "(cached) " >&6
7595 else $as_nop
7596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7597 /* end confdefs.h. */
7598 int i;
7599 _ACEOF
7600 if ac_fn_c_try_compile "$LINENO"
7601 then :
7602 xorg_cv_cc_flag_unused_command_line_argument=yes
7603 else $as_nop
7604 xorg_cv_cc_flag_unused_command_line_argument=no
7605 fi
7606 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7607 fi
7608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7609 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7610 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7611 CFLAGS="$xorg_testset_save_CFLAGS"
7612 fi
7613
7614 found="no"
7615
7616 if test $found = "no" ; then
7617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7618 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7619 fi
7620
7621 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7623 fi
7624
7625 CFLAGS="$CFLAGS -Werror=init-self"
7626
7627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7628 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7629 cacheid=xorg_cv_cc_flag__Werror_init_self
7630 if eval test \${$cacheid+y}
7631 then :
7632 printf %s "(cached) " >&6
7633 else $as_nop
7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h. */
7636 int i;
7637 int
7638 main (void)
7639 {
7640
7641 ;
7642 return 0;
7643 }
7644 _ACEOF
7645 if ac_fn_c_try_link "$LINENO"
7646 then :
7647 eval $cacheid=yes
7648 else $as_nop
7649 eval $cacheid=no
7650 fi
7651 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7652 conftest$ac_exeext conftest.$ac_ext
7653 fi
7654
7655
7656 CFLAGS="$xorg_testset_save_CFLAGS"
7657
7658 eval supported=\$$cacheid
7659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7660 printf "%s\n" "$supported" >&6; }
7661 if test "$supported" = "yes" ; then
7662 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7663 found="yes"
7664 fi
7665 fi
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681 xorg_testset_save_CFLAGS="$CFLAGS"
7682
7683 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7684 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7686 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7687 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7688 then :
7689 printf %s "(cached) " >&6
7690 else $as_nop
7691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7692 /* end confdefs.h. */
7693 int i;
7694 _ACEOF
7695 if ac_fn_c_try_compile "$LINENO"
7696 then :
7697 xorg_cv_cc_flag_unknown_warning_option=yes
7698 else $as_nop
7699 xorg_cv_cc_flag_unknown_warning_option=no
7700 fi
7701 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7702 fi
7703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7704 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7705 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7706 CFLAGS="$xorg_testset_save_CFLAGS"
7707 fi
7708
7709 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7712 fi
7713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7715 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7716 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7717 then :
7718 printf %s "(cached) " >&6
7719 else $as_nop
7720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721 /* end confdefs.h. */
7722 int i;
7723 _ACEOF
7724 if ac_fn_c_try_compile "$LINENO"
7725 then :
7726 xorg_cv_cc_flag_unused_command_line_argument=yes
7727 else $as_nop
7728 xorg_cv_cc_flag_unused_command_line_argument=no
7729 fi
7730 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7731 fi
7732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7733 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7734 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7735 CFLAGS="$xorg_testset_save_CFLAGS"
7736 fi
7737
7738 found="no"
7739
7740 if test $found = "no" ; then
7741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7742 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7743 fi
7744
7745 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7747 fi
7748
7749 CFLAGS="$CFLAGS -Werror=main"
7750
7751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7752 printf %s "checking if $CC supports -Werror=main... " >&6; }
7753 cacheid=xorg_cv_cc_flag__Werror_main
7754 if eval test \${$cacheid+y}
7755 then :
7756 printf %s "(cached) " >&6
7757 else $as_nop
7758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759 /* end confdefs.h. */
7760 int i;
7761 int
7762 main (void)
7763 {
7764
7765 ;
7766 return 0;
7767 }
7768 _ACEOF
7769 if ac_fn_c_try_link "$LINENO"
7770 then :
7771 eval $cacheid=yes
7772 else $as_nop
7773 eval $cacheid=no
7774 fi
7775 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7776 conftest$ac_exeext conftest.$ac_ext
7777 fi
7778
7779
7780 CFLAGS="$xorg_testset_save_CFLAGS"
7781
7782 eval supported=\$$cacheid
7783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7784 printf "%s\n" "$supported" >&6; }
7785 if test "$supported" = "yes" ; then
7786 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7787 found="yes"
7788 fi
7789 fi
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805 xorg_testset_save_CFLAGS="$CFLAGS"
7806
7807 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7810 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7811 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7812 then :
7813 printf %s "(cached) " >&6
7814 else $as_nop
7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h. */
7817 int i;
7818 _ACEOF
7819 if ac_fn_c_try_compile "$LINENO"
7820 then :
7821 xorg_cv_cc_flag_unknown_warning_option=yes
7822 else $as_nop
7823 xorg_cv_cc_flag_unknown_warning_option=no
7824 fi
7825 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7826 fi
7827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7828 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7829 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7830 CFLAGS="$xorg_testset_save_CFLAGS"
7831 fi
7832
7833 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7835 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7836 fi
7837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7839 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7840 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7841 then :
7842 printf %s "(cached) " >&6
7843 else $as_nop
7844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845 /* end confdefs.h. */
7846 int i;
7847 _ACEOF
7848 if ac_fn_c_try_compile "$LINENO"
7849 then :
7850 xorg_cv_cc_flag_unused_command_line_argument=yes
7851 else $as_nop
7852 xorg_cv_cc_flag_unused_command_line_argument=no
7853 fi
7854 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7855 fi
7856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7857 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7858 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7859 CFLAGS="$xorg_testset_save_CFLAGS"
7860 fi
7861
7862 found="no"
7863
7864 if test $found = "no" ; then
7865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7867 fi
7868
7869 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7871 fi
7872
7873 CFLAGS="$CFLAGS -Werror=missing-braces"
7874
7875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7876 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7877 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7878 if eval test \${$cacheid+y}
7879 then :
7880 printf %s "(cached) " >&6
7881 else $as_nop
7882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7883 /* end confdefs.h. */
7884 int i;
7885 int
7886 main (void)
7887 {
7888
7889 ;
7890 return 0;
7891 }
7892 _ACEOF
7893 if ac_fn_c_try_link "$LINENO"
7894 then :
7895 eval $cacheid=yes
7896 else $as_nop
7897 eval $cacheid=no
7898 fi
7899 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7900 conftest$ac_exeext conftest.$ac_ext
7901 fi
7902
7903
7904 CFLAGS="$xorg_testset_save_CFLAGS"
7905
7906 eval supported=\$$cacheid
7907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7908 printf "%s\n" "$supported" >&6; }
7909 if test "$supported" = "yes" ; then
7910 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7911 found="yes"
7912 fi
7913 fi
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929 xorg_testset_save_CFLAGS="$CFLAGS"
7930
7931 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7932 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7934 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7935 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7936 then :
7937 printf %s "(cached) " >&6
7938 else $as_nop
7939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7940 /* end confdefs.h. */
7941 int i;
7942 _ACEOF
7943 if ac_fn_c_try_compile "$LINENO"
7944 then :
7945 xorg_cv_cc_flag_unknown_warning_option=yes
7946 else $as_nop
7947 xorg_cv_cc_flag_unknown_warning_option=no
7948 fi
7949 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7950 fi
7951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7952 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7953 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7954 CFLAGS="$xorg_testset_save_CFLAGS"
7955 fi
7956
7957 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7960 fi
7961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7963 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7964 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7965 then :
7966 printf %s "(cached) " >&6
7967 else $as_nop
7968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7969 /* end confdefs.h. */
7970 int i;
7971 _ACEOF
7972 if ac_fn_c_try_compile "$LINENO"
7973 then :
7974 xorg_cv_cc_flag_unused_command_line_argument=yes
7975 else $as_nop
7976 xorg_cv_cc_flag_unused_command_line_argument=no
7977 fi
7978 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7979 fi
7980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7981 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7982 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7983 CFLAGS="$xorg_testset_save_CFLAGS"
7984 fi
7985
7986 found="no"
7987
7988 if test $found = "no" ; then
7989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7991 fi
7992
7993 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7995 fi
7996
7997 CFLAGS="$CFLAGS -Werror=sequence-point"
7998
7999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8000 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8001 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8002 if eval test \${$cacheid+y}
8003 then :
8004 printf %s "(cached) " >&6
8005 else $as_nop
8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h. */
8008 int i;
8009 int
8010 main (void)
8011 {
8012
8013 ;
8014 return 0;
8015 }
8016 _ACEOF
8017 if ac_fn_c_try_link "$LINENO"
8018 then :
8019 eval $cacheid=yes
8020 else $as_nop
8021 eval $cacheid=no
8022 fi
8023 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8024 conftest$ac_exeext conftest.$ac_ext
8025 fi
8026
8027
8028 CFLAGS="$xorg_testset_save_CFLAGS"
8029
8030 eval supported=\$$cacheid
8031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8032 printf "%s\n" "$supported" >&6; }
8033 if test "$supported" = "yes" ; then
8034 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8035 found="yes"
8036 fi
8037 fi
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053 xorg_testset_save_CFLAGS="$CFLAGS"
8054
8055 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8058 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8059 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8060 then :
8061 printf %s "(cached) " >&6
8062 else $as_nop
8063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8064 /* end confdefs.h. */
8065 int i;
8066 _ACEOF
8067 if ac_fn_c_try_compile "$LINENO"
8068 then :
8069 xorg_cv_cc_flag_unknown_warning_option=yes
8070 else $as_nop
8071 xorg_cv_cc_flag_unknown_warning_option=no
8072 fi
8073 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8074 fi
8075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8076 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8077 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8078 CFLAGS="$xorg_testset_save_CFLAGS"
8079 fi
8080
8081 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8084 fi
8085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8087 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8088 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8089 then :
8090 printf %s "(cached) " >&6
8091 else $as_nop
8092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8093 /* end confdefs.h. */
8094 int i;
8095 _ACEOF
8096 if ac_fn_c_try_compile "$LINENO"
8097 then :
8098 xorg_cv_cc_flag_unused_command_line_argument=yes
8099 else $as_nop
8100 xorg_cv_cc_flag_unused_command_line_argument=no
8101 fi
8102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8103 fi
8104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8105 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8106 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8107 CFLAGS="$xorg_testset_save_CFLAGS"
8108 fi
8109
8110 found="no"
8111
8112 if test $found = "no" ; then
8113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8115 fi
8116
8117 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8119 fi
8120
8121 CFLAGS="$CFLAGS -Werror=return-type"
8122
8123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8124 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8125 cacheid=xorg_cv_cc_flag__Werror_return_type
8126 if eval test \${$cacheid+y}
8127 then :
8128 printf %s "(cached) " >&6
8129 else $as_nop
8130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8131 /* end confdefs.h. */
8132 int i;
8133 int
8134 main (void)
8135 {
8136
8137 ;
8138 return 0;
8139 }
8140 _ACEOF
8141 if ac_fn_c_try_link "$LINENO"
8142 then :
8143 eval $cacheid=yes
8144 else $as_nop
8145 eval $cacheid=no
8146 fi
8147 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8148 conftest$ac_exeext conftest.$ac_ext
8149 fi
8150
8151
8152 CFLAGS="$xorg_testset_save_CFLAGS"
8153
8154 eval supported=\$$cacheid
8155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8156 printf "%s\n" "$supported" >&6; }
8157 if test "$supported" = "yes" ; then
8158 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8159 found="yes"
8160 fi
8161 fi
8162
8163 if test $found = "no" ; then
8164 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8165 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8166 fi
8167
8168 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8170 fi
8171
8172 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8173
8174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8175 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8176 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8177 if eval test \${$cacheid+y}
8178 then :
8179 printf %s "(cached) " >&6
8180 else $as_nop
8181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8182 /* end confdefs.h. */
8183 int i;
8184 int
8185 main (void)
8186 {
8187
8188 ;
8189 return 0;
8190 }
8191 _ACEOF
8192 if ac_fn_c_try_link "$LINENO"
8193 then :
8194 eval $cacheid=yes
8195 else $as_nop
8196 eval $cacheid=no
8197 fi
8198 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8199 conftest$ac_exeext conftest.$ac_ext
8200 fi
8201
8202
8203 CFLAGS="$xorg_testset_save_CFLAGS"
8204
8205 eval supported=\$$cacheid
8206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8207 printf "%s\n" "$supported" >&6; }
8208 if test "$supported" = "yes" ; then
8209 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8210 found="yes"
8211 fi
8212 fi
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228 xorg_testset_save_CFLAGS="$CFLAGS"
8229
8230 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8233 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8234 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8235 then :
8236 printf %s "(cached) " >&6
8237 else $as_nop
8238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8239 /* end confdefs.h. */
8240 int i;
8241 _ACEOF
8242 if ac_fn_c_try_compile "$LINENO"
8243 then :
8244 xorg_cv_cc_flag_unknown_warning_option=yes
8245 else $as_nop
8246 xorg_cv_cc_flag_unknown_warning_option=no
8247 fi
8248 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8249 fi
8250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8251 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8252 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8253 CFLAGS="$xorg_testset_save_CFLAGS"
8254 fi
8255
8256 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8259 fi
8260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8262 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8263 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8264 then :
8265 printf %s "(cached) " >&6
8266 else $as_nop
8267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8268 /* end confdefs.h. */
8269 int i;
8270 _ACEOF
8271 if ac_fn_c_try_compile "$LINENO"
8272 then :
8273 xorg_cv_cc_flag_unused_command_line_argument=yes
8274 else $as_nop
8275 xorg_cv_cc_flag_unused_command_line_argument=no
8276 fi
8277 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8278 fi
8279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8280 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8281 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8282 CFLAGS="$xorg_testset_save_CFLAGS"
8283 fi
8284
8285 found="no"
8286
8287 if test $found = "no" ; then
8288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8290 fi
8291
8292 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8294 fi
8295
8296 CFLAGS="$CFLAGS -Werror=trigraphs"
8297
8298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8299 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8300 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8301 if eval test \${$cacheid+y}
8302 then :
8303 printf %s "(cached) " >&6
8304 else $as_nop
8305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8306 /* end confdefs.h. */
8307 int i;
8308 int
8309 main (void)
8310 {
8311
8312 ;
8313 return 0;
8314 }
8315 _ACEOF
8316 if ac_fn_c_try_link "$LINENO"
8317 then :
8318 eval $cacheid=yes
8319 else $as_nop
8320 eval $cacheid=no
8321 fi
8322 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8323 conftest$ac_exeext conftest.$ac_ext
8324 fi
8325
8326
8327 CFLAGS="$xorg_testset_save_CFLAGS"
8328
8329 eval supported=\$$cacheid
8330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8331 printf "%s\n" "$supported" >&6; }
8332 if test "$supported" = "yes" ; then
8333 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8334 found="yes"
8335 fi
8336 fi
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352 xorg_testset_save_CFLAGS="$CFLAGS"
8353
8354 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8357 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8358 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8359 then :
8360 printf %s "(cached) " >&6
8361 else $as_nop
8362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8363 /* end confdefs.h. */
8364 int i;
8365 _ACEOF
8366 if ac_fn_c_try_compile "$LINENO"
8367 then :
8368 xorg_cv_cc_flag_unknown_warning_option=yes
8369 else $as_nop
8370 xorg_cv_cc_flag_unknown_warning_option=no
8371 fi
8372 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8373 fi
8374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8375 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8376 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8377 CFLAGS="$xorg_testset_save_CFLAGS"
8378 fi
8379
8380 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8383 fi
8384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8386 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8387 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8388 then :
8389 printf %s "(cached) " >&6
8390 else $as_nop
8391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8392 /* end confdefs.h. */
8393 int i;
8394 _ACEOF
8395 if ac_fn_c_try_compile "$LINENO"
8396 then :
8397 xorg_cv_cc_flag_unused_command_line_argument=yes
8398 else $as_nop
8399 xorg_cv_cc_flag_unused_command_line_argument=no
8400 fi
8401 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8402 fi
8403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8404 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8405 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8406 CFLAGS="$xorg_testset_save_CFLAGS"
8407 fi
8408
8409 found="no"
8410
8411 if test $found = "no" ; then
8412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8413 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8414 fi
8415
8416 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8418 fi
8419
8420 CFLAGS="$CFLAGS -Werror=array-bounds"
8421
8422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8423 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8424 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8425 if eval test \${$cacheid+y}
8426 then :
8427 printf %s "(cached) " >&6
8428 else $as_nop
8429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8430 /* end confdefs.h. */
8431 int i;
8432 int
8433 main (void)
8434 {
8435
8436 ;
8437 return 0;
8438 }
8439 _ACEOF
8440 if ac_fn_c_try_link "$LINENO"
8441 then :
8442 eval $cacheid=yes
8443 else $as_nop
8444 eval $cacheid=no
8445 fi
8446 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8447 conftest$ac_exeext conftest.$ac_ext
8448 fi
8449
8450
8451 CFLAGS="$xorg_testset_save_CFLAGS"
8452
8453 eval supported=\$$cacheid
8454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8455 printf "%s\n" "$supported" >&6; }
8456 if test "$supported" = "yes" ; then
8457 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8458 found="yes"
8459 fi
8460 fi
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476 xorg_testset_save_CFLAGS="$CFLAGS"
8477
8478 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8479 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8481 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8482 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8483 then :
8484 printf %s "(cached) " >&6
8485 else $as_nop
8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8488 int i;
8489 _ACEOF
8490 if ac_fn_c_try_compile "$LINENO"
8491 then :
8492 xorg_cv_cc_flag_unknown_warning_option=yes
8493 else $as_nop
8494 xorg_cv_cc_flag_unknown_warning_option=no
8495 fi
8496 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8497 fi
8498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8499 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8500 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8501 CFLAGS="$xorg_testset_save_CFLAGS"
8502 fi
8503
8504 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8506 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8507 fi
8508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8510 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8511 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8512 then :
8513 printf %s "(cached) " >&6
8514 else $as_nop
8515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8516 /* end confdefs.h. */
8517 int i;
8518 _ACEOF
8519 if ac_fn_c_try_compile "$LINENO"
8520 then :
8521 xorg_cv_cc_flag_unused_command_line_argument=yes
8522 else $as_nop
8523 xorg_cv_cc_flag_unused_command_line_argument=no
8524 fi
8525 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8526 fi
8527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8528 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8529 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8530 CFLAGS="$xorg_testset_save_CFLAGS"
8531 fi
8532
8533 found="no"
8534
8535 if test $found = "no" ; then
8536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8537 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8538 fi
8539
8540 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8542 fi
8543
8544 CFLAGS="$CFLAGS -Werror=write-strings"
8545
8546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8547 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8548 cacheid=xorg_cv_cc_flag__Werror_write_strings
8549 if eval test \${$cacheid+y}
8550 then :
8551 printf %s "(cached) " >&6
8552 else $as_nop
8553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8554 /* end confdefs.h. */
8555 int i;
8556 int
8557 main (void)
8558 {
8559
8560 ;
8561 return 0;
8562 }
8563 _ACEOF
8564 if ac_fn_c_try_link "$LINENO"
8565 then :
8566 eval $cacheid=yes
8567 else $as_nop
8568 eval $cacheid=no
8569 fi
8570 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8571 conftest$ac_exeext conftest.$ac_ext
8572 fi
8573
8574
8575 CFLAGS="$xorg_testset_save_CFLAGS"
8576
8577 eval supported=\$$cacheid
8578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8579 printf "%s\n" "$supported" >&6; }
8580 if test "$supported" = "yes" ; then
8581 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8582 found="yes"
8583 fi
8584 fi
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600 xorg_testset_save_CFLAGS="$CFLAGS"
8601
8602 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8603 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8605 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8606 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8607 then :
8608 printf %s "(cached) " >&6
8609 else $as_nop
8610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8611 /* end confdefs.h. */
8612 int i;
8613 _ACEOF
8614 if ac_fn_c_try_compile "$LINENO"
8615 then :
8616 xorg_cv_cc_flag_unknown_warning_option=yes
8617 else $as_nop
8618 xorg_cv_cc_flag_unknown_warning_option=no
8619 fi
8620 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8621 fi
8622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8623 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8624 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8625 CFLAGS="$xorg_testset_save_CFLAGS"
8626 fi
8627
8628 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8631 fi
8632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8634 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8635 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8636 then :
8637 printf %s "(cached) " >&6
8638 else $as_nop
8639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8640 /* end confdefs.h. */
8641 int i;
8642 _ACEOF
8643 if ac_fn_c_try_compile "$LINENO"
8644 then :
8645 xorg_cv_cc_flag_unused_command_line_argument=yes
8646 else $as_nop
8647 xorg_cv_cc_flag_unused_command_line_argument=no
8648 fi
8649 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8650 fi
8651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8652 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8653 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8654 CFLAGS="$xorg_testset_save_CFLAGS"
8655 fi
8656
8657 found="no"
8658
8659 if test $found = "no" ; then
8660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8661 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8662 fi
8663
8664 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8666 fi
8667
8668 CFLAGS="$CFLAGS -Werror=address"
8669
8670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8671 printf %s "checking if $CC supports -Werror=address... " >&6; }
8672 cacheid=xorg_cv_cc_flag__Werror_address
8673 if eval test \${$cacheid+y}
8674 then :
8675 printf %s "(cached) " >&6
8676 else $as_nop
8677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8678 /* end confdefs.h. */
8679 int i;
8680 int
8681 main (void)
8682 {
8683
8684 ;
8685 return 0;
8686 }
8687 _ACEOF
8688 if ac_fn_c_try_link "$LINENO"
8689 then :
8690 eval $cacheid=yes
8691 else $as_nop
8692 eval $cacheid=no
8693 fi
8694 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8695 conftest$ac_exeext conftest.$ac_ext
8696 fi
8697
8698
8699 CFLAGS="$xorg_testset_save_CFLAGS"
8700
8701 eval supported=\$$cacheid
8702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8703 printf "%s\n" "$supported" >&6; }
8704 if test "$supported" = "yes" ; then
8705 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8706 found="yes"
8707 fi
8708 fi
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724 xorg_testset_save_CFLAGS="$CFLAGS"
8725
8726 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8729 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8730 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8731 then :
8732 printf %s "(cached) " >&6
8733 else $as_nop
8734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8735 /* end confdefs.h. */
8736 int i;
8737 _ACEOF
8738 if ac_fn_c_try_compile "$LINENO"
8739 then :
8740 xorg_cv_cc_flag_unknown_warning_option=yes
8741 else $as_nop
8742 xorg_cv_cc_flag_unknown_warning_option=no
8743 fi
8744 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8745 fi
8746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8747 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8748 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8749 CFLAGS="$xorg_testset_save_CFLAGS"
8750 fi
8751
8752 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8754 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8755 fi
8756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8758 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8759 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8760 then :
8761 printf %s "(cached) " >&6
8762 else $as_nop
8763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8764 /* end confdefs.h. */
8765 int i;
8766 _ACEOF
8767 if ac_fn_c_try_compile "$LINENO"
8768 then :
8769 xorg_cv_cc_flag_unused_command_line_argument=yes
8770 else $as_nop
8771 xorg_cv_cc_flag_unused_command_line_argument=no
8772 fi
8773 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8774 fi
8775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8776 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8777 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8778 CFLAGS="$xorg_testset_save_CFLAGS"
8779 fi
8780
8781 found="no"
8782
8783 if test $found = "no" ; then
8784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8785 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8786 fi
8787
8788 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8790 fi
8791
8792 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8793
8794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8795 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8796 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8797 if eval test \${$cacheid+y}
8798 then :
8799 printf %s "(cached) " >&6
8800 else $as_nop
8801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8802 /* end confdefs.h. */
8803 int i;
8804 int
8805 main (void)
8806 {
8807
8808 ;
8809 return 0;
8810 }
8811 _ACEOF
8812 if ac_fn_c_try_link "$LINENO"
8813 then :
8814 eval $cacheid=yes
8815 else $as_nop
8816 eval $cacheid=no
8817 fi
8818 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8819 conftest$ac_exeext conftest.$ac_ext
8820 fi
8821
8822
8823 CFLAGS="$xorg_testset_save_CFLAGS"
8824
8825 eval supported=\$$cacheid
8826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8827 printf "%s\n" "$supported" >&6; }
8828 if test "$supported" = "yes" ; then
8829 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8830 found="yes"
8831 fi
8832 fi
8833
8834 if test $found = "no" ; then
8835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8837 fi
8838
8839 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8841 fi
8842
8843 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8844
8845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8846 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8847 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8848 if eval test \${$cacheid+y}
8849 then :
8850 printf %s "(cached) " >&6
8851 else $as_nop
8852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853 /* end confdefs.h. */
8854 int i;
8855 int
8856 main (void)
8857 {
8858
8859 ;
8860 return 0;
8861 }
8862 _ACEOF
8863 if ac_fn_c_try_link "$LINENO"
8864 then :
8865 eval $cacheid=yes
8866 else $as_nop
8867 eval $cacheid=no
8868 fi
8869 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8870 conftest$ac_exeext conftest.$ac_ext
8871 fi
8872
8873
8874 CFLAGS="$xorg_testset_save_CFLAGS"
8875
8876 eval supported=\$$cacheid
8877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8878 printf "%s\n" "$supported" >&6; }
8879 if test "$supported" = "yes" ; then
8880 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8881 found="yes"
8882 fi
8883 fi
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899 xorg_testset_save_CFLAGS="$CFLAGS"
8900
8901 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8902 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8904 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8905 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8906 then :
8907 printf %s "(cached) " >&6
8908 else $as_nop
8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h. */
8911 int i;
8912 _ACEOF
8913 if ac_fn_c_try_compile "$LINENO"
8914 then :
8915 xorg_cv_cc_flag_unknown_warning_option=yes
8916 else $as_nop
8917 xorg_cv_cc_flag_unknown_warning_option=no
8918 fi
8919 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8920 fi
8921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8922 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8923 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8924 CFLAGS="$xorg_testset_save_CFLAGS"
8925 fi
8926
8927 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8930 fi
8931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8933 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8934 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8935 then :
8936 printf %s "(cached) " >&6
8937 else $as_nop
8938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8939 /* end confdefs.h. */
8940 int i;
8941 _ACEOF
8942 if ac_fn_c_try_compile "$LINENO"
8943 then :
8944 xorg_cv_cc_flag_unused_command_line_argument=yes
8945 else $as_nop
8946 xorg_cv_cc_flag_unused_command_line_argument=no
8947 fi
8948 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8949 fi
8950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8951 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8952 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8953 CFLAGS="$xorg_testset_save_CFLAGS"
8954 fi
8955
8956 found="no"
8957
8958 if test $found = "no" ; then
8959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8961 fi
8962
8963 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8965 fi
8966
8967 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8968
8969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8970 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8971 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8972 if eval test \${$cacheid+y}
8973 then :
8974 printf %s "(cached) " >&6
8975 else $as_nop
8976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977 /* end confdefs.h. */
8978 int i;
8979 int
8980 main (void)
8981 {
8982
8983 ;
8984 return 0;
8985 }
8986 _ACEOF
8987 if ac_fn_c_try_link "$LINENO"
8988 then :
8989 eval $cacheid=yes
8990 else $as_nop
8991 eval $cacheid=no
8992 fi
8993 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8994 conftest$ac_exeext conftest.$ac_ext
8995 fi
8996
8997
8998 CFLAGS="$xorg_testset_save_CFLAGS"
8999
9000 eval supported=\$$cacheid
9001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9002 printf "%s\n" "$supported" >&6; }
9003 if test "$supported" = "yes" ; then
9004 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9005 found="yes"
9006 fi
9007 fi
9008
9009 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9010 else
9011 { 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
9012 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;}
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026 xorg_testset_save_CFLAGS="$CFLAGS"
9027
9028 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9029 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9031 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9032 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9033 then :
9034 printf %s "(cached) " >&6
9035 else $as_nop
9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037 /* end confdefs.h. */
9038 int i;
9039 _ACEOF
9040 if ac_fn_c_try_compile "$LINENO"
9041 then :
9042 xorg_cv_cc_flag_unknown_warning_option=yes
9043 else $as_nop
9044 xorg_cv_cc_flag_unknown_warning_option=no
9045 fi
9046 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9047 fi
9048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9049 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9050 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9051 CFLAGS="$xorg_testset_save_CFLAGS"
9052 fi
9053
9054 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9057 fi
9058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9060 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9061 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9062 then :
9063 printf %s "(cached) " >&6
9064 else $as_nop
9065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9066 /* end confdefs.h. */
9067 int i;
9068 _ACEOF
9069 if ac_fn_c_try_compile "$LINENO"
9070 then :
9071 xorg_cv_cc_flag_unused_command_line_argument=yes
9072 else $as_nop
9073 xorg_cv_cc_flag_unused_command_line_argument=no
9074 fi
9075 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9076 fi
9077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9078 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9079 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9080 CFLAGS="$xorg_testset_save_CFLAGS"
9081 fi
9082
9083 found="no"
9084
9085 if test $found = "no" ; then
9086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9087 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9088 fi
9089
9090 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9092 fi
9093
9094 CFLAGS="$CFLAGS -Wimplicit"
9095
9096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9097 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9098 cacheid=xorg_cv_cc_flag__Wimplicit
9099 if eval test \${$cacheid+y}
9100 then :
9101 printf %s "(cached) " >&6
9102 else $as_nop
9103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9104 /* end confdefs.h. */
9105 int i;
9106 int
9107 main (void)
9108 {
9109
9110 ;
9111 return 0;
9112 }
9113 _ACEOF
9114 if ac_fn_c_try_link "$LINENO"
9115 then :
9116 eval $cacheid=yes
9117 else $as_nop
9118 eval $cacheid=no
9119 fi
9120 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9121 conftest$ac_exeext conftest.$ac_ext
9122 fi
9123
9124
9125 CFLAGS="$xorg_testset_save_CFLAGS"
9126
9127 eval supported=\$$cacheid
9128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9129 printf "%s\n" "$supported" >&6; }
9130 if test "$supported" = "yes" ; then
9131 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9132 found="yes"
9133 fi
9134 fi
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150 xorg_testset_save_CFLAGS="$CFLAGS"
9151
9152 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9155 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9156 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9157 then :
9158 printf %s "(cached) " >&6
9159 else $as_nop
9160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161 /* end confdefs.h. */
9162 int i;
9163 _ACEOF
9164 if ac_fn_c_try_compile "$LINENO"
9165 then :
9166 xorg_cv_cc_flag_unknown_warning_option=yes
9167 else $as_nop
9168 xorg_cv_cc_flag_unknown_warning_option=no
9169 fi
9170 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9171 fi
9172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9173 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9174 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9175 CFLAGS="$xorg_testset_save_CFLAGS"
9176 fi
9177
9178 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9181 fi
9182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9184 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9185 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9186 then :
9187 printf %s "(cached) " >&6
9188 else $as_nop
9189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9190 /* end confdefs.h. */
9191 int i;
9192 _ACEOF
9193 if ac_fn_c_try_compile "$LINENO"
9194 then :
9195 xorg_cv_cc_flag_unused_command_line_argument=yes
9196 else $as_nop
9197 xorg_cv_cc_flag_unused_command_line_argument=no
9198 fi
9199 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9200 fi
9201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9202 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9203 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9204 CFLAGS="$xorg_testset_save_CFLAGS"
9205 fi
9206
9207 found="no"
9208
9209 if test $found = "no" ; then
9210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9212 fi
9213
9214 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9216 fi
9217
9218 CFLAGS="$CFLAGS -Wnonnull"
9219
9220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9221 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9222 cacheid=xorg_cv_cc_flag__Wnonnull
9223 if eval test \${$cacheid+y}
9224 then :
9225 printf %s "(cached) " >&6
9226 else $as_nop
9227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9228 /* end confdefs.h. */
9229 int i;
9230 int
9231 main (void)
9232 {
9233
9234 ;
9235 return 0;
9236 }
9237 _ACEOF
9238 if ac_fn_c_try_link "$LINENO"
9239 then :
9240 eval $cacheid=yes
9241 else $as_nop
9242 eval $cacheid=no
9243 fi
9244 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9245 conftest$ac_exeext conftest.$ac_ext
9246 fi
9247
9248
9249 CFLAGS="$xorg_testset_save_CFLAGS"
9250
9251 eval supported=\$$cacheid
9252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9253 printf "%s\n" "$supported" >&6; }
9254 if test "$supported" = "yes" ; then
9255 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9256 found="yes"
9257 fi
9258 fi
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274 xorg_testset_save_CFLAGS="$CFLAGS"
9275
9276 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9277 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9279 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9280 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9281 then :
9282 printf %s "(cached) " >&6
9283 else $as_nop
9284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9285 /* end confdefs.h. */
9286 int i;
9287 _ACEOF
9288 if ac_fn_c_try_compile "$LINENO"
9289 then :
9290 xorg_cv_cc_flag_unknown_warning_option=yes
9291 else $as_nop
9292 xorg_cv_cc_flag_unknown_warning_option=no
9293 fi
9294 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9295 fi
9296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9297 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9298 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9299 CFLAGS="$xorg_testset_save_CFLAGS"
9300 fi
9301
9302 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9305 fi
9306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9308 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9309 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9310 then :
9311 printf %s "(cached) " >&6
9312 else $as_nop
9313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9314 /* end confdefs.h. */
9315 int i;
9316 _ACEOF
9317 if ac_fn_c_try_compile "$LINENO"
9318 then :
9319 xorg_cv_cc_flag_unused_command_line_argument=yes
9320 else $as_nop
9321 xorg_cv_cc_flag_unused_command_line_argument=no
9322 fi
9323 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9324 fi
9325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9326 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9327 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9328 CFLAGS="$xorg_testset_save_CFLAGS"
9329 fi
9330
9331 found="no"
9332
9333 if test $found = "no" ; then
9334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9336 fi
9337
9338 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9340 fi
9341
9342 CFLAGS="$CFLAGS -Winit-self"
9343
9344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9345 printf %s "checking if $CC supports -Winit-self... " >&6; }
9346 cacheid=xorg_cv_cc_flag__Winit_self
9347 if eval test \${$cacheid+y}
9348 then :
9349 printf %s "(cached) " >&6
9350 else $as_nop
9351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9352 /* end confdefs.h. */
9353 int i;
9354 int
9355 main (void)
9356 {
9357
9358 ;
9359 return 0;
9360 }
9361 _ACEOF
9362 if ac_fn_c_try_link "$LINENO"
9363 then :
9364 eval $cacheid=yes
9365 else $as_nop
9366 eval $cacheid=no
9367 fi
9368 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9369 conftest$ac_exeext conftest.$ac_ext
9370 fi
9371
9372
9373 CFLAGS="$xorg_testset_save_CFLAGS"
9374
9375 eval supported=\$$cacheid
9376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9377 printf "%s\n" "$supported" >&6; }
9378 if test "$supported" = "yes" ; then
9379 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9380 found="yes"
9381 fi
9382 fi
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398 xorg_testset_save_CFLAGS="$CFLAGS"
9399
9400 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9401 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9403 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9404 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9405 then :
9406 printf %s "(cached) " >&6
9407 else $as_nop
9408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9409 /* end confdefs.h. */
9410 int i;
9411 _ACEOF
9412 if ac_fn_c_try_compile "$LINENO"
9413 then :
9414 xorg_cv_cc_flag_unknown_warning_option=yes
9415 else $as_nop
9416 xorg_cv_cc_flag_unknown_warning_option=no
9417 fi
9418 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9419 fi
9420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9421 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9422 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9423 CFLAGS="$xorg_testset_save_CFLAGS"
9424 fi
9425
9426 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9428 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9429 fi
9430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9432 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9433 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9434 then :
9435 printf %s "(cached) " >&6
9436 else $as_nop
9437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9438 /* end confdefs.h. */
9439 int i;
9440 _ACEOF
9441 if ac_fn_c_try_compile "$LINENO"
9442 then :
9443 xorg_cv_cc_flag_unused_command_line_argument=yes
9444 else $as_nop
9445 xorg_cv_cc_flag_unused_command_line_argument=no
9446 fi
9447 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9448 fi
9449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9450 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9451 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9452 CFLAGS="$xorg_testset_save_CFLAGS"
9453 fi
9454
9455 found="no"
9456
9457 if test $found = "no" ; then
9458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9460 fi
9461
9462 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9464 fi
9465
9466 CFLAGS="$CFLAGS -Wmain"
9467
9468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9469 printf %s "checking if $CC supports -Wmain... " >&6; }
9470 cacheid=xorg_cv_cc_flag__Wmain
9471 if eval test \${$cacheid+y}
9472 then :
9473 printf %s "(cached) " >&6
9474 else $as_nop
9475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9476 /* end confdefs.h. */
9477 int i;
9478 int
9479 main (void)
9480 {
9481
9482 ;
9483 return 0;
9484 }
9485 _ACEOF
9486 if ac_fn_c_try_link "$LINENO"
9487 then :
9488 eval $cacheid=yes
9489 else $as_nop
9490 eval $cacheid=no
9491 fi
9492 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9493 conftest$ac_exeext conftest.$ac_ext
9494 fi
9495
9496
9497 CFLAGS="$xorg_testset_save_CFLAGS"
9498
9499 eval supported=\$$cacheid
9500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9501 printf "%s\n" "$supported" >&6; }
9502 if test "$supported" = "yes" ; then
9503 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9504 found="yes"
9505 fi
9506 fi
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522 xorg_testset_save_CFLAGS="$CFLAGS"
9523
9524 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9525 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9527 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9528 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9529 then :
9530 printf %s "(cached) " >&6
9531 else $as_nop
9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h. */
9534 int i;
9535 _ACEOF
9536 if ac_fn_c_try_compile "$LINENO"
9537 then :
9538 xorg_cv_cc_flag_unknown_warning_option=yes
9539 else $as_nop
9540 xorg_cv_cc_flag_unknown_warning_option=no
9541 fi
9542 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9543 fi
9544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9545 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9546 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9547 CFLAGS="$xorg_testset_save_CFLAGS"
9548 fi
9549
9550 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9551 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9552 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9553 fi
9554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9556 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9557 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9558 then :
9559 printf %s "(cached) " >&6
9560 else $as_nop
9561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9562 /* end confdefs.h. */
9563 int i;
9564 _ACEOF
9565 if ac_fn_c_try_compile "$LINENO"
9566 then :
9567 xorg_cv_cc_flag_unused_command_line_argument=yes
9568 else $as_nop
9569 xorg_cv_cc_flag_unused_command_line_argument=no
9570 fi
9571 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9572 fi
9573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9574 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9575 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9576 CFLAGS="$xorg_testset_save_CFLAGS"
9577 fi
9578
9579 found="no"
9580
9581 if test $found = "no" ; then
9582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9583 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9584 fi
9585
9586 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9588 fi
9589
9590 CFLAGS="$CFLAGS -Wmissing-braces"
9591
9592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9593 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9594 cacheid=xorg_cv_cc_flag__Wmissing_braces
9595 if eval test \${$cacheid+y}
9596 then :
9597 printf %s "(cached) " >&6
9598 else $as_nop
9599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9600 /* end confdefs.h. */
9601 int i;
9602 int
9603 main (void)
9604 {
9605
9606 ;
9607 return 0;
9608 }
9609 _ACEOF
9610 if ac_fn_c_try_link "$LINENO"
9611 then :
9612 eval $cacheid=yes
9613 else $as_nop
9614 eval $cacheid=no
9615 fi
9616 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9617 conftest$ac_exeext conftest.$ac_ext
9618 fi
9619
9620
9621 CFLAGS="$xorg_testset_save_CFLAGS"
9622
9623 eval supported=\$$cacheid
9624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9625 printf "%s\n" "$supported" >&6; }
9626 if test "$supported" = "yes" ; then
9627 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9628 found="yes"
9629 fi
9630 fi
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646 xorg_testset_save_CFLAGS="$CFLAGS"
9647
9648 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9651 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9652 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9653 then :
9654 printf %s "(cached) " >&6
9655 else $as_nop
9656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9657 /* end confdefs.h. */
9658 int i;
9659 _ACEOF
9660 if ac_fn_c_try_compile "$LINENO"
9661 then :
9662 xorg_cv_cc_flag_unknown_warning_option=yes
9663 else $as_nop
9664 xorg_cv_cc_flag_unknown_warning_option=no
9665 fi
9666 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9667 fi
9668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9669 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9670 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9671 CFLAGS="$xorg_testset_save_CFLAGS"
9672 fi
9673
9674 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9677 fi
9678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9680 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9681 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9682 then :
9683 printf %s "(cached) " >&6
9684 else $as_nop
9685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9686 /* end confdefs.h. */
9687 int i;
9688 _ACEOF
9689 if ac_fn_c_try_compile "$LINENO"
9690 then :
9691 xorg_cv_cc_flag_unused_command_line_argument=yes
9692 else $as_nop
9693 xorg_cv_cc_flag_unused_command_line_argument=no
9694 fi
9695 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9696 fi
9697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9698 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9699 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9700 CFLAGS="$xorg_testset_save_CFLAGS"
9701 fi
9702
9703 found="no"
9704
9705 if test $found = "no" ; then
9706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9707 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9708 fi
9709
9710 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9712 fi
9713
9714 CFLAGS="$CFLAGS -Wsequence-point"
9715
9716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9717 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9718 cacheid=xorg_cv_cc_flag__Wsequence_point
9719 if eval test \${$cacheid+y}
9720 then :
9721 printf %s "(cached) " >&6
9722 else $as_nop
9723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9724 /* end confdefs.h. */
9725 int i;
9726 int
9727 main (void)
9728 {
9729
9730 ;
9731 return 0;
9732 }
9733 _ACEOF
9734 if ac_fn_c_try_link "$LINENO"
9735 then :
9736 eval $cacheid=yes
9737 else $as_nop
9738 eval $cacheid=no
9739 fi
9740 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9741 conftest$ac_exeext conftest.$ac_ext
9742 fi
9743
9744
9745 CFLAGS="$xorg_testset_save_CFLAGS"
9746
9747 eval supported=\$$cacheid
9748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9749 printf "%s\n" "$supported" >&6; }
9750 if test "$supported" = "yes" ; then
9751 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9752 found="yes"
9753 fi
9754 fi
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770 xorg_testset_save_CFLAGS="$CFLAGS"
9771
9772 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9773 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9775 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9776 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9777 then :
9778 printf %s "(cached) " >&6
9779 else $as_nop
9780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9781 /* end confdefs.h. */
9782 int i;
9783 _ACEOF
9784 if ac_fn_c_try_compile "$LINENO"
9785 then :
9786 xorg_cv_cc_flag_unknown_warning_option=yes
9787 else $as_nop
9788 xorg_cv_cc_flag_unknown_warning_option=no
9789 fi
9790 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9791 fi
9792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9793 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9794 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9795 CFLAGS="$xorg_testset_save_CFLAGS"
9796 fi
9797
9798 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9800 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9801 fi
9802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9804 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9805 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9806 then :
9807 printf %s "(cached) " >&6
9808 else $as_nop
9809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9810 /* end confdefs.h. */
9811 int i;
9812 _ACEOF
9813 if ac_fn_c_try_compile "$LINENO"
9814 then :
9815 xorg_cv_cc_flag_unused_command_line_argument=yes
9816 else $as_nop
9817 xorg_cv_cc_flag_unused_command_line_argument=no
9818 fi
9819 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9820 fi
9821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9822 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9823 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9824 CFLAGS="$xorg_testset_save_CFLAGS"
9825 fi
9826
9827 found="no"
9828
9829 if test $found = "no" ; then
9830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9831 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9832 fi
9833
9834 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9836 fi
9837
9838 CFLAGS="$CFLAGS -Wreturn-type"
9839
9840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9841 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9842 cacheid=xorg_cv_cc_flag__Wreturn_type
9843 if eval test \${$cacheid+y}
9844 then :
9845 printf %s "(cached) " >&6
9846 else $as_nop
9847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9848 /* end confdefs.h. */
9849 int i;
9850 int
9851 main (void)
9852 {
9853
9854 ;
9855 return 0;
9856 }
9857 _ACEOF
9858 if ac_fn_c_try_link "$LINENO"
9859 then :
9860 eval $cacheid=yes
9861 else $as_nop
9862 eval $cacheid=no
9863 fi
9864 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9865 conftest$ac_exeext conftest.$ac_ext
9866 fi
9867
9868
9869 CFLAGS="$xorg_testset_save_CFLAGS"
9870
9871 eval supported=\$$cacheid
9872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9873 printf "%s\n" "$supported" >&6; }
9874 if test "$supported" = "yes" ; then
9875 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9876 found="yes"
9877 fi
9878 fi
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894 xorg_testset_save_CFLAGS="$CFLAGS"
9895
9896 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9897 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9899 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9900 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9901 then :
9902 printf %s "(cached) " >&6
9903 else $as_nop
9904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9905 /* end confdefs.h. */
9906 int i;
9907 _ACEOF
9908 if ac_fn_c_try_compile "$LINENO"
9909 then :
9910 xorg_cv_cc_flag_unknown_warning_option=yes
9911 else $as_nop
9912 xorg_cv_cc_flag_unknown_warning_option=no
9913 fi
9914 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9915 fi
9916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9917 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9918 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9919 CFLAGS="$xorg_testset_save_CFLAGS"
9920 fi
9921
9922 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9924 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9925 fi
9926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9928 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9929 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9930 then :
9931 printf %s "(cached) " >&6
9932 else $as_nop
9933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9934 /* end confdefs.h. */
9935 int i;
9936 _ACEOF
9937 if ac_fn_c_try_compile "$LINENO"
9938 then :
9939 xorg_cv_cc_flag_unused_command_line_argument=yes
9940 else $as_nop
9941 xorg_cv_cc_flag_unused_command_line_argument=no
9942 fi
9943 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9944 fi
9945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9946 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9947 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9948 CFLAGS="$xorg_testset_save_CFLAGS"
9949 fi
9950
9951 found="no"
9952
9953 if test $found = "no" ; then
9954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9956 fi
9957
9958 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9960 fi
9961
9962 CFLAGS="$CFLAGS -Wtrigraphs"
9963
9964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9965 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9966 cacheid=xorg_cv_cc_flag__Wtrigraphs
9967 if eval test \${$cacheid+y}
9968 then :
9969 printf %s "(cached) " >&6
9970 else $as_nop
9971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9972 /* end confdefs.h. */
9973 int i;
9974 int
9975 main (void)
9976 {
9977
9978 ;
9979 return 0;
9980 }
9981 _ACEOF
9982 if ac_fn_c_try_link "$LINENO"
9983 then :
9984 eval $cacheid=yes
9985 else $as_nop
9986 eval $cacheid=no
9987 fi
9988 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9989 conftest$ac_exeext conftest.$ac_ext
9990 fi
9991
9992
9993 CFLAGS="$xorg_testset_save_CFLAGS"
9994
9995 eval supported=\$$cacheid
9996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9997 printf "%s\n" "$supported" >&6; }
9998 if test "$supported" = "yes" ; then
9999 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10000 found="yes"
10001 fi
10002 fi
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018 xorg_testset_save_CFLAGS="$CFLAGS"
10019
10020 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10023 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10024 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10025 then :
10026 printf %s "(cached) " >&6
10027 else $as_nop
10028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10029 /* end confdefs.h. */
10030 int i;
10031 _ACEOF
10032 if ac_fn_c_try_compile "$LINENO"
10033 then :
10034 xorg_cv_cc_flag_unknown_warning_option=yes
10035 else $as_nop
10036 xorg_cv_cc_flag_unknown_warning_option=no
10037 fi
10038 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10039 fi
10040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10041 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10042 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10043 CFLAGS="$xorg_testset_save_CFLAGS"
10044 fi
10045
10046 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10048 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10049 fi
10050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10052 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10053 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10054 then :
10055 printf %s "(cached) " >&6
10056 else $as_nop
10057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10058 /* end confdefs.h. */
10059 int i;
10060 _ACEOF
10061 if ac_fn_c_try_compile "$LINENO"
10062 then :
10063 xorg_cv_cc_flag_unused_command_line_argument=yes
10064 else $as_nop
10065 xorg_cv_cc_flag_unused_command_line_argument=no
10066 fi
10067 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10068 fi
10069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10070 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10071 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10072 CFLAGS="$xorg_testset_save_CFLAGS"
10073 fi
10074
10075 found="no"
10076
10077 if test $found = "no" ; then
10078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10080 fi
10081
10082 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10084 fi
10085
10086 CFLAGS="$CFLAGS -Warray-bounds"
10087
10088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10089 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10090 cacheid=xorg_cv_cc_flag__Warray_bounds
10091 if eval test \${$cacheid+y}
10092 then :
10093 printf %s "(cached) " >&6
10094 else $as_nop
10095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10096 /* end confdefs.h. */
10097 int i;
10098 int
10099 main (void)
10100 {
10101
10102 ;
10103 return 0;
10104 }
10105 _ACEOF
10106 if ac_fn_c_try_link "$LINENO"
10107 then :
10108 eval $cacheid=yes
10109 else $as_nop
10110 eval $cacheid=no
10111 fi
10112 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10113 conftest$ac_exeext conftest.$ac_ext
10114 fi
10115
10116
10117 CFLAGS="$xorg_testset_save_CFLAGS"
10118
10119 eval supported=\$$cacheid
10120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10121 printf "%s\n" "$supported" >&6; }
10122 if test "$supported" = "yes" ; then
10123 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10124 found="yes"
10125 fi
10126 fi
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142 xorg_testset_save_CFLAGS="$CFLAGS"
10143
10144 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10147 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10148 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10149 then :
10150 printf %s "(cached) " >&6
10151 else $as_nop
10152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10153 /* end confdefs.h. */
10154 int i;
10155 _ACEOF
10156 if ac_fn_c_try_compile "$LINENO"
10157 then :
10158 xorg_cv_cc_flag_unknown_warning_option=yes
10159 else $as_nop
10160 xorg_cv_cc_flag_unknown_warning_option=no
10161 fi
10162 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10163 fi
10164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10165 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10166 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10167 CFLAGS="$xorg_testset_save_CFLAGS"
10168 fi
10169
10170 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10171 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10173 fi
10174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10176 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10177 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10178 then :
10179 printf %s "(cached) " >&6
10180 else $as_nop
10181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10182 /* end confdefs.h. */
10183 int i;
10184 _ACEOF
10185 if ac_fn_c_try_compile "$LINENO"
10186 then :
10187 xorg_cv_cc_flag_unused_command_line_argument=yes
10188 else $as_nop
10189 xorg_cv_cc_flag_unused_command_line_argument=no
10190 fi
10191 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10192 fi
10193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10194 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10196 CFLAGS="$xorg_testset_save_CFLAGS"
10197 fi
10198
10199 found="no"
10200
10201 if test $found = "no" ; then
10202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10204 fi
10205
10206 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10208 fi
10209
10210 CFLAGS="$CFLAGS -Wwrite-strings"
10211
10212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10213 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10214 cacheid=xorg_cv_cc_flag__Wwrite_strings
10215 if eval test \${$cacheid+y}
10216 then :
10217 printf %s "(cached) " >&6
10218 else $as_nop
10219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10220 /* end confdefs.h. */
10221 int i;
10222 int
10223 main (void)
10224 {
10225
10226 ;
10227 return 0;
10228 }
10229 _ACEOF
10230 if ac_fn_c_try_link "$LINENO"
10231 then :
10232 eval $cacheid=yes
10233 else $as_nop
10234 eval $cacheid=no
10235 fi
10236 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10237 conftest$ac_exeext conftest.$ac_ext
10238 fi
10239
10240
10241 CFLAGS="$xorg_testset_save_CFLAGS"
10242
10243 eval supported=\$$cacheid
10244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10245 printf "%s\n" "$supported" >&6; }
10246 if test "$supported" = "yes" ; then
10247 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10248 found="yes"
10249 fi
10250 fi
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266 xorg_testset_save_CFLAGS="$CFLAGS"
10267
10268 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10269 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10271 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10272 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10273 then :
10274 printf %s "(cached) " >&6
10275 else $as_nop
10276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10277 /* end confdefs.h. */
10278 int i;
10279 _ACEOF
10280 if ac_fn_c_try_compile "$LINENO"
10281 then :
10282 xorg_cv_cc_flag_unknown_warning_option=yes
10283 else $as_nop
10284 xorg_cv_cc_flag_unknown_warning_option=no
10285 fi
10286 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10287 fi
10288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10289 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10290 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10291 CFLAGS="$xorg_testset_save_CFLAGS"
10292 fi
10293
10294 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10297 fi
10298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10300 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10301 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10302 then :
10303 printf %s "(cached) " >&6
10304 else $as_nop
10305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10306 /* end confdefs.h. */
10307 int i;
10308 _ACEOF
10309 if ac_fn_c_try_compile "$LINENO"
10310 then :
10311 xorg_cv_cc_flag_unused_command_line_argument=yes
10312 else $as_nop
10313 xorg_cv_cc_flag_unused_command_line_argument=no
10314 fi
10315 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10316 fi
10317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10318 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10319 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10320 CFLAGS="$xorg_testset_save_CFLAGS"
10321 fi
10322
10323 found="no"
10324
10325 if test $found = "no" ; then
10326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10328 fi
10329
10330 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10332 fi
10333
10334 CFLAGS="$CFLAGS -Waddress"
10335
10336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10337 printf %s "checking if $CC supports -Waddress... " >&6; }
10338 cacheid=xorg_cv_cc_flag__Waddress
10339 if eval test \${$cacheid+y}
10340 then :
10341 printf %s "(cached) " >&6
10342 else $as_nop
10343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10344 /* end confdefs.h. */
10345 int i;
10346 int
10347 main (void)
10348 {
10349
10350 ;
10351 return 0;
10352 }
10353 _ACEOF
10354 if ac_fn_c_try_link "$LINENO"
10355 then :
10356 eval $cacheid=yes
10357 else $as_nop
10358 eval $cacheid=no
10359 fi
10360 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10361 conftest$ac_exeext conftest.$ac_ext
10362 fi
10363
10364
10365 CFLAGS="$xorg_testset_save_CFLAGS"
10366
10367 eval supported=\$$cacheid
10368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10369 printf "%s\n" "$supported" >&6; }
10370 if test "$supported" = "yes" ; then
10371 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10372 found="yes"
10373 fi
10374 fi
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390 xorg_testset_save_CFLAGS="$CFLAGS"
10391
10392 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10395 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10396 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10397 then :
10398 printf %s "(cached) " >&6
10399 else $as_nop
10400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10401 /* end confdefs.h. */
10402 int i;
10403 _ACEOF
10404 if ac_fn_c_try_compile "$LINENO"
10405 then :
10406 xorg_cv_cc_flag_unknown_warning_option=yes
10407 else $as_nop
10408 xorg_cv_cc_flag_unknown_warning_option=no
10409 fi
10410 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10411 fi
10412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10413 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10414 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10415 CFLAGS="$xorg_testset_save_CFLAGS"
10416 fi
10417
10418 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10421 fi
10422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10424 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10425 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10426 then :
10427 printf %s "(cached) " >&6
10428 else $as_nop
10429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430 /* end confdefs.h. */
10431 int i;
10432 _ACEOF
10433 if ac_fn_c_try_compile "$LINENO"
10434 then :
10435 xorg_cv_cc_flag_unused_command_line_argument=yes
10436 else $as_nop
10437 xorg_cv_cc_flag_unused_command_line_argument=no
10438 fi
10439 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10440 fi
10441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10442 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10443 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10444 CFLAGS="$xorg_testset_save_CFLAGS"
10445 fi
10446
10447 found="no"
10448
10449 if test $found = "no" ; then
10450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10452 fi
10453
10454 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10456 fi
10457
10458 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10459
10460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10461 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10462 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10463 if eval test \${$cacheid+y}
10464 then :
10465 printf %s "(cached) " >&6
10466 else $as_nop
10467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10468 /* end confdefs.h. */
10469 int i;
10470 int
10471 main (void)
10472 {
10473
10474 ;
10475 return 0;
10476 }
10477 _ACEOF
10478 if ac_fn_c_try_link "$LINENO"
10479 then :
10480 eval $cacheid=yes
10481 else $as_nop
10482 eval $cacheid=no
10483 fi
10484 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10485 conftest$ac_exeext conftest.$ac_ext
10486 fi
10487
10488
10489 CFLAGS="$xorg_testset_save_CFLAGS"
10490
10491 eval supported=\$$cacheid
10492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10493 printf "%s\n" "$supported" >&6; }
10494 if test "$supported" = "yes" ; then
10495 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10496 found="yes"
10497 fi
10498 fi
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514 xorg_testset_save_CFLAGS="$CFLAGS"
10515
10516 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10517 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10519 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10520 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10521 then :
10522 printf %s "(cached) " >&6
10523 else $as_nop
10524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10525 /* end confdefs.h. */
10526 int i;
10527 _ACEOF
10528 if ac_fn_c_try_compile "$LINENO"
10529 then :
10530 xorg_cv_cc_flag_unknown_warning_option=yes
10531 else $as_nop
10532 xorg_cv_cc_flag_unknown_warning_option=no
10533 fi
10534 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10535 fi
10536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10537 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10538 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10539 CFLAGS="$xorg_testset_save_CFLAGS"
10540 fi
10541
10542 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10545 fi
10546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10548 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10549 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10550 then :
10551 printf %s "(cached) " >&6
10552 else $as_nop
10553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10554 /* end confdefs.h. */
10555 int i;
10556 _ACEOF
10557 if ac_fn_c_try_compile "$LINENO"
10558 then :
10559 xorg_cv_cc_flag_unused_command_line_argument=yes
10560 else $as_nop
10561 xorg_cv_cc_flag_unused_command_line_argument=no
10562 fi
10563 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10564 fi
10565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10566 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10567 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10568 CFLAGS="$xorg_testset_save_CFLAGS"
10569 fi
10570
10571 found="no"
10572
10573 if test $found = "no" ; then
10574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10576 fi
10577
10578 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10580 fi
10581
10582 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10583
10584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10585 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10586 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10587 if eval test \${$cacheid+y}
10588 then :
10589 printf %s "(cached) " >&6
10590 else $as_nop
10591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10592 /* end confdefs.h. */
10593 int i;
10594 int
10595 main (void)
10596 {
10597
10598 ;
10599 return 0;
10600 }
10601 _ACEOF
10602 if ac_fn_c_try_link "$LINENO"
10603 then :
10604 eval $cacheid=yes
10605 else $as_nop
10606 eval $cacheid=no
10607 fi
10608 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10609 conftest$ac_exeext conftest.$ac_ext
10610 fi
10611
10612
10613 CFLAGS="$xorg_testset_save_CFLAGS"
10614
10615 eval supported=\$$cacheid
10616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10617 printf "%s\n" "$supported" >&6; }
10618 if test "$supported" = "yes" ; then
10619 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10620 found="yes"
10621 fi
10622 fi
10623
10624
10625 fi
10626
10627
10628
10629
10630
10631
10632
10633 CWARNFLAGS="$BASE_CFLAGS"
10634 if test "x$GCC" = xyes ; then
10635 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10636 fi
10637
10638
10639
10640
10641
10642
10643
10644
10645 # Check whether --enable-strict-compilation was given.
10646 if test ${enable_strict_compilation+y}
10647 then :
10648 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10649 else $as_nop
10650 STRICT_COMPILE=no
10651 fi
10652
10653
10654
10655
10656
10657
10658 STRICT_CFLAGS=""
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672 xorg_testset_save_CFLAGS="$CFLAGS"
10673
10674 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10677 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10678 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10679 then :
10680 printf %s "(cached) " >&6
10681 else $as_nop
10682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10683 /* end confdefs.h. */
10684 int i;
10685 _ACEOF
10686 if ac_fn_c_try_compile "$LINENO"
10687 then :
10688 xorg_cv_cc_flag_unknown_warning_option=yes
10689 else $as_nop
10690 xorg_cv_cc_flag_unknown_warning_option=no
10691 fi
10692 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10693 fi
10694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10695 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10696 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10697 CFLAGS="$xorg_testset_save_CFLAGS"
10698 fi
10699
10700 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10703 fi
10704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10706 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10707 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10708 then :
10709 printf %s "(cached) " >&6
10710 else $as_nop
10711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712 /* end confdefs.h. */
10713 int i;
10714 _ACEOF
10715 if ac_fn_c_try_compile "$LINENO"
10716 then :
10717 xorg_cv_cc_flag_unused_command_line_argument=yes
10718 else $as_nop
10719 xorg_cv_cc_flag_unused_command_line_argument=no
10720 fi
10721 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10722 fi
10723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10724 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10725 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10726 CFLAGS="$xorg_testset_save_CFLAGS"
10727 fi
10728
10729 found="no"
10730
10731 if test $found = "no" ; then
10732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10733 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10734 fi
10735
10736 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10738 fi
10739
10740 CFLAGS="$CFLAGS -pedantic"
10741
10742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10743 printf %s "checking if $CC supports -pedantic... " >&6; }
10744 cacheid=xorg_cv_cc_flag__pedantic
10745 if eval test \${$cacheid+y}
10746 then :
10747 printf %s "(cached) " >&6
10748 else $as_nop
10749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10750 /* end confdefs.h. */
10751 int i;
10752 int
10753 main (void)
10754 {
10755
10756 ;
10757 return 0;
10758 }
10759 _ACEOF
10760 if ac_fn_c_try_link "$LINENO"
10761 then :
10762 eval $cacheid=yes
10763 else $as_nop
10764 eval $cacheid=no
10765 fi
10766 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10767 conftest$ac_exeext conftest.$ac_ext
10768 fi
10769
10770
10771 CFLAGS="$xorg_testset_save_CFLAGS"
10772
10773 eval supported=\$$cacheid
10774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10775 printf "%s\n" "$supported" >&6; }
10776 if test "$supported" = "yes" ; then
10777 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10778 found="yes"
10779 fi
10780 fi
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796 xorg_testset_save_CFLAGS="$CFLAGS"
10797
10798 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10801 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10802 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10803 then :
10804 printf %s "(cached) " >&6
10805 else $as_nop
10806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10807 /* end confdefs.h. */
10808 int i;
10809 _ACEOF
10810 if ac_fn_c_try_compile "$LINENO"
10811 then :
10812 xorg_cv_cc_flag_unknown_warning_option=yes
10813 else $as_nop
10814 xorg_cv_cc_flag_unknown_warning_option=no
10815 fi
10816 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10817 fi
10818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10819 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10820 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10821 CFLAGS="$xorg_testset_save_CFLAGS"
10822 fi
10823
10824 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10826 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10827 fi
10828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10830 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10831 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10832 then :
10833 printf %s "(cached) " >&6
10834 else $as_nop
10835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10836 /* end confdefs.h. */
10837 int i;
10838 _ACEOF
10839 if ac_fn_c_try_compile "$LINENO"
10840 then :
10841 xorg_cv_cc_flag_unused_command_line_argument=yes
10842 else $as_nop
10843 xorg_cv_cc_flag_unused_command_line_argument=no
10844 fi
10845 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10846 fi
10847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10848 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10849 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10850 CFLAGS="$xorg_testset_save_CFLAGS"
10851 fi
10852
10853 found="no"
10854
10855 if test $found = "no" ; then
10856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10858 fi
10859
10860 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10862 fi
10863
10864 CFLAGS="$CFLAGS -Werror"
10865
10866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10867 printf %s "checking if $CC supports -Werror... " >&6; }
10868 cacheid=xorg_cv_cc_flag__Werror
10869 if eval test \${$cacheid+y}
10870 then :
10871 printf %s "(cached) " >&6
10872 else $as_nop
10873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10874 /* end confdefs.h. */
10875 int i;
10876 int
10877 main (void)
10878 {
10879
10880 ;
10881 return 0;
10882 }
10883 _ACEOF
10884 if ac_fn_c_try_link "$LINENO"
10885 then :
10886 eval $cacheid=yes
10887 else $as_nop
10888 eval $cacheid=no
10889 fi
10890 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10891 conftest$ac_exeext conftest.$ac_ext
10892 fi
10893
10894
10895 CFLAGS="$xorg_testset_save_CFLAGS"
10896
10897 eval supported=\$$cacheid
10898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10899 printf "%s\n" "$supported" >&6; }
10900 if test "$supported" = "yes" ; then
10901 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10902 found="yes"
10903 fi
10904 fi
10905
10906 if test $found = "no" ; then
10907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10909 fi
10910
10911 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10913 fi
10914
10915 CFLAGS="$CFLAGS -errwarn"
10916
10917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10918 printf %s "checking if $CC supports -errwarn... " >&6; }
10919 cacheid=xorg_cv_cc_flag__errwarn
10920 if eval test \${$cacheid+y}
10921 then :
10922 printf %s "(cached) " >&6
10923 else $as_nop
10924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10925 /* end confdefs.h. */
10926 int i;
10927 int
10928 main (void)
10929 {
10930
10931 ;
10932 return 0;
10933 }
10934 _ACEOF
10935 if ac_fn_c_try_link "$LINENO"
10936 then :
10937 eval $cacheid=yes
10938 else $as_nop
10939 eval $cacheid=no
10940 fi
10941 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10942 conftest$ac_exeext conftest.$ac_ext
10943 fi
10944
10945
10946 CFLAGS="$xorg_testset_save_CFLAGS"
10947
10948 eval supported=\$$cacheid
10949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10950 printf "%s\n" "$supported" >&6; }
10951 if test "$supported" = "yes" ; then
10952 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10953 found="yes"
10954 fi
10955 fi
10956
10957
10958
10959 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10960 # activate it with -Werror, so we add it here explicitly.
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974 xorg_testset_save_CFLAGS="$CFLAGS"
10975
10976 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10979 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10980 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10981 then :
10982 printf %s "(cached) " >&6
10983 else $as_nop
10984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10985 /* end confdefs.h. */
10986 int i;
10987 _ACEOF
10988 if ac_fn_c_try_compile "$LINENO"
10989 then :
10990 xorg_cv_cc_flag_unknown_warning_option=yes
10991 else $as_nop
10992 xorg_cv_cc_flag_unknown_warning_option=no
10993 fi
10994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10995 fi
10996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10997 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10998 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10999 CFLAGS="$xorg_testset_save_CFLAGS"
11000 fi
11001
11002 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11005 fi
11006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11008 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11009 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11010 then :
11011 printf %s "(cached) " >&6
11012 else $as_nop
11013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11014 /* end confdefs.h. */
11015 int i;
11016 _ACEOF
11017 if ac_fn_c_try_compile "$LINENO"
11018 then :
11019 xorg_cv_cc_flag_unused_command_line_argument=yes
11020 else $as_nop
11021 xorg_cv_cc_flag_unused_command_line_argument=no
11022 fi
11023 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11024 fi
11025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11026 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11027 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11028 CFLAGS="$xorg_testset_save_CFLAGS"
11029 fi
11030
11031 found="no"
11032
11033 if test $found = "no" ; then
11034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11036 fi
11037
11038 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11040 fi
11041
11042 CFLAGS="$CFLAGS -Werror=attributes"
11043
11044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11045 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11046 cacheid=xorg_cv_cc_flag__Werror_attributes
11047 if eval test \${$cacheid+y}
11048 then :
11049 printf %s "(cached) " >&6
11050 else $as_nop
11051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11052 /* end confdefs.h. */
11053 int i;
11054 int
11055 main (void)
11056 {
11057
11058 ;
11059 return 0;
11060 }
11061 _ACEOF
11062 if ac_fn_c_try_link "$LINENO"
11063 then :
11064 eval $cacheid=yes
11065 else $as_nop
11066 eval $cacheid=no
11067 fi
11068 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11069 conftest$ac_exeext conftest.$ac_ext
11070 fi
11071
11072
11073 CFLAGS="$xorg_testset_save_CFLAGS"
11074
11075 eval supported=\$$cacheid
11076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11077 printf "%s\n" "$supported" >&6; }
11078 if test "$supported" = "yes" ; then
11079 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11080 found="yes"
11081 fi
11082 fi
11083
11084
11085
11086 if test "x$STRICT_COMPILE" = "xyes"; then
11087 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11088 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11089 fi
11090
11091
11092
11093
11094
11095
11096 cat >>confdefs.h <<_ACEOF
11097 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11098 _ACEOF
11099
11100 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11101 if test "x$PVM" = "x"; then
11102 PVM="0"
11103 fi
11104
11105 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11106
11107 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11108 if test "x$PVP" = "x"; then
11109 PVP="0"
11110 fi
11111
11112 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11113
11114
11115
11116 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11117 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11118 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11119 touch \$(top_srcdir)/ChangeLog; \
11120 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11121
11122
11123
11124
11125 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11126 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11127 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11128 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11129 touch \$(top_srcdir)/INSTALL; \
11130 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11131
11132
11133
11134
11135
11136
11137 case $host_os in
11138 solaris*)
11139 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11140 # check for a man page file found in later versions that use
11141 # traditional section numbers instead
11142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11143 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11144 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11145 then :
11146 printf %s "(cached) " >&6
11147 else $as_nop
11148 test "$cross_compiling" = yes &&
11149 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11150 if test -r "/usr/share/man/man7/attributes.7"; then
11151 ac_cv_file__usr_share_man_man7_attributes_7=yes
11152 else
11153 ac_cv_file__usr_share_man_man7_attributes_7=no
11154 fi
11155 fi
11156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11157 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11158 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11159 then :
11160 SYSV_MAN_SECTIONS=false
11161 else $as_nop
11162 SYSV_MAN_SECTIONS=true
11163 fi
11164
11165 ;;
11166 *) SYSV_MAN_SECTIONS=false ;;
11167 esac
11168
11169 if test x$APP_MAN_SUFFIX = x ; then
11170 APP_MAN_SUFFIX=1
11171 fi
11172 if test x$APP_MAN_DIR = x ; then
11173 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11174 fi
11175
11176 if test x$LIB_MAN_SUFFIX = x ; then
11177 LIB_MAN_SUFFIX=3
11178 fi
11179 if test x$LIB_MAN_DIR = x ; then
11180 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11181 fi
11182
11183 if test x$FILE_MAN_SUFFIX = x ; then
11184 case $SYSV_MAN_SECTIONS in
11185 true) FILE_MAN_SUFFIX=4 ;;
11186 *) FILE_MAN_SUFFIX=5 ;;
11187 esac
11188 fi
11189 if test x$FILE_MAN_DIR = x ; then
11190 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11191 fi
11192
11193 if test x$MISC_MAN_SUFFIX = x ; then
11194 case $SYSV_MAN_SECTIONS in
11195 true) MISC_MAN_SUFFIX=5 ;;
11196 *) MISC_MAN_SUFFIX=7 ;;
11197 esac
11198 fi
11199 if test x$MISC_MAN_DIR = x ; then
11200 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11201 fi
11202
11203 if test x$DRIVER_MAN_SUFFIX = x ; then
11204 case $SYSV_MAN_SECTIONS in
11205 true) DRIVER_MAN_SUFFIX=7 ;;
11206 *) DRIVER_MAN_SUFFIX=4 ;;
11207 esac
11208 fi
11209 if test x$DRIVER_MAN_DIR = x ; then
11210 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11211 fi
11212
11213 if test x$ADMIN_MAN_SUFFIX = x ; then
11214 case $SYSV_MAN_SECTIONS in
11215 true) ADMIN_MAN_SUFFIX=1m ;;
11216 *) ADMIN_MAN_SUFFIX=8 ;;
11217 esac
11218 fi
11219 if test x$ADMIN_MAN_DIR = x ; then
11220 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11221 fi
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237 XORG_MAN_PAGE="X Version 11"
11238
11239 MAN_SUBSTS="\
11240 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11241 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11242 -e 's|__xservername__|Xorg|g' \
11243 -e 's|__xconfigfile__|xorg.conf|g' \
11244 -e 's|__projectroot__|\$(prefix)|g' \
11245 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11246 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11247 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11248 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11249 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11250 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11251 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11252
11253
11254
11255 # Check whether --enable-silent-rules was given.
11256 if test ${enable_silent_rules+y}
11257 then :
11258 enableval=$enable_silent_rules;
11259 fi
11260
11261 case $enable_silent_rules in # (((
11262 yes) AM_DEFAULT_VERBOSITY=0;;
11263 no) AM_DEFAULT_VERBOSITY=1;;
11264 *) AM_DEFAULT_VERBOSITY=0;;
11265 esac
11266 am_make=${MAKE-make}
11267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11268 printf %s "checking whether $am_make supports nested variables... " >&6; }
11269 if test ${am_cv_make_support_nested_variables+y}
11270 then :
11271 printf %s "(cached) " >&6
11272 else $as_nop
11273 if printf "%s\n" 'TRUE=$(BAR$(V))
11274 BAR0=false
11275 BAR1=true
11276 V=1
11277 am__doit:
11278 @$(TRUE)
11279 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11280 am_cv_make_support_nested_variables=yes
11281 else
11282 am_cv_make_support_nested_variables=no
11283 fi
11284 fi
11285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11286 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11287 if test $am_cv_make_support_nested_variables = yes; then
11288 AM_V='$(V)'
11289 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11290 else
11291 AM_V=$AM_DEFAULT_VERBOSITY
11292 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11293 fi
11294 AM_BACKSLASH='\'
11295
11296
11297
11298 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
11299 if test "x$ac_cv_func_asprintf" = xyes
11300 then :
11301 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
11302
11303 fi
11304
11305
11306 # Checks for pkg-config packages
11307
11308 pkg_failed=no
11309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XKBPRINT" >&5
11310 printf %s "checking for XKBPRINT... " >&6; }
11311
11312 if test -n "$XKBPRINT_CFLAGS"; then
11313 pkg_cv_XKBPRINT_CFLAGS="$XKBPRINT_CFLAGS"
11314 elif test -n "$PKG_CONFIG"; then
11315 if test -n "$PKG_CONFIG" && \
11316 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11 xproto >= 7.0.17\""; } >&5
11317 ($PKG_CONFIG --exists --print-errors "xkbfile x11 xproto >= 7.0.17") 2>&5
11318 ac_status=$?
11319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11320 test $ac_status = 0; }; then
11321 pkg_cv_XKBPRINT_CFLAGS=`$PKG_CONFIG --cflags "xkbfile x11 xproto >= 7.0.17" 2>/dev/null`
11322 test "x$?" != "x0" && pkg_failed=yes
11323 else
11324 pkg_failed=yes
11325 fi
11326 else
11327 pkg_failed=untried
11328 fi
11329 if test -n "$XKBPRINT_LIBS"; then
11330 pkg_cv_XKBPRINT_LIBS="$XKBPRINT_LIBS"
11331 elif test -n "$PKG_CONFIG"; then
11332 if test -n "$PKG_CONFIG" && \
11333 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11 xproto >= 7.0.17\""; } >&5
11334 ($PKG_CONFIG --exists --print-errors "xkbfile x11 xproto >= 7.0.17") 2>&5
11335 ac_status=$?
11336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11337 test $ac_status = 0; }; then
11338 pkg_cv_XKBPRINT_LIBS=`$PKG_CONFIG --libs "xkbfile x11 xproto >= 7.0.17" 2>/dev/null`
11339 test "x$?" != "x0" && pkg_failed=yes
11340 else
11341 pkg_failed=yes
11342 fi
11343 else
11344 pkg_failed=untried
11345 fi
11346
11347
11348
11349 if test $pkg_failed = yes; then
11350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11351 printf "%s\n" "no" >&6; }
11352
11353 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11354 _pkg_short_errors_supported=yes
11355 else
11356 _pkg_short_errors_supported=no
11357 fi
11358 if test $_pkg_short_errors_supported = yes; then
11359 XKBPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xkbfile x11 xproto >= 7.0.17" 2>&1`
11360 else
11361 XKBPRINT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xkbfile x11 xproto >= 7.0.17" 2>&1`
11362 fi
11363 # Put the nasty error message in config.log where it belongs
11364 echo "$XKBPRINT_PKG_ERRORS" >&5
11365
11366 as_fn_error $? "Package requirements (xkbfile x11 xproto >= 7.0.17) were not met:
11367
11368 $XKBPRINT_PKG_ERRORS
11369
11370 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11371 installed software in a non-standard prefix.
11372
11373 Alternatively, you may set the environment variables XKBPRINT_CFLAGS
11374 and XKBPRINT_LIBS to avoid the need to call pkg-config.
11375 See the pkg-config man page for more details." "$LINENO" 5
11376 elif test $pkg_failed = untried; then
11377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11378 printf "%s\n" "no" >&6; }
11379 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11380 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11381 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11382 is in your PATH or set the PKG_CONFIG environment variable to the full
11383 path to pkg-config.
11384
11385 Alternatively, you may set the environment variables XKBPRINT_CFLAGS
11386 and XKBPRINT_LIBS to avoid the need to call pkg-config.
11387 See the pkg-config man page for more details.
11388
11389 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11390 See \`config.log' for more details" "$LINENO" 5; }
11391 else
11392 XKBPRINT_CFLAGS=$pkg_cv_XKBPRINT_CFLAGS
11393 XKBPRINT_LIBS=$pkg_cv_XKBPRINT_LIBS
11394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11395 printf "%s\n" "yes" >&6; }
11396
11397 fi
11398
11399 ac_config_files="$ac_config_files Makefile man/Makefile"
11400
11401 cat >confcache <<\_ACEOF
11402 # This file is a shell script that caches the results of configure
11403 # tests run on this system so they can be shared between configure
11404 # scripts and configure runs, see configure's option --config-cache.
11405 # It is not useful on other systems. If it contains results you don't
11406 # want to keep, you may remove or edit it.
11407 #
11408 # config.status only pays attention to the cache file if you give it
11409 # the --recheck option to rerun configure.
11410 #
11411 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11412 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11413 # following values.
11414
11415 _ACEOF
11416
11417 # The following way of writing the cache mishandles newlines in values,
11418 # but we know of no workaround that is simple, portable, and efficient.
11419 # So, we kill variables containing newlines.
11420 # Ultrix sh set writes to stderr and can't be redirected directly,
11421 # and sets the high bit in the cache file unless we assign to the vars.
11422 (
11423 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11424 eval ac_val=\$$ac_var
11425 case $ac_val in #(
11426 *${as_nl}*)
11427 case $ac_var in #(
11428 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11429 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11430 esac
11431 case $ac_var in #(
11432 _ | IFS | as_nl) ;; #(
11433 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11434 *) { eval $ac_var=; unset $ac_var;} ;;
11435 esac ;;
11436 esac
11437 done
11438
11439 (set) 2>&1 |
11440 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11441 *${as_nl}ac_space=\ *)
11442 # `set' does not quote correctly, so add quotes: double-quote
11443 # substitution turns \\\\ into \\, and sed turns \\ into \.
11444 sed -n \
11445 "s/'/'\\\\''/g;
11446 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11447 ;; #(
11448 *)
11449 # `set' quotes correctly as required by POSIX, so do not add quotes.
11450 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11451 ;;
11452 esac |
11453 sort
11454 ) |
11455 sed '
11456 /^ac_cv_env_/b end
11457 t clear
11458 :clear
11459 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11460 t end
11461 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11462 :end' >>confcache
11463 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11464 if test -w "$cache_file"; then
11465 if test "x$cache_file" != "x/dev/null"; then
11466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11467 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11468 if test ! -f "$cache_file" || test -h "$cache_file"; then
11469 cat confcache >"$cache_file"
11470 else
11471 case $cache_file in #(
11472 */* | ?:*)
11473 mv -f confcache "$cache_file"$$ &&
11474 mv -f "$cache_file"$$ "$cache_file" ;; #(
11475 *)
11476 mv -f confcache "$cache_file" ;;
11477 esac
11478 fi
11479 fi
11480 else
11481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11482 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11483 fi
11484 fi
11485 rm -f confcache
11486
11487 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11488 # Let make expand exec_prefix.
11489 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11490
11491 DEFS=-DHAVE_CONFIG_H
11492
11493 ac_libobjs=
11494 ac_ltlibobjs=
11495 U=
11496 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11497 # 1. Remove the extension, and $U if already installed.
11498 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11499 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11500 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11501 # will be set to the directory where LIBOBJS objects are built.
11502 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11503 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11504 done
11505 LIBOBJS=$ac_libobjs
11506
11507 LTLIBOBJS=$ac_ltlibobjs
11508
11509
11510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11511 printf %s "checking that generated files are newer than configure... " >&6; }
11512 if test -n "$am_sleep_pid"; then
11513 # Hide warnings about reused PIDs.
11514 wait $am_sleep_pid 2>/dev/null
11515 fi
11516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11517 printf "%s\n" "done" >&6; }
11518 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11519 as_fn_error $? "conditional \"AMDEP\" was never defined.
11520 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11521 fi
11522 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11523 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11524 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11525 fi
11526 if test -n "$EXEEXT"; then
11527 am__EXEEXT_TRUE=
11528 am__EXEEXT_FALSE='#'
11529 else
11530 am__EXEEXT_TRUE='#'
11531 am__EXEEXT_FALSE=
11532 fi
11533
11534
11535 : "${CONFIG_STATUS=./config.status}"
11536 ac_write_fail=0
11537 ac_clean_files_save=$ac_clean_files
11538 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11540 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11541 as_write_fail=0
11542 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11543 #! $SHELL
11544 # Generated by $as_me.
11545 # Run this file to recreate the current configuration.
11546 # Compiler output produced by configure, useful for debugging
11547 # configure, is in config.log if it exists.
11548
11549 debug=false
11550 ac_cs_recheck=false
11551 ac_cs_silent=false
11552
11553 SHELL=\${CONFIG_SHELL-$SHELL}
11554 export SHELL
11555 _ASEOF
11556 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11557 ## -------------------- ##
11558 ## M4sh Initialization. ##
11559 ## -------------------- ##
11560
11561 # Be more Bourne compatible
11562 DUALCASE=1; export DUALCASE # for MKS sh
11563 as_nop=:
11564 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11565 then :
11566 emulate sh
11567 NULLCMD=:
11568 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11569 # is contrary to our usage. Disable this feature.
11570 alias -g '${1+"$@"}'='"$@"'
11571 setopt NO_GLOB_SUBST
11572 else $as_nop
11573 case `(set -o) 2>/dev/null` in #(
11574 *posix*) :
11575 set -o posix ;; #(
11576 *) :
11577 ;;
11578 esac
11579 fi
11580
11581
11582
11583 # Reset variables that may have inherited troublesome values from
11584 # the environment.
11585
11586 # IFS needs to be set, to space, tab, and newline, in precisely that order.
11587 # (If _AS_PATH_WALK were called with IFS unset, it would have the
11588 # side effect of setting IFS to empty, thus disabling word splitting.)
11589 # Quoting is to prevent editors from complaining about space-tab.
11590 as_nl='
11591 '
11592 export as_nl
11593 IFS=" "" $as_nl"
11594
11595 PS1='$ '
11596 PS2='> '
11597 PS4='+ '
11598
11599 # Ensure predictable behavior from utilities with locale-dependent output.
11600 LC_ALL=C
11601 export LC_ALL
11602 LANGUAGE=C
11603 export LANGUAGE
11604
11605 # We cannot yet rely on "unset" to work, but we need these variables
11606 # to be unset--not just set to an empty or harmless value--now, to
11607 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
11608 # also avoids known problems related to "unset" and subshell syntax
11609 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11610 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11611 do eval test \${$as_var+y} \
11612 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11613 done
11614
11615 # Ensure that fds 0, 1, and 2 are open.
11616 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11617 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11618 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
11619
11620 # The user is always right.
11621 if ${PATH_SEPARATOR+false} :; then
11622 PATH_SEPARATOR=:
11623 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11624 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11625 PATH_SEPARATOR=';'
11626 }
11627 fi
11628
11629
11630 # Find who we are. Look in the path if we contain no directory separator.
11631 as_myself=
11632 case $0 in #((
11633 *[\\/]* ) as_myself=$0 ;;
11634 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11635 for as_dir in $PATH
11636 do
11637 IFS=$as_save_IFS
11638 case $as_dir in #(((
11639 '') as_dir=./ ;;
11640 */) ;;
11641 *) as_dir=$as_dir/ ;;
11642 esac
11643 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11644 done
11645 IFS=$as_save_IFS
11646
11647 ;;
11648 esac
11649 # We did not find ourselves, most probably we were run as `sh COMMAND'
11650 # in which case we are not to be found in the path.
11651 if test "x$as_myself" = x; then
11652 as_myself=$0
11653 fi
11654 if test ! -f "$as_myself"; then
11655 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11656 exit 1
11657 fi
11658
11659
11660
11661 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11662 # ----------------------------------------
11663 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11664 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11665 # script with STATUS, using 1 if that was 0.
11666 as_fn_error ()
11667 {
11668 as_status=$1; test $as_status -eq 0 && as_status=1
11669 if test "$4"; then
11670 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11672 fi
11673 printf "%s\n" "$as_me: error: $2" >&2
11674 as_fn_exit $as_status
11675 } # as_fn_error
11676
11677
11678
11679 # as_fn_set_status STATUS
11680 # -----------------------
11681 # Set $? to STATUS, without forking.
11682 as_fn_set_status ()
11683 {
11684 return $1
11685 } # as_fn_set_status
11686
11687 # as_fn_exit STATUS
11688 # -----------------
11689 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11690 as_fn_exit ()
11691 {
11692 set +e
11693 as_fn_set_status $1
11694 exit $1
11695 } # as_fn_exit
11696
11697 # as_fn_unset VAR
11698 # ---------------
11699 # Portably unset VAR.
11700 as_fn_unset ()
11701 {
11702 { eval $1=; unset $1;}
11703 }
11704 as_unset=as_fn_unset
11705
11706 # as_fn_append VAR VALUE
11707 # ----------------------
11708 # Append the text in VALUE to the end of the definition contained in VAR. Take
11709 # advantage of any shell optimizations that allow amortized linear growth over
11710 # repeated appends, instead of the typical quadratic growth present in naive
11711 # implementations.
11712 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11713 then :
11714 eval 'as_fn_append ()
11715 {
11716 eval $1+=\$2
11717 }'
11718 else $as_nop
11719 as_fn_append ()
11720 {
11721 eval $1=\$$1\$2
11722 }
11723 fi # as_fn_append
11724
11725 # as_fn_arith ARG...
11726 # ------------------
11727 # Perform arithmetic evaluation on the ARGs, and store the result in the
11728 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11729 # must be portable across $(()) and expr.
11730 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11731 then :
11732 eval 'as_fn_arith ()
11733 {
11734 as_val=$(( $* ))
11735 }'
11736 else $as_nop
11737 as_fn_arith ()
11738 {
11739 as_val=`expr "$@" || test $? -eq 1`
11740 }
11741 fi # as_fn_arith
11742
11743
11744 if expr a : '\(a\)' >/dev/null 2>&1 &&
11745 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11746 as_expr=expr
11747 else
11748 as_expr=false
11749 fi
11750
11751 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11752 as_basename=basename
11753 else
11754 as_basename=false
11755 fi
11756
11757 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11758 as_dirname=dirname
11759 else
11760 as_dirname=false
11761 fi
11762
11763 as_me=`$as_basename -- "$0" ||
11764 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11765 X"$0" : 'X\(//\)$' \| \
11766 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11767 printf "%s\n" X/"$0" |
11768 sed '/^.*\/\([^/][^/]*\)\/*$/{
11769 s//\1/
11770 q
11771 }
11772 /^X\/\(\/\/\)$/{
11773 s//\1/
11774 q
11775 }
11776 /^X\/\(\/\).*/{
11777 s//\1/
11778 q
11779 }
11780 s/.*/./; q'`
11781
11782 # Avoid depending upon Character Ranges.
11783 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11784 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11785 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11786 as_cr_digits='0123456789'
11787 as_cr_alnum=$as_cr_Letters$as_cr_digits
11788
11789
11790 # Determine whether it's possible to make 'echo' print without a newline.
11791 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11792 # for compatibility with existing Makefiles.
11793 ECHO_C= ECHO_N= ECHO_T=
11794 case `echo -n x` in #(((((
11795 -n*)
11796 case `echo 'xy\c'` in
11797 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11798 xy) ECHO_C='\c';;
11799 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11800 ECHO_T=' ';;
11801 esac;;
11802 *)
11803 ECHO_N='-n';;
11804 esac
11805
11806 # For backward compatibility with old third-party macros, we provide
11807 # the shell variables $as_echo and $as_echo_n. New code should use
11808 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11809 as_echo='printf %s\n'
11810 as_echo_n='printf %s'
11811
11812 rm -f conf$$ conf$$.exe conf$$.file
11813 if test -d conf$$.dir; then
11814 rm -f conf$$.dir/conf$$.file
11815 else
11816 rm -f conf$$.dir
11817 mkdir conf$$.dir 2>/dev/null
11818 fi
11819 if (echo >conf$$.file) 2>/dev/null; then
11820 if ln -s conf$$.file conf$$ 2>/dev/null; then
11821 as_ln_s='ln -s'
11822 # ... but there are two gotchas:
11823 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11824 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11825 # In both cases, we have to default to `cp -pR'.
11826 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11827 as_ln_s='cp -pR'
11828 elif ln conf$$.file conf$$ 2>/dev/null; then
11829 as_ln_s=ln
11830 else
11831 as_ln_s='cp -pR'
11832 fi
11833 else
11834 as_ln_s='cp -pR'
11835 fi
11836 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11837 rmdir conf$$.dir 2>/dev/null
11838
11839
11840 # as_fn_mkdir_p
11841 # -------------
11842 # Create "$as_dir" as a directory, including parents if necessary.
11843 as_fn_mkdir_p ()
11844 {
11845
11846 case $as_dir in #(
11847 -*) as_dir=./$as_dir;;
11848 esac
11849 test -d "$as_dir" || eval $as_mkdir_p || {
11850 as_dirs=
11851 while :; do
11852 case $as_dir in #(
11853 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11854 *) as_qdir=$as_dir;;
11855 esac
11856 as_dirs="'$as_qdir' $as_dirs"
11857 as_dir=`$as_dirname -- "$as_dir" ||
11858 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11859 X"$as_dir" : 'X\(//\)[^/]' \| \
11860 X"$as_dir" : 'X\(//\)$' \| \
11861 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11862 printf "%s\n" X"$as_dir" |
11863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11864 s//\1/
11865 q
11866 }
11867 /^X\(\/\/\)[^/].*/{
11868 s//\1/
11869 q
11870 }
11871 /^X\(\/\/\)$/{
11872 s//\1/
11873 q
11874 }
11875 /^X\(\/\).*/{
11876 s//\1/
11877 q
11878 }
11879 s/.*/./; q'`
11880 test -d "$as_dir" && break
11881 done
11882 test -z "$as_dirs" || eval "mkdir $as_dirs"
11883 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11884
11885
11886 } # as_fn_mkdir_p
11887 if mkdir -p . 2>/dev/null; then
11888 as_mkdir_p='mkdir -p "$as_dir"'
11889 else
11890 test -d ./-p && rmdir ./-p
11891 as_mkdir_p=false
11892 fi
11893
11894
11895 # as_fn_executable_p FILE
11896 # -----------------------
11897 # Test if FILE is an executable regular file.
11898 as_fn_executable_p ()
11899 {
11900 test -f "$1" && test -x "$1"
11901 } # as_fn_executable_p
11902 as_test_x='test -x'
11903 as_executable_p=as_fn_executable_p
11904
11905 # Sed expression to map a string onto a valid CPP name.
11906 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11907
11908 # Sed expression to map a string onto a valid variable name.
11909 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11910
11911
11912 exec 6>&1
11913 ## ----------------------------------- ##
11914 ## Main body of $CONFIG_STATUS script. ##
11915 ## ----------------------------------- ##
11916 _ASEOF
11917 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11918
11919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11920 # Save the log message, to keep $0 and so on meaningful, and to
11921 # report actual input values of CONFIG_FILES etc. instead of their
11922 # values after options handling.
11923 ac_log="
11924 This file was extended by xkbprint $as_me 1.0.6, which was
11925 generated by GNU Autoconf 2.71. Invocation command line was
11926
11927 CONFIG_FILES = $CONFIG_FILES
11928 CONFIG_HEADERS = $CONFIG_HEADERS
11929 CONFIG_LINKS = $CONFIG_LINKS
11930 CONFIG_COMMANDS = $CONFIG_COMMANDS
11931 $ $0 $@
11932
11933 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11934 "
11935
11936 _ACEOF
11937
11938 case $ac_config_files in *"
11939 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11940 esac
11941
11942 case $ac_config_headers in *"
11943 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11944 esac
11945
11946
11947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11948 # Files that config.status was made for.
11949 config_files="$ac_config_files"
11950 config_headers="$ac_config_headers"
11951 config_commands="$ac_config_commands"
11952
11953 _ACEOF
11954
11955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11956 ac_cs_usage="\
11957 \`$as_me' instantiates files and other configuration actions
11958 from templates according to the current configuration. Unless the files
11959 and actions are specified as TAGs, all are instantiated by default.
11960
11961 Usage: $0 [OPTION]... [TAG]...
11962
11963 -h, --help print this help, then exit
11964 -V, --version print version number and configuration settings, then exit
11965 --config print configuration, then exit
11966 -q, --quiet, --silent
11967 do not print progress messages
11968 -d, --debug don't remove temporary files
11969 --recheck update $as_me by reconfiguring in the same conditions
11970 --file=FILE[:TEMPLATE]
11971 instantiate the configuration file FILE
11972 --header=FILE[:TEMPLATE]
11973 instantiate the configuration header FILE
11974
11975 Configuration files:
11976 $config_files
11977
11978 Configuration headers:
11979 $config_headers
11980
11981 Configuration commands:
11982 $config_commands
11983
11984 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbprint/-/issues>."
11985
11986 _ACEOF
11987 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
11988 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
11989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11990 ac_cs_config='$ac_cs_config_escaped'
11991 ac_cs_version="\\
11992 xkbprint config.status 1.0.6
11993 configured by $0, generated by GNU Autoconf 2.71,
11994 with options \\"\$ac_cs_config\\"
11995
11996 Copyright (C) 2021 Free Software Foundation, Inc.
11997 This config.status script is free software; the Free Software Foundation
11998 gives unlimited permission to copy, distribute and modify it."
11999
12000 ac_pwd='$ac_pwd'
12001 srcdir='$srcdir'
12002 INSTALL='$INSTALL'
12003 MKDIR_P='$MKDIR_P'
12004 AWK='$AWK'
12005 test -n "\$AWK" || AWK=awk
12006 _ACEOF
12007
12008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12009 # The default lists apply if the user does not specify any file.
12010 ac_need_defaults=:
12011 while test $# != 0
12012 do
12013 case $1 in
12014 --*=?*)
12015 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12016 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12017 ac_shift=:
12018 ;;
12019 --*=)
12020 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12021 ac_optarg=
12022 ac_shift=:
12023 ;;
12024 *)
12025 ac_option=$1
12026 ac_optarg=$2
12027 ac_shift=shift
12028 ;;
12029 esac
12030
12031 case $ac_option in
12032 # Handling of the options.
12033 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12034 ac_cs_recheck=: ;;
12035 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12036 printf "%s\n" "$ac_cs_version"; exit ;;
12037 --config | --confi | --conf | --con | --co | --c )
12038 printf "%s\n" "$ac_cs_config"; exit ;;
12039 --debug | --debu | --deb | --de | --d | -d )
12040 debug=: ;;
12041 --file | --fil | --fi | --f )
12042 $ac_shift
12043 case $ac_optarg in
12044 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12045 '') as_fn_error $? "missing file argument" ;;
12046 esac
12047 as_fn_append CONFIG_FILES " '$ac_optarg'"
12048 ac_need_defaults=false;;
12049 --header | --heade | --head | --hea )
12050 $ac_shift
12051 case $ac_optarg in
12052 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12053 esac
12054 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12055 ac_need_defaults=false;;
12056 --he | --h)
12057 # Conflict between --help and --header
12058 as_fn_error $? "ambiguous option: \`$1'
12059 Try \`$0 --help' for more information.";;
12060 --help | --hel | -h )
12061 printf "%s\n" "$ac_cs_usage"; exit ;;
12062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12063 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12064 ac_cs_silent=: ;;
12065
12066 # This is an error.
12067 -*) as_fn_error $? "unrecognized option: \`$1'
12068 Try \`$0 --help' for more information." ;;
12069
12070 *) as_fn_append ac_config_targets " $1"
12071 ac_need_defaults=false ;;
12072
12073 esac
12074 shift
12075 done
12076
12077 ac_configure_extra_args=
12078
12079 if $ac_cs_silent; then
12080 exec 6>/dev/null
12081 ac_configure_extra_args="$ac_configure_extra_args --silent"
12082 fi
12083
12084 _ACEOF
12085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12086 if \$ac_cs_recheck; then
12087 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12088 shift
12089 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12090 CONFIG_SHELL='$SHELL'
12091 export CONFIG_SHELL
12092 exec "\$@"
12093 fi
12094
12095 _ACEOF
12096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12097 exec 5>>config.log
12098 {
12099 echo
12100 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12101 ## Running $as_me. ##
12102 _ASBOX
12103 printf "%s\n" "$ac_log"
12104 } >&5
12105
12106 _ACEOF
12107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12108 #
12109 # INIT-COMMANDS
12110 #
12111 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12112
12113 _ACEOF
12114
12115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12116
12117 # Handling of arguments.
12118 for ac_config_target in $ac_config_targets
12119 do
12120 case $ac_config_target in
12121 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12122 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12123 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12124 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12125
12126 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12127 esac
12128 done
12129
12130
12131 # If the user did not use the arguments to specify the items to instantiate,
12132 # then the envvar interface is used. Set only those that are not.
12133 # We use the long form for the default assignment because of an extremely
12134 # bizarre bug on SunOS 4.1.3.
12135 if $ac_need_defaults; then
12136 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12137 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12138 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12139 fi
12140
12141 # Have a temporary directory for convenience. Make it in the build tree
12142 # simply because there is no reason against having it here, and in addition,
12143 # creating and moving files from /tmp can sometimes cause problems.
12144 # Hook for its removal unless debugging.
12145 # Note that there is a small window in which the directory will not be cleaned:
12146 # after its creation but before its name has been assigned to `$tmp'.
12147 $debug ||
12148 {
12149 tmp= ac_tmp=
12150 trap 'exit_status=$?
12151 : "${ac_tmp:=$tmp}"
12152 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12153 ' 0
12154 trap 'as_fn_exit 1' 1 2 13 15
12155 }
12156 # Create a (secure) tmp directory for tmp files.
12157
12158 {
12159 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12160 test -d "$tmp"
12161 } ||
12162 {
12163 tmp=./conf$$-$RANDOM
12164 (umask 077 && mkdir "$tmp")
12165 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12166 ac_tmp=$tmp
12167
12168 # Set up the scripts for CONFIG_FILES section.
12169 # No need to generate them if there are no CONFIG_FILES.
12170 # This happens for instance with `./config.status config.h'.
12171 if test -n "$CONFIG_FILES"; then
12172
12173
12174 ac_cr=`echo X | tr X '\015'`
12175 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12176 # But we know of no other shell where ac_cr would be empty at this
12177 # point, so we can use a bashism as a fallback.
12178 if test "x$ac_cr" = x; then
12179 eval ac_cr=\$\'\\r\'
12180 fi
12181 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12182 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12183 ac_cs_awk_cr='\\r'
12184 else
12185 ac_cs_awk_cr=$ac_cr
12186 fi
12187
12188 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12189 _ACEOF
12190
12191
12192 {
12193 echo "cat >conf$$subs.awk <<_ACEOF" &&
12194 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12195 echo "_ACEOF"
12196 } >conf$$subs.sh ||
12197 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12198 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12199 ac_delim='%!_!# '
12200 for ac_last_try in false false false false false :; do
12201 . ./conf$$subs.sh ||
12202 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12203
12204 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12205 if test $ac_delim_n = $ac_delim_num; then
12206 break
12207 elif $ac_last_try; then
12208 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12209 else
12210 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12211 fi
12212 done
12213 rm -f conf$$subs.sh
12214
12215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12216 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12217 _ACEOF
12218 sed -n '
12219 h
12220 s/^/S["/; s/!.*/"]=/
12221 p
12222 g
12223 s/^[^!]*!//
12224 :repl
12225 t repl
12226 s/'"$ac_delim"'$//
12227 t delim
12228 :nl
12229 h
12230 s/\(.\{148\}\)..*/\1/
12231 t more1
12232 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12233 p
12234 n
12235 b repl
12236 :more1
12237 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12238 p
12239 g
12240 s/.\{148\}//
12241 t nl
12242 :delim
12243 h
12244 s/\(.\{148\}\)..*/\1/
12245 t more2
12246 s/["\\]/\\&/g; s/^/"/; s/$/"/
12247 p
12248 b
12249 :more2
12250 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12251 p
12252 g
12253 s/.\{148\}//
12254 t delim
12255 ' <conf$$subs.awk | sed '
12256 /^[^""]/{
12257 N
12258 s/\n//
12259 }
12260 ' >>$CONFIG_STATUS || ac_write_fail=1
12261 rm -f conf$$subs.awk
12262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12263 _ACAWK
12264 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12265 for (key in S) S_is_set[key] = 1
12266 FS = ""
12267
12268 }
12269 {
12270 line = $ 0
12271 nfields = split(line, field, "@")
12272 substed = 0
12273 len = length(field[1])
12274 for (i = 2; i < nfields; i++) {
12275 key = field[i]
12276 keylen = length(key)
12277 if (S_is_set[key]) {
12278 value = S[key]
12279 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12280 len += length(value) + length(field[++i])
12281 substed = 1
12282 } else
12283 len += 1 + keylen
12284 }
12285
12286 print line
12287 }
12288
12289 _ACAWK
12290 _ACEOF
12291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12292 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12293 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12294 else
12295 cat
12296 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12297 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12298 _ACEOF
12299
12300 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12301 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12302 # trailing colons and then remove the whole line if VPATH becomes empty
12303 # (actually we leave an empty line to preserve line numbers).
12304 if test "x$srcdir" = x.; then
12305 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12306 h
12307 s///
12308 s/^/:/
12309 s/[ ]*$/:/
12310 s/:\$(srcdir):/:/g
12311 s/:\${srcdir}:/:/g
12312 s/:@srcdir@:/:/g
12313 s/^:*//
12314 s/:*$//
12315 x
12316 s/\(=[ ]*\).*/\1/
12317 G
12318 s/\n//
12319 s/^[^=]*=[ ]*$//
12320 }'
12321 fi
12322
12323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12324 fi # test -n "$CONFIG_FILES"
12325
12326 # Set up the scripts for CONFIG_HEADERS section.
12327 # No need to generate them if there are no CONFIG_HEADERS.
12328 # This happens for instance with `./config.status Makefile'.
12329 if test -n "$CONFIG_HEADERS"; then
12330 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12331 BEGIN {
12332 _ACEOF
12333
12334 # Transform confdefs.h into an awk script `defines.awk', embedded as
12335 # here-document in config.status, that substitutes the proper values into
12336 # config.h.in to produce config.h.
12337
12338 # Create a delimiter string that does not exist in confdefs.h, to ease
12339 # handling of long lines.
12340 ac_delim='%!_!# '
12341 for ac_last_try in false false :; do
12342 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12343 if test -z "$ac_tt"; then
12344 break
12345 elif $ac_last_try; then
12346 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12347 else
12348 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12349 fi
12350 done
12351
12352 # For the awk script, D is an array of macro values keyed by name,
12353 # likewise P contains macro parameters if any. Preserve backslash
12354 # newline sequences.
12355
12356 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12357 sed -n '
12358 s/.\{148\}/&'"$ac_delim"'/g
12359 t rset
12360 :rset
12361 s/^[ ]*#[ ]*define[ ][ ]*/ /
12362 t def
12363 d
12364 :def
12365 s/\\$//
12366 t bsnl
12367 s/["\\]/\\&/g
12368 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12369 D["\1"]=" \3"/p
12370 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12371 d
12372 :bsnl
12373 s/["\\]/\\&/g
12374 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12375 D["\1"]=" \3\\\\\\n"\\/p
12376 t cont
12377 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12378 t cont
12379 d
12380 :cont
12381 n
12382 s/.\{148\}/&'"$ac_delim"'/g
12383 t clear
12384 :clear
12385 s/\\$//
12386 t bsnlc
12387 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12388 d
12389 :bsnlc
12390 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12391 b cont
12392 ' <confdefs.h | sed '
12393 s/'"$ac_delim"'/"\\\
12394 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12395
12396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12397 for (key in D) D_is_set[key] = 1
12398 FS = ""
12399 }
12400 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12401 line = \$ 0
12402 split(line, arg, " ")
12403 if (arg[1] == "#") {
12404 defundef = arg[2]
12405 mac1 = arg[3]
12406 } else {
12407 defundef = substr(arg[1], 2)
12408 mac1 = arg[2]
12409 }
12410 split(mac1, mac2, "(") #)
12411 macro = mac2[1]
12412 prefix = substr(line, 1, index(line, defundef) - 1)
12413 if (D_is_set[macro]) {
12414 # Preserve the white space surrounding the "#".
12415 print prefix "define", macro P[macro] D[macro]
12416 next
12417 } else {
12418 # Replace #undef with comments. This is necessary, for example,
12419 # in the case of _POSIX_SOURCE, which is predefined and required
12420 # on some systems where configure will not decide to define it.
12421 if (defundef == "undef") {
12422 print "/*", prefix defundef, macro, "*/"
12423 next
12424 }
12425 }
12426 }
12427 { print }
12428 _ACAWK
12429 _ACEOF
12430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12431 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12432 fi # test -n "$CONFIG_HEADERS"
12433
12434
12435 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12436 shift
12437 for ac_tag
12438 do
12439 case $ac_tag in
12440 :[FHLC]) ac_mode=$ac_tag; continue;;
12441 esac
12442 case $ac_mode$ac_tag in
12443 :[FHL]*:*);;
12444 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12445 :[FH]-) ac_tag=-:-;;
12446 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12447 esac
12448 ac_save_IFS=$IFS
12449 IFS=:
12450 set x $ac_tag
12451 IFS=$ac_save_IFS
12452 shift
12453 ac_file=$1
12454 shift
12455
12456 case $ac_mode in
12457 :L) ac_source=$1;;
12458 :[FH])
12459 ac_file_inputs=
12460 for ac_f
12461 do
12462 case $ac_f in
12463 -) ac_f="$ac_tmp/stdin";;
12464 *) # Look for the file first in the build tree, then in the source tree
12465 # (if the path is not absolute). The absolute path cannot be DOS-style,
12466 # because $ac_f cannot contain `:'.
12467 test -f "$ac_f" ||
12468 case $ac_f in
12469 [\\/$]*) false;;
12470 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12471 esac ||
12472 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12473 esac
12474 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12475 as_fn_append ac_file_inputs " '$ac_f'"
12476 done
12477
12478 # Let's still pretend it is `configure' which instantiates (i.e., don't
12479 # use $as_me), people would be surprised to read:
12480 # /* config.h. Generated by config.status. */
12481 configure_input='Generated from '`
12482 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12483 `' by configure.'
12484 if test x"$ac_file" != x-; then
12485 configure_input="$ac_file. $configure_input"
12486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12487 printf "%s\n" "$as_me: creating $ac_file" >&6;}
12488 fi
12489 # Neutralize special characters interpreted by sed in replacement strings.
12490 case $configure_input in #(
12491 *\&* | *\|* | *\\* )
12492 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12493 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12494 *) ac_sed_conf_input=$configure_input;;
12495 esac
12496
12497 case $ac_tag in
12498 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12499 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12500 esac
12501 ;;
12502 esac
12503
12504 ac_dir=`$as_dirname -- "$ac_file" ||
12505 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12506 X"$ac_file" : 'X\(//\)[^/]' \| \
12507 X"$ac_file" : 'X\(//\)$' \| \
12508 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12509 printf "%s\n" X"$ac_file" |
12510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12511 s//\1/
12512 q
12513 }
12514 /^X\(\/\/\)[^/].*/{
12515 s//\1/
12516 q
12517 }
12518 /^X\(\/\/\)$/{
12519 s//\1/
12520 q
12521 }
12522 /^X\(\/\).*/{
12523 s//\1/
12524 q
12525 }
12526 s/.*/./; q'`
12527 as_dir="$ac_dir"; as_fn_mkdir_p
12528 ac_builddir=.
12529
12530 case "$ac_dir" in
12531 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12532 *)
12533 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12534 # A ".." for each directory in $ac_dir_suffix.
12535 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12536 case $ac_top_builddir_sub in
12537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12539 esac ;;
12540 esac
12541 ac_abs_top_builddir=$ac_pwd
12542 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12543 # for backward compatibility:
12544 ac_top_builddir=$ac_top_build_prefix
12545
12546 case $srcdir in
12547 .) # We are building in place.
12548 ac_srcdir=.
12549 ac_top_srcdir=$ac_top_builddir_sub
12550 ac_abs_top_srcdir=$ac_pwd ;;
12551 [\\/]* | ?:[\\/]* ) # Absolute name.
12552 ac_srcdir=$srcdir$ac_dir_suffix;
12553 ac_top_srcdir=$srcdir
12554 ac_abs_top_srcdir=$srcdir ;;
12555 *) # Relative name.
12556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12557 ac_top_srcdir=$ac_top_build_prefix$srcdir
12558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12559 esac
12560 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12561
12562
12563 case $ac_mode in
12564 :F)
12565 #
12566 # CONFIG_FILE
12567 #
12568
12569 case $INSTALL in
12570 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12571 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12572 esac
12573 ac_MKDIR_P=$MKDIR_P
12574 case $MKDIR_P in
12575 [\\/$]* | ?:[\\/]* ) ;;
12576 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12577 esac
12578 _ACEOF
12579
12580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12581 # If the template does not know about datarootdir, expand it.
12582 # FIXME: This hack should be removed a few years after 2.60.
12583 ac_datarootdir_hack=; ac_datarootdir_seen=
12584 ac_sed_dataroot='
12585 /datarootdir/ {
12586 p
12587 q
12588 }
12589 /@datadir@/p
12590 /@docdir@/p
12591 /@infodir@/p
12592 /@localedir@/p
12593 /@mandir@/p'
12594 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12595 *datarootdir*) ac_datarootdir_seen=yes;;
12596 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12598 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12599 _ACEOF
12600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12601 ac_datarootdir_hack='
12602 s&@datadir@&$datadir&g
12603 s&@docdir@&$docdir&g
12604 s&@infodir@&$infodir&g
12605 s&@localedir@&$localedir&g
12606 s&@mandir@&$mandir&g
12607 s&\\\${datarootdir}&$datarootdir&g' ;;
12608 esac
12609 _ACEOF
12610
12611 # Neutralize VPATH when `$srcdir' = `.'.
12612 # Shell code in configure.ac might set extrasub.
12613 # FIXME: do we really want to maintain this feature?
12614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12615 ac_sed_extra="$ac_vpsub
12616 $extrasub
12617 _ACEOF
12618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12619 :t
12620 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12621 s|@configure_input@|$ac_sed_conf_input|;t t
12622 s&@top_builddir@&$ac_top_builddir_sub&;t t
12623 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12624 s&@srcdir@&$ac_srcdir&;t t
12625 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12626 s&@top_srcdir@&$ac_top_srcdir&;t t
12627 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12628 s&@builddir@&$ac_builddir&;t t
12629 s&@abs_builddir@&$ac_abs_builddir&;t t
12630 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12631 s&@INSTALL@&$ac_INSTALL&;t t
12632 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12633 $ac_datarootdir_hack
12634 "
12635 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12636 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12637
12638 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12639 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12640 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12641 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12643 which seems to be undefined. Please make sure it is defined" >&5
12644 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12645 which seems to be undefined. Please make sure it is defined" >&2;}
12646
12647 rm -f "$ac_tmp/stdin"
12648 case $ac_file in
12649 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12650 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12651 esac \
12652 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12653 ;;
12654 :H)
12655 #
12656 # CONFIG_HEADER
12657 #
12658 if test x"$ac_file" != x-; then
12659 {
12660 printf "%s\n" "/* $configure_input */" >&1 \
12661 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12662 } >"$ac_tmp/config.h" \
12663 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12664 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12666 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12667 else
12668 rm -f "$ac_file"
12669 mv "$ac_tmp/config.h" "$ac_file" \
12670 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12671 fi
12672 else
12673 printf "%s\n" "/* $configure_input */" >&1 \
12674 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12675 || as_fn_error $? "could not create -" "$LINENO" 5
12676 fi
12677 # Compute "$ac_file"'s index in $config_headers.
12678 _am_arg="$ac_file"
12679 _am_stamp_count=1
12680 for _am_header in $config_headers :; do
12681 case $_am_header in
12682 $_am_arg | $_am_arg:* )
12683 break ;;
12684 * )
12685 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12686 esac
12687 done
12688 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12689 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12690 X"$_am_arg" : 'X\(//\)[^/]' \| \
12691 X"$_am_arg" : 'X\(//\)$' \| \
12692 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12693 printf "%s\n" X"$_am_arg" |
12694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12695 s//\1/
12696 q
12697 }
12698 /^X\(\/\/\)[^/].*/{
12699 s//\1/
12700 q
12701 }
12702 /^X\(\/\/\)$/{
12703 s//\1/
12704 q
12705 }
12706 /^X\(\/\).*/{
12707 s//\1/
12708 q
12709 }
12710 s/.*/./; q'`/stamp-h$_am_stamp_count
12711 ;;
12712
12713 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12714 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12715 ;;
12716 esac
12717
12718
12719 case $ac_file$ac_mode in
12720 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12721 # Older Autoconf quotes --file arguments for eval, but not when files
12722 # are listed without --file. Let's play safe and only enable the eval
12723 # if we detect the quoting.
12724 # TODO: see whether this extra hack can be removed once we start
12725 # requiring Autoconf 2.70 or later.
12726 case $CONFIG_FILES in #(
12727 *\'*) :
12728 eval set x "$CONFIG_FILES" ;; #(
12729 *) :
12730 set x $CONFIG_FILES ;; #(
12731 *) :
12732 ;;
12733 esac
12734 shift
12735 # Used to flag and report bootstrapping failures.
12736 am_rc=0
12737 for am_mf
12738 do
12739 # Strip MF so we end up with the name of the file.
12740 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12741 # Check whether this is an Automake generated Makefile which includes
12742 # dependency-tracking related rules and includes.
12743 # Grep'ing the whole file directly is not great: AIX grep has a line
12744 # limit of 2048, but all sed's we know have understand at least 4000.
12745 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12746 || continue
12747 am_dirpart=`$as_dirname -- "$am_mf" ||
12748 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12749 X"$am_mf" : 'X\(//\)[^/]' \| \
12750 X"$am_mf" : 'X\(//\)$' \| \
12751 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12752 printf "%s\n" X"$am_mf" |
12753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12754 s//\1/
12755 q
12756 }
12757 /^X\(\/\/\)[^/].*/{
12758 s//\1/
12759 q
12760 }
12761 /^X\(\/\/\)$/{
12762 s//\1/
12763 q
12764 }
12765 /^X\(\/\).*/{
12766 s//\1/
12767 q
12768 }
12769 s/.*/./; q'`
12770 am_filepart=`$as_basename -- "$am_mf" ||
12771 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12772 X"$am_mf" : 'X\(//\)$' \| \
12773 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12774 printf "%s\n" X/"$am_mf" |
12775 sed '/^.*\/\([^/][^/]*\)\/*$/{
12776 s//\1/
12777 q
12778 }
12779 /^X\/\(\/\/\)$/{
12780 s//\1/
12781 q
12782 }
12783 /^X\/\(\/\).*/{
12784 s//\1/
12785 q
12786 }
12787 s/.*/./; q'`
12788 { echo "$as_me:$LINENO: cd "$am_dirpart" \
12789 && sed -e '/# am--include-marker/d' "$am_filepart" \
12790 | $MAKE -f - am--depfiles" >&5
12791 (cd "$am_dirpart" \
12792 && sed -e '/# am--include-marker/d' "$am_filepart" \
12793 | $MAKE -f - am--depfiles) >&5 2>&5
12794 ac_status=$?
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); } || am_rc=$?
12797 done
12798 if test $am_rc -ne 0; then
12799 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12800 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12801 as_fn_error $? "Something went wrong bootstrapping makefile fragments
12802 for automatic dependency tracking. If GNU make was not used, consider
12803 re-running the configure script with MAKE=\"gmake\" (or whatever is
12804 necessary). You can also try re-running configure with the
12805 '--disable-dependency-tracking' option to at least be able to build
12806 the package (albeit without support for automatic dependency tracking).
12807 See \`config.log' for more details" "$LINENO" 5; }
12808 fi
12809 { am_dirpart=; unset am_dirpart;}
12810 { am_filepart=; unset am_filepart;}
12811 { am_mf=; unset am_mf;}
12812 { am_rc=; unset am_rc;}
12813 rm -f conftest-deps.mk
12814 }
12815 ;;
12816
12817 esac
12818 done # for ac_tag
12819
12820
12821 as_fn_exit 0
12822 _ACEOF
12823 ac_clean_files=$ac_clean_files_save
12824
12825 test $ac_write_fail = 0 ||
12826 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12827
12828
12829 # configure is writing to config.log, and then calls config.status.
12830 # config.status does its own redirection, appending to config.log.
12831 # Unfortunately, on DOS this fails, as config.log is still kept open
12832 # by configure, so config.status won't be able to write to it; its
12833 # output is simply discarded. So we exec the FD to /dev/null,
12834 # effectively closing config.log, so it can be properly (re)opened and
12835 # appended to by config.status. When coming back to configure, we
12836 # need to make the FD available again.
12837 if test "$no_create" != yes; then
12838 ac_cs_success=:
12839 ac_config_status_args=
12840 test "$silent" = yes &&
12841 ac_config_status_args="$ac_config_status_args --quiet"
12842 exec 5>/dev/null
12843 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12844 exec 5>>config.log
12845 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12846 # would make configure fail if this is the last instruction.
12847 $ac_cs_success || as_fn_exit 1
12848 fi
12849 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12851 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12852 fi
12853
12854
12855