configure revision 1.1.1.5 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for xkill 1.0.6.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkill/-/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/xkill/-/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='xkill'
614 PACKAGE_TARNAME='xkill'
615 PACKAGE_VERSION='1.0.6'
616 PACKAGE_STRING='xkill 1.0.6'
617 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xkill/-/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 XKILL_LIBS
658 XKILL_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__fastdepCC_FALSE
691 am__fastdepCC_TRUE
692 CCDEPMODE
693 am__nodep
694 AMDEPBACKSLASH
695 AMDEP_FALSE
696 AMDEP_TRUE
697 am__include
698 DEPDIR
699 OBJEXT
700 EXEEXT
701 ac_ct_CC
702 CPPFLAGS
703 LDFLAGS
704 CFLAGS
705 CC
706 AM_BACKSLASH
707 AM_DEFAULT_VERBOSITY
708 AM_DEFAULT_V
709 AM_V
710 CSCOPE
711 ETAGS
712 CTAGS
713 am__untar
714 am__tar
715 AMTAR
716 am__leading_dot
717 SET_MAKE
718 AWK
719 mkdir_p
720 MKDIR_P
721 INSTALL_STRIP_PROGRAM
722 STRIP
723 install_sh
724 MAKEINFO
725 AUTOHEADER
726 AUTOMAKE
727 AUTOCONF
728 ACLOCAL
729 VERSION
730 PACKAGE
731 CYGPATH_W
732 am__isrc
733 INSTALL_DATA
734 INSTALL_SCRIPT
735 INSTALL_PROGRAM
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_silent_rules
780 enable_dependency_tracking
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 XKILL_CFLAGS
796 XKILL_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 xkill 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/xkill]
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 xkill 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-silent-rules less verbose build output (undo: "make V=1")
1425 --disable-silent-rules verbose build output (undo: "make V=0")
1426 --enable-dependency-tracking
1427 do not reject slow dependency extractors
1428 --disable-dependency-tracking
1429 speeds up one-time build
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 XKILL_CFLAGS
1451 C compiler flags for XKILL, overriding pkg-config
1452 XKILL_LIBS linker flags for XKILL, overriding pkg-config
1453
1454 Use these variables to override the choices made by `configure' or to help
1455 it to find libraries and programs with nonstandard names/locations.
1456
1457 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkill/-/issues>.
1458 _ACEOF
1459 ac_status=$?
1460 fi
1461
1462 if test "$ac_init_help" = "recursive"; then
1463 # If there are subdirs, report their specific --help.
1464 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1465 test -d "$ac_dir" ||
1466 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1467 continue
1468 ac_builddir=.
1469
1470 case "$ac_dir" in
1471 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 *)
1473 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1474 # A ".." for each directory in $ac_dir_suffix.
1475 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1476 case $ac_top_builddir_sub in
1477 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1479 esac ;;
1480 esac
1481 ac_abs_top_builddir=$ac_pwd
1482 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1483 # for backward compatibility:
1484 ac_top_builddir=$ac_top_build_prefix
1485
1486 case $srcdir in
1487 .) # We are building in place.
1488 ac_srcdir=.
1489 ac_top_srcdir=$ac_top_builddir_sub
1490 ac_abs_top_srcdir=$ac_pwd ;;
1491 [\\/]* | ?:[\\/]* ) # Absolute name.
1492 ac_srcdir=$srcdir$ac_dir_suffix;
1493 ac_top_srcdir=$srcdir
1494 ac_abs_top_srcdir=$srcdir ;;
1495 *) # Relative name.
1496 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1497 ac_top_srcdir=$ac_top_build_prefix$srcdir
1498 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1499 esac
1500 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1501
1502 cd "$ac_dir" || { ac_status=$?; continue; }
1503 # Check for configure.gnu first; this name is used for a wrapper for
1504 # Metaconfig's "Configure" on case-insensitive file systems.
1505 if test -f "$ac_srcdir/configure.gnu"; then
1506 echo &&
1507 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1508 elif test -f "$ac_srcdir/configure"; then
1509 echo &&
1510 $SHELL "$ac_srcdir/configure" --help=recursive
1511 else
1512 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1513 fi || ac_status=$?
1514 cd "$ac_pwd" || { ac_status=$?; break; }
1515 done
1516 fi
1517
1518 test -n "$ac_init_help" && exit $ac_status
1519 if $ac_init_version; then
1520 cat <<\_ACEOF
1521 xkill configure 1.0.6
1522 generated by GNU Autoconf 2.71
1523
1524 Copyright (C) 2021 Free Software Foundation, Inc.
1525 This configure script is free software; the Free Software Foundation
1526 gives unlimited permission to copy, distribute and modify it.
1527 _ACEOF
1528 exit
1529 fi
1530
1531 ## ------------------------ ##
1532 ## Autoconf initialization. ##
1533 ## ------------------------ ##
1534
1535 # ac_fn_c_try_compile LINENO
1536 # --------------------------
1537 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1538 ac_fn_c_try_compile ()
1539 {
1540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1541 rm -f conftest.$ac_objext conftest.beam
1542 if { { ac_try="$ac_compile"
1543 case "(($ac_try" in
1544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1545 *) ac_try_echo=$ac_try;;
1546 esac
1547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1548 printf "%s\n" "$ac_try_echo"; } >&5
1549 (eval "$ac_compile") 2>conftest.err
1550 ac_status=$?
1551 if test -s conftest.err; then
1552 grep -v '^ *+' conftest.err >conftest.er1
1553 cat conftest.er1 >&5
1554 mv -f conftest.er1 conftest.err
1555 fi
1556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1557 test $ac_status = 0; } && {
1558 test -z "$ac_c_werror_flag" ||
1559 test ! -s conftest.err
1560 } && test -s conftest.$ac_objext
1561 then :
1562 ac_retval=0
1563 else $as_nop
1564 printf "%s\n" "$as_me: failed program was:" >&5
1565 sed 's/^/| /' conftest.$ac_ext >&5
1566
1567 ac_retval=1
1568 fi
1569 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1570 as_fn_set_status $ac_retval
1571
1572 } # ac_fn_c_try_compile
1573
1574 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1575 # ------------------------------------------------------------------
1576 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1577 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1578 ac_fn_check_decl ()
1579 {
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 as_decl_name=`echo $2|sed 's/ *(.*//'`
1582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1583 printf %s "checking whether $as_decl_name is declared... " >&6; }
1584 if eval test \${$3+y}
1585 then :
1586 printf %s "(cached) " >&6
1587 else $as_nop
1588 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1589 eval ac_save_FLAGS=\$$6
1590 as_fn_append $6 " $5"
1591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1592 /* end confdefs.h. */
1593 $4
1594 int
1595 main (void)
1596 {
1597 #ifndef $as_decl_name
1598 #ifdef __cplusplus
1599 (void) $as_decl_use;
1600 #else
1601 (void) $as_decl_name;
1602 #endif
1603 #endif
1604
1605 ;
1606 return 0;
1607 }
1608 _ACEOF
1609 if ac_fn_c_try_compile "$LINENO"
1610 then :
1611 eval "$3=yes"
1612 else $as_nop
1613 eval "$3=no"
1614 fi
1615 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1616 eval $6=\$ac_save_FLAGS
1617
1618 fi
1619 eval ac_res=\$$3
1620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1621 printf "%s\n" "$ac_res" >&6; }
1622 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623
1624 } # ac_fn_check_decl
1625
1626 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1627 # -------------------------------------------------------
1628 # Tests whether HEADER exists and can be compiled using the include files in
1629 # INCLUDES, setting the cache variable VAR accordingly.
1630 ac_fn_c_check_header_compile ()
1631 {
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1634 printf %s "checking for $2... " >&6; }
1635 if eval test \${$3+y}
1636 then :
1637 printf %s "(cached) " >&6
1638 else $as_nop
1639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1640 /* end confdefs.h. */
1641 $4
1642 #include <$2>
1643 _ACEOF
1644 if ac_fn_c_try_compile "$LINENO"
1645 then :
1646 eval "$3=yes"
1647 else $as_nop
1648 eval "$3=no"
1649 fi
1650 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1651 fi
1652 eval ac_res=\$$3
1653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654 printf "%s\n" "$ac_res" >&6; }
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656
1657 } # ac_fn_c_check_header_compile
1658
1659 # ac_fn_c_try_link LINENO
1660 # -----------------------
1661 # Try to link conftest.$ac_ext, and return whether this succeeded.
1662 ac_fn_c_try_link ()
1663 {
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1666 if { { ac_try="$ac_link"
1667 case "(($ac_try" in
1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1670 esac
1671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672 printf "%s\n" "$ac_try_echo"; } >&5
1673 (eval "$ac_link") 2>conftest.err
1674 ac_status=$?
1675 if test -s conftest.err; then
1676 grep -v '^ *+' conftest.err >conftest.er1
1677 cat conftest.er1 >&5
1678 mv -f conftest.er1 conftest.err
1679 fi
1680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } && {
1682 test -z "$ac_c_werror_flag" ||
1683 test ! -s conftest.err
1684 } && test -s conftest$ac_exeext && {
1685 test "$cross_compiling" = yes ||
1686 test -x conftest$ac_exeext
1687 }
1688 then :
1689 ac_retval=0
1690 else $as_nop
1691 printf "%s\n" "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1693
1694 ac_retval=1
1695 fi
1696 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1697 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1698 # interfere with the next link command; also delete a directory that is
1699 # left behind by Apple's compiler. We do this before executing the actions.
1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1703
1704 } # ac_fn_c_try_link
1705 ac_configure_args_raw=
1706 for ac_arg
1707 do
1708 case $ac_arg in
1709 *\'*)
1710 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1711 esac
1712 as_fn_append ac_configure_args_raw " '$ac_arg'"
1713 done
1714
1715 case $ac_configure_args_raw in
1716 *$as_nl*)
1717 ac_safe_unquote= ;;
1718 *)
1719 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1720 ac_unsafe_a="$ac_unsafe_z#~"
1721 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1722 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1723 esac
1724
1725 cat >config.log <<_ACEOF
1726 This file contains any messages produced by compilers while
1727 running configure, to aid debugging if configure makes a mistake.
1728
1729 It was created by xkill $as_me 1.0.6, which was
1730 generated by GNU Autoconf 2.71. Invocation command line was
1731
1732 $ $0$ac_configure_args_raw
1733
1734 _ACEOF
1735 exec 5>>config.log
1736 {
1737 cat <<_ASUNAME
1738 ## --------- ##
1739 ## Platform. ##
1740 ## --------- ##
1741
1742 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1743 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1744 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1745 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1746 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1747
1748 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1749 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1750
1751 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1752 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1753 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1754 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1755 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1756 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1757 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1758
1759 _ASUNAME
1760
1761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1762 for as_dir in $PATH
1763 do
1764 IFS=$as_save_IFS
1765 case $as_dir in #(((
1766 '') as_dir=./ ;;
1767 */) ;;
1768 *) as_dir=$as_dir/ ;;
1769 esac
1770 printf "%s\n" "PATH: $as_dir"
1771 done
1772 IFS=$as_save_IFS
1773
1774 } >&5
1775
1776 cat >&5 <<_ACEOF
1777
1778
1779 ## ----------- ##
1780 ## Core tests. ##
1781 ## ----------- ##
1782
1783 _ACEOF
1784
1785
1786 # Keep a trace of the command line.
1787 # Strip out --no-create and --no-recursion so they do not pile up.
1788 # Strip out --silent because we don't want to record it for future runs.
1789 # Also quote any args containing shell meta-characters.
1790 # Make two passes to allow for proper duplicate-argument suppression.
1791 ac_configure_args=
1792 ac_configure_args0=
1793 ac_configure_args1=
1794 ac_must_keep_next=false
1795 for ac_pass in 1 2
1796 do
1797 for ac_arg
1798 do
1799 case $ac_arg in
1800 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1801 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1802 | -silent | --silent | --silen | --sile | --sil)
1803 continue ;;
1804 *\'*)
1805 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1806 esac
1807 case $ac_pass in
1808 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1809 2)
1810 as_fn_append ac_configure_args1 " '$ac_arg'"
1811 if test $ac_must_keep_next = true; then
1812 ac_must_keep_next=false # Got value, back to normal.
1813 else
1814 case $ac_arg in
1815 *=* | --config-cache | -C | -disable-* | --disable-* \
1816 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1817 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1818 | -with-* | --with-* | -without-* | --without-* | --x)
1819 case "$ac_configure_args0 " in
1820 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1821 esac
1822 ;;
1823 -* ) ac_must_keep_next=true ;;
1824 esac
1825 fi
1826 as_fn_append ac_configure_args " '$ac_arg'"
1827 ;;
1828 esac
1829 done
1830 done
1831 { ac_configure_args0=; unset ac_configure_args0;}
1832 { ac_configure_args1=; unset ac_configure_args1;}
1833
1834 # When interrupted or exit'd, cleanup temporary files, and complete
1835 # config.log. We remove comments because anyway the quotes in there
1836 # would cause problems or look ugly.
1837 # WARNING: Use '\'' to represent an apostrophe within the trap.
1838 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1839 trap 'exit_status=$?
1840 # Sanitize IFS.
1841 IFS=" "" $as_nl"
1842 # Save into config.log some information that might help in debugging.
1843 {
1844 echo
1845
1846 printf "%s\n" "## ---------------- ##
1847 ## Cache variables. ##
1848 ## ---------------- ##"
1849 echo
1850 # The following way of writing the cache mishandles newlines in values,
1851 (
1852 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1853 eval ac_val=\$$ac_var
1854 case $ac_val in #(
1855 *${as_nl}*)
1856 case $ac_var in #(
1857 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1858 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1859 esac
1860 case $ac_var in #(
1861 _ | IFS | as_nl) ;; #(
1862 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1863 *) { eval $ac_var=; unset $ac_var;} ;;
1864 esac ;;
1865 esac
1866 done
1867 (set) 2>&1 |
1868 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1869 *${as_nl}ac_space=\ *)
1870 sed -n \
1871 "s/'\''/'\''\\\\'\'''\''/g;
1872 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1873 ;; #(
1874 *)
1875 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1876 ;;
1877 esac |
1878 sort
1879 )
1880 echo
1881
1882 printf "%s\n" "## ----------------- ##
1883 ## Output variables. ##
1884 ## ----------------- ##"
1885 echo
1886 for ac_var in $ac_subst_vars
1887 do
1888 eval ac_val=\$$ac_var
1889 case $ac_val in
1890 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1891 esac
1892 printf "%s\n" "$ac_var='\''$ac_val'\''"
1893 done | sort
1894 echo
1895
1896 if test -n "$ac_subst_files"; then
1897 printf "%s\n" "## ------------------- ##
1898 ## File substitutions. ##
1899 ## ------------------- ##"
1900 echo
1901 for ac_var in $ac_subst_files
1902 do
1903 eval ac_val=\$$ac_var
1904 case $ac_val in
1905 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1906 esac
1907 printf "%s\n" "$ac_var='\''$ac_val'\''"
1908 done | sort
1909 echo
1910 fi
1911
1912 if test -s confdefs.h; then
1913 printf "%s\n" "## ----------- ##
1914 ## confdefs.h. ##
1915 ## ----------- ##"
1916 echo
1917 cat confdefs.h
1918 echo
1919 fi
1920 test "$ac_signal" != 0 &&
1921 printf "%s\n" "$as_me: caught signal $ac_signal"
1922 printf "%s\n" "$as_me: exit $exit_status"
1923 } >&5
1924 rm -f core *.core core.conftest.* &&
1925 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1926 exit $exit_status
1927 ' 0
1928 for ac_signal in 1 2 13 15; do
1929 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1930 done
1931 ac_signal=0
1932
1933 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1934 rm -f -r conftest* confdefs.h
1935
1936 printf "%s\n" "/* confdefs.h */" > confdefs.h
1937
1938 # Predefined preprocessor variables.
1939
1940 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1941
1942 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1943
1944 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1945
1946 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1947
1948 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1949
1950 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1951
1952
1953 # Let the site file select an alternate cache file if it wants to.
1954 # Prefer an explicitly selected file to automatically selected ones.
1955 if test -n "$CONFIG_SITE"; then
1956 ac_site_files="$CONFIG_SITE"
1957 elif test "x$prefix" != xNONE; then
1958 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1959 else
1960 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1961 fi
1962
1963 for ac_site_file in $ac_site_files
1964 do
1965 case $ac_site_file in #(
1966 */*) :
1967 ;; #(
1968 *) :
1969 ac_site_file=./$ac_site_file ;;
1970 esac
1971 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1973 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1974 sed 's/^/| /' "$ac_site_file" >&5
1975 . "$ac_site_file" \
1976 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1977 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1978 as_fn_error $? "failed to load site script $ac_site_file
1979 See \`config.log' for more details" "$LINENO" 5; }
1980 fi
1981 done
1982
1983 if test -r "$cache_file"; then
1984 # Some versions of bash will fail to source /dev/null (special files
1985 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1986 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1988 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1989 case $cache_file in
1990 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1991 *) . "./$cache_file";;
1992 esac
1993 fi
1994 else
1995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1996 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1997 >$cache_file
1998 fi
1999
2000 # Test code for whether the C compiler supports C89 (global declarations)
2001 ac_c_conftest_c89_globals='
2002 /* Does the compiler advertise C89 conformance?
2003 Do not test the value of __STDC__, because some compilers set it to 0
2004 while being otherwise adequately conformant. */
2005 #if !defined __STDC__
2006 # error "Compiler does not advertise C89 conformance"
2007 #endif
2008
2009 #include <stddef.h>
2010 #include <stdarg.h>
2011 struct stat;
2012 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2013 struct buf { int x; };
2014 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2015 static char *e (p, i)
2016 char **p;
2017 int i;
2018 {
2019 return p[i];
2020 }
2021 static char *f (char * (*g) (char **, int), char **p, ...)
2022 {
2023 char *s;
2024 va_list v;
2025 va_start (v,p);
2026 s = g (p, va_arg (v,int));
2027 va_end (v);
2028 return s;
2029 }
2030
2031 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2032 function prototypes and stuff, but not \xHH hex character constants.
2033 These do not provoke an error unfortunately, instead are silently treated
2034 as an "x". The following induces an error, until -std is added to get
2035 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2036 array size at least. It is necessary to write \x00 == 0 to get something
2037 that is true only with -std. */
2038 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2039
2040 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2041 inside strings and character constants. */
2042 #define FOO(x) '\''x'\''
2043 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2044
2045 int test (int i, double x);
2046 struct s1 {int (*f) (int a);};
2047 struct s2 {int (*f) (double a);};
2048 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2049 int, int);'
2050
2051 # Test code for whether the C compiler supports C89 (body of main).
2052 ac_c_conftest_c89_main='
2053 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2054 '
2055
2056 # Test code for whether the C compiler supports C99 (global declarations)
2057 ac_c_conftest_c99_globals='
2058 // Does the compiler advertise C99 conformance?
2059 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2060 # error "Compiler does not advertise C99 conformance"
2061 #endif
2062
2063 #include <stdbool.h>
2064 extern int puts (const char *);
2065 extern int printf (const char *, ...);
2066 extern int dprintf (int, const char *, ...);
2067 extern void *malloc (size_t);
2068
2069 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2070 // dprintf is used instead of fprintf to avoid needing to declare
2071 // FILE and stderr.
2072 #define debug(...) dprintf (2, __VA_ARGS__)
2073 #define showlist(...) puts (#__VA_ARGS__)
2074 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2075 static void
2076 test_varargs_macros (void)
2077 {
2078 int x = 1234;
2079 int y = 5678;
2080 debug ("Flag");
2081 debug ("X = %d\n", x);
2082 showlist (The first, second, and third items.);
2083 report (x>y, "x is %d but y is %d", x, y);
2084 }
2085
2086 // Check long long types.
2087 #define BIG64 18446744073709551615ull
2088 #define BIG32 4294967295ul
2089 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2090 #if !BIG_OK
2091 #error "your preprocessor is broken"
2092 #endif
2093 #if BIG_OK
2094 #else
2095 #error "your preprocessor is broken"
2096 #endif
2097 static long long int bignum = -9223372036854775807LL;
2098 static unsigned long long int ubignum = BIG64;
2099
2100 struct incomplete_array
2101 {
2102 int datasize;
2103 double data[];
2104 };
2105
2106 struct named_init {
2107 int number;
2108 const wchar_t *name;
2109 double average;
2110 };
2111
2112 typedef const char *ccp;
2113
2114 static inline int
2115 test_restrict (ccp restrict text)
2116 {
2117 // See if C++-style comments work.
2118 // Iterate through items via the restricted pointer.
2119 // Also check for declarations in for loops.
2120 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2121 continue;
2122 return 0;
2123 }
2124
2125 // Check varargs and va_copy.
2126 static bool
2127 test_varargs (const char *format, ...)
2128 {
2129 va_list args;
2130 va_start (args, format);
2131 va_list args_copy;
2132 va_copy (args_copy, args);
2133
2134 const char *str = "";
2135 int number = 0;
2136 float fnumber = 0;
2137
2138 while (*format)
2139 {
2140 switch (*format++)
2141 {
2142 case '\''s'\'': // string
2143 str = va_arg (args_copy, const char *);
2144 break;
2145 case '\''d'\'': // int
2146 number = va_arg (args_copy, int);
2147 break;
2148 case '\''f'\'': // float
2149 fnumber = va_arg (args_copy, double);
2150 break;
2151 default:
2152 break;
2153 }
2154 }
2155 va_end (args_copy);
2156 va_end (args);
2157
2158 return *str && number && fnumber;
2159 }
2160 '
2161
2162 # Test code for whether the C compiler supports C99 (body of main).
2163 ac_c_conftest_c99_main='
2164 // Check bool.
2165 _Bool success = false;
2166 success |= (argc != 0);
2167
2168 // Check restrict.
2169 if (test_restrict ("String literal") == 0)
2170 success = true;
2171 char *restrict newvar = "Another string";
2172
2173 // Check varargs.
2174 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2175 test_varargs_macros ();
2176
2177 // Check flexible array members.
2178 struct incomplete_array *ia =
2179 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2180 ia->datasize = 10;
2181 for (int i = 0; i < ia->datasize; ++i)
2182 ia->data[i] = i * 1.234;
2183
2184 // Check named initializers.
2185 struct named_init ni = {
2186 .number = 34,
2187 .name = L"Test wide string",
2188 .average = 543.34343,
2189 };
2190
2191 ni.number = 58;
2192
2193 int dynamic_array[ni.number];
2194 dynamic_array[0] = argv[0][0];
2195 dynamic_array[ni.number - 1] = 543;
2196
2197 // work around unused variable warnings
2198 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2199 || dynamic_array[ni.number - 1] != 543);
2200 '
2201
2202 # Test code for whether the C compiler supports C11 (global declarations)
2203 ac_c_conftest_c11_globals='
2204 // Does the compiler advertise C11 conformance?
2205 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2206 # error "Compiler does not advertise C11 conformance"
2207 #endif
2208
2209 // Check _Alignas.
2210 char _Alignas (double) aligned_as_double;
2211 char _Alignas (0) no_special_alignment;
2212 extern char aligned_as_int;
2213 char _Alignas (0) _Alignas (int) aligned_as_int;
2214
2215 // Check _Alignof.
2216 enum
2217 {
2218 int_alignment = _Alignof (int),
2219 int_array_alignment = _Alignof (int[100]),
2220 char_alignment = _Alignof (char)
2221 };
2222 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2223
2224 // Check _Noreturn.
2225 int _Noreturn does_not_return (void) { for (;;) continue; }
2226
2227 // Check _Static_assert.
2228 struct test_static_assert
2229 {
2230 int x;
2231 _Static_assert (sizeof (int) <= sizeof (long int),
2232 "_Static_assert does not work in struct");
2233 long int y;
2234 };
2235
2236 // Check UTF-8 literals.
2237 #define u8 syntax error!
2238 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2239
2240 // Check duplicate typedefs.
2241 typedef long *long_ptr;
2242 typedef long int *long_ptr;
2243 typedef long_ptr long_ptr;
2244
2245 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2246 struct anonymous
2247 {
2248 union {
2249 struct { int i; int j; };
2250 struct { int k; long int l; } w;
2251 };
2252 int m;
2253 } v1;
2254 '
2255
2256 # Test code for whether the C compiler supports C11 (body of main).
2257 ac_c_conftest_c11_main='
2258 _Static_assert ((offsetof (struct anonymous, i)
2259 == offsetof (struct anonymous, w.k)),
2260 "Anonymous union alignment botch");
2261 v1.i = 2;
2262 v1.w.k = 5;
2263 ok |= v1.i != 5;
2264 '
2265
2266 # Test code for whether the C compiler supports C11 (complete).
2267 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2268 ${ac_c_conftest_c99_globals}
2269 ${ac_c_conftest_c11_globals}
2270
2271 int
2272 main (int argc, char **argv)
2273 {
2274 int ok = 0;
2275 ${ac_c_conftest_c89_main}
2276 ${ac_c_conftest_c99_main}
2277 ${ac_c_conftest_c11_main}
2278 return ok;
2279 }
2280 "
2281
2282 # Test code for whether the C compiler supports C99 (complete).
2283 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2284 ${ac_c_conftest_c99_globals}
2285
2286 int
2287 main (int argc, char **argv)
2288 {
2289 int ok = 0;
2290 ${ac_c_conftest_c89_main}
2291 ${ac_c_conftest_c99_main}
2292 return ok;
2293 }
2294 "
2295
2296 # Test code for whether the C compiler supports C89 (complete).
2297 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2298
2299 int
2300 main (int argc, char **argv)
2301 {
2302 int ok = 0;
2303 ${ac_c_conftest_c89_main}
2304 return ok;
2305 }
2306 "
2307
2308 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2309 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2310 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2311 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2312 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2313 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2314 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2315 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2316 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2317
2318 # Auxiliary files required by this configure script.
2319 ac_aux_files="config.guess config.sub compile missing install-sh"
2320
2321 # Locations in which to look for auxiliary files.
2322 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2323
2324 # Search for a directory containing all of the required auxiliary files,
2325 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2326 # If we don't find one directory that contains all the files we need,
2327 # we report the set of missing files from the *first* directory in
2328 # $ac_aux_dir_candidates and give up.
2329 ac_missing_aux_files=""
2330 ac_first_candidate=:
2331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 as_found=false
2334 for as_dir in $ac_aux_dir_candidates
2335 do
2336 IFS=$as_save_IFS
2337 case $as_dir in #(((
2338 '') as_dir=./ ;;
2339 */) ;;
2340 *) as_dir=$as_dir/ ;;
2341 esac
2342 as_found=:
2343
2344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2345 ac_aux_dir_found=yes
2346 ac_install_sh=
2347 for ac_aux in $ac_aux_files
2348 do
2349 # As a special case, if "install-sh" is required, that requirement
2350 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2351 # and $ac_install_sh is set appropriately for whichever one is found.
2352 if test x"$ac_aux" = x"install-sh"
2353 then
2354 if test -f "${as_dir}install-sh"; then
2355 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2356 ac_install_sh="${as_dir}install-sh -c"
2357 elif test -f "${as_dir}install.sh"; then
2358 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2359 ac_install_sh="${as_dir}install.sh -c"
2360 elif test -f "${as_dir}shtool"; then
2361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2362 ac_install_sh="${as_dir}shtool install -c"
2363 else
2364 ac_aux_dir_found=no
2365 if $ac_first_candidate; then
2366 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2367 else
2368 break
2369 fi
2370 fi
2371 else
2372 if test -f "${as_dir}${ac_aux}"; then
2373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2374 else
2375 ac_aux_dir_found=no
2376 if $ac_first_candidate; then
2377 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2378 else
2379 break
2380 fi
2381 fi
2382 fi
2383 done
2384 if test "$ac_aux_dir_found" = yes; then
2385 ac_aux_dir="$as_dir"
2386 break
2387 fi
2388 ac_first_candidate=false
2389
2390 as_found=false
2391 done
2392 IFS=$as_save_IFS
2393 if $as_found
2394 then :
2395
2396 else $as_nop
2397 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2398 fi
2399
2400
2401 # These three variables are undocumented and unsupported,
2402 # and are intended to be withdrawn in a future Autoconf release.
2403 # They can cause serious problems if a builder's source tree is in a directory
2404 # whose full name contains unusual characters.
2405 if test -f "${ac_aux_dir}config.guess"; then
2406 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2407 fi
2408 if test -f "${ac_aux_dir}config.sub"; then
2409 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2410 fi
2411 if test -f "$ac_aux_dir/configure"; then
2412 ac_configure="$SHELL ${ac_aux_dir}configure"
2413 fi
2414
2415 # Check that the precious variables saved in the cache have kept the same
2416 # value.
2417 ac_cache_corrupted=false
2418 for ac_var in $ac_precious_vars; do
2419 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2420 eval ac_new_set=\$ac_env_${ac_var}_set
2421 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2422 eval ac_new_val=\$ac_env_${ac_var}_value
2423 case $ac_old_set,$ac_new_set in
2424 set,)
2425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2426 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2427 ac_cache_corrupted=: ;;
2428 ,set)
2429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2430 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2431 ac_cache_corrupted=: ;;
2432 ,);;
2433 *)
2434 if test "x$ac_old_val" != "x$ac_new_val"; then
2435 # differences in whitespace do not lead to failure.
2436 ac_old_val_w=`echo x $ac_old_val`
2437 ac_new_val_w=`echo x $ac_new_val`
2438 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2440 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2441 ac_cache_corrupted=:
2442 else
2443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2444 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2445 eval $ac_var=\$ac_old_val
2446 fi
2447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2448 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2450 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2451 fi;;
2452 esac
2453 # Pass precious variables to config.status.
2454 if test "$ac_new_set" = set; then
2455 case $ac_new_val in
2456 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2457 *) ac_arg=$ac_var=$ac_new_val ;;
2458 esac
2459 case " $ac_configure_args " in
2460 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2461 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2462 esac
2463 fi
2464 done
2465 if $ac_cache_corrupted; then
2466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2467 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2469 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2470 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2471 and start over" "$LINENO" 5
2472 fi
2473 ## -------------------- ##
2474 ## Main body of script. ##
2475 ## -------------------- ##
2476
2477 ac_ext=c
2478 ac_cpp='$CPP $CPPFLAGS'
2479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2482
2483
2484
2485 ac_config_headers="$ac_config_headers config.h"
2486
2487
2488 # Initialize Automake
2489 am__api_version='1.16'
2490
2491
2492
2493 # Find a good install program. We prefer a C program (faster),
2494 # so one script is as good as another. But avoid the broken or
2495 # incompatible versions:
2496 # SysV /etc/install, /usr/sbin/install
2497 # SunOS /usr/etc/install
2498 # IRIX /sbin/install
2499 # AIX /bin/install
2500 # AmigaOS /C/install, which installs bootblocks on floppy discs
2501 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2502 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2503 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2504 # OS/2's system install, which has a completely different semantic
2505 # ./install, which can be erroneously created by make from ./install.sh.
2506 # Reject install programs that cannot install multiple files.
2507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2508 printf %s "checking for a BSD-compatible install... " >&6; }
2509 if test -z "$INSTALL"; then
2510 if test ${ac_cv_path_install+y}
2511 then :
2512 printf %s "(cached) " >&6
2513 else $as_nop
2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515 for as_dir in $PATH
2516 do
2517 IFS=$as_save_IFS
2518 case $as_dir in #(((
2519 '') as_dir=./ ;;
2520 */) ;;
2521 *) as_dir=$as_dir/ ;;
2522 esac
2523 # Account for fact that we put trailing slashes in our PATH walk.
2524 case $as_dir in #((
2525 ./ | /[cC]/* | \
2526 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2527 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2528 /usr/ucb/* ) ;;
2529 *)
2530 # OSF1 and SCO ODT 3.0 have their own names for install.
2531 # Don't use installbsd from OSF since it installs stuff as root
2532 # by default.
2533 for ac_prog in ginstall scoinst install; do
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2536 if test $ac_prog = install &&
2537 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2538 # AIX install. It has an incompatible calling convention.
2539 :
2540 elif test $ac_prog = install &&
2541 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2542 # program-specific install script used by HP pwplus--don't use.
2543 :
2544 else
2545 rm -rf conftest.one conftest.two conftest.dir
2546 echo one > conftest.one
2547 echo two > conftest.two
2548 mkdir conftest.dir
2549 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2550 test -s conftest.one && test -s conftest.two &&
2551 test -s conftest.dir/conftest.one &&
2552 test -s conftest.dir/conftest.two
2553 then
2554 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2555 break 3
2556 fi
2557 fi
2558 fi
2559 done
2560 done
2561 ;;
2562 esac
2563
2564 done
2565 IFS=$as_save_IFS
2566
2567 rm -rf conftest.one conftest.two conftest.dir
2568
2569 fi
2570 if test ${ac_cv_path_install+y}; then
2571 INSTALL=$ac_cv_path_install
2572 else
2573 # As a last resort, use the slow shell script. Don't cache a
2574 # value for INSTALL within a source directory, because that will
2575 # break other packages using the cache if that directory is
2576 # removed, or if the value is a relative name.
2577 INSTALL=$ac_install_sh
2578 fi
2579 fi
2580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2581 printf "%s\n" "$INSTALL" >&6; }
2582
2583 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2584 # It thinks the first close brace ends the variable substitution.
2585 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2586
2587 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2588
2589 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2590
2591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2592 printf %s "checking whether build environment is sane... " >&6; }
2593 # Reject unsafe characters in $srcdir or the absolute working directory
2594 # name. Accept space and tab only in the latter.
2595 am_lf='
2596 '
2597 case `pwd` in
2598 *[\\\"\#\$\&\'\`$am_lf]*)
2599 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2600 esac
2601 case $srcdir in
2602 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2603 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2604 esac
2605
2606 # Do 'set' in a subshell so we don't clobber the current shell's
2607 # arguments. Must try -L first in case configure is actually a
2608 # symlink; some systems play weird games with the mod time of symlinks
2609 # (eg FreeBSD returns the mod time of the symlink's containing
2610 # directory).
2611 if (
2612 am_has_slept=no
2613 for am_try in 1 2; do
2614 echo "timestamp, slept: $am_has_slept" > conftest.file
2615 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2616 if test "$*" = "X"; then
2617 # -L didn't work.
2618 set X `ls -t "$srcdir/configure" conftest.file`
2619 fi
2620 if test "$*" != "X $srcdir/configure conftest.file" \
2621 && test "$*" != "X conftest.file $srcdir/configure"; then
2622
2623 # If neither matched, then we have a broken ls. This can happen
2624 # if, for instance, CONFIG_SHELL is bash and it inherits a
2625 # broken ls alias from the environment. This has actually
2626 # happened. Such a system could not be considered "sane".
2627 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2628 alias in your environment" "$LINENO" 5
2629 fi
2630 if test "$2" = conftest.file || test $am_try -eq 2; then
2631 break
2632 fi
2633 # Just in case.
2634 sleep 1
2635 am_has_slept=yes
2636 done
2637 test "$2" = conftest.file
2638 )
2639 then
2640 # Ok.
2641 :
2642 else
2643 as_fn_error $? "newly created file is older than distributed files!
2644 Check your system clock" "$LINENO" 5
2645 fi
2646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2647 printf "%s\n" "yes" >&6; }
2648 # If we didn't sleep, we still need to ensure time stamps of config.status and
2649 # generated files are strictly newer.
2650 am_sleep_pid=
2651 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2652 ( sleep 1 ) &
2653 am_sleep_pid=$!
2654 fi
2655
2656 rm -f conftest.file
2657
2658 test "$program_prefix" != NONE &&
2659 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2660 # Use a double $ so make ignores it.
2661 test "$program_suffix" != NONE &&
2662 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2663 # Double any \ or $.
2664 # By default was `s,x,x', remove it if useless.
2665 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2666 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2667
2668
2669 # Expand $ac_aux_dir to an absolute path.
2670 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2671
2672
2673 if test x"${MISSING+set}" != xset; then
2674 MISSING="\${SHELL} '$am_aux_dir/missing'"
2675 fi
2676 # Use eval to expand $SHELL
2677 if eval "$MISSING --is-lightweight"; then
2678 am_missing_run="$MISSING "
2679 else
2680 am_missing_run=
2681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2682 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2683 fi
2684
2685 if test x"${install_sh+set}" != xset; then
2686 case $am_aux_dir in
2687 *\ * | *\ *)
2688 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2689 *)
2690 install_sh="\${SHELL} $am_aux_dir/install-sh"
2691 esac
2692 fi
2693
2694 # Installed binaries are usually stripped using 'strip' when the user
2695 # run "make install-strip". However 'strip' might not be the right
2696 # tool to use in cross-compilation environments, therefore Automake
2697 # will honor the 'STRIP' environment variable to overrule this program.
2698 if test "$cross_compiling" != no; then
2699 if test -n "$ac_tool_prefix"; then
2700 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2701 set dummy ${ac_tool_prefix}strip; ac_word=$2
2702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2703 printf %s "checking for $ac_word... " >&6; }
2704 if test ${ac_cv_prog_STRIP+y}
2705 then :
2706 printf %s "(cached) " >&6
2707 else $as_nop
2708 if test -n "$STRIP"; then
2709 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2710 else
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 for as_dir in $PATH
2713 do
2714 IFS=$as_save_IFS
2715 case $as_dir in #(((
2716 '') as_dir=./ ;;
2717 */) ;;
2718 *) as_dir=$as_dir/ ;;
2719 esac
2720 for ac_exec_ext in '' $ac_executable_extensions; do
2721 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2722 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2724 break 2
2725 fi
2726 done
2727 done
2728 IFS=$as_save_IFS
2729
2730 fi
2731 fi
2732 STRIP=$ac_cv_prog_STRIP
2733 if test -n "$STRIP"; then
2734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2735 printf "%s\n" "$STRIP" >&6; }
2736 else
2737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738 printf "%s\n" "no" >&6; }
2739 fi
2740
2741
2742 fi
2743 if test -z "$ac_cv_prog_STRIP"; then
2744 ac_ct_STRIP=$STRIP
2745 # Extract the first word of "strip", so it can be a program name with args.
2746 set dummy strip; ac_word=$2
2747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2748 printf %s "checking for $ac_word... " >&6; }
2749 if test ${ac_cv_prog_ac_ct_STRIP+y}
2750 then :
2751 printf %s "(cached) " >&6
2752 else $as_nop
2753 if test -n "$ac_ct_STRIP"; then
2754 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2755 else
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 for as_dir in $PATH
2758 do
2759 IFS=$as_save_IFS
2760 case $as_dir in #(((
2761 '') as_dir=./ ;;
2762 */) ;;
2763 *) as_dir=$as_dir/ ;;
2764 esac
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2767 ac_cv_prog_ac_ct_STRIP="strip"
2768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2769 break 2
2770 fi
2771 done
2772 done
2773 IFS=$as_save_IFS
2774
2775 fi
2776 fi
2777 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2778 if test -n "$ac_ct_STRIP"; then
2779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2780 printf "%s\n" "$ac_ct_STRIP" >&6; }
2781 else
2782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783 printf "%s\n" "no" >&6; }
2784 fi
2785
2786 if test "x$ac_ct_STRIP" = x; then
2787 STRIP=":"
2788 else
2789 case $cross_compiling:$ac_tool_warned in
2790 yes:)
2791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2792 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2793 ac_tool_warned=yes ;;
2794 esac
2795 STRIP=$ac_ct_STRIP
2796 fi
2797 else
2798 STRIP="$ac_cv_prog_STRIP"
2799 fi
2800
2801 fi
2802 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2803
2804
2805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2806 printf %s "checking for a race-free mkdir -p... " >&6; }
2807 if test -z "$MKDIR_P"; then
2808 if test ${ac_cv_path_mkdir+y}
2809 then :
2810 printf %s "(cached) " >&6
2811 else $as_nop
2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2814 do
2815 IFS=$as_save_IFS
2816 case $as_dir in #(((
2817 '') as_dir=./ ;;
2818 */) ;;
2819 *) as_dir=$as_dir/ ;;
2820 esac
2821 for ac_prog in mkdir gmkdir; do
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2824 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2825 'mkdir ('*'coreutils) '* | \
2826 'BusyBox '* | \
2827 'mkdir (fileutils) '4.1*)
2828 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2829 break 3;;
2830 esac
2831 done
2832 done
2833 done
2834 IFS=$as_save_IFS
2835
2836 fi
2837
2838 test -d ./--version && rmdir ./--version
2839 if test ${ac_cv_path_mkdir+y}; then
2840 MKDIR_P="$ac_cv_path_mkdir -p"
2841 else
2842 # As a last resort, use the slow shell script. Don't cache a
2843 # value for MKDIR_P within a source directory, because that will
2844 # break other packages using the cache if that directory is
2845 # removed, or if the value is a relative name.
2846 MKDIR_P="$ac_install_sh -d"
2847 fi
2848 fi
2849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2850 printf "%s\n" "$MKDIR_P" >&6; }
2851
2852 for ac_prog in gawk mawk nawk awk
2853 do
2854 # Extract the first word of "$ac_prog", so it can be a program name with args.
2855 set dummy $ac_prog; ac_word=$2
2856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2857 printf %s "checking for $ac_word... " >&6; }
2858 if test ${ac_cv_prog_AWK+y}
2859 then :
2860 printf %s "(cached) " >&6
2861 else $as_nop
2862 if test -n "$AWK"; then
2863 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2867 do
2868 IFS=$as_save_IFS
2869 case $as_dir in #(((
2870 '') as_dir=./ ;;
2871 */) ;;
2872 *) as_dir=$as_dir/ ;;
2873 esac
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2876 ac_cv_prog_AWK="$ac_prog"
2877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2878 break 2
2879 fi
2880 done
2881 done
2882 IFS=$as_save_IFS
2883
2884 fi
2885 fi
2886 AWK=$ac_cv_prog_AWK
2887 if test -n "$AWK"; then
2888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2889 printf "%s\n" "$AWK" >&6; }
2890 else
2891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892 printf "%s\n" "no" >&6; }
2893 fi
2894
2895
2896 test -n "$AWK" && break
2897 done
2898
2899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2900 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2901 set x ${MAKE-make}
2902 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2903 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2904 then :
2905 printf %s "(cached) " >&6
2906 else $as_nop
2907 cat >conftest.make <<\_ACEOF
2908 SHELL = /bin/sh
2909 all:
2910 @echo '@@@%%%=$(MAKE)=@@@%%%'
2911 _ACEOF
2912 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2913 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2914 *@@@%%%=?*=@@@%%%*)
2915 eval ac_cv_prog_make_${ac_make}_set=yes;;
2916 *)
2917 eval ac_cv_prog_make_${ac_make}_set=no;;
2918 esac
2919 rm -f conftest.make
2920 fi
2921 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2923 printf "%s\n" "yes" >&6; }
2924 SET_MAKE=
2925 else
2926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927 printf "%s\n" "no" >&6; }
2928 SET_MAKE="MAKE=${MAKE-make}"
2929 fi
2930
2931 rm -rf .tst 2>/dev/null
2932 mkdir .tst 2>/dev/null
2933 if test -d .tst; then
2934 am__leading_dot=.
2935 else
2936 am__leading_dot=_
2937 fi
2938 rmdir .tst 2>/dev/null
2939
2940 # Check whether --enable-silent-rules was given.
2941 if test ${enable_silent_rules+y}
2942 then :
2943 enableval=$enable_silent_rules;
2944 fi
2945
2946 case $enable_silent_rules in # (((
2947 yes) AM_DEFAULT_VERBOSITY=0;;
2948 no) AM_DEFAULT_VERBOSITY=1;;
2949 *) AM_DEFAULT_VERBOSITY=1;;
2950 esac
2951 am_make=${MAKE-make}
2952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2953 printf %s "checking whether $am_make supports nested variables... " >&6; }
2954 if test ${am_cv_make_support_nested_variables+y}
2955 then :
2956 printf %s "(cached) " >&6
2957 else $as_nop
2958 if printf "%s\n" 'TRUE=$(BAR$(V))
2959 BAR0=false
2960 BAR1=true
2961 V=1
2962 am__doit:
2963 @$(TRUE)
2964 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2965 am_cv_make_support_nested_variables=yes
2966 else
2967 am_cv_make_support_nested_variables=no
2968 fi
2969 fi
2970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2971 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
2972 if test $am_cv_make_support_nested_variables = yes; then
2973 AM_V='$(V)'
2974 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2975 else
2976 AM_V=$AM_DEFAULT_VERBOSITY
2977 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2978 fi
2979 AM_BACKSLASH='\'
2980
2981 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2982 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2983 # is not polluted with repeated "-I."
2984 am__isrc=' -I$(srcdir)'
2985 # test to see if srcdir already configured
2986 if test -f $srcdir/config.status; then
2987 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2988 fi
2989 fi
2990
2991 # test whether we have cygpath
2992 if test -z "$CYGPATH_W"; then
2993 if (cygpath --version) >/dev/null 2>/dev/null; then
2994 CYGPATH_W='cygpath -w'
2995 else
2996 CYGPATH_W=echo
2997 fi
2998 fi
2999
3000
3001 # Define the identity of the package.
3002 PACKAGE='xkill'
3003 VERSION='1.0.6'
3004
3005
3006 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3007
3008
3009 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3010
3011 # Some tools Automake needs.
3012
3013 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3014
3015
3016 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3017
3018
3019 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3020
3021
3022 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3023
3024
3025 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3026
3027 # For better backward compatibility. To be removed once Automake 1.9.x
3028 # dies out for good. For more background, see:
3029 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3030 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3031 mkdir_p='$(MKDIR_P)'
3032
3033 # We need awk for the "check" target (and possibly the TAP driver). The
3034 # system "awk" is bad on some platforms.
3035 # Always define AMTAR for backward compatibility. Yes, it's still used
3036 # in the wild :-( We should find a proper way to deprecate it ...
3037 AMTAR='$${TAR-tar}'
3038
3039
3040 # We'll loop over all known methods to create a tar archive until one works.
3041 _am_tools='gnutar pax cpio none'
3042
3043 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3044
3045
3046
3047
3048
3049 # Variables for tags utilities; see am/tags.am
3050 if test -z "$CTAGS"; then
3051 CTAGS=ctags
3052 fi
3053
3054 if test -z "$ETAGS"; then
3055 ETAGS=etags
3056 fi
3057
3058 if test -z "$CSCOPE"; then
3059 CSCOPE=cscope
3060 fi
3061
3062
3063
3064 # POSIX will say in a future version that running "rm -f" with no argument
3065 # is OK; and we want to be able to make that assumption in our Makefile
3066 # recipes. So use an aggressive probe to check that the usage we want is
3067 # actually supported "in the wild" to an acceptable degree.
3068 # See automake bug#10828.
3069 # To make any issue more visible, cause the running configure to be aborted
3070 # by default if the 'rm' program in use doesn't match our expectations; the
3071 # user can still override this though.
3072 if rm -f && rm -fr && rm -rf; then : OK; else
3073 cat >&2 <<'END'
3074 Oops!
3075
3076 Your 'rm' program seems unable to run without file operands specified
3077 on the command line, even when the '-f' option is present. This is contrary
3078 to the behaviour of most rm programs out there, and not conforming with
3079 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3080
3081 Please tell bug-automake@gnu.org about your system, including the value
3082 of your $PATH and any error possibly output before this message. This
3083 can help us improve future automake versions.
3084
3085 END
3086 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3087 echo 'Configuration will proceed anyway, since you have set the' >&2
3088 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3089 echo >&2
3090 else
3091 cat >&2 <<'END'
3092 Aborting the configuration process, to ensure you take notice of the issue.
3093
3094 You can download and install GNU coreutils to get an 'rm' implementation
3095 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3096
3097 If you want to complete the configuration process using your problematic
3098 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3099 to "yes", and re-run configure.
3100
3101 END
3102 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3103 fi
3104 fi
3105
3106
3107 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128 DEPDIR="${am__leading_dot}deps"
3129
3130 ac_config_commands="$ac_config_commands depfiles"
3131
3132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3133 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3134 cat > confinc.mk << 'END'
3135 am__doit:
3136 @echo this is the am__doit target >confinc.out
3137 .PHONY: am__doit
3138 END
3139 am__include="#"
3140 am__quote=
3141 # BSD make does it like this.
3142 echo '.include "confinc.mk" # ignored' > confmf.BSD
3143 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3144 echo 'include confinc.mk # ignored' > confmf.GNU
3145 _am_result=no
3146 for s in GNU BSD; do
3147 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3148 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3149 ac_status=$?
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }
3152 case $?:`cat confinc.out 2>/dev/null` in #(
3153 '0:this is the am__doit target') :
3154 case $s in #(
3155 BSD) :
3156 am__include='.include' am__quote='"' ;; #(
3157 *) :
3158 am__include='include' am__quote='' ;;
3159 esac ;; #(
3160 *) :
3161 ;;
3162 esac
3163 if test "$am__include" != "#"; then
3164 _am_result="yes ($s style)"
3165 break
3166 fi
3167 done
3168 rm -f confinc.* confmf.*
3169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3170 printf "%s\n" "${_am_result}" >&6; }
3171
3172 # Check whether --enable-dependency-tracking was given.
3173 if test ${enable_dependency_tracking+y}
3174 then :
3175 enableval=$enable_dependency_tracking;
3176 fi
3177
3178 if test "x$enable_dependency_tracking" != xno; then
3179 am_depcomp="$ac_aux_dir/depcomp"
3180 AMDEPBACKSLASH='\'
3181 am__nodep='_no'
3182 fi
3183 if test "x$enable_dependency_tracking" != xno; then
3184 AMDEP_TRUE=
3185 AMDEP_FALSE='#'
3186 else
3187 AMDEP_TRUE='#'
3188 AMDEP_FALSE=
3189 fi
3190
3191
3192 ac_ext=c
3193 ac_cpp='$CPP $CPPFLAGS'
3194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3197 if test -n "$ac_tool_prefix"; then
3198 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3199 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201 printf %s "checking for $ac_word... " >&6; }
3202 if test ${ac_cv_prog_CC+y}
3203 then :
3204 printf %s "(cached) " >&6
3205 else $as_nop
3206 if test -n "$CC"; then
3207 ac_cv_prog_CC="$CC" # Let the user override the test.
3208 else
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3211 do
3212 IFS=$as_save_IFS
3213 case $as_dir in #(((
3214 '') as_dir=./ ;;
3215 */) ;;
3216 *) as_dir=$as_dir/ ;;
3217 esac
3218 for ac_exec_ext in '' $ac_executable_extensions; do
3219 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3220 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3222 break 2
3223 fi
3224 done
3225 done
3226 IFS=$as_save_IFS
3227
3228 fi
3229 fi
3230 CC=$ac_cv_prog_CC
3231 if test -n "$CC"; then
3232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3233 printf "%s\n" "$CC" >&6; }
3234 else
3235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 printf "%s\n" "no" >&6; }
3237 fi
3238
3239
3240 fi
3241 if test -z "$ac_cv_prog_CC"; then
3242 ac_ct_CC=$CC
3243 # Extract the first word of "gcc", so it can be a program name with args.
3244 set dummy gcc; ac_word=$2
3245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3246 printf %s "checking for $ac_word... " >&6; }
3247 if test ${ac_cv_prog_ac_ct_CC+y}
3248 then :
3249 printf %s "(cached) " >&6
3250 else $as_nop
3251 if test -n "$ac_ct_CC"; then
3252 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3253 else
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH
3256 do
3257 IFS=$as_save_IFS
3258 case $as_dir in #(((
3259 '') as_dir=./ ;;
3260 */) ;;
3261 *) as_dir=$as_dir/ ;;
3262 esac
3263 for ac_exec_ext in '' $ac_executable_extensions; do
3264 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3265 ac_cv_prog_ac_ct_CC="gcc"
3266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3267 break 2
3268 fi
3269 done
3270 done
3271 IFS=$as_save_IFS
3272
3273 fi
3274 fi
3275 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3276 if test -n "$ac_ct_CC"; then
3277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3278 printf "%s\n" "$ac_ct_CC" >&6; }
3279 else
3280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3281 printf "%s\n" "no" >&6; }
3282 fi
3283
3284 if test "x$ac_ct_CC" = x; then
3285 CC=""
3286 else
3287 case $cross_compiling:$ac_tool_warned in
3288 yes:)
3289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3290 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3291 ac_tool_warned=yes ;;
3292 esac
3293 CC=$ac_ct_CC
3294 fi
3295 else
3296 CC="$ac_cv_prog_CC"
3297 fi
3298
3299 if test -z "$CC"; then
3300 if test -n "$ac_tool_prefix"; then
3301 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3302 set dummy ${ac_tool_prefix}cc; ac_word=$2
3303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3304 printf %s "checking for $ac_word... " >&6; }
3305 if test ${ac_cv_prog_CC+y}
3306 then :
3307 printf %s "(cached) " >&6
3308 else $as_nop
3309 if test -n "$CC"; then
3310 ac_cv_prog_CC="$CC" # Let the user override the test.
3311 else
3312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313 for as_dir in $PATH
3314 do
3315 IFS=$as_save_IFS
3316 case $as_dir in #(((
3317 '') as_dir=./ ;;
3318 */) ;;
3319 *) as_dir=$as_dir/ ;;
3320 esac
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3323 ac_cv_prog_CC="${ac_tool_prefix}cc"
3324 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3325 break 2
3326 fi
3327 done
3328 done
3329 IFS=$as_save_IFS
3330
3331 fi
3332 fi
3333 CC=$ac_cv_prog_CC
3334 if test -n "$CC"; then
3335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3336 printf "%s\n" "$CC" >&6; }
3337 else
3338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 printf "%s\n" "no" >&6; }
3340 fi
3341
3342
3343 fi
3344 fi
3345 if test -z "$CC"; then
3346 # Extract the first word of "cc", so it can be a program name with args.
3347 set dummy cc; ac_word=$2
3348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3349 printf %s "checking for $ac_word... " >&6; }
3350 if test ${ac_cv_prog_CC+y}
3351 then :
3352 printf %s "(cached) " >&6
3353 else $as_nop
3354 if test -n "$CC"; then
3355 ac_cv_prog_CC="$CC" # Let the user override the test.
3356 else
3357 ac_prog_rejected=no
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359 for as_dir in $PATH
3360 do
3361 IFS=$as_save_IFS
3362 case $as_dir in #(((
3363 '') as_dir=./ ;;
3364 */) ;;
3365 *) as_dir=$as_dir/ ;;
3366 esac
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3369 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3370 ac_prog_rejected=yes
3371 continue
3372 fi
3373 ac_cv_prog_CC="cc"
3374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3375 break 2
3376 fi
3377 done
3378 done
3379 IFS=$as_save_IFS
3380
3381 if test $ac_prog_rejected = yes; then
3382 # We found a bogon in the path, so make sure we never use it.
3383 set dummy $ac_cv_prog_CC
3384 shift
3385 if test $# != 0; then
3386 # We chose a different compiler from the bogus one.
3387 # However, it has the same basename, so the bogon will be chosen
3388 # first if we set CC to just the basename; use the full file name.
3389 shift
3390 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3391 fi
3392 fi
3393 fi
3394 fi
3395 CC=$ac_cv_prog_CC
3396 if test -n "$CC"; then
3397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3398 printf "%s\n" "$CC" >&6; }
3399 else
3400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401 printf "%s\n" "no" >&6; }
3402 fi
3403
3404
3405 fi
3406 if test -z "$CC"; then
3407 if test -n "$ac_tool_prefix"; then
3408 for ac_prog in cl.exe
3409 do
3410 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3411 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3413 printf %s "checking for $ac_word... " >&6; }
3414 if test ${ac_cv_prog_CC+y}
3415 then :
3416 printf %s "(cached) " >&6
3417 else $as_nop
3418 if test -n "$CC"; then
3419 ac_cv_prog_CC="$CC" # Let the user override the test.
3420 else
3421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 for as_dir in $PATH
3423 do
3424 IFS=$as_save_IFS
3425 case $as_dir in #(((
3426 '') as_dir=./ ;;
3427 */) ;;
3428 *) as_dir=$as_dir/ ;;
3429 esac
3430 for ac_exec_ext in '' $ac_executable_extensions; do
3431 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3432 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3434 break 2
3435 fi
3436 done
3437 done
3438 IFS=$as_save_IFS
3439
3440 fi
3441 fi
3442 CC=$ac_cv_prog_CC
3443 if test -n "$CC"; then
3444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3445 printf "%s\n" "$CC" >&6; }
3446 else
3447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3448 printf "%s\n" "no" >&6; }
3449 fi
3450
3451
3452 test -n "$CC" && break
3453 done
3454 fi
3455 if test -z "$CC"; then
3456 ac_ct_CC=$CC
3457 for ac_prog in cl.exe
3458 do
3459 # Extract the first word of "$ac_prog", so it can be a program name with args.
3460 set dummy $ac_prog; ac_word=$2
3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462 printf %s "checking for $ac_word... " >&6; }
3463 if test ${ac_cv_prog_ac_ct_CC+y}
3464 then :
3465 printf %s "(cached) " >&6
3466 else $as_nop
3467 if test -n "$ac_ct_CC"; then
3468 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3469 else
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 for as_dir in $PATH
3472 do
3473 IFS=$as_save_IFS
3474 case $as_dir in #(((
3475 '') as_dir=./ ;;
3476 */) ;;
3477 *) as_dir=$as_dir/ ;;
3478 esac
3479 for ac_exec_ext in '' $ac_executable_extensions; do
3480 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3481 ac_cv_prog_ac_ct_CC="$ac_prog"
3482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3483 break 2
3484 fi
3485 done
3486 done
3487 IFS=$as_save_IFS
3488
3489 fi
3490 fi
3491 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3492 if test -n "$ac_ct_CC"; then
3493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3494 printf "%s\n" "$ac_ct_CC" >&6; }
3495 else
3496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497 printf "%s\n" "no" >&6; }
3498 fi
3499
3500
3501 test -n "$ac_ct_CC" && break
3502 done
3503
3504 if test "x$ac_ct_CC" = x; then
3505 CC=""
3506 else
3507 case $cross_compiling:$ac_tool_warned in
3508 yes:)
3509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3510 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3511 ac_tool_warned=yes ;;
3512 esac
3513 CC=$ac_ct_CC
3514 fi
3515 fi
3516
3517 fi
3518 if test -z "$CC"; then
3519 if test -n "$ac_tool_prefix"; then
3520 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3521 set dummy ${ac_tool_prefix}clang; ac_word=$2
3522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3523 printf %s "checking for $ac_word... " >&6; }
3524 if test ${ac_cv_prog_CC+y}
3525 then :
3526 printf %s "(cached) " >&6
3527 else $as_nop
3528 if test -n "$CC"; then
3529 ac_cv_prog_CC="$CC" # Let the user override the test.
3530 else
3531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532 for as_dir in $PATH
3533 do
3534 IFS=$as_save_IFS
3535 case $as_dir in #(((
3536 '') as_dir=./ ;;
3537 */) ;;
3538 *) as_dir=$as_dir/ ;;
3539 esac
3540 for ac_exec_ext in '' $ac_executable_extensions; do
3541 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3542 ac_cv_prog_CC="${ac_tool_prefix}clang"
3543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3544 break 2
3545 fi
3546 done
3547 done
3548 IFS=$as_save_IFS
3549
3550 fi
3551 fi
3552 CC=$ac_cv_prog_CC
3553 if test -n "$CC"; then
3554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3555 printf "%s\n" "$CC" >&6; }
3556 else
3557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3558 printf "%s\n" "no" >&6; }
3559 fi
3560
3561
3562 fi
3563 if test -z "$ac_cv_prog_CC"; then
3564 ac_ct_CC=$CC
3565 # Extract the first word of "clang", so it can be a program name with args.
3566 set dummy clang; ac_word=$2
3567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3568 printf %s "checking for $ac_word... " >&6; }
3569 if test ${ac_cv_prog_ac_ct_CC+y}
3570 then :
3571 printf %s "(cached) " >&6
3572 else $as_nop
3573 if test -n "$ac_ct_CC"; then
3574 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3575 else
3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577 for as_dir in $PATH
3578 do
3579 IFS=$as_save_IFS
3580 case $as_dir in #(((
3581 '') as_dir=./ ;;
3582 */) ;;
3583 *) as_dir=$as_dir/ ;;
3584 esac
3585 for ac_exec_ext in '' $ac_executable_extensions; do
3586 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3587 ac_cv_prog_ac_ct_CC="clang"
3588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3589 break 2
3590 fi
3591 done
3592 done
3593 IFS=$as_save_IFS
3594
3595 fi
3596 fi
3597 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3598 if test -n "$ac_ct_CC"; then
3599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3600 printf "%s\n" "$ac_ct_CC" >&6; }
3601 else
3602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603 printf "%s\n" "no" >&6; }
3604 fi
3605
3606 if test "x$ac_ct_CC" = x; then
3607 CC=""
3608 else
3609 case $cross_compiling:$ac_tool_warned in
3610 yes:)
3611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3612 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3613 ac_tool_warned=yes ;;
3614 esac
3615 CC=$ac_ct_CC
3616 fi
3617 else
3618 CC="$ac_cv_prog_CC"
3619 fi
3620
3621 fi
3622
3623
3624 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3625 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3626 as_fn_error $? "no acceptable C compiler found in \$PATH
3627 See \`config.log' for more details" "$LINENO" 5; }
3628
3629 # Provide some information about the compiler.
3630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3631 set X $ac_compile
3632 ac_compiler=$2
3633 for ac_option in --version -v -V -qversion -version; do
3634 { { ac_try="$ac_compiler $ac_option >&5"
3635 case "(($ac_try" in
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3638 esac
3639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3640 printf "%s\n" "$ac_try_echo"; } >&5
3641 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3642 ac_status=$?
3643 if test -s conftest.err; then
3644 sed '10a\
3645 ... rest of stderr output deleted ...
3646 10q' conftest.err >conftest.er1
3647 cat conftest.er1 >&5
3648 fi
3649 rm -f conftest.er1 conftest.err
3650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651 test $ac_status = 0; }
3652 done
3653
3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 /* end confdefs.h. */
3656
3657 int
3658 main (void)
3659 {
3660
3661 ;
3662 return 0;
3663 }
3664 _ACEOF
3665 ac_clean_files_save=$ac_clean_files
3666 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3667 # Try to create an executable without -o first, disregard a.out.
3668 # It will help us diagnose broken compilers, and finding out an intuition
3669 # of exeext.
3670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3671 printf %s "checking whether the C compiler works... " >&6; }
3672 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3673
3674 # The possible output files:
3675 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3676
3677 ac_rmfiles=
3678 for ac_file in $ac_files
3679 do
3680 case $ac_file in
3681 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3682 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3683 esac
3684 done
3685 rm -f $ac_rmfiles
3686
3687 if { { ac_try="$ac_link_default"
3688 case "(($ac_try" in
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3691 esac
3692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3693 printf "%s\n" "$ac_try_echo"; } >&5
3694 (eval "$ac_link_default") 2>&5
3695 ac_status=$?
3696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3697 test $ac_status = 0; }
3698 then :
3699 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3700 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3701 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3702 # so that the user can short-circuit this test for compilers unknown to
3703 # Autoconf.
3704 for ac_file in $ac_files ''
3705 do
3706 test -f "$ac_file" || continue
3707 case $ac_file in
3708 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3709 ;;
3710 [ab].out )
3711 # We found the default executable, but exeext='' is most
3712 # certainly right.
3713 break;;
3714 *.* )
3715 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3716 then :; else
3717 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3718 fi
3719 # We set ac_cv_exeext here because the later test for it is not
3720 # safe: cross compilers may not add the suffix if given an `-o'
3721 # argument, so we may need to know it at that point already.
3722 # Even if this section looks crufty: it has the advantage of
3723 # actually working.
3724 break;;
3725 * )
3726 break;;
3727 esac
3728 done
3729 test "$ac_cv_exeext" = no && ac_cv_exeext=
3730
3731 else $as_nop
3732 ac_file=''
3733 fi
3734 if test -z "$ac_file"
3735 then :
3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737 printf "%s\n" "no" >&6; }
3738 printf "%s\n" "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.$ac_ext >&5
3740
3741 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3742 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3743 as_fn_error 77 "C compiler cannot create executables
3744 See \`config.log' for more details" "$LINENO" 5; }
3745 else $as_nop
3746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3747 printf "%s\n" "yes" >&6; }
3748 fi
3749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3750 printf %s "checking for C compiler default output file name... " >&6; }
3751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3752 printf "%s\n" "$ac_file" >&6; }
3753 ac_exeext=$ac_cv_exeext
3754
3755 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3756 ac_clean_files=$ac_clean_files_save
3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3758 printf %s "checking for suffix of executables... " >&6; }
3759 if { { ac_try="$ac_link"
3760 case "(($ac_try" in
3761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3762 *) ac_try_echo=$ac_try;;
3763 esac
3764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3765 printf "%s\n" "$ac_try_echo"; } >&5
3766 (eval "$ac_link") 2>&5
3767 ac_status=$?
3768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3769 test $ac_status = 0; }
3770 then :
3771 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3772 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3773 # work properly (i.e., refer to `conftest.exe'), while it won't with
3774 # `rm'.
3775 for ac_file in conftest.exe conftest conftest.*; do
3776 test -f "$ac_file" || continue
3777 case $ac_file in
3778 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3779 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3780 break;;
3781 * ) break;;
3782 esac
3783 done
3784 else $as_nop
3785 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3786 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3787 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3788 See \`config.log' for more details" "$LINENO" 5; }
3789 fi
3790 rm -f conftest conftest$ac_cv_exeext
3791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3792 printf "%s\n" "$ac_cv_exeext" >&6; }
3793
3794 rm -f conftest.$ac_ext
3795 EXEEXT=$ac_cv_exeext
3796 ac_exeext=$EXEEXT
3797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798 /* end confdefs.h. */
3799 #include <stdio.h>
3800 int
3801 main (void)
3802 {
3803 FILE *f = fopen ("conftest.out", "w");
3804 return ferror (f) || fclose (f) != 0;
3805
3806 ;
3807 return 0;
3808 }
3809 _ACEOF
3810 ac_clean_files="$ac_clean_files conftest.out"
3811 # Check that the compiler produces executables we can run. If not, either
3812 # the compiler is broken, or we cross compile.
3813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3814 printf %s "checking whether we are cross compiling... " >&6; }
3815 if test "$cross_compiling" != yes; then
3816 { { ac_try="$ac_link"
3817 case "(($ac_try" in
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3820 esac
3821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3822 printf "%s\n" "$ac_try_echo"; } >&5
3823 (eval "$ac_link") 2>&5
3824 ac_status=$?
3825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3826 test $ac_status = 0; }
3827 if { ac_try='./conftest$ac_cv_exeext'
3828 { { case "(($ac_try" in
3829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830 *) ac_try_echo=$ac_try;;
3831 esac
3832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3833 printf "%s\n" "$ac_try_echo"; } >&5
3834 (eval "$ac_try") 2>&5
3835 ac_status=$?
3836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3837 test $ac_status = 0; }; }; then
3838 cross_compiling=no
3839 else
3840 if test "$cross_compiling" = maybe; then
3841 cross_compiling=yes
3842 else
3843 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3844 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3845 as_fn_error 77 "cannot run C compiled programs.
3846 If you meant to cross compile, use \`--host'.
3847 See \`config.log' for more details" "$LINENO" 5; }
3848 fi
3849 fi
3850 fi
3851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3852 printf "%s\n" "$cross_compiling" >&6; }
3853
3854 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3855 ac_clean_files=$ac_clean_files_save
3856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3857 printf %s "checking for suffix of object files... " >&6; }
3858 if test ${ac_cv_objext+y}
3859 then :
3860 printf %s "(cached) " >&6
3861 else $as_nop
3862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h. */
3864
3865 int
3866 main (void)
3867 {
3868
3869 ;
3870 return 0;
3871 }
3872 _ACEOF
3873 rm -f conftest.o conftest.obj
3874 if { { ac_try="$ac_compile"
3875 case "(($ac_try" in
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3878 esac
3879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3880 printf "%s\n" "$ac_try_echo"; } >&5
3881 (eval "$ac_compile") 2>&5
3882 ac_status=$?
3883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3884 test $ac_status = 0; }
3885 then :
3886 for ac_file in conftest.o conftest.obj conftest.*; do
3887 test -f "$ac_file" || continue;
3888 case $ac_file in
3889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3890 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3891 break;;
3892 esac
3893 done
3894 else $as_nop
3895 printf "%s\n" "$as_me: failed program was:" >&5
3896 sed 's/^/| /' conftest.$ac_ext >&5
3897
3898 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3899 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3900 as_fn_error $? "cannot compute suffix of object files: cannot compile
3901 See \`config.log' for more details" "$LINENO" 5; }
3902 fi
3903 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3904 fi
3905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3906 printf "%s\n" "$ac_cv_objext" >&6; }
3907 OBJEXT=$ac_cv_objext
3908 ac_objext=$OBJEXT
3909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3910 printf %s "checking whether the compiler supports GNU C... " >&6; }
3911 if test ${ac_cv_c_compiler_gnu+y}
3912 then :
3913 printf %s "(cached) " >&6
3914 else $as_nop
3915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3916 /* end confdefs.h. */
3917
3918 int
3919 main (void)
3920 {
3921 #ifndef __GNUC__
3922 choke me
3923 #endif
3924
3925 ;
3926 return 0;
3927 }
3928 _ACEOF
3929 if ac_fn_c_try_compile "$LINENO"
3930 then :
3931 ac_compiler_gnu=yes
3932 else $as_nop
3933 ac_compiler_gnu=no
3934 fi
3935 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3936 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3937
3938 fi
3939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3940 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3942
3943 if test $ac_compiler_gnu = yes; then
3944 GCC=yes
3945 else
3946 GCC=
3947 fi
3948 ac_test_CFLAGS=${CFLAGS+y}
3949 ac_save_CFLAGS=$CFLAGS
3950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3951 printf %s "checking whether $CC accepts -g... " >&6; }
3952 if test ${ac_cv_prog_cc_g+y}
3953 then :
3954 printf %s "(cached) " >&6
3955 else $as_nop
3956 ac_save_c_werror_flag=$ac_c_werror_flag
3957 ac_c_werror_flag=yes
3958 ac_cv_prog_cc_g=no
3959 CFLAGS="-g"
3960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961 /* end confdefs.h. */
3962
3963 int
3964 main (void)
3965 {
3966
3967 ;
3968 return 0;
3969 }
3970 _ACEOF
3971 if ac_fn_c_try_compile "$LINENO"
3972 then :
3973 ac_cv_prog_cc_g=yes
3974 else $as_nop
3975 CFLAGS=""
3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977 /* end confdefs.h. */
3978
3979 int
3980 main (void)
3981 {
3982
3983 ;
3984 return 0;
3985 }
3986 _ACEOF
3987 if ac_fn_c_try_compile "$LINENO"
3988 then :
3989
3990 else $as_nop
3991 ac_c_werror_flag=$ac_save_c_werror_flag
3992 CFLAGS="-g"
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
3995
3996 int
3997 main (void)
3998 {
3999
4000 ;
4001 return 0;
4002 }
4003 _ACEOF
4004 if ac_fn_c_try_compile "$LINENO"
4005 then :
4006 ac_cv_prog_cc_g=yes
4007 fi
4008 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4009 fi
4010 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4011 fi
4012 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4013 ac_c_werror_flag=$ac_save_c_werror_flag
4014 fi
4015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4016 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4017 if test $ac_test_CFLAGS; then
4018 CFLAGS=$ac_save_CFLAGS
4019 elif test $ac_cv_prog_cc_g = yes; then
4020 if test "$GCC" = yes; then
4021 CFLAGS="-g -O2"
4022 else
4023 CFLAGS="-g"
4024 fi
4025 else
4026 if test "$GCC" = yes; then
4027 CFLAGS="-O2"
4028 else
4029 CFLAGS=
4030 fi
4031 fi
4032 ac_prog_cc_stdc=no
4033 if test x$ac_prog_cc_stdc = xno
4034 then :
4035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4036 printf %s "checking for $CC option to enable C11 features... " >&6; }
4037 if test ${ac_cv_prog_cc_c11+y}
4038 then :
4039 printf %s "(cached) " >&6
4040 else $as_nop
4041 ac_cv_prog_cc_c11=no
4042 ac_save_CC=$CC
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4045 $ac_c_conftest_c11_program
4046 _ACEOF
4047 for ac_arg in '' -std=gnu11
4048 do
4049 CC="$ac_save_CC $ac_arg"
4050 if ac_fn_c_try_compile "$LINENO"
4051 then :
4052 ac_cv_prog_cc_c11=$ac_arg
4053 fi
4054 rm -f core conftest.err conftest.$ac_objext conftest.beam
4055 test "x$ac_cv_prog_cc_c11" != "xno" && break
4056 done
4057 rm -f conftest.$ac_ext
4058 CC=$ac_save_CC
4059 fi
4060
4061 if test "x$ac_cv_prog_cc_c11" = xno
4062 then :
4063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4064 printf "%s\n" "unsupported" >&6; }
4065 else $as_nop
4066 if test "x$ac_cv_prog_cc_c11" = x
4067 then :
4068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4069 printf "%s\n" "none needed" >&6; }
4070 else $as_nop
4071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4072 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4073 CC="$CC $ac_cv_prog_cc_c11"
4074 fi
4075 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4076 ac_prog_cc_stdc=c11
4077 fi
4078 fi
4079 if test x$ac_prog_cc_stdc = xno
4080 then :
4081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4082 printf %s "checking for $CC option to enable C99 features... " >&6; }
4083 if test ${ac_cv_prog_cc_c99+y}
4084 then :
4085 printf %s "(cached) " >&6
4086 else $as_nop
4087 ac_cv_prog_cc_c99=no
4088 ac_save_CC=$CC
4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h. */
4091 $ac_c_conftest_c99_program
4092 _ACEOF
4093 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4094 do
4095 CC="$ac_save_CC $ac_arg"
4096 if ac_fn_c_try_compile "$LINENO"
4097 then :
4098 ac_cv_prog_cc_c99=$ac_arg
4099 fi
4100 rm -f core conftest.err conftest.$ac_objext conftest.beam
4101 test "x$ac_cv_prog_cc_c99" != "xno" && break
4102 done
4103 rm -f conftest.$ac_ext
4104 CC=$ac_save_CC
4105 fi
4106
4107 if test "x$ac_cv_prog_cc_c99" = xno
4108 then :
4109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4110 printf "%s\n" "unsupported" >&6; }
4111 else $as_nop
4112 if test "x$ac_cv_prog_cc_c99" = x
4113 then :
4114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4115 printf "%s\n" "none needed" >&6; }
4116 else $as_nop
4117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4118 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4119 CC="$CC $ac_cv_prog_cc_c99"
4120 fi
4121 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4122 ac_prog_cc_stdc=c99
4123 fi
4124 fi
4125 if test x$ac_prog_cc_stdc = xno
4126 then :
4127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4128 printf %s "checking for $CC option to enable C89 features... " >&6; }
4129 if test ${ac_cv_prog_cc_c89+y}
4130 then :
4131 printf %s "(cached) " >&6
4132 else $as_nop
4133 ac_cv_prog_cc_c89=no
4134 ac_save_CC=$CC
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4137 $ac_c_conftest_c89_program
4138 _ACEOF
4139 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4140 do
4141 CC="$ac_save_CC $ac_arg"
4142 if ac_fn_c_try_compile "$LINENO"
4143 then :
4144 ac_cv_prog_cc_c89=$ac_arg
4145 fi
4146 rm -f core conftest.err conftest.$ac_objext conftest.beam
4147 test "x$ac_cv_prog_cc_c89" != "xno" && break
4148 done
4149 rm -f conftest.$ac_ext
4150 CC=$ac_save_CC
4151 fi
4152
4153 if test "x$ac_cv_prog_cc_c89" = xno
4154 then :
4155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4156 printf "%s\n" "unsupported" >&6; }
4157 else $as_nop
4158 if test "x$ac_cv_prog_cc_c89" = x
4159 then :
4160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4161 printf "%s\n" "none needed" >&6; }
4162 else $as_nop
4163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4164 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4165 CC="$CC $ac_cv_prog_cc_c89"
4166 fi
4167 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4168 ac_prog_cc_stdc=c89
4169 fi
4170 fi
4171
4172 ac_ext=c
4173 ac_cpp='$CPP $CPPFLAGS'
4174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4177
4178
4179 ac_ext=c
4180 ac_cpp='$CPP $CPPFLAGS'
4181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4185 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4186 if test ${am_cv_prog_cc_c_o+y}
4187 then :
4188 printf %s "(cached) " >&6
4189 else $as_nop
4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h. */
4192
4193 int
4194 main (void)
4195 {
4196
4197 ;
4198 return 0;
4199 }
4200 _ACEOF
4201 # Make sure it works both with $CC and with simple cc.
4202 # Following AC_PROG_CC_C_O, we do the test twice because some
4203 # compilers refuse to overwrite an existing .o file with -o,
4204 # though they will create one.
4205 am_cv_prog_cc_c_o=yes
4206 for am_i in 1 2; do
4207 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4208 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4209 ac_status=$?
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } \
4212 && test -f conftest2.$ac_objext; then
4213 : OK
4214 else
4215 am_cv_prog_cc_c_o=no
4216 break
4217 fi
4218 done
4219 rm -f core conftest*
4220 unset am_i
4221 fi
4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4223 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4224 if test "$am_cv_prog_cc_c_o" != yes; then
4225 # Losing compiler, so override with the script.
4226 # FIXME: It is wrong to rewrite CC.
4227 # But if we don't then we get into trouble of one sort or another.
4228 # A longer-term fix would be to have automake use am__CC in this case,
4229 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4230 CC="$am_aux_dir/compile $CC"
4231 fi
4232 ac_ext=c
4233 ac_cpp='$CPP $CPPFLAGS'
4234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4237
4238
4239 depcc="$CC" am_compiler_list=
4240
4241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4242 printf %s "checking dependency style of $depcc... " >&6; }
4243 if test ${am_cv_CC_dependencies_compiler_type+y}
4244 then :
4245 printf %s "(cached) " >&6
4246 else $as_nop
4247 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4248 # We make a subdir and do the tests there. Otherwise we can end up
4249 # making bogus files that we don't know about and never remove. For
4250 # instance it was reported that on HP-UX the gcc test will end up
4251 # making a dummy file named 'D' -- because '-MD' means "put the output
4252 # in D".
4253 rm -rf conftest.dir
4254 mkdir conftest.dir
4255 # Copy depcomp to subdir because otherwise we won't find it if we're
4256 # using a relative directory.
4257 cp "$am_depcomp" conftest.dir
4258 cd conftest.dir
4259 # We will build objects and dependencies in a subdirectory because
4260 # it helps to detect inapplicable dependency modes. For instance
4261 # both Tru64's cc and ICC support -MD to output dependencies as a
4262 # side effect of compilation, but ICC will put the dependencies in
4263 # the current directory while Tru64 will put them in the object
4264 # directory.
4265 mkdir sub
4266
4267 am_cv_CC_dependencies_compiler_type=none
4268 if test "$am_compiler_list" = ""; then
4269 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4270 fi
4271 am__universal=false
4272 case " $depcc " in #(
4273 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4274 esac
4275
4276 for depmode in $am_compiler_list; do
4277 # Setup a source with many dependencies, because some compilers
4278 # like to wrap large dependency lists on column 80 (with \), and
4279 # we should not choose a depcomp mode which is confused by this.
4280 #
4281 # We need to recreate these files for each test, as the compiler may
4282 # overwrite some of them when testing with obscure command lines.
4283 # This happens at least with the AIX C compiler.
4284 : > sub/conftest.c
4285 for i in 1 2 3 4 5 6; do
4286 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4287 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4288 # Solaris 10 /bin/sh.
4289 echo '/* dummy */' > sub/conftst$i.h
4290 done
4291 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4292
4293 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4294 # mode. It turns out that the SunPro C++ compiler does not properly
4295 # handle '-M -o', and we need to detect this. Also, some Intel
4296 # versions had trouble with output in subdirs.
4297 am__obj=sub/conftest.${OBJEXT-o}
4298 am__minus_obj="-o $am__obj"
4299 case $depmode in
4300 gcc)
4301 # This depmode causes a compiler race in universal mode.
4302 test "$am__universal" = false || continue
4303 ;;
4304 nosideeffect)
4305 # After this tag, mechanisms are not by side-effect, so they'll
4306 # only be used when explicitly requested.
4307 if test "x$enable_dependency_tracking" = xyes; then
4308 continue
4309 else
4310 break
4311 fi
4312 ;;
4313 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4314 # This compiler won't grok '-c -o', but also, the minuso test has
4315 # not run yet. These depmodes are late enough in the game, and
4316 # so weak that their functioning should not be impacted.
4317 am__obj=conftest.${OBJEXT-o}
4318 am__minus_obj=
4319 ;;
4320 none) break ;;
4321 esac
4322 if depmode=$depmode \
4323 source=sub/conftest.c object=$am__obj \
4324 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4325 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4326 >/dev/null 2>conftest.err &&
4327 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4328 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4329 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4330 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4331 # icc doesn't choke on unknown options, it will just issue warnings
4332 # or remarks (even with -Werror). So we grep stderr for any message
4333 # that says an option was ignored or not supported.
4334 # When given -MP, icc 7.0 and 7.1 complain thusly:
4335 # icc: Command line warning: ignoring option '-M'; no argument required
4336 # The diagnosis changed in icc 8.0:
4337 # icc: Command line remark: option '-MP' not supported
4338 if (grep 'ignoring option' conftest.err ||
4339 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4340 am_cv_CC_dependencies_compiler_type=$depmode
4341 break
4342 fi
4343 fi
4344 done
4345
4346 cd ..
4347 rm -rf conftest.dir
4348 else
4349 am_cv_CC_dependencies_compiler_type=none
4350 fi
4351
4352 fi
4353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4354 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4355 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4356
4357 if
4358 test "x$enable_dependency_tracking" != xno \
4359 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4360 am__fastdepCC_TRUE=
4361 am__fastdepCC_FALSE='#'
4362 else
4363 am__fastdepCC_TRUE='#'
4364 am__fastdepCC_FALSE=
4365 fi
4366
4367
4368
4369
4370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4371 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4372 if test ${ac_cv_c_undeclared_builtin_options+y}
4373 then :
4374 printf %s "(cached) " >&6
4375 else $as_nop
4376 ac_save_CFLAGS=$CFLAGS
4377 ac_cv_c_undeclared_builtin_options='cannot detect'
4378 for ac_arg in '' -fno-builtin; do
4379 CFLAGS="$ac_save_CFLAGS $ac_arg"
4380 # This test program should *not* compile successfully.
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h. */
4383
4384 int
4385 main (void)
4386 {
4387 (void) strchr;
4388 ;
4389 return 0;
4390 }
4391 _ACEOF
4392 if ac_fn_c_try_compile "$LINENO"
4393 then :
4394
4395 else $as_nop
4396 # This test program should compile successfully.
4397 # No library function is consistently available on
4398 # freestanding implementations, so test against a dummy
4399 # declaration. Include always-available headers on the
4400 # off chance that they somehow elicit warnings.
4401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4402 /* end confdefs.h. */
4403 #include <float.h>
4404 #include <limits.h>
4405 #include <stdarg.h>
4406 #include <stddef.h>
4407 extern void ac_decl (int, char *);
4408
4409 int
4410 main (void)
4411 {
4412 (void) ac_decl (0, (char *) 0);
4413 (void) ac_decl;
4414
4415 ;
4416 return 0;
4417 }
4418 _ACEOF
4419 if ac_fn_c_try_compile "$LINENO"
4420 then :
4421 if test x"$ac_arg" = x
4422 then :
4423 ac_cv_c_undeclared_builtin_options='none needed'
4424 else $as_nop
4425 ac_cv_c_undeclared_builtin_options=$ac_arg
4426 fi
4427 break
4428 fi
4429 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4430 fi
4431 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4432 done
4433 CFLAGS=$ac_save_CFLAGS
4434
4435 fi
4436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4437 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4438 case $ac_cv_c_undeclared_builtin_options in #(
4439 'cannot detect') :
4440 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4441 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4442 as_fn_error $? "cannot make $CC report undeclared builtins
4443 See \`config.log' for more details" "$LINENO" 5; } ;; #(
4444 'none needed') :
4445 ac_c_undeclared_builtin_options='' ;; #(
4446 *) :
4447 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4448 esac
4449
4450 ac_header= ac_cache=
4451 for ac_item in $ac_header_c_list
4452 do
4453 if test $ac_cache; then
4454 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4455 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4456 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4457 fi
4458 ac_header= ac_cache=
4459 elif test $ac_header; then
4460 ac_cache=$ac_item
4461 else
4462 ac_header=$ac_item
4463 fi
4464 done
4465
4466
4467
4468
4469
4470
4471
4472
4473 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4474 then :
4475
4476 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4477
4478 fi
4479
4480
4481
4482
4483 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4484 if test "x$ac_cv_have_decl___clang__" = xyes
4485 then :
4486 CLANGCC="yes"
4487 else $as_nop
4488 CLANGCC="no"
4489 fi
4490 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4491 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4492 then :
4493 INTELCC="yes"
4494 else $as_nop
4495 INTELCC="no"
4496 fi
4497 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4498 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4499 then :
4500 SUNCC="yes"
4501 else $as_nop
4502 SUNCC="no"
4503 fi
4504
4505
4506
4507
4508
4509
4510
4511
4512 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4513 if test -n "$ac_tool_prefix"; then
4514 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4515 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4517 printf %s "checking for $ac_word... " >&6; }
4518 if test ${ac_cv_path_PKG_CONFIG+y}
4519 then :
4520 printf %s "(cached) " >&6
4521 else $as_nop
4522 case $PKG_CONFIG in
4523 [\\/]* | ?:[\\/]*)
4524 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4525 ;;
4526 *)
4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 for as_dir in $PATH
4529 do
4530 IFS=$as_save_IFS
4531 case $as_dir in #(((
4532 '') as_dir=./ ;;
4533 */) ;;
4534 *) as_dir=$as_dir/ ;;
4535 esac
4536 for ac_exec_ext in '' $ac_executable_extensions; do
4537 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4538 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4540 break 2
4541 fi
4542 done
4543 done
4544 IFS=$as_save_IFS
4545
4546 ;;
4547 esac
4548 fi
4549 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4550 if test -n "$PKG_CONFIG"; then
4551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4552 printf "%s\n" "$PKG_CONFIG" >&6; }
4553 else
4554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4555 printf "%s\n" "no" >&6; }
4556 fi
4557
4558
4559 fi
4560 if test -z "$ac_cv_path_PKG_CONFIG"; then
4561 ac_pt_PKG_CONFIG=$PKG_CONFIG
4562 # Extract the first word of "pkg-config", so it can be a program name with args.
4563 set dummy pkg-config; ac_word=$2
4564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4565 printf %s "checking for $ac_word... " >&6; }
4566 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4567 then :
4568 printf %s "(cached) " >&6
4569 else $as_nop
4570 case $ac_pt_PKG_CONFIG in
4571 [\\/]* | ?:[\\/]*)
4572 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4573 ;;
4574 *)
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 for as_dir in $PATH
4577 do
4578 IFS=$as_save_IFS
4579 case $as_dir in #(((
4580 '') as_dir=./ ;;
4581 */) ;;
4582 *) as_dir=$as_dir/ ;;
4583 esac
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4586 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4588 break 2
4589 fi
4590 done
4591 done
4592 IFS=$as_save_IFS
4593
4594 ;;
4595 esac
4596 fi
4597 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4598 if test -n "$ac_pt_PKG_CONFIG"; then
4599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4600 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4601 else
4602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603 printf "%s\n" "no" >&6; }
4604 fi
4605
4606 if test "x$ac_pt_PKG_CONFIG" = x; then
4607 PKG_CONFIG=""
4608 else
4609 case $cross_compiling:$ac_tool_warned in
4610 yes:)
4611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4612 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4613 ac_tool_warned=yes ;;
4614 esac
4615 PKG_CONFIG=$ac_pt_PKG_CONFIG
4616 fi
4617 else
4618 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4619 fi
4620
4621 fi
4622 if test -n "$PKG_CONFIG"; then
4623 _pkg_min_version=0.9.0
4624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4625 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4626 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4628 printf "%s\n" "yes" >&6; }
4629 else
4630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631 printf "%s\n" "no" >&6; }
4632 PKG_CONFIG=""
4633 fi
4634 fi
4635
4636
4637 # Make sure we can run config.sub.
4638 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4639 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4640
4641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4642 printf %s "checking build system type... " >&6; }
4643 if test ${ac_cv_build+y}
4644 then :
4645 printf %s "(cached) " >&6
4646 else $as_nop
4647 ac_build_alias=$build_alias
4648 test "x$ac_build_alias" = x &&
4649 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4650 test "x$ac_build_alias" = x &&
4651 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4652 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4653 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4654
4655 fi
4656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4657 printf "%s\n" "$ac_cv_build" >&6; }
4658 case $ac_cv_build in
4659 *-*-*) ;;
4660 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4661 esac
4662 build=$ac_cv_build
4663 ac_save_IFS=$IFS; IFS='-'
4664 set x $ac_cv_build
4665 shift
4666 build_cpu=$1
4667 build_vendor=$2
4668 shift; shift
4669 # Remember, the first character of IFS is used to create $*,
4670 # except with old shells:
4671 build_os=$*
4672 IFS=$ac_save_IFS
4673 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4674
4675
4676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4677 printf %s "checking host system type... " >&6; }
4678 if test ${ac_cv_host+y}
4679 then :
4680 printf %s "(cached) " >&6
4681 else $as_nop
4682 if test "x$host_alias" = x; then
4683 ac_cv_host=$ac_cv_build
4684 else
4685 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4686 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4687 fi
4688
4689 fi
4690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4691 printf "%s\n" "$ac_cv_host" >&6; }
4692 case $ac_cv_host in
4693 *-*-*) ;;
4694 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4695 esac
4696 host=$ac_cv_host
4697 ac_save_IFS=$IFS; IFS='-'
4698 set x $ac_cv_host
4699 shift
4700 host_cpu=$1
4701 host_vendor=$2
4702 shift; shift
4703 # Remember, the first character of IFS is used to create $*,
4704 # except with old shells:
4705 host_os=$*
4706 IFS=$ac_save_IFS
4707 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4708
4709
4710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4711 printf %s "checking for a sed that does not truncate output... " >&6; }
4712 if test ${ac_cv_path_SED+y}
4713 then :
4714 printf %s "(cached) " >&6
4715 else $as_nop
4716 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4717 for ac_i in 1 2 3 4 5 6 7; do
4718 ac_script="$ac_script$as_nl$ac_script"
4719 done
4720 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4721 { ac_script=; unset ac_script;}
4722 if test -z "$SED"; then
4723 ac_path_SED_found=false
4724 # Loop through the user's path and test for each of PROGNAME-LIST
4725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726 for as_dir in $PATH
4727 do
4728 IFS=$as_save_IFS
4729 case $as_dir in #(((
4730 '') as_dir=./ ;;
4731 */) ;;
4732 *) as_dir=$as_dir/ ;;
4733 esac
4734 for ac_prog in sed gsed
4735 do
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4738 as_fn_executable_p "$ac_path_SED" || continue
4739 # Check for GNU ac_path_SED and select it if it is found.
4740 # Check for GNU $ac_path_SED
4741 case `"$ac_path_SED" --version 2>&1` in
4742 *GNU*)
4743 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4744 *)
4745 ac_count=0
4746 printf %s 0123456789 >"conftest.in"
4747 while :
4748 do
4749 cat "conftest.in" "conftest.in" >"conftest.tmp"
4750 mv "conftest.tmp" "conftest.in"
4751 cp "conftest.in" "conftest.nl"
4752 printf "%s\n" '' >> "conftest.nl"
4753 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4754 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4755 as_fn_arith $ac_count + 1 && ac_count=$as_val
4756 if test $ac_count -gt ${ac_path_SED_max-0}; then
4757 # Best one so far, save it but keep looking for a better one
4758 ac_cv_path_SED="$ac_path_SED"
4759 ac_path_SED_max=$ac_count
4760 fi
4761 # 10*(2^10) chars as input seems more than enough
4762 test $ac_count -gt 10 && break
4763 done
4764 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4765 esac
4766
4767 $ac_path_SED_found && break 3
4768 done
4769 done
4770 done
4771 IFS=$as_save_IFS
4772 if test -z "$ac_cv_path_SED"; then
4773 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4774 fi
4775 else
4776 ac_cv_path_SED=$SED
4777 fi
4778
4779 fi
4780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4781 printf "%s\n" "$ac_cv_path_SED" >&6; }
4782 SED="$ac_cv_path_SED"
4783 rm -f conftest.sed
4784
4785
4786
4787
4788
4789
4790 # Check whether --enable-selective-werror was given.
4791 if test ${enable_selective_werror+y}
4792 then :
4793 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4794 else $as_nop
4795 SELECTIVE_WERROR=yes
4796 fi
4797
4798
4799
4800
4801
4802 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4803 if test "x$SUNCC" = "xyes"; then
4804 BASE_CFLAGS="-v"
4805 else
4806 BASE_CFLAGS=""
4807 fi
4808
4809 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823 xorg_testset_save_CFLAGS="$CFLAGS"
4824
4825 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4826 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4828 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4829 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4830 then :
4831 printf %s "(cached) " >&6
4832 else $as_nop
4833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834 /* end confdefs.h. */
4835 int i;
4836 _ACEOF
4837 if ac_fn_c_try_compile "$LINENO"
4838 then :
4839 xorg_cv_cc_flag_unknown_warning_option=yes
4840 else $as_nop
4841 xorg_cv_cc_flag_unknown_warning_option=no
4842 fi
4843 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4844 fi
4845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4846 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4847 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4848 CFLAGS="$xorg_testset_save_CFLAGS"
4849 fi
4850
4851 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4854 fi
4855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4857 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4858 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4859 then :
4860 printf %s "(cached) " >&6
4861 else $as_nop
4862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863 /* end confdefs.h. */
4864 int i;
4865 _ACEOF
4866 if ac_fn_c_try_compile "$LINENO"
4867 then :
4868 xorg_cv_cc_flag_unused_command_line_argument=yes
4869 else $as_nop
4870 xorg_cv_cc_flag_unused_command_line_argument=no
4871 fi
4872 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4873 fi
4874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4875 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4876 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4877 CFLAGS="$xorg_testset_save_CFLAGS"
4878 fi
4879
4880 found="no"
4881
4882 if test $found = "no" ; then
4883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4885 fi
4886
4887 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4889 fi
4890
4891 CFLAGS="$CFLAGS -Wall"
4892
4893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4894 printf %s "checking if $CC supports -Wall... " >&6; }
4895 cacheid=xorg_cv_cc_flag__Wall
4896 if eval test \${$cacheid+y}
4897 then :
4898 printf %s "(cached) " >&6
4899 else $as_nop
4900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4901 /* end confdefs.h. */
4902 int i;
4903 int
4904 main (void)
4905 {
4906
4907 ;
4908 return 0;
4909 }
4910 _ACEOF
4911 if ac_fn_c_try_link "$LINENO"
4912 then :
4913 eval $cacheid=yes
4914 else $as_nop
4915 eval $cacheid=no
4916 fi
4917 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4918 conftest$ac_exeext conftest.$ac_ext
4919 fi
4920
4921
4922 CFLAGS="$xorg_testset_save_CFLAGS"
4923
4924 eval supported=\$$cacheid
4925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4926 printf "%s\n" "$supported" >&6; }
4927 if test "$supported" = "yes" ; then
4928 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4929 found="yes"
4930 fi
4931 fi
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947 xorg_testset_save_CFLAGS="$CFLAGS"
4948
4949 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4952 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4953 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4954 then :
4955 printf %s "(cached) " >&6
4956 else $as_nop
4957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958 /* end confdefs.h. */
4959 int i;
4960 _ACEOF
4961 if ac_fn_c_try_compile "$LINENO"
4962 then :
4963 xorg_cv_cc_flag_unknown_warning_option=yes
4964 else $as_nop
4965 xorg_cv_cc_flag_unknown_warning_option=no
4966 fi
4967 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4968 fi
4969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4970 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4971 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4972 CFLAGS="$xorg_testset_save_CFLAGS"
4973 fi
4974
4975 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4978 fi
4979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4981 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4982 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4983 then :
4984 printf %s "(cached) " >&6
4985 else $as_nop
4986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h. */
4988 int i;
4989 _ACEOF
4990 if ac_fn_c_try_compile "$LINENO"
4991 then :
4992 xorg_cv_cc_flag_unused_command_line_argument=yes
4993 else $as_nop
4994 xorg_cv_cc_flag_unused_command_line_argument=no
4995 fi
4996 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4997 fi
4998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4999 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5000 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5001 CFLAGS="$xorg_testset_save_CFLAGS"
5002 fi
5003
5004 found="no"
5005
5006 if test $found = "no" ; then
5007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5009 fi
5010
5011 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5013 fi
5014
5015 CFLAGS="$CFLAGS -Wpointer-arith"
5016
5017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5018 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5019 cacheid=xorg_cv_cc_flag__Wpointer_arith
5020 if eval test \${$cacheid+y}
5021 then :
5022 printf %s "(cached) " >&6
5023 else $as_nop
5024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5025 /* end confdefs.h. */
5026 int i;
5027 int
5028 main (void)
5029 {
5030
5031 ;
5032 return 0;
5033 }
5034 _ACEOF
5035 if ac_fn_c_try_link "$LINENO"
5036 then :
5037 eval $cacheid=yes
5038 else $as_nop
5039 eval $cacheid=no
5040 fi
5041 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5042 conftest$ac_exeext conftest.$ac_ext
5043 fi
5044
5045
5046 CFLAGS="$xorg_testset_save_CFLAGS"
5047
5048 eval supported=\$$cacheid
5049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5050 printf "%s\n" "$supported" >&6; }
5051 if test "$supported" = "yes" ; then
5052 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5053 found="yes"
5054 fi
5055 fi
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071 xorg_testset_save_CFLAGS="$CFLAGS"
5072
5073 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5074 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5076 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5077 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5078 then :
5079 printf %s "(cached) " >&6
5080 else $as_nop
5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082 /* end confdefs.h. */
5083 int i;
5084 _ACEOF
5085 if ac_fn_c_try_compile "$LINENO"
5086 then :
5087 xorg_cv_cc_flag_unknown_warning_option=yes
5088 else $as_nop
5089 xorg_cv_cc_flag_unknown_warning_option=no
5090 fi
5091 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5092 fi
5093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5094 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5095 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5096 CFLAGS="$xorg_testset_save_CFLAGS"
5097 fi
5098
5099 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5102 fi
5103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5105 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5106 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5107 then :
5108 printf %s "(cached) " >&6
5109 else $as_nop
5110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111 /* end confdefs.h. */
5112 int i;
5113 _ACEOF
5114 if ac_fn_c_try_compile "$LINENO"
5115 then :
5116 xorg_cv_cc_flag_unused_command_line_argument=yes
5117 else $as_nop
5118 xorg_cv_cc_flag_unused_command_line_argument=no
5119 fi
5120 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5121 fi
5122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5123 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5124 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5125 CFLAGS="$xorg_testset_save_CFLAGS"
5126 fi
5127
5128 found="no"
5129
5130 if test $found = "no" ; then
5131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5132 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5133 fi
5134
5135 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5137 fi
5138
5139 CFLAGS="$CFLAGS -Wmissing-declarations"
5140
5141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5142 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5143 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5144 if eval test \${$cacheid+y}
5145 then :
5146 printf %s "(cached) " >&6
5147 else $as_nop
5148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5149 /* end confdefs.h. */
5150 int i;
5151 int
5152 main (void)
5153 {
5154
5155 ;
5156 return 0;
5157 }
5158 _ACEOF
5159 if ac_fn_c_try_link "$LINENO"
5160 then :
5161 eval $cacheid=yes
5162 else $as_nop
5163 eval $cacheid=no
5164 fi
5165 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5166 conftest$ac_exeext conftest.$ac_ext
5167 fi
5168
5169
5170 CFLAGS="$xorg_testset_save_CFLAGS"
5171
5172 eval supported=\$$cacheid
5173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5174 printf "%s\n" "$supported" >&6; }
5175 if test "$supported" = "yes" ; then
5176 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5177 found="yes"
5178 fi
5179 fi
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195 xorg_testset_save_CFLAGS="$CFLAGS"
5196
5197 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5200 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5201 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5202 then :
5203 printf %s "(cached) " >&6
5204 else $as_nop
5205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5206 /* end confdefs.h. */
5207 int i;
5208 _ACEOF
5209 if ac_fn_c_try_compile "$LINENO"
5210 then :
5211 xorg_cv_cc_flag_unknown_warning_option=yes
5212 else $as_nop
5213 xorg_cv_cc_flag_unknown_warning_option=no
5214 fi
5215 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5216 fi
5217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5218 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5220 CFLAGS="$xorg_testset_save_CFLAGS"
5221 fi
5222
5223 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5226 fi
5227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5229 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5230 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5231 then :
5232 printf %s "(cached) " >&6
5233 else $as_nop
5234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5235 /* end confdefs.h. */
5236 int i;
5237 _ACEOF
5238 if ac_fn_c_try_compile "$LINENO"
5239 then :
5240 xorg_cv_cc_flag_unused_command_line_argument=yes
5241 else $as_nop
5242 xorg_cv_cc_flag_unused_command_line_argument=no
5243 fi
5244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5245 fi
5246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5247 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5248 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5249 CFLAGS="$xorg_testset_save_CFLAGS"
5250 fi
5251
5252 found="no"
5253
5254 if test $found = "no" ; then
5255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5257 fi
5258
5259 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5261 fi
5262
5263 CFLAGS="$CFLAGS -Wformat=2"
5264
5265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5266 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5267 cacheid=xorg_cv_cc_flag__Wformat_2
5268 if eval test \${$cacheid+y}
5269 then :
5270 printf %s "(cached) " >&6
5271 else $as_nop
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5274 int i;
5275 int
5276 main (void)
5277 {
5278
5279 ;
5280 return 0;
5281 }
5282 _ACEOF
5283 if ac_fn_c_try_link "$LINENO"
5284 then :
5285 eval $cacheid=yes
5286 else $as_nop
5287 eval $cacheid=no
5288 fi
5289 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5290 conftest$ac_exeext conftest.$ac_ext
5291 fi
5292
5293
5294 CFLAGS="$xorg_testset_save_CFLAGS"
5295
5296 eval supported=\$$cacheid
5297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5298 printf "%s\n" "$supported" >&6; }
5299 if test "$supported" = "yes" ; then
5300 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5301 found="yes"
5302 fi
5303 fi
5304
5305 if test $found = "no" ; then
5306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5307 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5308 fi
5309
5310 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5312 fi
5313
5314 CFLAGS="$CFLAGS -Wformat"
5315
5316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5317 printf %s "checking if $CC supports -Wformat... " >&6; }
5318 cacheid=xorg_cv_cc_flag__Wformat
5319 if eval test \${$cacheid+y}
5320 then :
5321 printf %s "(cached) " >&6
5322 else $as_nop
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h. */
5325 int i;
5326 int
5327 main (void)
5328 {
5329
5330 ;
5331 return 0;
5332 }
5333 _ACEOF
5334 if ac_fn_c_try_link "$LINENO"
5335 then :
5336 eval $cacheid=yes
5337 else $as_nop
5338 eval $cacheid=no
5339 fi
5340 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5341 conftest$ac_exeext conftest.$ac_ext
5342 fi
5343
5344
5345 CFLAGS="$xorg_testset_save_CFLAGS"
5346
5347 eval supported=\$$cacheid
5348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5349 printf "%s\n" "$supported" >&6; }
5350 if test "$supported" = "yes" ; then
5351 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5352 found="yes"
5353 fi
5354 fi
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372 xorg_testset_save_CFLAGS="$CFLAGS"
5373
5374 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5377 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5378 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5379 then :
5380 printf %s "(cached) " >&6
5381 else $as_nop
5382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383 /* end confdefs.h. */
5384 int i;
5385 _ACEOF
5386 if ac_fn_c_try_compile "$LINENO"
5387 then :
5388 xorg_cv_cc_flag_unknown_warning_option=yes
5389 else $as_nop
5390 xorg_cv_cc_flag_unknown_warning_option=no
5391 fi
5392 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5393 fi
5394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5395 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5396 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5397 CFLAGS="$xorg_testset_save_CFLAGS"
5398 fi
5399
5400 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5402 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5403 fi
5404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5406 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5407 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5408 then :
5409 printf %s "(cached) " >&6
5410 else $as_nop
5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412 /* end confdefs.h. */
5413 int i;
5414 _ACEOF
5415 if ac_fn_c_try_compile "$LINENO"
5416 then :
5417 xorg_cv_cc_flag_unused_command_line_argument=yes
5418 else $as_nop
5419 xorg_cv_cc_flag_unused_command_line_argument=no
5420 fi
5421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5422 fi
5423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5424 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5425 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5426 CFLAGS="$xorg_testset_save_CFLAGS"
5427 fi
5428
5429 found="no"
5430
5431 if test $found = "no" ; then
5432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5434 fi
5435
5436 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5438 fi
5439
5440 CFLAGS="$CFLAGS -Wstrict-prototypes"
5441
5442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5443 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5444 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5445 if eval test \${$cacheid+y}
5446 then :
5447 printf %s "(cached) " >&6
5448 else $as_nop
5449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5450 /* end confdefs.h. */
5451 int i;
5452 int
5453 main (void)
5454 {
5455
5456 ;
5457 return 0;
5458 }
5459 _ACEOF
5460 if ac_fn_c_try_link "$LINENO"
5461 then :
5462 eval $cacheid=yes
5463 else $as_nop
5464 eval $cacheid=no
5465 fi
5466 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5467 conftest$ac_exeext conftest.$ac_ext
5468 fi
5469
5470
5471 CFLAGS="$xorg_testset_save_CFLAGS"
5472
5473 eval supported=\$$cacheid
5474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5475 printf "%s\n" "$supported" >&6; }
5476 if test "$supported" = "yes" ; then
5477 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5478 found="yes"
5479 fi
5480 fi
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496 xorg_testset_save_CFLAGS="$CFLAGS"
5497
5498 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5501 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5502 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5503 then :
5504 printf %s "(cached) " >&6
5505 else $as_nop
5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5508 int i;
5509 _ACEOF
5510 if ac_fn_c_try_compile "$LINENO"
5511 then :
5512 xorg_cv_cc_flag_unknown_warning_option=yes
5513 else $as_nop
5514 xorg_cv_cc_flag_unknown_warning_option=no
5515 fi
5516 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5517 fi
5518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5519 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5520 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5521 CFLAGS="$xorg_testset_save_CFLAGS"
5522 fi
5523
5524 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5526 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5527 fi
5528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5530 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5531 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5532 then :
5533 printf %s "(cached) " >&6
5534 else $as_nop
5535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536 /* end confdefs.h. */
5537 int i;
5538 _ACEOF
5539 if ac_fn_c_try_compile "$LINENO"
5540 then :
5541 xorg_cv_cc_flag_unused_command_line_argument=yes
5542 else $as_nop
5543 xorg_cv_cc_flag_unused_command_line_argument=no
5544 fi
5545 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5546 fi
5547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5548 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5549 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5550 CFLAGS="$xorg_testset_save_CFLAGS"
5551 fi
5552
5553 found="no"
5554
5555 if test $found = "no" ; then
5556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5558 fi
5559
5560 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5562 fi
5563
5564 CFLAGS="$CFLAGS -Wmissing-prototypes"
5565
5566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5567 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5568 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5569 if eval test \${$cacheid+y}
5570 then :
5571 printf %s "(cached) " >&6
5572 else $as_nop
5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5575 int i;
5576 int
5577 main (void)
5578 {
5579
5580 ;
5581 return 0;
5582 }
5583 _ACEOF
5584 if ac_fn_c_try_link "$LINENO"
5585 then :
5586 eval $cacheid=yes
5587 else $as_nop
5588 eval $cacheid=no
5589 fi
5590 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5591 conftest$ac_exeext conftest.$ac_ext
5592 fi
5593
5594
5595 CFLAGS="$xorg_testset_save_CFLAGS"
5596
5597 eval supported=\$$cacheid
5598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5599 printf "%s\n" "$supported" >&6; }
5600 if test "$supported" = "yes" ; then
5601 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5602 found="yes"
5603 fi
5604 fi
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620 xorg_testset_save_CFLAGS="$CFLAGS"
5621
5622 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5625 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5626 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5627 then :
5628 printf %s "(cached) " >&6
5629 else $as_nop
5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631 /* end confdefs.h. */
5632 int i;
5633 _ACEOF
5634 if ac_fn_c_try_compile "$LINENO"
5635 then :
5636 xorg_cv_cc_flag_unknown_warning_option=yes
5637 else $as_nop
5638 xorg_cv_cc_flag_unknown_warning_option=no
5639 fi
5640 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5641 fi
5642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5643 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5644 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5645 CFLAGS="$xorg_testset_save_CFLAGS"
5646 fi
5647
5648 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5651 fi
5652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5654 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5655 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5656 then :
5657 printf %s "(cached) " >&6
5658 else $as_nop
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5661 int i;
5662 _ACEOF
5663 if ac_fn_c_try_compile "$LINENO"
5664 then :
5665 xorg_cv_cc_flag_unused_command_line_argument=yes
5666 else $as_nop
5667 xorg_cv_cc_flag_unused_command_line_argument=no
5668 fi
5669 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5670 fi
5671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5672 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5673 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5674 CFLAGS="$xorg_testset_save_CFLAGS"
5675 fi
5676
5677 found="no"
5678
5679 if test $found = "no" ; then
5680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5682 fi
5683
5684 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5686 fi
5687
5688 CFLAGS="$CFLAGS -Wnested-externs"
5689
5690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5691 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5692 cacheid=xorg_cv_cc_flag__Wnested_externs
5693 if eval test \${$cacheid+y}
5694 then :
5695 printf %s "(cached) " >&6
5696 else $as_nop
5697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698 /* end confdefs.h. */
5699 int i;
5700 int
5701 main (void)
5702 {
5703
5704 ;
5705 return 0;
5706 }
5707 _ACEOF
5708 if ac_fn_c_try_link "$LINENO"
5709 then :
5710 eval $cacheid=yes
5711 else $as_nop
5712 eval $cacheid=no
5713 fi
5714 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5715 conftest$ac_exeext conftest.$ac_ext
5716 fi
5717
5718
5719 CFLAGS="$xorg_testset_save_CFLAGS"
5720
5721 eval supported=\$$cacheid
5722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5723 printf "%s\n" "$supported" >&6; }
5724 if test "$supported" = "yes" ; then
5725 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5726 found="yes"
5727 fi
5728 fi
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744 xorg_testset_save_CFLAGS="$CFLAGS"
5745
5746 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5747 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5749 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5750 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5751 then :
5752 printf %s "(cached) " >&6
5753 else $as_nop
5754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5755 /* end confdefs.h. */
5756 int i;
5757 _ACEOF
5758 if ac_fn_c_try_compile "$LINENO"
5759 then :
5760 xorg_cv_cc_flag_unknown_warning_option=yes
5761 else $as_nop
5762 xorg_cv_cc_flag_unknown_warning_option=no
5763 fi
5764 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5765 fi
5766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5767 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5768 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5769 CFLAGS="$xorg_testset_save_CFLAGS"
5770 fi
5771
5772 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5774 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5775 fi
5776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5778 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5779 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5780 then :
5781 printf %s "(cached) " >&6
5782 else $as_nop
5783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5784 /* end confdefs.h. */
5785 int i;
5786 _ACEOF
5787 if ac_fn_c_try_compile "$LINENO"
5788 then :
5789 xorg_cv_cc_flag_unused_command_line_argument=yes
5790 else $as_nop
5791 xorg_cv_cc_flag_unused_command_line_argument=no
5792 fi
5793 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5794 fi
5795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5796 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5797 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5798 CFLAGS="$xorg_testset_save_CFLAGS"
5799 fi
5800
5801 found="no"
5802
5803 if test $found = "no" ; then
5804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5805 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5806 fi
5807
5808 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5810 fi
5811
5812 CFLAGS="$CFLAGS -Wbad-function-cast"
5813
5814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5815 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5816 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5817 if eval test \${$cacheid+y}
5818 then :
5819 printf %s "(cached) " >&6
5820 else $as_nop
5821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5822 /* end confdefs.h. */
5823 int i;
5824 int
5825 main (void)
5826 {
5827
5828 ;
5829 return 0;
5830 }
5831 _ACEOF
5832 if ac_fn_c_try_link "$LINENO"
5833 then :
5834 eval $cacheid=yes
5835 else $as_nop
5836 eval $cacheid=no
5837 fi
5838 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5839 conftest$ac_exeext conftest.$ac_ext
5840 fi
5841
5842
5843 CFLAGS="$xorg_testset_save_CFLAGS"
5844
5845 eval supported=\$$cacheid
5846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5847 printf "%s\n" "$supported" >&6; }
5848 if test "$supported" = "yes" ; then
5849 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5850 found="yes"
5851 fi
5852 fi
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868 xorg_testset_save_CFLAGS="$CFLAGS"
5869
5870 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5873 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5874 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5875 then :
5876 printf %s "(cached) " >&6
5877 else $as_nop
5878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5879 /* end confdefs.h. */
5880 int i;
5881 _ACEOF
5882 if ac_fn_c_try_compile "$LINENO"
5883 then :
5884 xorg_cv_cc_flag_unknown_warning_option=yes
5885 else $as_nop
5886 xorg_cv_cc_flag_unknown_warning_option=no
5887 fi
5888 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5889 fi
5890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5891 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5892 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5893 CFLAGS="$xorg_testset_save_CFLAGS"
5894 fi
5895
5896 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5899 fi
5900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5902 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5903 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5904 then :
5905 printf %s "(cached) " >&6
5906 else $as_nop
5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h. */
5909 int i;
5910 _ACEOF
5911 if ac_fn_c_try_compile "$LINENO"
5912 then :
5913 xorg_cv_cc_flag_unused_command_line_argument=yes
5914 else $as_nop
5915 xorg_cv_cc_flag_unused_command_line_argument=no
5916 fi
5917 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5918 fi
5919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5920 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5921 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5922 CFLAGS="$xorg_testset_save_CFLAGS"
5923 fi
5924
5925 found="no"
5926
5927 if test $found = "no" ; then
5928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5930 fi
5931
5932 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5934 fi
5935
5936 CFLAGS="$CFLAGS -Wold-style-definition"
5937
5938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5939 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
5940 cacheid=xorg_cv_cc_flag__Wold_style_definition
5941 if eval test \${$cacheid+y}
5942 then :
5943 printf %s "(cached) " >&6
5944 else $as_nop
5945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5946 /* end confdefs.h. */
5947 int i;
5948 int
5949 main (void)
5950 {
5951
5952 ;
5953 return 0;
5954 }
5955 _ACEOF
5956 if ac_fn_c_try_link "$LINENO"
5957 then :
5958 eval $cacheid=yes
5959 else $as_nop
5960 eval $cacheid=no
5961 fi
5962 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5963 conftest$ac_exeext conftest.$ac_ext
5964 fi
5965
5966
5967 CFLAGS="$xorg_testset_save_CFLAGS"
5968
5969 eval supported=\$$cacheid
5970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5971 printf "%s\n" "$supported" >&6; }
5972 if test "$supported" = "yes" ; then
5973 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5974 found="yes"
5975 fi
5976 fi
5977
5978 if test $found = "no" ; then
5979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5981 fi
5982
5983 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5985 fi
5986
5987 CFLAGS="$CFLAGS -fd"
5988
5989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5990 printf %s "checking if $CC supports -fd... " >&6; }
5991 cacheid=xorg_cv_cc_flag__fd
5992 if eval test \${$cacheid+y}
5993 then :
5994 printf %s "(cached) " >&6
5995 else $as_nop
5996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5997 /* end confdefs.h. */
5998 int i;
5999 int
6000 main (void)
6001 {
6002
6003 ;
6004 return 0;
6005 }
6006 _ACEOF
6007 if ac_fn_c_try_link "$LINENO"
6008 then :
6009 eval $cacheid=yes
6010 else $as_nop
6011 eval $cacheid=no
6012 fi
6013 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6014 conftest$ac_exeext conftest.$ac_ext
6015 fi
6016
6017
6018 CFLAGS="$xorg_testset_save_CFLAGS"
6019
6020 eval supported=\$$cacheid
6021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6022 printf "%s\n" "$supported" >&6; }
6023 if test "$supported" = "yes" ; then
6024 BASE_CFLAGS="$BASE_CFLAGS -fd"
6025 found="yes"
6026 fi
6027 fi
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043 xorg_testset_save_CFLAGS="$CFLAGS"
6044
6045 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6046 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6048 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6049 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6050 then :
6051 printf %s "(cached) " >&6
6052 else $as_nop
6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h. */
6055 int i;
6056 _ACEOF
6057 if ac_fn_c_try_compile "$LINENO"
6058 then :
6059 xorg_cv_cc_flag_unknown_warning_option=yes
6060 else $as_nop
6061 xorg_cv_cc_flag_unknown_warning_option=no
6062 fi
6063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6064 fi
6065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6066 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6067 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6068 CFLAGS="$xorg_testset_save_CFLAGS"
6069 fi
6070
6071 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6074 fi
6075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6077 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6078 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6079 then :
6080 printf %s "(cached) " >&6
6081 else $as_nop
6082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6083 /* end confdefs.h. */
6084 int i;
6085 _ACEOF
6086 if ac_fn_c_try_compile "$LINENO"
6087 then :
6088 xorg_cv_cc_flag_unused_command_line_argument=yes
6089 else $as_nop
6090 xorg_cv_cc_flag_unused_command_line_argument=no
6091 fi
6092 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6093 fi
6094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6095 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6096 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6097 CFLAGS="$xorg_testset_save_CFLAGS"
6098 fi
6099
6100 found="no"
6101
6102 if test $found = "no" ; then
6103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6105 fi
6106
6107 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6109 fi
6110
6111 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6112
6113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6114 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6115 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6116 if eval test \${$cacheid+y}
6117 then :
6118 printf %s "(cached) " >&6
6119 else $as_nop
6120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6121 /* end confdefs.h. */
6122 int i;
6123 int
6124 main (void)
6125 {
6126
6127 ;
6128 return 0;
6129 }
6130 _ACEOF
6131 if ac_fn_c_try_link "$LINENO"
6132 then :
6133 eval $cacheid=yes
6134 else $as_nop
6135 eval $cacheid=no
6136 fi
6137 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6138 conftest$ac_exeext conftest.$ac_ext
6139 fi
6140
6141
6142 CFLAGS="$xorg_testset_save_CFLAGS"
6143
6144 eval supported=\$$cacheid
6145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6146 printf "%s\n" "$supported" >&6; }
6147 if test "$supported" = "yes" ; then
6148 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6149 found="yes"
6150 fi
6151 fi
6152
6153
6154
6155
6156
6157 # This chunk adds additional warnings that could catch undesired effects.
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171 xorg_testset_save_CFLAGS="$CFLAGS"
6172
6173 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6176 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6177 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6178 then :
6179 printf %s "(cached) " >&6
6180 else $as_nop
6181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6182 /* end confdefs.h. */
6183 int i;
6184 _ACEOF
6185 if ac_fn_c_try_compile "$LINENO"
6186 then :
6187 xorg_cv_cc_flag_unknown_warning_option=yes
6188 else $as_nop
6189 xorg_cv_cc_flag_unknown_warning_option=no
6190 fi
6191 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6192 fi
6193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6194 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6195 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6196 CFLAGS="$xorg_testset_save_CFLAGS"
6197 fi
6198
6199 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6201 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6202 fi
6203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6205 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6206 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6207 then :
6208 printf %s "(cached) " >&6
6209 else $as_nop
6210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6211 /* end confdefs.h. */
6212 int i;
6213 _ACEOF
6214 if ac_fn_c_try_compile "$LINENO"
6215 then :
6216 xorg_cv_cc_flag_unused_command_line_argument=yes
6217 else $as_nop
6218 xorg_cv_cc_flag_unused_command_line_argument=no
6219 fi
6220 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6221 fi
6222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6223 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6224 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6225 CFLAGS="$xorg_testset_save_CFLAGS"
6226 fi
6227
6228 found="no"
6229
6230 if test $found = "no" ; then
6231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6232 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6233 fi
6234
6235 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6237 fi
6238
6239 CFLAGS="$CFLAGS -Wunused"
6240
6241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6242 printf %s "checking if $CC supports -Wunused... " >&6; }
6243 cacheid=xorg_cv_cc_flag__Wunused
6244 if eval test \${$cacheid+y}
6245 then :
6246 printf %s "(cached) " >&6
6247 else $as_nop
6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249 /* end confdefs.h. */
6250 int i;
6251 int
6252 main (void)
6253 {
6254
6255 ;
6256 return 0;
6257 }
6258 _ACEOF
6259 if ac_fn_c_try_link "$LINENO"
6260 then :
6261 eval $cacheid=yes
6262 else $as_nop
6263 eval $cacheid=no
6264 fi
6265 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6266 conftest$ac_exeext conftest.$ac_ext
6267 fi
6268
6269
6270 CFLAGS="$xorg_testset_save_CFLAGS"
6271
6272 eval supported=\$$cacheid
6273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6274 printf "%s\n" "$supported" >&6; }
6275 if test "$supported" = "yes" ; then
6276 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6277 found="yes"
6278 fi
6279 fi
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295 xorg_testset_save_CFLAGS="$CFLAGS"
6296
6297 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6298 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6300 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6301 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6302 then :
6303 printf %s "(cached) " >&6
6304 else $as_nop
6305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6306 /* end confdefs.h. */
6307 int i;
6308 _ACEOF
6309 if ac_fn_c_try_compile "$LINENO"
6310 then :
6311 xorg_cv_cc_flag_unknown_warning_option=yes
6312 else $as_nop
6313 xorg_cv_cc_flag_unknown_warning_option=no
6314 fi
6315 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6316 fi
6317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6318 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6319 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6320 CFLAGS="$xorg_testset_save_CFLAGS"
6321 fi
6322
6323 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6324 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6325 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6326 fi
6327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6329 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6330 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6331 then :
6332 printf %s "(cached) " >&6
6333 else $as_nop
6334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6335 /* end confdefs.h. */
6336 int i;
6337 _ACEOF
6338 if ac_fn_c_try_compile "$LINENO"
6339 then :
6340 xorg_cv_cc_flag_unused_command_line_argument=yes
6341 else $as_nop
6342 xorg_cv_cc_flag_unused_command_line_argument=no
6343 fi
6344 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6345 fi
6346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6347 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6348 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6349 CFLAGS="$xorg_testset_save_CFLAGS"
6350 fi
6351
6352 found="no"
6353
6354 if test $found = "no" ; then
6355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6357 fi
6358
6359 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6361 fi
6362
6363 CFLAGS="$CFLAGS -Wuninitialized"
6364
6365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6366 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6367 cacheid=xorg_cv_cc_flag__Wuninitialized
6368 if eval test \${$cacheid+y}
6369 then :
6370 printf %s "(cached) " >&6
6371 else $as_nop
6372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6373 /* end confdefs.h. */
6374 int i;
6375 int
6376 main (void)
6377 {
6378
6379 ;
6380 return 0;
6381 }
6382 _ACEOF
6383 if ac_fn_c_try_link "$LINENO"
6384 then :
6385 eval $cacheid=yes
6386 else $as_nop
6387 eval $cacheid=no
6388 fi
6389 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6390 conftest$ac_exeext conftest.$ac_ext
6391 fi
6392
6393
6394 CFLAGS="$xorg_testset_save_CFLAGS"
6395
6396 eval supported=\$$cacheid
6397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6398 printf "%s\n" "$supported" >&6; }
6399 if test "$supported" = "yes" ; then
6400 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6401 found="yes"
6402 fi
6403 fi
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419 xorg_testset_save_CFLAGS="$CFLAGS"
6420
6421 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6424 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6425 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6426 then :
6427 printf %s "(cached) " >&6
6428 else $as_nop
6429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430 /* end confdefs.h. */
6431 int i;
6432 _ACEOF
6433 if ac_fn_c_try_compile "$LINENO"
6434 then :
6435 xorg_cv_cc_flag_unknown_warning_option=yes
6436 else $as_nop
6437 xorg_cv_cc_flag_unknown_warning_option=no
6438 fi
6439 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6440 fi
6441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6442 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6443 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6444 CFLAGS="$xorg_testset_save_CFLAGS"
6445 fi
6446
6447 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6449 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6450 fi
6451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6453 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6454 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6455 then :
6456 printf %s "(cached) " >&6
6457 else $as_nop
6458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6460 int i;
6461 _ACEOF
6462 if ac_fn_c_try_compile "$LINENO"
6463 then :
6464 xorg_cv_cc_flag_unused_command_line_argument=yes
6465 else $as_nop
6466 xorg_cv_cc_flag_unused_command_line_argument=no
6467 fi
6468 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6469 fi
6470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6471 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6472 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6473 CFLAGS="$xorg_testset_save_CFLAGS"
6474 fi
6475
6476 found="no"
6477
6478 if test $found = "no" ; then
6479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6480 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6481 fi
6482
6483 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6485 fi
6486
6487 CFLAGS="$CFLAGS -Wshadow"
6488
6489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6490 printf %s "checking if $CC supports -Wshadow... " >&6; }
6491 cacheid=xorg_cv_cc_flag__Wshadow
6492 if eval test \${$cacheid+y}
6493 then :
6494 printf %s "(cached) " >&6
6495 else $as_nop
6496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6497 /* end confdefs.h. */
6498 int i;
6499 int
6500 main (void)
6501 {
6502
6503 ;
6504 return 0;
6505 }
6506 _ACEOF
6507 if ac_fn_c_try_link "$LINENO"
6508 then :
6509 eval $cacheid=yes
6510 else $as_nop
6511 eval $cacheid=no
6512 fi
6513 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6514 conftest$ac_exeext conftest.$ac_ext
6515 fi
6516
6517
6518 CFLAGS="$xorg_testset_save_CFLAGS"
6519
6520 eval supported=\$$cacheid
6521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6522 printf "%s\n" "$supported" >&6; }
6523 if test "$supported" = "yes" ; then
6524 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6525 found="yes"
6526 fi
6527 fi
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543 xorg_testset_save_CFLAGS="$CFLAGS"
6544
6545 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6548 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6549 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6550 then :
6551 printf %s "(cached) " >&6
6552 else $as_nop
6553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6554 /* end confdefs.h. */
6555 int i;
6556 _ACEOF
6557 if ac_fn_c_try_compile "$LINENO"
6558 then :
6559 xorg_cv_cc_flag_unknown_warning_option=yes
6560 else $as_nop
6561 xorg_cv_cc_flag_unknown_warning_option=no
6562 fi
6563 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6564 fi
6565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6566 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6567 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6568 CFLAGS="$xorg_testset_save_CFLAGS"
6569 fi
6570
6571 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6574 fi
6575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6577 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6578 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6579 then :
6580 printf %s "(cached) " >&6
6581 else $as_nop
6582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583 /* end confdefs.h. */
6584 int i;
6585 _ACEOF
6586 if ac_fn_c_try_compile "$LINENO"
6587 then :
6588 xorg_cv_cc_flag_unused_command_line_argument=yes
6589 else $as_nop
6590 xorg_cv_cc_flag_unused_command_line_argument=no
6591 fi
6592 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6593 fi
6594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6595 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6596 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6597 CFLAGS="$xorg_testset_save_CFLAGS"
6598 fi
6599
6600 found="no"
6601
6602 if test $found = "no" ; then
6603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6605 fi
6606
6607 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6609 fi
6610
6611 CFLAGS="$CFLAGS -Wmissing-noreturn"
6612
6613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6614 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6615 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6616 if eval test \${$cacheid+y}
6617 then :
6618 printf %s "(cached) " >&6
6619 else $as_nop
6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621 /* end confdefs.h. */
6622 int i;
6623 int
6624 main (void)
6625 {
6626
6627 ;
6628 return 0;
6629 }
6630 _ACEOF
6631 if ac_fn_c_try_link "$LINENO"
6632 then :
6633 eval $cacheid=yes
6634 else $as_nop
6635 eval $cacheid=no
6636 fi
6637 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6638 conftest$ac_exeext conftest.$ac_ext
6639 fi
6640
6641
6642 CFLAGS="$xorg_testset_save_CFLAGS"
6643
6644 eval supported=\$$cacheid
6645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6646 printf "%s\n" "$supported" >&6; }
6647 if test "$supported" = "yes" ; then
6648 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6649 found="yes"
6650 fi
6651 fi
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667 xorg_testset_save_CFLAGS="$CFLAGS"
6668
6669 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6670 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6672 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6673 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6674 then :
6675 printf %s "(cached) " >&6
6676 else $as_nop
6677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678 /* end confdefs.h. */
6679 int i;
6680 _ACEOF
6681 if ac_fn_c_try_compile "$LINENO"
6682 then :
6683 xorg_cv_cc_flag_unknown_warning_option=yes
6684 else $as_nop
6685 xorg_cv_cc_flag_unknown_warning_option=no
6686 fi
6687 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6688 fi
6689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6690 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6691 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6692 CFLAGS="$xorg_testset_save_CFLAGS"
6693 fi
6694
6695 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6698 fi
6699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6701 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6702 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6703 then :
6704 printf %s "(cached) " >&6
6705 else $as_nop
6706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707 /* end confdefs.h. */
6708 int i;
6709 _ACEOF
6710 if ac_fn_c_try_compile "$LINENO"
6711 then :
6712 xorg_cv_cc_flag_unused_command_line_argument=yes
6713 else $as_nop
6714 xorg_cv_cc_flag_unused_command_line_argument=no
6715 fi
6716 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6717 fi
6718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6719 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6720 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6721 CFLAGS="$xorg_testset_save_CFLAGS"
6722 fi
6723
6724 found="no"
6725
6726 if test $found = "no" ; then
6727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6729 fi
6730
6731 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6733 fi
6734
6735 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6736
6737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6738 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6739 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6740 if eval test \${$cacheid+y}
6741 then :
6742 printf %s "(cached) " >&6
6743 else $as_nop
6744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745 /* end confdefs.h. */
6746 int i;
6747 int
6748 main (void)
6749 {
6750
6751 ;
6752 return 0;
6753 }
6754 _ACEOF
6755 if ac_fn_c_try_link "$LINENO"
6756 then :
6757 eval $cacheid=yes
6758 else $as_nop
6759 eval $cacheid=no
6760 fi
6761 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6762 conftest$ac_exeext conftest.$ac_ext
6763 fi
6764
6765
6766 CFLAGS="$xorg_testset_save_CFLAGS"
6767
6768 eval supported=\$$cacheid
6769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6770 printf "%s\n" "$supported" >&6; }
6771 if test "$supported" = "yes" ; then
6772 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6773 found="yes"
6774 fi
6775 fi
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791 xorg_testset_save_CFLAGS="$CFLAGS"
6792
6793 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6796 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6797 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6798 then :
6799 printf %s "(cached) " >&6
6800 else $as_nop
6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h. */
6803 int i;
6804 _ACEOF
6805 if ac_fn_c_try_compile "$LINENO"
6806 then :
6807 xorg_cv_cc_flag_unknown_warning_option=yes
6808 else $as_nop
6809 xorg_cv_cc_flag_unknown_warning_option=no
6810 fi
6811 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6812 fi
6813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6814 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6815 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6816 CFLAGS="$xorg_testset_save_CFLAGS"
6817 fi
6818
6819 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6822 fi
6823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6825 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6826 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6827 then :
6828 printf %s "(cached) " >&6
6829 else $as_nop
6830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6831 /* end confdefs.h. */
6832 int i;
6833 _ACEOF
6834 if ac_fn_c_try_compile "$LINENO"
6835 then :
6836 xorg_cv_cc_flag_unused_command_line_argument=yes
6837 else $as_nop
6838 xorg_cv_cc_flag_unused_command_line_argument=no
6839 fi
6840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6841 fi
6842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6843 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6844 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6845 CFLAGS="$xorg_testset_save_CFLAGS"
6846 fi
6847
6848 found="no"
6849
6850 if test $found = "no" ; then
6851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6853 fi
6854
6855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6857 fi
6858
6859 CFLAGS="$CFLAGS -Wredundant-decls"
6860
6861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6862 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6863 cacheid=xorg_cv_cc_flag__Wredundant_decls
6864 if eval test \${$cacheid+y}
6865 then :
6866 printf %s "(cached) " >&6
6867 else $as_nop
6868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6869 /* end confdefs.h. */
6870 int i;
6871 int
6872 main (void)
6873 {
6874
6875 ;
6876 return 0;
6877 }
6878 _ACEOF
6879 if ac_fn_c_try_link "$LINENO"
6880 then :
6881 eval $cacheid=yes
6882 else $as_nop
6883 eval $cacheid=no
6884 fi
6885 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6886 conftest$ac_exeext conftest.$ac_ext
6887 fi
6888
6889
6890 CFLAGS="$xorg_testset_save_CFLAGS"
6891
6892 eval supported=\$$cacheid
6893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6894 printf "%s\n" "$supported" >&6; }
6895 if test "$supported" = "yes" ; then
6896 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6897 found="yes"
6898 fi
6899 fi
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915 xorg_testset_save_CFLAGS="$CFLAGS"
6916
6917 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6918 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6920 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6921 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6922 then :
6923 printf %s "(cached) " >&6
6924 else $as_nop
6925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6926 /* end confdefs.h. */
6927 int i;
6928 _ACEOF
6929 if ac_fn_c_try_compile "$LINENO"
6930 then :
6931 xorg_cv_cc_flag_unknown_warning_option=yes
6932 else $as_nop
6933 xorg_cv_cc_flag_unknown_warning_option=no
6934 fi
6935 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6936 fi
6937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6938 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6939 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6940 CFLAGS="$xorg_testset_save_CFLAGS"
6941 fi
6942
6943 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6946 fi
6947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6949 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6950 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6951 then :
6952 printf %s "(cached) " >&6
6953 else $as_nop
6954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955 /* end confdefs.h. */
6956 int i;
6957 _ACEOF
6958 if ac_fn_c_try_compile "$LINENO"
6959 then :
6960 xorg_cv_cc_flag_unused_command_line_argument=yes
6961 else $as_nop
6962 xorg_cv_cc_flag_unused_command_line_argument=no
6963 fi
6964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6965 fi
6966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6967 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6968 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6969 CFLAGS="$xorg_testset_save_CFLAGS"
6970 fi
6971
6972 found="no"
6973
6974 if test $found = "no" ; then
6975 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6977 fi
6978
6979 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6981 fi
6982
6983 CFLAGS="$CFLAGS -Wlogical-op"
6984
6985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6986 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
6987 cacheid=xorg_cv_cc_flag__Wlogical_op
6988 if eval test \${$cacheid+y}
6989 then :
6990 printf %s "(cached) " >&6
6991 else $as_nop
6992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6993 /* end confdefs.h. */
6994 int i;
6995 int
6996 main (void)
6997 {
6998
6999 ;
7000 return 0;
7001 }
7002 _ACEOF
7003 if ac_fn_c_try_link "$LINENO"
7004 then :
7005 eval $cacheid=yes
7006 else $as_nop
7007 eval $cacheid=no
7008 fi
7009 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7010 conftest$ac_exeext conftest.$ac_ext
7011 fi
7012
7013
7014 CFLAGS="$xorg_testset_save_CFLAGS"
7015
7016 eval supported=\$$cacheid
7017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7018 printf "%s\n" "$supported" >&6; }
7019 if test "$supported" = "yes" ; then
7020 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7021 found="yes"
7022 fi
7023 fi
7024
7025
7026
7027 # These are currently disabled because they are noisy. They will be enabled
7028 # in the future once the codebase is sufficiently modernized to silence
7029 # them. For now, I don't want them to drown out the other warnings.
7030 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7031 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7032 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7033
7034 # Turn some warnings into errors, so we don't accidently get successful builds
7035 # when there are problems that should be fixed.
7036
7037 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051 xorg_testset_save_CFLAGS="$CFLAGS"
7052
7053 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7054 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7056 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7057 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7058 then :
7059 printf %s "(cached) " >&6
7060 else $as_nop
7061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7062 /* end confdefs.h. */
7063 int i;
7064 _ACEOF
7065 if ac_fn_c_try_compile "$LINENO"
7066 then :
7067 xorg_cv_cc_flag_unknown_warning_option=yes
7068 else $as_nop
7069 xorg_cv_cc_flag_unknown_warning_option=no
7070 fi
7071 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7072 fi
7073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7074 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7075 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7076 CFLAGS="$xorg_testset_save_CFLAGS"
7077 fi
7078
7079 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7082 fi
7083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7085 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7086 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7087 then :
7088 printf %s "(cached) " >&6
7089 else $as_nop
7090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7091 /* end confdefs.h. */
7092 int i;
7093 _ACEOF
7094 if ac_fn_c_try_compile "$LINENO"
7095 then :
7096 xorg_cv_cc_flag_unused_command_line_argument=yes
7097 else $as_nop
7098 xorg_cv_cc_flag_unused_command_line_argument=no
7099 fi
7100 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7101 fi
7102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7103 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7104 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7105 CFLAGS="$xorg_testset_save_CFLAGS"
7106 fi
7107
7108 found="no"
7109
7110 if test $found = "no" ; then
7111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7113 fi
7114
7115 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7117 fi
7118
7119 CFLAGS="$CFLAGS -Werror=implicit"
7120
7121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7122 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7123 cacheid=xorg_cv_cc_flag__Werror_implicit
7124 if eval test \${$cacheid+y}
7125 then :
7126 printf %s "(cached) " >&6
7127 else $as_nop
7128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7129 /* end confdefs.h. */
7130 int i;
7131 int
7132 main (void)
7133 {
7134
7135 ;
7136 return 0;
7137 }
7138 _ACEOF
7139 if ac_fn_c_try_link "$LINENO"
7140 then :
7141 eval $cacheid=yes
7142 else $as_nop
7143 eval $cacheid=no
7144 fi
7145 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7146 conftest$ac_exeext conftest.$ac_ext
7147 fi
7148
7149
7150 CFLAGS="$xorg_testset_save_CFLAGS"
7151
7152 eval supported=\$$cacheid
7153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7154 printf "%s\n" "$supported" >&6; }
7155 if test "$supported" = "yes" ; then
7156 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7157 found="yes"
7158 fi
7159 fi
7160
7161 if test $found = "no" ; then
7162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7164 fi
7165
7166 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7168 fi
7169
7170 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7171
7172 { 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
7173 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7174 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7175 if eval test \${$cacheid+y}
7176 then :
7177 printf %s "(cached) " >&6
7178 else $as_nop
7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h. */
7181 int i;
7182 int
7183 main (void)
7184 {
7185
7186 ;
7187 return 0;
7188 }
7189 _ACEOF
7190 if ac_fn_c_try_link "$LINENO"
7191 then :
7192 eval $cacheid=yes
7193 else $as_nop
7194 eval $cacheid=no
7195 fi
7196 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7197 conftest$ac_exeext conftest.$ac_ext
7198 fi
7199
7200
7201 CFLAGS="$xorg_testset_save_CFLAGS"
7202
7203 eval supported=\$$cacheid
7204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7205 printf "%s\n" "$supported" >&6; }
7206 if test "$supported" = "yes" ; then
7207 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7208 found="yes"
7209 fi
7210 fi
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226 xorg_testset_save_CFLAGS="$CFLAGS"
7227
7228 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7229 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7231 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7232 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7233 then :
7234 printf %s "(cached) " >&6
7235 else $as_nop
7236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7237 /* end confdefs.h. */
7238 int i;
7239 _ACEOF
7240 if ac_fn_c_try_compile "$LINENO"
7241 then :
7242 xorg_cv_cc_flag_unknown_warning_option=yes
7243 else $as_nop
7244 xorg_cv_cc_flag_unknown_warning_option=no
7245 fi
7246 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7247 fi
7248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7249 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7250 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7251 CFLAGS="$xorg_testset_save_CFLAGS"
7252 fi
7253
7254 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7257 fi
7258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7260 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7261 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7262 then :
7263 printf %s "(cached) " >&6
7264 else $as_nop
7265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266 /* end confdefs.h. */
7267 int i;
7268 _ACEOF
7269 if ac_fn_c_try_compile "$LINENO"
7270 then :
7271 xorg_cv_cc_flag_unused_command_line_argument=yes
7272 else $as_nop
7273 xorg_cv_cc_flag_unused_command_line_argument=no
7274 fi
7275 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7276 fi
7277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7278 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7279 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7280 CFLAGS="$xorg_testset_save_CFLAGS"
7281 fi
7282
7283 found="no"
7284
7285 if test $found = "no" ; then
7286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7288 fi
7289
7290 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7292 fi
7293
7294 CFLAGS="$CFLAGS -Werror=nonnull"
7295
7296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7297 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7298 cacheid=xorg_cv_cc_flag__Werror_nonnull
7299 if eval test \${$cacheid+y}
7300 then :
7301 printf %s "(cached) " >&6
7302 else $as_nop
7303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304 /* end confdefs.h. */
7305 int i;
7306 int
7307 main (void)
7308 {
7309
7310 ;
7311 return 0;
7312 }
7313 _ACEOF
7314 if ac_fn_c_try_link "$LINENO"
7315 then :
7316 eval $cacheid=yes
7317 else $as_nop
7318 eval $cacheid=no
7319 fi
7320 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7321 conftest$ac_exeext conftest.$ac_ext
7322 fi
7323
7324
7325 CFLAGS="$xorg_testset_save_CFLAGS"
7326
7327 eval supported=\$$cacheid
7328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7329 printf "%s\n" "$supported" >&6; }
7330 if test "$supported" = "yes" ; then
7331 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7332 found="yes"
7333 fi
7334 fi
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350 xorg_testset_save_CFLAGS="$CFLAGS"
7351
7352 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7353 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7355 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7356 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7357 then :
7358 printf %s "(cached) " >&6
7359 else $as_nop
7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361 /* end confdefs.h. */
7362 int i;
7363 _ACEOF
7364 if ac_fn_c_try_compile "$LINENO"
7365 then :
7366 xorg_cv_cc_flag_unknown_warning_option=yes
7367 else $as_nop
7368 xorg_cv_cc_flag_unknown_warning_option=no
7369 fi
7370 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7371 fi
7372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7373 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7374 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7375 CFLAGS="$xorg_testset_save_CFLAGS"
7376 fi
7377
7378 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7381 fi
7382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7384 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7385 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7386 then :
7387 printf %s "(cached) " >&6
7388 else $as_nop
7389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7390 /* end confdefs.h. */
7391 int i;
7392 _ACEOF
7393 if ac_fn_c_try_compile "$LINENO"
7394 then :
7395 xorg_cv_cc_flag_unused_command_line_argument=yes
7396 else $as_nop
7397 xorg_cv_cc_flag_unused_command_line_argument=no
7398 fi
7399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7400 fi
7401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7402 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7403 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7404 CFLAGS="$xorg_testset_save_CFLAGS"
7405 fi
7406
7407 found="no"
7408
7409 if test $found = "no" ; then
7410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7412 fi
7413
7414 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7416 fi
7417
7418 CFLAGS="$CFLAGS -Werror=init-self"
7419
7420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7421 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7422 cacheid=xorg_cv_cc_flag__Werror_init_self
7423 if eval test \${$cacheid+y}
7424 then :
7425 printf %s "(cached) " >&6
7426 else $as_nop
7427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7428 /* end confdefs.h. */
7429 int i;
7430 int
7431 main (void)
7432 {
7433
7434 ;
7435 return 0;
7436 }
7437 _ACEOF
7438 if ac_fn_c_try_link "$LINENO"
7439 then :
7440 eval $cacheid=yes
7441 else $as_nop
7442 eval $cacheid=no
7443 fi
7444 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7445 conftest$ac_exeext conftest.$ac_ext
7446 fi
7447
7448
7449 CFLAGS="$xorg_testset_save_CFLAGS"
7450
7451 eval supported=\$$cacheid
7452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7453 printf "%s\n" "$supported" >&6; }
7454 if test "$supported" = "yes" ; then
7455 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7456 found="yes"
7457 fi
7458 fi
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474 xorg_testset_save_CFLAGS="$CFLAGS"
7475
7476 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7477 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7479 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7480 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7481 then :
7482 printf %s "(cached) " >&6
7483 else $as_nop
7484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7485 /* end confdefs.h. */
7486 int i;
7487 _ACEOF
7488 if ac_fn_c_try_compile "$LINENO"
7489 then :
7490 xorg_cv_cc_flag_unknown_warning_option=yes
7491 else $as_nop
7492 xorg_cv_cc_flag_unknown_warning_option=no
7493 fi
7494 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7495 fi
7496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7497 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7498 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7499 CFLAGS="$xorg_testset_save_CFLAGS"
7500 fi
7501
7502 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7504 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7505 fi
7506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7508 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7509 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7510 then :
7511 printf %s "(cached) " >&6
7512 else $as_nop
7513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7514 /* end confdefs.h. */
7515 int i;
7516 _ACEOF
7517 if ac_fn_c_try_compile "$LINENO"
7518 then :
7519 xorg_cv_cc_flag_unused_command_line_argument=yes
7520 else $as_nop
7521 xorg_cv_cc_flag_unused_command_line_argument=no
7522 fi
7523 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7524 fi
7525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7526 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7527 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7528 CFLAGS="$xorg_testset_save_CFLAGS"
7529 fi
7530
7531 found="no"
7532
7533 if test $found = "no" ; then
7534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7536 fi
7537
7538 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7540 fi
7541
7542 CFLAGS="$CFLAGS -Werror=main"
7543
7544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7545 printf %s "checking if $CC supports -Werror=main... " >&6; }
7546 cacheid=xorg_cv_cc_flag__Werror_main
7547 if eval test \${$cacheid+y}
7548 then :
7549 printf %s "(cached) " >&6
7550 else $as_nop
7551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7552 /* end confdefs.h. */
7553 int i;
7554 int
7555 main (void)
7556 {
7557
7558 ;
7559 return 0;
7560 }
7561 _ACEOF
7562 if ac_fn_c_try_link "$LINENO"
7563 then :
7564 eval $cacheid=yes
7565 else $as_nop
7566 eval $cacheid=no
7567 fi
7568 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7569 conftest$ac_exeext conftest.$ac_ext
7570 fi
7571
7572
7573 CFLAGS="$xorg_testset_save_CFLAGS"
7574
7575 eval supported=\$$cacheid
7576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7577 printf "%s\n" "$supported" >&6; }
7578 if test "$supported" = "yes" ; then
7579 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7580 found="yes"
7581 fi
7582 fi
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598 xorg_testset_save_CFLAGS="$CFLAGS"
7599
7600 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7601 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7603 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7604 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7605 then :
7606 printf %s "(cached) " >&6
7607 else $as_nop
7608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7609 /* end confdefs.h. */
7610 int i;
7611 _ACEOF
7612 if ac_fn_c_try_compile "$LINENO"
7613 then :
7614 xorg_cv_cc_flag_unknown_warning_option=yes
7615 else $as_nop
7616 xorg_cv_cc_flag_unknown_warning_option=no
7617 fi
7618 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7619 fi
7620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7621 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7622 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7623 CFLAGS="$xorg_testset_save_CFLAGS"
7624 fi
7625
7626 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7629 fi
7630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7632 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7633 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7634 then :
7635 printf %s "(cached) " >&6
7636 else $as_nop
7637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638 /* end confdefs.h. */
7639 int i;
7640 _ACEOF
7641 if ac_fn_c_try_compile "$LINENO"
7642 then :
7643 xorg_cv_cc_flag_unused_command_line_argument=yes
7644 else $as_nop
7645 xorg_cv_cc_flag_unused_command_line_argument=no
7646 fi
7647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7648 fi
7649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7650 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7651 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7652 CFLAGS="$xorg_testset_save_CFLAGS"
7653 fi
7654
7655 found="no"
7656
7657 if test $found = "no" ; then
7658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7660 fi
7661
7662 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7664 fi
7665
7666 CFLAGS="$CFLAGS -Werror=missing-braces"
7667
7668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7669 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7670 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7671 if eval test \${$cacheid+y}
7672 then :
7673 printf %s "(cached) " >&6
7674 else $as_nop
7675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676 /* end confdefs.h. */
7677 int i;
7678 int
7679 main (void)
7680 {
7681
7682 ;
7683 return 0;
7684 }
7685 _ACEOF
7686 if ac_fn_c_try_link "$LINENO"
7687 then :
7688 eval $cacheid=yes
7689 else $as_nop
7690 eval $cacheid=no
7691 fi
7692 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7693 conftest$ac_exeext conftest.$ac_ext
7694 fi
7695
7696
7697 CFLAGS="$xorg_testset_save_CFLAGS"
7698
7699 eval supported=\$$cacheid
7700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7701 printf "%s\n" "$supported" >&6; }
7702 if test "$supported" = "yes" ; then
7703 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7704 found="yes"
7705 fi
7706 fi
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722 xorg_testset_save_CFLAGS="$CFLAGS"
7723
7724 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7727 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7728 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7729 then :
7730 printf %s "(cached) " >&6
7731 else $as_nop
7732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7733 /* end confdefs.h. */
7734 int i;
7735 _ACEOF
7736 if ac_fn_c_try_compile "$LINENO"
7737 then :
7738 xorg_cv_cc_flag_unknown_warning_option=yes
7739 else $as_nop
7740 xorg_cv_cc_flag_unknown_warning_option=no
7741 fi
7742 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7743 fi
7744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7745 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7746 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7747 CFLAGS="$xorg_testset_save_CFLAGS"
7748 fi
7749
7750 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7753 fi
7754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7756 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7757 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7758 then :
7759 printf %s "(cached) " >&6
7760 else $as_nop
7761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7762 /* end confdefs.h. */
7763 int i;
7764 _ACEOF
7765 if ac_fn_c_try_compile "$LINENO"
7766 then :
7767 xorg_cv_cc_flag_unused_command_line_argument=yes
7768 else $as_nop
7769 xorg_cv_cc_flag_unused_command_line_argument=no
7770 fi
7771 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7772 fi
7773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7774 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7775 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7776 CFLAGS="$xorg_testset_save_CFLAGS"
7777 fi
7778
7779 found="no"
7780
7781 if test $found = "no" ; then
7782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7784 fi
7785
7786 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7788 fi
7789
7790 CFLAGS="$CFLAGS -Werror=sequence-point"
7791
7792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7793 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7794 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7795 if eval test \${$cacheid+y}
7796 then :
7797 printf %s "(cached) " >&6
7798 else $as_nop
7799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7800 /* end confdefs.h. */
7801 int i;
7802 int
7803 main (void)
7804 {
7805
7806 ;
7807 return 0;
7808 }
7809 _ACEOF
7810 if ac_fn_c_try_link "$LINENO"
7811 then :
7812 eval $cacheid=yes
7813 else $as_nop
7814 eval $cacheid=no
7815 fi
7816 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7817 conftest$ac_exeext conftest.$ac_ext
7818 fi
7819
7820
7821 CFLAGS="$xorg_testset_save_CFLAGS"
7822
7823 eval supported=\$$cacheid
7824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7825 printf "%s\n" "$supported" >&6; }
7826 if test "$supported" = "yes" ; then
7827 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7828 found="yes"
7829 fi
7830 fi
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846 xorg_testset_save_CFLAGS="$CFLAGS"
7847
7848 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7851 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7852 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7853 then :
7854 printf %s "(cached) " >&6
7855 else $as_nop
7856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7857 /* end confdefs.h. */
7858 int i;
7859 _ACEOF
7860 if ac_fn_c_try_compile "$LINENO"
7861 then :
7862 xorg_cv_cc_flag_unknown_warning_option=yes
7863 else $as_nop
7864 xorg_cv_cc_flag_unknown_warning_option=no
7865 fi
7866 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7867 fi
7868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7869 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7870 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7871 CFLAGS="$xorg_testset_save_CFLAGS"
7872 fi
7873
7874 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7877 fi
7878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7880 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7881 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7882 then :
7883 printf %s "(cached) " >&6
7884 else $as_nop
7885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7886 /* end confdefs.h. */
7887 int i;
7888 _ACEOF
7889 if ac_fn_c_try_compile "$LINENO"
7890 then :
7891 xorg_cv_cc_flag_unused_command_line_argument=yes
7892 else $as_nop
7893 xorg_cv_cc_flag_unused_command_line_argument=no
7894 fi
7895 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7896 fi
7897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7898 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7899 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7900 CFLAGS="$xorg_testset_save_CFLAGS"
7901 fi
7902
7903 found="no"
7904
7905 if test $found = "no" ; then
7906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7908 fi
7909
7910 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7912 fi
7913
7914 CFLAGS="$CFLAGS -Werror=return-type"
7915
7916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7917 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
7918 cacheid=xorg_cv_cc_flag__Werror_return_type
7919 if eval test \${$cacheid+y}
7920 then :
7921 printf %s "(cached) " >&6
7922 else $as_nop
7923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924 /* end confdefs.h. */
7925 int i;
7926 int
7927 main (void)
7928 {
7929
7930 ;
7931 return 0;
7932 }
7933 _ACEOF
7934 if ac_fn_c_try_link "$LINENO"
7935 then :
7936 eval $cacheid=yes
7937 else $as_nop
7938 eval $cacheid=no
7939 fi
7940 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7941 conftest$ac_exeext conftest.$ac_ext
7942 fi
7943
7944
7945 CFLAGS="$xorg_testset_save_CFLAGS"
7946
7947 eval supported=\$$cacheid
7948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7949 printf "%s\n" "$supported" >&6; }
7950 if test "$supported" = "yes" ; then
7951 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7952 found="yes"
7953 fi
7954 fi
7955
7956 if test $found = "no" ; then
7957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7959 fi
7960
7961 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7963 fi
7964
7965 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7966
7967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7968 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7969 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7970 if eval test \${$cacheid+y}
7971 then :
7972 printf %s "(cached) " >&6
7973 else $as_nop
7974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7975 /* end confdefs.h. */
7976 int i;
7977 int
7978 main (void)
7979 {
7980
7981 ;
7982 return 0;
7983 }
7984 _ACEOF
7985 if ac_fn_c_try_link "$LINENO"
7986 then :
7987 eval $cacheid=yes
7988 else $as_nop
7989 eval $cacheid=no
7990 fi
7991 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7992 conftest$ac_exeext conftest.$ac_ext
7993 fi
7994
7995
7996 CFLAGS="$xorg_testset_save_CFLAGS"
7997
7998 eval supported=\$$cacheid
7999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8000 printf "%s\n" "$supported" >&6; }
8001 if test "$supported" = "yes" ; then
8002 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8003 found="yes"
8004 fi
8005 fi
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021 xorg_testset_save_CFLAGS="$CFLAGS"
8022
8023 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8026 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8027 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8028 then :
8029 printf %s "(cached) " >&6
8030 else $as_nop
8031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8032 /* end confdefs.h. */
8033 int i;
8034 _ACEOF
8035 if ac_fn_c_try_compile "$LINENO"
8036 then :
8037 xorg_cv_cc_flag_unknown_warning_option=yes
8038 else $as_nop
8039 xorg_cv_cc_flag_unknown_warning_option=no
8040 fi
8041 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8042 fi
8043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8044 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8046 CFLAGS="$xorg_testset_save_CFLAGS"
8047 fi
8048
8049 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8052 fi
8053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8055 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8056 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8057 then :
8058 printf %s "(cached) " >&6
8059 else $as_nop
8060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8061 /* end confdefs.h. */
8062 int i;
8063 _ACEOF
8064 if ac_fn_c_try_compile "$LINENO"
8065 then :
8066 xorg_cv_cc_flag_unused_command_line_argument=yes
8067 else $as_nop
8068 xorg_cv_cc_flag_unused_command_line_argument=no
8069 fi
8070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8071 fi
8072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8073 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8074 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8075 CFLAGS="$xorg_testset_save_CFLAGS"
8076 fi
8077
8078 found="no"
8079
8080 if test $found = "no" ; then
8081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8083 fi
8084
8085 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8087 fi
8088
8089 CFLAGS="$CFLAGS -Werror=trigraphs"
8090
8091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8092 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8093 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8094 if eval test \${$cacheid+y}
8095 then :
8096 printf %s "(cached) " >&6
8097 else $as_nop
8098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099 /* end confdefs.h. */
8100 int i;
8101 int
8102 main (void)
8103 {
8104
8105 ;
8106 return 0;
8107 }
8108 _ACEOF
8109 if ac_fn_c_try_link "$LINENO"
8110 then :
8111 eval $cacheid=yes
8112 else $as_nop
8113 eval $cacheid=no
8114 fi
8115 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8116 conftest$ac_exeext conftest.$ac_ext
8117 fi
8118
8119
8120 CFLAGS="$xorg_testset_save_CFLAGS"
8121
8122 eval supported=\$$cacheid
8123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8124 printf "%s\n" "$supported" >&6; }
8125 if test "$supported" = "yes" ; then
8126 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8127 found="yes"
8128 fi
8129 fi
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145 xorg_testset_save_CFLAGS="$CFLAGS"
8146
8147 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8150 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8151 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8152 then :
8153 printf %s "(cached) " >&6
8154 else $as_nop
8155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8156 /* end confdefs.h. */
8157 int i;
8158 _ACEOF
8159 if ac_fn_c_try_compile "$LINENO"
8160 then :
8161 xorg_cv_cc_flag_unknown_warning_option=yes
8162 else $as_nop
8163 xorg_cv_cc_flag_unknown_warning_option=no
8164 fi
8165 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8166 fi
8167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8168 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8169 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8170 CFLAGS="$xorg_testset_save_CFLAGS"
8171 fi
8172
8173 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8176 fi
8177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8179 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8180 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8181 then :
8182 printf %s "(cached) " >&6
8183 else $as_nop
8184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8185 /* end confdefs.h. */
8186 int i;
8187 _ACEOF
8188 if ac_fn_c_try_compile "$LINENO"
8189 then :
8190 xorg_cv_cc_flag_unused_command_line_argument=yes
8191 else $as_nop
8192 xorg_cv_cc_flag_unused_command_line_argument=no
8193 fi
8194 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8195 fi
8196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8197 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8198 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8199 CFLAGS="$xorg_testset_save_CFLAGS"
8200 fi
8201
8202 found="no"
8203
8204 if test $found = "no" ; then
8205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8206 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8207 fi
8208
8209 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8211 fi
8212
8213 CFLAGS="$CFLAGS -Werror=array-bounds"
8214
8215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8216 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8217 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8218 if eval test \${$cacheid+y}
8219 then :
8220 printf %s "(cached) " >&6
8221 else $as_nop
8222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8223 /* end confdefs.h. */
8224 int i;
8225 int
8226 main (void)
8227 {
8228
8229 ;
8230 return 0;
8231 }
8232 _ACEOF
8233 if ac_fn_c_try_link "$LINENO"
8234 then :
8235 eval $cacheid=yes
8236 else $as_nop
8237 eval $cacheid=no
8238 fi
8239 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8240 conftest$ac_exeext conftest.$ac_ext
8241 fi
8242
8243
8244 CFLAGS="$xorg_testset_save_CFLAGS"
8245
8246 eval supported=\$$cacheid
8247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8248 printf "%s\n" "$supported" >&6; }
8249 if test "$supported" = "yes" ; then
8250 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8251 found="yes"
8252 fi
8253 fi
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269 xorg_testset_save_CFLAGS="$CFLAGS"
8270
8271 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8274 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8275 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8276 then :
8277 printf %s "(cached) " >&6
8278 else $as_nop
8279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8280 /* end confdefs.h. */
8281 int i;
8282 _ACEOF
8283 if ac_fn_c_try_compile "$LINENO"
8284 then :
8285 xorg_cv_cc_flag_unknown_warning_option=yes
8286 else $as_nop
8287 xorg_cv_cc_flag_unknown_warning_option=no
8288 fi
8289 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8290 fi
8291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8292 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8293 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8294 CFLAGS="$xorg_testset_save_CFLAGS"
8295 fi
8296
8297 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8300 fi
8301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8303 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8304 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8305 then :
8306 printf %s "(cached) " >&6
8307 else $as_nop
8308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8309 /* end confdefs.h. */
8310 int i;
8311 _ACEOF
8312 if ac_fn_c_try_compile "$LINENO"
8313 then :
8314 xorg_cv_cc_flag_unused_command_line_argument=yes
8315 else $as_nop
8316 xorg_cv_cc_flag_unused_command_line_argument=no
8317 fi
8318 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8319 fi
8320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8321 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8322 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8323 CFLAGS="$xorg_testset_save_CFLAGS"
8324 fi
8325
8326 found="no"
8327
8328 if test $found = "no" ; then
8329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8330 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8331 fi
8332
8333 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8335 fi
8336
8337 CFLAGS="$CFLAGS -Werror=write-strings"
8338
8339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8340 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8341 cacheid=xorg_cv_cc_flag__Werror_write_strings
8342 if eval test \${$cacheid+y}
8343 then :
8344 printf %s "(cached) " >&6
8345 else $as_nop
8346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8347 /* end confdefs.h. */
8348 int i;
8349 int
8350 main (void)
8351 {
8352
8353 ;
8354 return 0;
8355 }
8356 _ACEOF
8357 if ac_fn_c_try_link "$LINENO"
8358 then :
8359 eval $cacheid=yes
8360 else $as_nop
8361 eval $cacheid=no
8362 fi
8363 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8364 conftest$ac_exeext conftest.$ac_ext
8365 fi
8366
8367
8368 CFLAGS="$xorg_testset_save_CFLAGS"
8369
8370 eval supported=\$$cacheid
8371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8372 printf "%s\n" "$supported" >&6; }
8373 if test "$supported" = "yes" ; then
8374 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8375 found="yes"
8376 fi
8377 fi
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393 xorg_testset_save_CFLAGS="$CFLAGS"
8394
8395 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8398 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8399 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8400 then :
8401 printf %s "(cached) " >&6
8402 else $as_nop
8403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8404 /* end confdefs.h. */
8405 int i;
8406 _ACEOF
8407 if ac_fn_c_try_compile "$LINENO"
8408 then :
8409 xorg_cv_cc_flag_unknown_warning_option=yes
8410 else $as_nop
8411 xorg_cv_cc_flag_unknown_warning_option=no
8412 fi
8413 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8414 fi
8415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8416 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8417 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8418 CFLAGS="$xorg_testset_save_CFLAGS"
8419 fi
8420
8421 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8424 fi
8425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8427 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8428 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8429 then :
8430 printf %s "(cached) " >&6
8431 else $as_nop
8432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8433 /* end confdefs.h. */
8434 int i;
8435 _ACEOF
8436 if ac_fn_c_try_compile "$LINENO"
8437 then :
8438 xorg_cv_cc_flag_unused_command_line_argument=yes
8439 else $as_nop
8440 xorg_cv_cc_flag_unused_command_line_argument=no
8441 fi
8442 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8443 fi
8444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8445 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8446 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8447 CFLAGS="$xorg_testset_save_CFLAGS"
8448 fi
8449
8450 found="no"
8451
8452 if test $found = "no" ; then
8453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8455 fi
8456
8457 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8459 fi
8460
8461 CFLAGS="$CFLAGS -Werror=address"
8462
8463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8464 printf %s "checking if $CC supports -Werror=address... " >&6; }
8465 cacheid=xorg_cv_cc_flag__Werror_address
8466 if eval test \${$cacheid+y}
8467 then :
8468 printf %s "(cached) " >&6
8469 else $as_nop
8470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8471 /* end confdefs.h. */
8472 int i;
8473 int
8474 main (void)
8475 {
8476
8477 ;
8478 return 0;
8479 }
8480 _ACEOF
8481 if ac_fn_c_try_link "$LINENO"
8482 then :
8483 eval $cacheid=yes
8484 else $as_nop
8485 eval $cacheid=no
8486 fi
8487 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8488 conftest$ac_exeext conftest.$ac_ext
8489 fi
8490
8491
8492 CFLAGS="$xorg_testset_save_CFLAGS"
8493
8494 eval supported=\$$cacheid
8495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8496 printf "%s\n" "$supported" >&6; }
8497 if test "$supported" = "yes" ; then
8498 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8499 found="yes"
8500 fi
8501 fi
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517 xorg_testset_save_CFLAGS="$CFLAGS"
8518
8519 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8522 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8523 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8524 then :
8525 printf %s "(cached) " >&6
8526 else $as_nop
8527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8528 /* end confdefs.h. */
8529 int i;
8530 _ACEOF
8531 if ac_fn_c_try_compile "$LINENO"
8532 then :
8533 xorg_cv_cc_flag_unknown_warning_option=yes
8534 else $as_nop
8535 xorg_cv_cc_flag_unknown_warning_option=no
8536 fi
8537 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8538 fi
8539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8540 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8541 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8542 CFLAGS="$xorg_testset_save_CFLAGS"
8543 fi
8544
8545 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8547 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8548 fi
8549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8551 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8552 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8553 then :
8554 printf %s "(cached) " >&6
8555 else $as_nop
8556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8557 /* end confdefs.h. */
8558 int i;
8559 _ACEOF
8560 if ac_fn_c_try_compile "$LINENO"
8561 then :
8562 xorg_cv_cc_flag_unused_command_line_argument=yes
8563 else $as_nop
8564 xorg_cv_cc_flag_unused_command_line_argument=no
8565 fi
8566 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8567 fi
8568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8569 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8570 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8571 CFLAGS="$xorg_testset_save_CFLAGS"
8572 fi
8573
8574 found="no"
8575
8576 if test $found = "no" ; then
8577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8578 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8579 fi
8580
8581 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8583 fi
8584
8585 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8586
8587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8588 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8589 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8590 if eval test \${$cacheid+y}
8591 then :
8592 printf %s "(cached) " >&6
8593 else $as_nop
8594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8595 /* end confdefs.h. */
8596 int i;
8597 int
8598 main (void)
8599 {
8600
8601 ;
8602 return 0;
8603 }
8604 _ACEOF
8605 if ac_fn_c_try_link "$LINENO"
8606 then :
8607 eval $cacheid=yes
8608 else $as_nop
8609 eval $cacheid=no
8610 fi
8611 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8612 conftest$ac_exeext conftest.$ac_ext
8613 fi
8614
8615
8616 CFLAGS="$xorg_testset_save_CFLAGS"
8617
8618 eval supported=\$$cacheid
8619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8620 printf "%s\n" "$supported" >&6; }
8621 if test "$supported" = "yes" ; then
8622 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8623 found="yes"
8624 fi
8625 fi
8626
8627 if test $found = "no" ; then
8628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8630 fi
8631
8632 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8634 fi
8635
8636 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8637
8638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8639 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8640 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8641 if eval test \${$cacheid+y}
8642 then :
8643 printf %s "(cached) " >&6
8644 else $as_nop
8645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8646 /* end confdefs.h. */
8647 int i;
8648 int
8649 main (void)
8650 {
8651
8652 ;
8653 return 0;
8654 }
8655 _ACEOF
8656 if ac_fn_c_try_link "$LINENO"
8657 then :
8658 eval $cacheid=yes
8659 else $as_nop
8660 eval $cacheid=no
8661 fi
8662 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8663 conftest$ac_exeext conftest.$ac_ext
8664 fi
8665
8666
8667 CFLAGS="$xorg_testset_save_CFLAGS"
8668
8669 eval supported=\$$cacheid
8670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8671 printf "%s\n" "$supported" >&6; }
8672 if test "$supported" = "yes" ; then
8673 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8674 found="yes"
8675 fi
8676 fi
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692 xorg_testset_save_CFLAGS="$CFLAGS"
8693
8694 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8697 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8698 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8699 then :
8700 printf %s "(cached) " >&6
8701 else $as_nop
8702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8703 /* end confdefs.h. */
8704 int i;
8705 _ACEOF
8706 if ac_fn_c_try_compile "$LINENO"
8707 then :
8708 xorg_cv_cc_flag_unknown_warning_option=yes
8709 else $as_nop
8710 xorg_cv_cc_flag_unknown_warning_option=no
8711 fi
8712 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8713 fi
8714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8715 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8716 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8717 CFLAGS="$xorg_testset_save_CFLAGS"
8718 fi
8719
8720 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8723 fi
8724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8726 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8727 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8728 then :
8729 printf %s "(cached) " >&6
8730 else $as_nop
8731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732 /* end confdefs.h. */
8733 int i;
8734 _ACEOF
8735 if ac_fn_c_try_compile "$LINENO"
8736 then :
8737 xorg_cv_cc_flag_unused_command_line_argument=yes
8738 else $as_nop
8739 xorg_cv_cc_flag_unused_command_line_argument=no
8740 fi
8741 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8742 fi
8743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8744 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8745 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8746 CFLAGS="$xorg_testset_save_CFLAGS"
8747 fi
8748
8749 found="no"
8750
8751 if test $found = "no" ; then
8752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8754 fi
8755
8756 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8758 fi
8759
8760 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8761
8762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8763 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8764 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8765 if eval test \${$cacheid+y}
8766 then :
8767 printf %s "(cached) " >&6
8768 else $as_nop
8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770 /* end confdefs.h. */
8771 int i;
8772 int
8773 main (void)
8774 {
8775
8776 ;
8777 return 0;
8778 }
8779 _ACEOF
8780 if ac_fn_c_try_link "$LINENO"
8781 then :
8782 eval $cacheid=yes
8783 else $as_nop
8784 eval $cacheid=no
8785 fi
8786 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8787 conftest$ac_exeext conftest.$ac_ext
8788 fi
8789
8790
8791 CFLAGS="$xorg_testset_save_CFLAGS"
8792
8793 eval supported=\$$cacheid
8794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8795 printf "%s\n" "$supported" >&6; }
8796 if test "$supported" = "yes" ; then
8797 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8798 found="yes"
8799 fi
8800 fi
8801
8802 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8803 else
8804 { 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
8805 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;}
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819 xorg_testset_save_CFLAGS="$CFLAGS"
8820
8821 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8824 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8825 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8826 then :
8827 printf %s "(cached) " >&6
8828 else $as_nop
8829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8830 /* end confdefs.h. */
8831 int i;
8832 _ACEOF
8833 if ac_fn_c_try_compile "$LINENO"
8834 then :
8835 xorg_cv_cc_flag_unknown_warning_option=yes
8836 else $as_nop
8837 xorg_cv_cc_flag_unknown_warning_option=no
8838 fi
8839 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8840 fi
8841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8842 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8843 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8844 CFLAGS="$xorg_testset_save_CFLAGS"
8845 fi
8846
8847 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8850 fi
8851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8853 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8854 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8855 then :
8856 printf %s "(cached) " >&6
8857 else $as_nop
8858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8859 /* end confdefs.h. */
8860 int i;
8861 _ACEOF
8862 if ac_fn_c_try_compile "$LINENO"
8863 then :
8864 xorg_cv_cc_flag_unused_command_line_argument=yes
8865 else $as_nop
8866 xorg_cv_cc_flag_unused_command_line_argument=no
8867 fi
8868 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8869 fi
8870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8871 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8872 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8873 CFLAGS="$xorg_testset_save_CFLAGS"
8874 fi
8875
8876 found="no"
8877
8878 if test $found = "no" ; then
8879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8880 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8881 fi
8882
8883 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8885 fi
8886
8887 CFLAGS="$CFLAGS -Wimplicit"
8888
8889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8890 printf %s "checking if $CC supports -Wimplicit... " >&6; }
8891 cacheid=xorg_cv_cc_flag__Wimplicit
8892 if eval test \${$cacheid+y}
8893 then :
8894 printf %s "(cached) " >&6
8895 else $as_nop
8896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8897 /* end confdefs.h. */
8898 int i;
8899 int
8900 main (void)
8901 {
8902
8903 ;
8904 return 0;
8905 }
8906 _ACEOF
8907 if ac_fn_c_try_link "$LINENO"
8908 then :
8909 eval $cacheid=yes
8910 else $as_nop
8911 eval $cacheid=no
8912 fi
8913 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8914 conftest$ac_exeext conftest.$ac_ext
8915 fi
8916
8917
8918 CFLAGS="$xorg_testset_save_CFLAGS"
8919
8920 eval supported=\$$cacheid
8921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8922 printf "%s\n" "$supported" >&6; }
8923 if test "$supported" = "yes" ; then
8924 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8925 found="yes"
8926 fi
8927 fi
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943 xorg_testset_save_CFLAGS="$CFLAGS"
8944
8945 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8946 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8948 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8949 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8950 then :
8951 printf %s "(cached) " >&6
8952 else $as_nop
8953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8954 /* end confdefs.h. */
8955 int i;
8956 _ACEOF
8957 if ac_fn_c_try_compile "$LINENO"
8958 then :
8959 xorg_cv_cc_flag_unknown_warning_option=yes
8960 else $as_nop
8961 xorg_cv_cc_flag_unknown_warning_option=no
8962 fi
8963 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8964 fi
8965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8966 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8967 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8968 CFLAGS="$xorg_testset_save_CFLAGS"
8969 fi
8970
8971 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8974 fi
8975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8977 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8978 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8979 then :
8980 printf %s "(cached) " >&6
8981 else $as_nop
8982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8983 /* end confdefs.h. */
8984 int i;
8985 _ACEOF
8986 if ac_fn_c_try_compile "$LINENO"
8987 then :
8988 xorg_cv_cc_flag_unused_command_line_argument=yes
8989 else $as_nop
8990 xorg_cv_cc_flag_unused_command_line_argument=no
8991 fi
8992 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8993 fi
8994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8995 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8996 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8997 CFLAGS="$xorg_testset_save_CFLAGS"
8998 fi
8999
9000 found="no"
9001
9002 if test $found = "no" ; then
9003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9005 fi
9006
9007 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9009 fi
9010
9011 CFLAGS="$CFLAGS -Wnonnull"
9012
9013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9014 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9015 cacheid=xorg_cv_cc_flag__Wnonnull
9016 if eval test \${$cacheid+y}
9017 then :
9018 printf %s "(cached) " >&6
9019 else $as_nop
9020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9021 /* end confdefs.h. */
9022 int i;
9023 int
9024 main (void)
9025 {
9026
9027 ;
9028 return 0;
9029 }
9030 _ACEOF
9031 if ac_fn_c_try_link "$LINENO"
9032 then :
9033 eval $cacheid=yes
9034 else $as_nop
9035 eval $cacheid=no
9036 fi
9037 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9038 conftest$ac_exeext conftest.$ac_ext
9039 fi
9040
9041
9042 CFLAGS="$xorg_testset_save_CFLAGS"
9043
9044 eval supported=\$$cacheid
9045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9046 printf "%s\n" "$supported" >&6; }
9047 if test "$supported" = "yes" ; then
9048 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9049 found="yes"
9050 fi
9051 fi
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067 xorg_testset_save_CFLAGS="$CFLAGS"
9068
9069 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9070 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9072 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9073 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9074 then :
9075 printf %s "(cached) " >&6
9076 else $as_nop
9077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9078 /* end confdefs.h. */
9079 int i;
9080 _ACEOF
9081 if ac_fn_c_try_compile "$LINENO"
9082 then :
9083 xorg_cv_cc_flag_unknown_warning_option=yes
9084 else $as_nop
9085 xorg_cv_cc_flag_unknown_warning_option=no
9086 fi
9087 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9088 fi
9089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9090 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9091 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9092 CFLAGS="$xorg_testset_save_CFLAGS"
9093 fi
9094
9095 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9098 fi
9099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9101 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9102 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9103 then :
9104 printf %s "(cached) " >&6
9105 else $as_nop
9106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9107 /* end confdefs.h. */
9108 int i;
9109 _ACEOF
9110 if ac_fn_c_try_compile "$LINENO"
9111 then :
9112 xorg_cv_cc_flag_unused_command_line_argument=yes
9113 else $as_nop
9114 xorg_cv_cc_flag_unused_command_line_argument=no
9115 fi
9116 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9117 fi
9118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9119 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9120 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9121 CFLAGS="$xorg_testset_save_CFLAGS"
9122 fi
9123
9124 found="no"
9125
9126 if test $found = "no" ; then
9127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9129 fi
9130
9131 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9133 fi
9134
9135 CFLAGS="$CFLAGS -Winit-self"
9136
9137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9138 printf %s "checking if $CC supports -Winit-self... " >&6; }
9139 cacheid=xorg_cv_cc_flag__Winit_self
9140 if eval test \${$cacheid+y}
9141 then :
9142 printf %s "(cached) " >&6
9143 else $as_nop
9144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h. */
9146 int i;
9147 int
9148 main (void)
9149 {
9150
9151 ;
9152 return 0;
9153 }
9154 _ACEOF
9155 if ac_fn_c_try_link "$LINENO"
9156 then :
9157 eval $cacheid=yes
9158 else $as_nop
9159 eval $cacheid=no
9160 fi
9161 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9162 conftest$ac_exeext conftest.$ac_ext
9163 fi
9164
9165
9166 CFLAGS="$xorg_testset_save_CFLAGS"
9167
9168 eval supported=\$$cacheid
9169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9170 printf "%s\n" "$supported" >&6; }
9171 if test "$supported" = "yes" ; then
9172 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9173 found="yes"
9174 fi
9175 fi
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191 xorg_testset_save_CFLAGS="$CFLAGS"
9192
9193 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9194 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9196 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9197 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9198 then :
9199 printf %s "(cached) " >&6
9200 else $as_nop
9201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9202 /* end confdefs.h. */
9203 int i;
9204 _ACEOF
9205 if ac_fn_c_try_compile "$LINENO"
9206 then :
9207 xorg_cv_cc_flag_unknown_warning_option=yes
9208 else $as_nop
9209 xorg_cv_cc_flag_unknown_warning_option=no
9210 fi
9211 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9212 fi
9213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9214 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9215 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9216 CFLAGS="$xorg_testset_save_CFLAGS"
9217 fi
9218
9219 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9222 fi
9223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9225 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9226 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9227 then :
9228 printf %s "(cached) " >&6
9229 else $as_nop
9230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9231 /* end confdefs.h. */
9232 int i;
9233 _ACEOF
9234 if ac_fn_c_try_compile "$LINENO"
9235 then :
9236 xorg_cv_cc_flag_unused_command_line_argument=yes
9237 else $as_nop
9238 xorg_cv_cc_flag_unused_command_line_argument=no
9239 fi
9240 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9241 fi
9242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9243 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9244 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9245 CFLAGS="$xorg_testset_save_CFLAGS"
9246 fi
9247
9248 found="no"
9249
9250 if test $found = "no" ; then
9251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9252 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9253 fi
9254
9255 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9257 fi
9258
9259 CFLAGS="$CFLAGS -Wmain"
9260
9261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9262 printf %s "checking if $CC supports -Wmain... " >&6; }
9263 cacheid=xorg_cv_cc_flag__Wmain
9264 if eval test \${$cacheid+y}
9265 then :
9266 printf %s "(cached) " >&6
9267 else $as_nop
9268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9269 /* end confdefs.h. */
9270 int i;
9271 int
9272 main (void)
9273 {
9274
9275 ;
9276 return 0;
9277 }
9278 _ACEOF
9279 if ac_fn_c_try_link "$LINENO"
9280 then :
9281 eval $cacheid=yes
9282 else $as_nop
9283 eval $cacheid=no
9284 fi
9285 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9286 conftest$ac_exeext conftest.$ac_ext
9287 fi
9288
9289
9290 CFLAGS="$xorg_testset_save_CFLAGS"
9291
9292 eval supported=\$$cacheid
9293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9294 printf "%s\n" "$supported" >&6; }
9295 if test "$supported" = "yes" ; then
9296 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9297 found="yes"
9298 fi
9299 fi
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315 xorg_testset_save_CFLAGS="$CFLAGS"
9316
9317 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9320 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9321 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9322 then :
9323 printf %s "(cached) " >&6
9324 else $as_nop
9325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9326 /* end confdefs.h. */
9327 int i;
9328 _ACEOF
9329 if ac_fn_c_try_compile "$LINENO"
9330 then :
9331 xorg_cv_cc_flag_unknown_warning_option=yes
9332 else $as_nop
9333 xorg_cv_cc_flag_unknown_warning_option=no
9334 fi
9335 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9336 fi
9337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9338 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9339 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9340 CFLAGS="$xorg_testset_save_CFLAGS"
9341 fi
9342
9343 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9346 fi
9347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9349 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9350 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9351 then :
9352 printf %s "(cached) " >&6
9353 else $as_nop
9354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355 /* end confdefs.h. */
9356 int i;
9357 _ACEOF
9358 if ac_fn_c_try_compile "$LINENO"
9359 then :
9360 xorg_cv_cc_flag_unused_command_line_argument=yes
9361 else $as_nop
9362 xorg_cv_cc_flag_unused_command_line_argument=no
9363 fi
9364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9365 fi
9366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9367 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9369 CFLAGS="$xorg_testset_save_CFLAGS"
9370 fi
9371
9372 found="no"
9373
9374 if test $found = "no" ; then
9375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9377 fi
9378
9379 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9381 fi
9382
9383 CFLAGS="$CFLAGS -Wmissing-braces"
9384
9385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9386 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9387 cacheid=xorg_cv_cc_flag__Wmissing_braces
9388 if eval test \${$cacheid+y}
9389 then :
9390 printf %s "(cached) " >&6
9391 else $as_nop
9392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393 /* end confdefs.h. */
9394 int i;
9395 int
9396 main (void)
9397 {
9398
9399 ;
9400 return 0;
9401 }
9402 _ACEOF
9403 if ac_fn_c_try_link "$LINENO"
9404 then :
9405 eval $cacheid=yes
9406 else $as_nop
9407 eval $cacheid=no
9408 fi
9409 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9410 conftest$ac_exeext conftest.$ac_ext
9411 fi
9412
9413
9414 CFLAGS="$xorg_testset_save_CFLAGS"
9415
9416 eval supported=\$$cacheid
9417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9418 printf "%s\n" "$supported" >&6; }
9419 if test "$supported" = "yes" ; then
9420 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9421 found="yes"
9422 fi
9423 fi
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439 xorg_testset_save_CFLAGS="$CFLAGS"
9440
9441 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9442 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9444 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9445 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9446 then :
9447 printf %s "(cached) " >&6
9448 else $as_nop
9449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9450 /* end confdefs.h. */
9451 int i;
9452 _ACEOF
9453 if ac_fn_c_try_compile "$LINENO"
9454 then :
9455 xorg_cv_cc_flag_unknown_warning_option=yes
9456 else $as_nop
9457 xorg_cv_cc_flag_unknown_warning_option=no
9458 fi
9459 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9460 fi
9461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9462 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9464 CFLAGS="$xorg_testset_save_CFLAGS"
9465 fi
9466
9467 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9470 fi
9471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9473 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9474 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9475 then :
9476 printf %s "(cached) " >&6
9477 else $as_nop
9478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9479 /* end confdefs.h. */
9480 int i;
9481 _ACEOF
9482 if ac_fn_c_try_compile "$LINENO"
9483 then :
9484 xorg_cv_cc_flag_unused_command_line_argument=yes
9485 else $as_nop
9486 xorg_cv_cc_flag_unused_command_line_argument=no
9487 fi
9488 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9489 fi
9490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9491 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9492 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9493 CFLAGS="$xorg_testset_save_CFLAGS"
9494 fi
9495
9496 found="no"
9497
9498 if test $found = "no" ; then
9499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9501 fi
9502
9503 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9505 fi
9506
9507 CFLAGS="$CFLAGS -Wsequence-point"
9508
9509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9510 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9511 cacheid=xorg_cv_cc_flag__Wsequence_point
9512 if eval test \${$cacheid+y}
9513 then :
9514 printf %s "(cached) " >&6
9515 else $as_nop
9516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9517 /* end confdefs.h. */
9518 int i;
9519 int
9520 main (void)
9521 {
9522
9523 ;
9524 return 0;
9525 }
9526 _ACEOF
9527 if ac_fn_c_try_link "$LINENO"
9528 then :
9529 eval $cacheid=yes
9530 else $as_nop
9531 eval $cacheid=no
9532 fi
9533 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9534 conftest$ac_exeext conftest.$ac_ext
9535 fi
9536
9537
9538 CFLAGS="$xorg_testset_save_CFLAGS"
9539
9540 eval supported=\$$cacheid
9541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9542 printf "%s\n" "$supported" >&6; }
9543 if test "$supported" = "yes" ; then
9544 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9545 found="yes"
9546 fi
9547 fi
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563 xorg_testset_save_CFLAGS="$CFLAGS"
9564
9565 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9568 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9569 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9570 then :
9571 printf %s "(cached) " >&6
9572 else $as_nop
9573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574 /* end confdefs.h. */
9575 int i;
9576 _ACEOF
9577 if ac_fn_c_try_compile "$LINENO"
9578 then :
9579 xorg_cv_cc_flag_unknown_warning_option=yes
9580 else $as_nop
9581 xorg_cv_cc_flag_unknown_warning_option=no
9582 fi
9583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9584 fi
9585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9586 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9587 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9588 CFLAGS="$xorg_testset_save_CFLAGS"
9589 fi
9590
9591 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9594 fi
9595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9597 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9598 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9599 then :
9600 printf %s "(cached) " >&6
9601 else $as_nop
9602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9603 /* end confdefs.h. */
9604 int i;
9605 _ACEOF
9606 if ac_fn_c_try_compile "$LINENO"
9607 then :
9608 xorg_cv_cc_flag_unused_command_line_argument=yes
9609 else $as_nop
9610 xorg_cv_cc_flag_unused_command_line_argument=no
9611 fi
9612 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9613 fi
9614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9615 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9616 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9617 CFLAGS="$xorg_testset_save_CFLAGS"
9618 fi
9619
9620 found="no"
9621
9622 if test $found = "no" ; then
9623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9624 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9625 fi
9626
9627 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9629 fi
9630
9631 CFLAGS="$CFLAGS -Wreturn-type"
9632
9633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9634 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9635 cacheid=xorg_cv_cc_flag__Wreturn_type
9636 if eval test \${$cacheid+y}
9637 then :
9638 printf %s "(cached) " >&6
9639 else $as_nop
9640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9641 /* end confdefs.h. */
9642 int i;
9643 int
9644 main (void)
9645 {
9646
9647 ;
9648 return 0;
9649 }
9650 _ACEOF
9651 if ac_fn_c_try_link "$LINENO"
9652 then :
9653 eval $cacheid=yes
9654 else $as_nop
9655 eval $cacheid=no
9656 fi
9657 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9658 conftest$ac_exeext conftest.$ac_ext
9659 fi
9660
9661
9662 CFLAGS="$xorg_testset_save_CFLAGS"
9663
9664 eval supported=\$$cacheid
9665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9666 printf "%s\n" "$supported" >&6; }
9667 if test "$supported" = "yes" ; then
9668 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9669 found="yes"
9670 fi
9671 fi
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687 xorg_testset_save_CFLAGS="$CFLAGS"
9688
9689 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9692 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9693 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9694 then :
9695 printf %s "(cached) " >&6
9696 else $as_nop
9697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698 /* end confdefs.h. */
9699 int i;
9700 _ACEOF
9701 if ac_fn_c_try_compile "$LINENO"
9702 then :
9703 xorg_cv_cc_flag_unknown_warning_option=yes
9704 else $as_nop
9705 xorg_cv_cc_flag_unknown_warning_option=no
9706 fi
9707 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9708 fi
9709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9710 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9711 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9712 CFLAGS="$xorg_testset_save_CFLAGS"
9713 fi
9714
9715 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9718 fi
9719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9721 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9722 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9723 then :
9724 printf %s "(cached) " >&6
9725 else $as_nop
9726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9727 /* end confdefs.h. */
9728 int i;
9729 _ACEOF
9730 if ac_fn_c_try_compile "$LINENO"
9731 then :
9732 xorg_cv_cc_flag_unused_command_line_argument=yes
9733 else $as_nop
9734 xorg_cv_cc_flag_unused_command_line_argument=no
9735 fi
9736 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9737 fi
9738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9739 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9740 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9741 CFLAGS="$xorg_testset_save_CFLAGS"
9742 fi
9743
9744 found="no"
9745
9746 if test $found = "no" ; then
9747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9749 fi
9750
9751 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9753 fi
9754
9755 CFLAGS="$CFLAGS -Wtrigraphs"
9756
9757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9758 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9759 cacheid=xorg_cv_cc_flag__Wtrigraphs
9760 if eval test \${$cacheid+y}
9761 then :
9762 printf %s "(cached) " >&6
9763 else $as_nop
9764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9765 /* end confdefs.h. */
9766 int i;
9767 int
9768 main (void)
9769 {
9770
9771 ;
9772 return 0;
9773 }
9774 _ACEOF
9775 if ac_fn_c_try_link "$LINENO"
9776 then :
9777 eval $cacheid=yes
9778 else $as_nop
9779 eval $cacheid=no
9780 fi
9781 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9782 conftest$ac_exeext conftest.$ac_ext
9783 fi
9784
9785
9786 CFLAGS="$xorg_testset_save_CFLAGS"
9787
9788 eval supported=\$$cacheid
9789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9790 printf "%s\n" "$supported" >&6; }
9791 if test "$supported" = "yes" ; then
9792 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9793 found="yes"
9794 fi
9795 fi
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811 xorg_testset_save_CFLAGS="$CFLAGS"
9812
9813 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9814 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9816 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9817 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9818 then :
9819 printf %s "(cached) " >&6
9820 else $as_nop
9821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9822 /* end confdefs.h. */
9823 int i;
9824 _ACEOF
9825 if ac_fn_c_try_compile "$LINENO"
9826 then :
9827 xorg_cv_cc_flag_unknown_warning_option=yes
9828 else $as_nop
9829 xorg_cv_cc_flag_unknown_warning_option=no
9830 fi
9831 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9832 fi
9833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9834 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9835 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9836 CFLAGS="$xorg_testset_save_CFLAGS"
9837 fi
9838
9839 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9842 fi
9843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9845 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9846 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9847 then :
9848 printf %s "(cached) " >&6
9849 else $as_nop
9850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9851 /* end confdefs.h. */
9852 int i;
9853 _ACEOF
9854 if ac_fn_c_try_compile "$LINENO"
9855 then :
9856 xorg_cv_cc_flag_unused_command_line_argument=yes
9857 else $as_nop
9858 xorg_cv_cc_flag_unused_command_line_argument=no
9859 fi
9860 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9861 fi
9862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9863 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9865 CFLAGS="$xorg_testset_save_CFLAGS"
9866 fi
9867
9868 found="no"
9869
9870 if test $found = "no" ; then
9871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9873 fi
9874
9875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9877 fi
9878
9879 CFLAGS="$CFLAGS -Warray-bounds"
9880
9881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9882 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
9883 cacheid=xorg_cv_cc_flag__Warray_bounds
9884 if eval test \${$cacheid+y}
9885 then :
9886 printf %s "(cached) " >&6
9887 else $as_nop
9888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9889 /* end confdefs.h. */
9890 int i;
9891 int
9892 main (void)
9893 {
9894
9895 ;
9896 return 0;
9897 }
9898 _ACEOF
9899 if ac_fn_c_try_link "$LINENO"
9900 then :
9901 eval $cacheid=yes
9902 else $as_nop
9903 eval $cacheid=no
9904 fi
9905 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9906 conftest$ac_exeext conftest.$ac_ext
9907 fi
9908
9909
9910 CFLAGS="$xorg_testset_save_CFLAGS"
9911
9912 eval supported=\$$cacheid
9913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9914 printf "%s\n" "$supported" >&6; }
9915 if test "$supported" = "yes" ; then
9916 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9917 found="yes"
9918 fi
9919 fi
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935 xorg_testset_save_CFLAGS="$CFLAGS"
9936
9937 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9940 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9941 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9942 then :
9943 printf %s "(cached) " >&6
9944 else $as_nop
9945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9946 /* end confdefs.h. */
9947 int i;
9948 _ACEOF
9949 if ac_fn_c_try_compile "$LINENO"
9950 then :
9951 xorg_cv_cc_flag_unknown_warning_option=yes
9952 else $as_nop
9953 xorg_cv_cc_flag_unknown_warning_option=no
9954 fi
9955 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9956 fi
9957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9958 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9959 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9960 CFLAGS="$xorg_testset_save_CFLAGS"
9961 fi
9962
9963 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9966 fi
9967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9969 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9970 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9971 then :
9972 printf %s "(cached) " >&6
9973 else $as_nop
9974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9975 /* end confdefs.h. */
9976 int i;
9977 _ACEOF
9978 if ac_fn_c_try_compile "$LINENO"
9979 then :
9980 xorg_cv_cc_flag_unused_command_line_argument=yes
9981 else $as_nop
9982 xorg_cv_cc_flag_unused_command_line_argument=no
9983 fi
9984 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9985 fi
9986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9987 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9988 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9989 CFLAGS="$xorg_testset_save_CFLAGS"
9990 fi
9991
9992 found="no"
9993
9994 if test $found = "no" ; then
9995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9996 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9997 fi
9998
9999 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10001 fi
10002
10003 CFLAGS="$CFLAGS -Wwrite-strings"
10004
10005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10006 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10007 cacheid=xorg_cv_cc_flag__Wwrite_strings
10008 if eval test \${$cacheid+y}
10009 then :
10010 printf %s "(cached) " >&6
10011 else $as_nop
10012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10013 /* end confdefs.h. */
10014 int i;
10015 int
10016 main (void)
10017 {
10018
10019 ;
10020 return 0;
10021 }
10022 _ACEOF
10023 if ac_fn_c_try_link "$LINENO"
10024 then :
10025 eval $cacheid=yes
10026 else $as_nop
10027 eval $cacheid=no
10028 fi
10029 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10030 conftest$ac_exeext conftest.$ac_ext
10031 fi
10032
10033
10034 CFLAGS="$xorg_testset_save_CFLAGS"
10035
10036 eval supported=\$$cacheid
10037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10038 printf "%s\n" "$supported" >&6; }
10039 if test "$supported" = "yes" ; then
10040 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10041 found="yes"
10042 fi
10043 fi
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059 xorg_testset_save_CFLAGS="$CFLAGS"
10060
10061 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10062 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10064 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10065 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10066 then :
10067 printf %s "(cached) " >&6
10068 else $as_nop
10069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10070 /* end confdefs.h. */
10071 int i;
10072 _ACEOF
10073 if ac_fn_c_try_compile "$LINENO"
10074 then :
10075 xorg_cv_cc_flag_unknown_warning_option=yes
10076 else $as_nop
10077 xorg_cv_cc_flag_unknown_warning_option=no
10078 fi
10079 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10080 fi
10081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10082 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10083 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10084 CFLAGS="$xorg_testset_save_CFLAGS"
10085 fi
10086
10087 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10090 fi
10091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10093 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10094 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10095 then :
10096 printf %s "(cached) " >&6
10097 else $as_nop
10098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10099 /* end confdefs.h. */
10100 int i;
10101 _ACEOF
10102 if ac_fn_c_try_compile "$LINENO"
10103 then :
10104 xorg_cv_cc_flag_unused_command_line_argument=yes
10105 else $as_nop
10106 xorg_cv_cc_flag_unused_command_line_argument=no
10107 fi
10108 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10109 fi
10110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10111 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10112 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10113 CFLAGS="$xorg_testset_save_CFLAGS"
10114 fi
10115
10116 found="no"
10117
10118 if test $found = "no" ; then
10119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10121 fi
10122
10123 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10125 fi
10126
10127 CFLAGS="$CFLAGS -Waddress"
10128
10129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10130 printf %s "checking if $CC supports -Waddress... " >&6; }
10131 cacheid=xorg_cv_cc_flag__Waddress
10132 if eval test \${$cacheid+y}
10133 then :
10134 printf %s "(cached) " >&6
10135 else $as_nop
10136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10137 /* end confdefs.h. */
10138 int i;
10139 int
10140 main (void)
10141 {
10142
10143 ;
10144 return 0;
10145 }
10146 _ACEOF
10147 if ac_fn_c_try_link "$LINENO"
10148 then :
10149 eval $cacheid=yes
10150 else $as_nop
10151 eval $cacheid=no
10152 fi
10153 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10154 conftest$ac_exeext conftest.$ac_ext
10155 fi
10156
10157
10158 CFLAGS="$xorg_testset_save_CFLAGS"
10159
10160 eval supported=\$$cacheid
10161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10162 printf "%s\n" "$supported" >&6; }
10163 if test "$supported" = "yes" ; then
10164 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10165 found="yes"
10166 fi
10167 fi
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183 xorg_testset_save_CFLAGS="$CFLAGS"
10184
10185 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10188 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10189 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10190 then :
10191 printf %s "(cached) " >&6
10192 else $as_nop
10193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10194 /* end confdefs.h. */
10195 int i;
10196 _ACEOF
10197 if ac_fn_c_try_compile "$LINENO"
10198 then :
10199 xorg_cv_cc_flag_unknown_warning_option=yes
10200 else $as_nop
10201 xorg_cv_cc_flag_unknown_warning_option=no
10202 fi
10203 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10204 fi
10205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10206 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10207 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10208 CFLAGS="$xorg_testset_save_CFLAGS"
10209 fi
10210
10211 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10214 fi
10215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10217 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10218 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10219 then :
10220 printf %s "(cached) " >&6
10221 else $as_nop
10222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10223 /* end confdefs.h. */
10224 int i;
10225 _ACEOF
10226 if ac_fn_c_try_compile "$LINENO"
10227 then :
10228 xorg_cv_cc_flag_unused_command_line_argument=yes
10229 else $as_nop
10230 xorg_cv_cc_flag_unused_command_line_argument=no
10231 fi
10232 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10233 fi
10234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10235 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10237 CFLAGS="$xorg_testset_save_CFLAGS"
10238 fi
10239
10240 found="no"
10241
10242 if test $found = "no" ; then
10243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10245 fi
10246
10247 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10249 fi
10250
10251 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10252
10253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10254 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10255 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10256 if eval test \${$cacheid+y}
10257 then :
10258 printf %s "(cached) " >&6
10259 else $as_nop
10260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10261 /* end confdefs.h. */
10262 int i;
10263 int
10264 main (void)
10265 {
10266
10267 ;
10268 return 0;
10269 }
10270 _ACEOF
10271 if ac_fn_c_try_link "$LINENO"
10272 then :
10273 eval $cacheid=yes
10274 else $as_nop
10275 eval $cacheid=no
10276 fi
10277 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10278 conftest$ac_exeext conftest.$ac_ext
10279 fi
10280
10281
10282 CFLAGS="$xorg_testset_save_CFLAGS"
10283
10284 eval supported=\$$cacheid
10285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10286 printf "%s\n" "$supported" >&6; }
10287 if test "$supported" = "yes" ; then
10288 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10289 found="yes"
10290 fi
10291 fi
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307 xorg_testset_save_CFLAGS="$CFLAGS"
10308
10309 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10310 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10312 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10313 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10314 then :
10315 printf %s "(cached) " >&6
10316 else $as_nop
10317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10318 /* end confdefs.h. */
10319 int i;
10320 _ACEOF
10321 if ac_fn_c_try_compile "$LINENO"
10322 then :
10323 xorg_cv_cc_flag_unknown_warning_option=yes
10324 else $as_nop
10325 xorg_cv_cc_flag_unknown_warning_option=no
10326 fi
10327 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10328 fi
10329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10330 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10331 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10332 CFLAGS="$xorg_testset_save_CFLAGS"
10333 fi
10334
10335 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10338 fi
10339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10341 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10342 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10343 then :
10344 printf %s "(cached) " >&6
10345 else $as_nop
10346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10347 /* end confdefs.h. */
10348 int i;
10349 _ACEOF
10350 if ac_fn_c_try_compile "$LINENO"
10351 then :
10352 xorg_cv_cc_flag_unused_command_line_argument=yes
10353 else $as_nop
10354 xorg_cv_cc_flag_unused_command_line_argument=no
10355 fi
10356 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10357 fi
10358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10359 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10360 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10361 CFLAGS="$xorg_testset_save_CFLAGS"
10362 fi
10363
10364 found="no"
10365
10366 if test $found = "no" ; then
10367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10369 fi
10370
10371 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10373 fi
10374
10375 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10376
10377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10378 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10379 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10380 if eval test \${$cacheid+y}
10381 then :
10382 printf %s "(cached) " >&6
10383 else $as_nop
10384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10385 /* end confdefs.h. */
10386 int i;
10387 int
10388 main (void)
10389 {
10390
10391 ;
10392 return 0;
10393 }
10394 _ACEOF
10395 if ac_fn_c_try_link "$LINENO"
10396 then :
10397 eval $cacheid=yes
10398 else $as_nop
10399 eval $cacheid=no
10400 fi
10401 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10402 conftest$ac_exeext conftest.$ac_ext
10403 fi
10404
10405
10406 CFLAGS="$xorg_testset_save_CFLAGS"
10407
10408 eval supported=\$$cacheid
10409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10410 printf "%s\n" "$supported" >&6; }
10411 if test "$supported" = "yes" ; then
10412 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10413 found="yes"
10414 fi
10415 fi
10416
10417
10418 fi
10419
10420
10421
10422
10423
10424
10425
10426 CWARNFLAGS="$BASE_CFLAGS"
10427 if test "x$GCC" = xyes ; then
10428 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10429 fi
10430
10431
10432
10433
10434
10435
10436
10437
10438 # Check whether --enable-strict-compilation was given.
10439 if test ${enable_strict_compilation+y}
10440 then :
10441 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10442 else $as_nop
10443 STRICT_COMPILE=no
10444 fi
10445
10446
10447
10448
10449
10450
10451 STRICT_CFLAGS=""
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465 xorg_testset_save_CFLAGS="$CFLAGS"
10466
10467 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10468 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10470 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10471 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10472 then :
10473 printf %s "(cached) " >&6
10474 else $as_nop
10475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10476 /* end confdefs.h. */
10477 int i;
10478 _ACEOF
10479 if ac_fn_c_try_compile "$LINENO"
10480 then :
10481 xorg_cv_cc_flag_unknown_warning_option=yes
10482 else $as_nop
10483 xorg_cv_cc_flag_unknown_warning_option=no
10484 fi
10485 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10486 fi
10487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10488 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10489 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10490 CFLAGS="$xorg_testset_save_CFLAGS"
10491 fi
10492
10493 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10495 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10496 fi
10497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10499 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10500 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10501 then :
10502 printf %s "(cached) " >&6
10503 else $as_nop
10504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10505 /* end confdefs.h. */
10506 int i;
10507 _ACEOF
10508 if ac_fn_c_try_compile "$LINENO"
10509 then :
10510 xorg_cv_cc_flag_unused_command_line_argument=yes
10511 else $as_nop
10512 xorg_cv_cc_flag_unused_command_line_argument=no
10513 fi
10514 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10515 fi
10516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10517 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10518 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10519 CFLAGS="$xorg_testset_save_CFLAGS"
10520 fi
10521
10522 found="no"
10523
10524 if test $found = "no" ; then
10525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10526 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10527 fi
10528
10529 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10531 fi
10532
10533 CFLAGS="$CFLAGS -pedantic"
10534
10535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10536 printf %s "checking if $CC supports -pedantic... " >&6; }
10537 cacheid=xorg_cv_cc_flag__pedantic
10538 if eval test \${$cacheid+y}
10539 then :
10540 printf %s "(cached) " >&6
10541 else $as_nop
10542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10543 /* end confdefs.h. */
10544 int i;
10545 int
10546 main (void)
10547 {
10548
10549 ;
10550 return 0;
10551 }
10552 _ACEOF
10553 if ac_fn_c_try_link "$LINENO"
10554 then :
10555 eval $cacheid=yes
10556 else $as_nop
10557 eval $cacheid=no
10558 fi
10559 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10560 conftest$ac_exeext conftest.$ac_ext
10561 fi
10562
10563
10564 CFLAGS="$xorg_testset_save_CFLAGS"
10565
10566 eval supported=\$$cacheid
10567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10568 printf "%s\n" "$supported" >&6; }
10569 if test "$supported" = "yes" ; then
10570 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10571 found="yes"
10572 fi
10573 fi
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589 xorg_testset_save_CFLAGS="$CFLAGS"
10590
10591 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10592 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10594 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10595 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10596 then :
10597 printf %s "(cached) " >&6
10598 else $as_nop
10599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10600 /* end confdefs.h. */
10601 int i;
10602 _ACEOF
10603 if ac_fn_c_try_compile "$LINENO"
10604 then :
10605 xorg_cv_cc_flag_unknown_warning_option=yes
10606 else $as_nop
10607 xorg_cv_cc_flag_unknown_warning_option=no
10608 fi
10609 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10610 fi
10611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10612 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10613 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10614 CFLAGS="$xorg_testset_save_CFLAGS"
10615 fi
10616
10617 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10620 fi
10621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10623 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10624 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10625 then :
10626 printf %s "(cached) " >&6
10627 else $as_nop
10628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10629 /* end confdefs.h. */
10630 int i;
10631 _ACEOF
10632 if ac_fn_c_try_compile "$LINENO"
10633 then :
10634 xorg_cv_cc_flag_unused_command_line_argument=yes
10635 else $as_nop
10636 xorg_cv_cc_flag_unused_command_line_argument=no
10637 fi
10638 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10639 fi
10640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10641 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10642 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10643 CFLAGS="$xorg_testset_save_CFLAGS"
10644 fi
10645
10646 found="no"
10647
10648 if test $found = "no" ; then
10649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10651 fi
10652
10653 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10655 fi
10656
10657 CFLAGS="$CFLAGS -Werror"
10658
10659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10660 printf %s "checking if $CC supports -Werror... " >&6; }
10661 cacheid=xorg_cv_cc_flag__Werror
10662 if eval test \${$cacheid+y}
10663 then :
10664 printf %s "(cached) " >&6
10665 else $as_nop
10666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10667 /* end confdefs.h. */
10668 int i;
10669 int
10670 main (void)
10671 {
10672
10673 ;
10674 return 0;
10675 }
10676 _ACEOF
10677 if ac_fn_c_try_link "$LINENO"
10678 then :
10679 eval $cacheid=yes
10680 else $as_nop
10681 eval $cacheid=no
10682 fi
10683 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10684 conftest$ac_exeext conftest.$ac_ext
10685 fi
10686
10687
10688 CFLAGS="$xorg_testset_save_CFLAGS"
10689
10690 eval supported=\$$cacheid
10691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10692 printf "%s\n" "$supported" >&6; }
10693 if test "$supported" = "yes" ; then
10694 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10695 found="yes"
10696 fi
10697 fi
10698
10699 if test $found = "no" ; then
10700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10702 fi
10703
10704 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10706 fi
10707
10708 CFLAGS="$CFLAGS -errwarn"
10709
10710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10711 printf %s "checking if $CC supports -errwarn... " >&6; }
10712 cacheid=xorg_cv_cc_flag__errwarn
10713 if eval test \${$cacheid+y}
10714 then :
10715 printf %s "(cached) " >&6
10716 else $as_nop
10717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10718 /* end confdefs.h. */
10719 int i;
10720 int
10721 main (void)
10722 {
10723
10724 ;
10725 return 0;
10726 }
10727 _ACEOF
10728 if ac_fn_c_try_link "$LINENO"
10729 then :
10730 eval $cacheid=yes
10731 else $as_nop
10732 eval $cacheid=no
10733 fi
10734 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10735 conftest$ac_exeext conftest.$ac_ext
10736 fi
10737
10738
10739 CFLAGS="$xorg_testset_save_CFLAGS"
10740
10741 eval supported=\$$cacheid
10742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10743 printf "%s\n" "$supported" >&6; }
10744 if test "$supported" = "yes" ; then
10745 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10746 found="yes"
10747 fi
10748 fi
10749
10750
10751
10752 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10753 # activate it with -Werror, so we add it here explicitly.
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767 xorg_testset_save_CFLAGS="$CFLAGS"
10768
10769 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10772 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10773 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10774 then :
10775 printf %s "(cached) " >&6
10776 else $as_nop
10777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10778 /* end confdefs.h. */
10779 int i;
10780 _ACEOF
10781 if ac_fn_c_try_compile "$LINENO"
10782 then :
10783 xorg_cv_cc_flag_unknown_warning_option=yes
10784 else $as_nop
10785 xorg_cv_cc_flag_unknown_warning_option=no
10786 fi
10787 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10788 fi
10789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10790 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10791 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10792 CFLAGS="$xorg_testset_save_CFLAGS"
10793 fi
10794
10795 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10796 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10797 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10798 fi
10799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10801 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10802 if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes
10813 else $as_nop
10814 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
10819 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10820 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10821 CFLAGS="$xorg_testset_save_CFLAGS"
10822 fi
10823
10824 found="no"
10825
10826 if test $found = "no" ; then
10827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10829 fi
10830
10831 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10833 fi
10834
10835 CFLAGS="$CFLAGS -Werror=attributes"
10836
10837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10838 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10839 cacheid=xorg_cv_cc_flag__Werror_attributes
10840 if eval test \${$cacheid+y}
10841 then :
10842 printf %s "(cached) " >&6
10843 else $as_nop
10844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10845 /* end confdefs.h. */
10846 int i;
10847 int
10848 main (void)
10849 {
10850
10851 ;
10852 return 0;
10853 }
10854 _ACEOF
10855 if ac_fn_c_try_link "$LINENO"
10856 then :
10857 eval $cacheid=yes
10858 else $as_nop
10859 eval $cacheid=no
10860 fi
10861 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10862 conftest$ac_exeext conftest.$ac_ext
10863 fi
10864
10865
10866 CFLAGS="$xorg_testset_save_CFLAGS"
10867
10868 eval supported=\$$cacheid
10869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10870 printf "%s\n" "$supported" >&6; }
10871 if test "$supported" = "yes" ; then
10872 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10873 found="yes"
10874 fi
10875 fi
10876
10877
10878
10879 if test "x$STRICT_COMPILE" = "xyes"; then
10880 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10881 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10882 fi
10883
10884
10885
10886
10887
10888
10889 cat >>confdefs.h <<_ACEOF
10890 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10891 _ACEOF
10892
10893 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10894 if test "x$PVM" = "x"; then
10895 PVM="0"
10896 fi
10897
10898 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10899
10900 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10901 if test "x$PVP" = "x"; then
10902 PVP="0"
10903 fi
10904
10905 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10906
10907
10908
10909 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10910 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10911 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10912 touch \$(top_srcdir)/ChangeLog; \
10913 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10914
10915
10916
10917
10918 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10919 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10920 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10921 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10922 touch \$(top_srcdir)/INSTALL; \
10923 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10924
10925
10926
10927
10928
10929
10930 case $host_os in
10931 solaris*)
10932 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10933 # check for a man page file found in later versions that use
10934 # traditional section numbers instead
10935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10936 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
10937 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
10938 then :
10939 printf %s "(cached) " >&6
10940 else $as_nop
10941 test "$cross_compiling" = yes &&
10942 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10943 if test -r "/usr/share/man/man7/attributes.7"; then
10944 ac_cv_file__usr_share_man_man7_attributes_7=yes
10945 else
10946 ac_cv_file__usr_share_man_man7_attributes_7=no
10947 fi
10948 fi
10949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10950 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10951 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
10952 then :
10953 SYSV_MAN_SECTIONS=false
10954 else $as_nop
10955 SYSV_MAN_SECTIONS=true
10956 fi
10957
10958 ;;
10959 *) SYSV_MAN_SECTIONS=false ;;
10960 esac
10961
10962 if test x$APP_MAN_SUFFIX = x ; then
10963 APP_MAN_SUFFIX=1
10964 fi
10965 if test x$APP_MAN_DIR = x ; then
10966 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10967 fi
10968
10969 if test x$LIB_MAN_SUFFIX = x ; then
10970 LIB_MAN_SUFFIX=3
10971 fi
10972 if test x$LIB_MAN_DIR = x ; then
10973 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10974 fi
10975
10976 if test x$FILE_MAN_SUFFIX = x ; then
10977 case $SYSV_MAN_SECTIONS in
10978 true) FILE_MAN_SUFFIX=4 ;;
10979 *) FILE_MAN_SUFFIX=5 ;;
10980 esac
10981 fi
10982 if test x$FILE_MAN_DIR = x ; then
10983 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10984 fi
10985
10986 if test x$MISC_MAN_SUFFIX = x ; then
10987 case $SYSV_MAN_SECTIONS in
10988 true) MISC_MAN_SUFFIX=5 ;;
10989 *) MISC_MAN_SUFFIX=7 ;;
10990 esac
10991 fi
10992 if test x$MISC_MAN_DIR = x ; then
10993 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10994 fi
10995
10996 if test x$DRIVER_MAN_SUFFIX = x ; then
10997 case $SYSV_MAN_SECTIONS in
10998 true) DRIVER_MAN_SUFFIX=7 ;;
10999 *) DRIVER_MAN_SUFFIX=4 ;;
11000 esac
11001 fi
11002 if test x$DRIVER_MAN_DIR = x ; then
11003 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11004 fi
11005
11006 if test x$ADMIN_MAN_SUFFIX = x ; then
11007 case $SYSV_MAN_SECTIONS in
11008 true) ADMIN_MAN_SUFFIX=1m ;;
11009 *) ADMIN_MAN_SUFFIX=8 ;;
11010 esac
11011 fi
11012 if test x$ADMIN_MAN_DIR = x ; then
11013 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11014 fi
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030 XORG_MAN_PAGE="X Version 11"
11031
11032 MAN_SUBSTS="\
11033 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11034 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11035 -e 's|__xservername__|Xorg|g' \
11036 -e 's|__xconfigfile__|xorg.conf|g' \
11037 -e 's|__projectroot__|\$(prefix)|g' \
11038 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11039 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11040 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11041 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11042 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11043 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11044 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11045
11046
11047
11048 # Check whether --enable-silent-rules was given.
11049 if test ${enable_silent_rules+y}
11050 then :
11051 enableval=$enable_silent_rules;
11052 fi
11053
11054 case $enable_silent_rules in # (((
11055 yes) AM_DEFAULT_VERBOSITY=0;;
11056 no) AM_DEFAULT_VERBOSITY=1;;
11057 *) AM_DEFAULT_VERBOSITY=0;;
11058 esac
11059 am_make=${MAKE-make}
11060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11061 printf %s "checking whether $am_make supports nested variables... " >&6; }
11062 if test ${am_cv_make_support_nested_variables+y}
11063 then :
11064 printf %s "(cached) " >&6
11065 else $as_nop
11066 if printf "%s\n" 'TRUE=$(BAR$(V))
11067 BAR0=false
11068 BAR1=true
11069 V=1
11070 am__doit:
11071 @$(TRUE)
11072 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11073 am_cv_make_support_nested_variables=yes
11074 else
11075 am_cv_make_support_nested_variables=no
11076 fi
11077 fi
11078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11079 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11080 if test $am_cv_make_support_nested_variables = yes; then
11081 AM_V='$(V)'
11082 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11083 else
11084 AM_V=$AM_DEFAULT_VERBOSITY
11085 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11086 fi
11087 AM_BACKSLASH='\'
11088
11089
11090
11091 # Checks for pkg-config packages
11092
11093 pkg_failed=no
11094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XKILL" >&5
11095 printf %s "checking for XKILL... " >&6; }
11096
11097 if test -n "$XKILL_CFLAGS"; then
11098 pkg_cv_XKILL_CFLAGS="$XKILL_CFLAGS"
11099 elif test -n "$PKG_CONFIG"; then
11100 if test -n "$PKG_CONFIG" && \
11101 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmuu xproto >= 7.0.22\""; } >&5
11102 ($PKG_CONFIG --exists --print-errors "x11 xmuu xproto >= 7.0.22") 2>&5
11103 ac_status=$?
11104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11105 test $ac_status = 0; }; then
11106 pkg_cv_XKILL_CFLAGS=`$PKG_CONFIG --cflags "x11 xmuu xproto >= 7.0.22" 2>/dev/null`
11107 test "x$?" != "x0" && pkg_failed=yes
11108 else
11109 pkg_failed=yes
11110 fi
11111 else
11112 pkg_failed=untried
11113 fi
11114 if test -n "$XKILL_LIBS"; then
11115 pkg_cv_XKILL_LIBS="$XKILL_LIBS"
11116 elif test -n "$PKG_CONFIG"; then
11117 if test -n "$PKG_CONFIG" && \
11118 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmuu xproto >= 7.0.22\""; } >&5
11119 ($PKG_CONFIG --exists --print-errors "x11 xmuu xproto >= 7.0.22") 2>&5
11120 ac_status=$?
11121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11122 test $ac_status = 0; }; then
11123 pkg_cv_XKILL_LIBS=`$PKG_CONFIG --libs "x11 xmuu xproto >= 7.0.22" 2>/dev/null`
11124 test "x$?" != "x0" && pkg_failed=yes
11125 else
11126 pkg_failed=yes
11127 fi
11128 else
11129 pkg_failed=untried
11130 fi
11131
11132
11133
11134 if test $pkg_failed = yes; then
11135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11136 printf "%s\n" "no" >&6; }
11137
11138 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11139 _pkg_short_errors_supported=yes
11140 else
11141 _pkg_short_errors_supported=no
11142 fi
11143 if test $_pkg_short_errors_supported = yes; then
11144 XKILL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xmuu xproto >= 7.0.22" 2>&1`
11145 else
11146 XKILL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xmuu xproto >= 7.0.22" 2>&1`
11147 fi
11148 # Put the nasty error message in config.log where it belongs
11149 echo "$XKILL_PKG_ERRORS" >&5
11150
11151 as_fn_error $? "Package requirements (x11 xmuu xproto >= 7.0.22) were not met:
11152
11153 $XKILL_PKG_ERRORS
11154
11155 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11156 installed software in a non-standard prefix.
11157
11158 Alternatively, you may set the environment variables XKILL_CFLAGS
11159 and XKILL_LIBS to avoid the need to call pkg-config.
11160 See the pkg-config man page for more details." "$LINENO" 5
11161 elif test $pkg_failed = untried; then
11162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163 printf "%s\n" "no" >&6; }
11164 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11165 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11166 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11167 is in your PATH or set the PKG_CONFIG environment variable to the full
11168 path to pkg-config.
11169
11170 Alternatively, you may set the environment variables XKILL_CFLAGS
11171 and XKILL_LIBS to avoid the need to call pkg-config.
11172 See the pkg-config man page for more details.
11173
11174 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11175 See \`config.log' for more details" "$LINENO" 5; }
11176 else
11177 XKILL_CFLAGS=$pkg_cv_XKILL_CFLAGS
11178 XKILL_LIBS=$pkg_cv_XKILL_LIBS
11179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11180 printf "%s\n" "yes" >&6; }
11181
11182 fi
11183
11184 ac_config_files="$ac_config_files Makefile man/Makefile"
11185
11186 cat >confcache <<\_ACEOF
11187 # This file is a shell script that caches the results of configure
11188 # tests run on this system so they can be shared between configure
11189 # scripts and configure runs, see configure's option --config-cache.
11190 # It is not useful on other systems. If it contains results you don't
11191 # want to keep, you may remove or edit it.
11192 #
11193 # config.status only pays attention to the cache file if you give it
11194 # the --recheck option to rerun configure.
11195 #
11196 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11197 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11198 # following values.
11199
11200 _ACEOF
11201
11202 # The following way of writing the cache mishandles newlines in values,
11203 # but we know of no workaround that is simple, portable, and efficient.
11204 # So, we kill variables containing newlines.
11205 # Ultrix sh set writes to stderr and can't be redirected directly,
11206 # and sets the high bit in the cache file unless we assign to the vars.
11207 (
11208 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11209 eval ac_val=\$$ac_var
11210 case $ac_val in #(
11211 *${as_nl}*)
11212 case $ac_var in #(
11213 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11214 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11215 esac
11216 case $ac_var in #(
11217 _ | IFS | as_nl) ;; #(
11218 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11219 *) { eval $ac_var=; unset $ac_var;} ;;
11220 esac ;;
11221 esac
11222 done
11223
11224 (set) 2>&1 |
11225 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11226 *${as_nl}ac_space=\ *)
11227 # `set' does not quote correctly, so add quotes: double-quote
11228 # substitution turns \\\\ into \\, and sed turns \\ into \.
11229 sed -n \
11230 "s/'/'\\\\''/g;
11231 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11232 ;; #(
11233 *)
11234 # `set' quotes correctly as required by POSIX, so do not add quotes.
11235 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11236 ;;
11237 esac |
11238 sort
11239 ) |
11240 sed '
11241 /^ac_cv_env_/b end
11242 t clear
11243 :clear
11244 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11245 t end
11246 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11247 :end' >>confcache
11248 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11249 if test -w "$cache_file"; then
11250 if test "x$cache_file" != "x/dev/null"; then
11251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11252 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11253 if test ! -f "$cache_file" || test -h "$cache_file"; then
11254 cat confcache >"$cache_file"
11255 else
11256 case $cache_file in #(
11257 */* | ?:*)
11258 mv -f confcache "$cache_file"$$ &&
11259 mv -f "$cache_file"$$ "$cache_file" ;; #(
11260 *)
11261 mv -f confcache "$cache_file" ;;
11262 esac
11263 fi
11264 fi
11265 else
11266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11267 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11268 fi
11269 fi
11270 rm -f confcache
11271
11272 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11273 # Let make expand exec_prefix.
11274 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11275
11276 DEFS=-DHAVE_CONFIG_H
11277
11278 ac_libobjs=
11279 ac_ltlibobjs=
11280 U=
11281 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11282 # 1. Remove the extension, and $U if already installed.
11283 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11284 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11285 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11286 # will be set to the directory where LIBOBJS objects are built.
11287 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11288 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11289 done
11290 LIBOBJS=$ac_libobjs
11291
11292 LTLIBOBJS=$ac_ltlibobjs
11293
11294
11295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11296 printf %s "checking that generated files are newer than configure... " >&6; }
11297 if test -n "$am_sleep_pid"; then
11298 # Hide warnings about reused PIDs.
11299 wait $am_sleep_pid 2>/dev/null
11300 fi
11301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11302 printf "%s\n" "done" >&6; }
11303 if test -n "$EXEEXT"; then
11304 am__EXEEXT_TRUE=
11305 am__EXEEXT_FALSE='#'
11306 else
11307 am__EXEEXT_TRUE='#'
11308 am__EXEEXT_FALSE=
11309 fi
11310
11311 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11312 as_fn_error $? "conditional \"AMDEP\" was never defined.
11313 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11314 fi
11315 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11316 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11317 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11318 fi
11319
11320 : "${CONFIG_STATUS=./config.status}"
11321 ac_write_fail=0
11322 ac_clean_files_save=$ac_clean_files
11323 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11325 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11326 as_write_fail=0
11327 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11328 #! $SHELL
11329 # Generated by $as_me.
11330 # Run this file to recreate the current configuration.
11331 # Compiler output produced by configure, useful for debugging
11332 # configure, is in config.log if it exists.
11333
11334 debug=false
11335 ac_cs_recheck=false
11336 ac_cs_silent=false
11337
11338 SHELL=\${CONFIG_SHELL-$SHELL}
11339 export SHELL
11340 _ASEOF
11341 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11342 ## -------------------- ##
11343 ## M4sh Initialization. ##
11344 ## -------------------- ##
11345
11346 # Be more Bourne compatible
11347 DUALCASE=1; export DUALCASE # for MKS sh
11348 as_nop=:
11349 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11350 then :
11351 emulate sh
11352 NULLCMD=:
11353 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11354 # is contrary to our usage. Disable this feature.
11355 alias -g '${1+"$@"}'='"$@"'
11356 setopt NO_GLOB_SUBST
11357 else $as_nop
11358 case `(set -o) 2>/dev/null` in #(
11359 *posix*) :
11360 set -o posix ;; #(
11361 *) :
11362 ;;
11363 esac
11364 fi
11365
11366
11367
11368 # Reset variables that may have inherited troublesome values from
11369 # the environment.
11370
11371 # IFS needs to be set, to space, tab, and newline, in precisely that order.
11372 # (If _AS_PATH_WALK were called with IFS unset, it would have the
11373 # side effect of setting IFS to empty, thus disabling word splitting.)
11374 # Quoting is to prevent editors from complaining about space-tab.
11375 as_nl='
11376 '
11377 export as_nl
11378 IFS=" "" $as_nl"
11379
11380 PS1='$ '
11381 PS2='> '
11382 PS4='+ '
11383
11384 # Ensure predictable behavior from utilities with locale-dependent output.
11385 LC_ALL=C
11386 export LC_ALL
11387 LANGUAGE=C
11388 export LANGUAGE
11389
11390 # We cannot yet rely on "unset" to work, but we need these variables
11391 # to be unset--not just set to an empty or harmless value--now, to
11392 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
11393 # also avoids known problems related to "unset" and subshell syntax
11394 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11395 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11396 do eval test \${$as_var+y} \
11397 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11398 done
11399
11400 # Ensure that fds 0, 1, and 2 are open.
11401 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11402 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11403 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
11404
11405 # The user is always right.
11406 if ${PATH_SEPARATOR+false} :; then
11407 PATH_SEPARATOR=:
11408 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11409 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11410 PATH_SEPARATOR=';'
11411 }
11412 fi
11413
11414
11415 # Find who we are. Look in the path if we contain no directory separator.
11416 as_myself=
11417 case $0 in #((
11418 *[\\/]* ) as_myself=$0 ;;
11419 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11420 for as_dir in $PATH
11421 do
11422 IFS=$as_save_IFS
11423 case $as_dir in #(((
11424 '') as_dir=./ ;;
11425 */) ;;
11426 *) as_dir=$as_dir/ ;;
11427 esac
11428 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11429 done
11430 IFS=$as_save_IFS
11431
11432 ;;
11433 esac
11434 # We did not find ourselves, most probably we were run as `sh COMMAND'
11435 # in which case we are not to be found in the path.
11436 if test "x$as_myself" = x; then
11437 as_myself=$0
11438 fi
11439 if test ! -f "$as_myself"; then
11440 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11441 exit 1
11442 fi
11443
11444
11445
11446 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11447 # ----------------------------------------
11448 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11449 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11450 # script with STATUS, using 1 if that was 0.
11451 as_fn_error ()
11452 {
11453 as_status=$1; test $as_status -eq 0 && as_status=1
11454 if test "$4"; then
11455 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11457 fi
11458 printf "%s\n" "$as_me: error: $2" >&2
11459 as_fn_exit $as_status
11460 } # as_fn_error
11461
11462
11463
11464 # as_fn_set_status STATUS
11465 # -----------------------
11466 # Set $? to STATUS, without forking.
11467 as_fn_set_status ()
11468 {
11469 return $1
11470 } # as_fn_set_status
11471
11472 # as_fn_exit STATUS
11473 # -----------------
11474 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11475 as_fn_exit ()
11476 {
11477 set +e
11478 as_fn_set_status $1
11479 exit $1
11480 } # as_fn_exit
11481
11482 # as_fn_unset VAR
11483 # ---------------
11484 # Portably unset VAR.
11485 as_fn_unset ()
11486 {
11487 { eval $1=; unset $1;}
11488 }
11489 as_unset=as_fn_unset
11490
11491 # as_fn_append VAR VALUE
11492 # ----------------------
11493 # Append the text in VALUE to the end of the definition contained in VAR. Take
11494 # advantage of any shell optimizations that allow amortized linear growth over
11495 # repeated appends, instead of the typical quadratic growth present in naive
11496 # implementations.
11497 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11498 then :
11499 eval 'as_fn_append ()
11500 {
11501 eval $1+=\$2
11502 }'
11503 else $as_nop
11504 as_fn_append ()
11505 {
11506 eval $1=\$$1\$2
11507 }
11508 fi # as_fn_append
11509
11510 # as_fn_arith ARG...
11511 # ------------------
11512 # Perform arithmetic evaluation on the ARGs, and store the result in the
11513 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11514 # must be portable across $(()) and expr.
11515 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11516 then :
11517 eval 'as_fn_arith ()
11518 {
11519 as_val=$(( $* ))
11520 }'
11521 else $as_nop
11522 as_fn_arith ()
11523 {
11524 as_val=`expr "$@" || test $? -eq 1`
11525 }
11526 fi # as_fn_arith
11527
11528
11529 if expr a : '\(a\)' >/dev/null 2>&1 &&
11530 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11531 as_expr=expr
11532 else
11533 as_expr=false
11534 fi
11535
11536 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11537 as_basename=basename
11538 else
11539 as_basename=false
11540 fi
11541
11542 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11543 as_dirname=dirname
11544 else
11545 as_dirname=false
11546 fi
11547
11548 as_me=`$as_basename -- "$0" ||
11549 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11550 X"$0" : 'X\(//\)$' \| \
11551 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11552 printf "%s\n" X/"$0" |
11553 sed '/^.*\/\([^/][^/]*\)\/*$/{
11554 s//\1/
11555 q
11556 }
11557 /^X\/\(\/\/\)$/{
11558 s//\1/
11559 q
11560 }
11561 /^X\/\(\/\).*/{
11562 s//\1/
11563 q
11564 }
11565 s/.*/./; q'`
11566
11567 # Avoid depending upon Character Ranges.
11568 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11569 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11570 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11571 as_cr_digits='0123456789'
11572 as_cr_alnum=$as_cr_Letters$as_cr_digits
11573
11574
11575 # Determine whether it's possible to make 'echo' print without a newline.
11576 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11577 # for compatibility with existing Makefiles.
11578 ECHO_C= ECHO_N= ECHO_T=
11579 case `echo -n x` in #(((((
11580 -n*)
11581 case `echo 'xy\c'` in
11582 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11583 xy) ECHO_C='\c';;
11584 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11585 ECHO_T=' ';;
11586 esac;;
11587 *)
11588 ECHO_N='-n';;
11589 esac
11590
11591 # For backward compatibility with old third-party macros, we provide
11592 # the shell variables $as_echo and $as_echo_n. New code should use
11593 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11594 as_echo='printf %s\n'
11595 as_echo_n='printf %s'
11596
11597 rm -f conf$$ conf$$.exe conf$$.file
11598 if test -d conf$$.dir; then
11599 rm -f conf$$.dir/conf$$.file
11600 else
11601 rm -f conf$$.dir
11602 mkdir conf$$.dir 2>/dev/null
11603 fi
11604 if (echo >conf$$.file) 2>/dev/null; then
11605 if ln -s conf$$.file conf$$ 2>/dev/null; then
11606 as_ln_s='ln -s'
11607 # ... but there are two gotchas:
11608 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11609 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11610 # In both cases, we have to default to `cp -pR'.
11611 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11612 as_ln_s='cp -pR'
11613 elif ln conf$$.file conf$$ 2>/dev/null; then
11614 as_ln_s=ln
11615 else
11616 as_ln_s='cp -pR'
11617 fi
11618 else
11619 as_ln_s='cp -pR'
11620 fi
11621 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11622 rmdir conf$$.dir 2>/dev/null
11623
11624
11625 # as_fn_mkdir_p
11626 # -------------
11627 # Create "$as_dir" as a directory, including parents if necessary.
11628 as_fn_mkdir_p ()
11629 {
11630
11631 case $as_dir in #(
11632 -*) as_dir=./$as_dir;;
11633 esac
11634 test -d "$as_dir" || eval $as_mkdir_p || {
11635 as_dirs=
11636 while :; do
11637 case $as_dir in #(
11638 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11639 *) as_qdir=$as_dir;;
11640 esac
11641 as_dirs="'$as_qdir' $as_dirs"
11642 as_dir=`$as_dirname -- "$as_dir" ||
11643 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11644 X"$as_dir" : 'X\(//\)[^/]' \| \
11645 X"$as_dir" : 'X\(//\)$' \| \
11646 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11647 printf "%s\n" X"$as_dir" |
11648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11649 s//\1/
11650 q
11651 }
11652 /^X\(\/\/\)[^/].*/{
11653 s//\1/
11654 q
11655 }
11656 /^X\(\/\/\)$/{
11657 s//\1/
11658 q
11659 }
11660 /^X\(\/\).*/{
11661 s//\1/
11662 q
11663 }
11664 s/.*/./; q'`
11665 test -d "$as_dir" && break
11666 done
11667 test -z "$as_dirs" || eval "mkdir $as_dirs"
11668 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11669
11670
11671 } # as_fn_mkdir_p
11672 if mkdir -p . 2>/dev/null; then
11673 as_mkdir_p='mkdir -p "$as_dir"'
11674 else
11675 test -d ./-p && rmdir ./-p
11676 as_mkdir_p=false
11677 fi
11678
11679
11680 # as_fn_executable_p FILE
11681 # -----------------------
11682 # Test if FILE is an executable regular file.
11683 as_fn_executable_p ()
11684 {
11685 test -f "$1" && test -x "$1"
11686 } # as_fn_executable_p
11687 as_test_x='test -x'
11688 as_executable_p=as_fn_executable_p
11689
11690 # Sed expression to map a string onto a valid CPP name.
11691 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11692
11693 # Sed expression to map a string onto a valid variable name.
11694 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11695
11696
11697 exec 6>&1
11698 ## ----------------------------------- ##
11699 ## Main body of $CONFIG_STATUS script. ##
11700 ## ----------------------------------- ##
11701 _ASEOF
11702 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11703
11704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11705 # Save the log message, to keep $0 and so on meaningful, and to
11706 # report actual input values of CONFIG_FILES etc. instead of their
11707 # values after options handling.
11708 ac_log="
11709 This file was extended by xkill $as_me 1.0.6, which was
11710 generated by GNU Autoconf 2.71. Invocation command line was
11711
11712 CONFIG_FILES = $CONFIG_FILES
11713 CONFIG_HEADERS = $CONFIG_HEADERS
11714 CONFIG_LINKS = $CONFIG_LINKS
11715 CONFIG_COMMANDS = $CONFIG_COMMANDS
11716 $ $0 $@
11717
11718 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11719 "
11720
11721 _ACEOF
11722
11723 case $ac_config_files in *"
11724 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11725 esac
11726
11727 case $ac_config_headers in *"
11728 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11729 esac
11730
11731
11732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11733 # Files that config.status was made for.
11734 config_files="$ac_config_files"
11735 config_headers="$ac_config_headers"
11736 config_commands="$ac_config_commands"
11737
11738 _ACEOF
11739
11740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11741 ac_cs_usage="\
11742 \`$as_me' instantiates files and other configuration actions
11743 from templates according to the current configuration. Unless the files
11744 and actions are specified as TAGs, all are instantiated by default.
11745
11746 Usage: $0 [OPTION]... [TAG]...
11747
11748 -h, --help print this help, then exit
11749 -V, --version print version number and configuration settings, then exit
11750 --config print configuration, then exit
11751 -q, --quiet, --silent
11752 do not print progress messages
11753 -d, --debug don't remove temporary files
11754 --recheck update $as_me by reconfiguring in the same conditions
11755 --file=FILE[:TEMPLATE]
11756 instantiate the configuration file FILE
11757 --header=FILE[:TEMPLATE]
11758 instantiate the configuration header FILE
11759
11760 Configuration files:
11761 $config_files
11762
11763 Configuration headers:
11764 $config_headers
11765
11766 Configuration commands:
11767 $config_commands
11768
11769 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkill/-/issues>."
11770
11771 _ACEOF
11772 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
11773 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
11774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11775 ac_cs_config='$ac_cs_config_escaped'
11776 ac_cs_version="\\
11777 xkill config.status 1.0.6
11778 configured by $0, generated by GNU Autoconf 2.71,
11779 with options \\"\$ac_cs_config\\"
11780
11781 Copyright (C) 2021 Free Software Foundation, Inc.
11782 This config.status script is free software; the Free Software Foundation
11783 gives unlimited permission to copy, distribute and modify it."
11784
11785 ac_pwd='$ac_pwd'
11786 srcdir='$srcdir'
11787 INSTALL='$INSTALL'
11788 MKDIR_P='$MKDIR_P'
11789 AWK='$AWK'
11790 test -n "\$AWK" || AWK=awk
11791 _ACEOF
11792
11793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11794 # The default lists apply if the user does not specify any file.
11795 ac_need_defaults=:
11796 while test $# != 0
11797 do
11798 case $1 in
11799 --*=?*)
11800 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11801 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11802 ac_shift=:
11803 ;;
11804 --*=)
11805 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11806 ac_optarg=
11807 ac_shift=:
11808 ;;
11809 *)
11810 ac_option=$1
11811 ac_optarg=$2
11812 ac_shift=shift
11813 ;;
11814 esac
11815
11816 case $ac_option in
11817 # Handling of the options.
11818 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11819 ac_cs_recheck=: ;;
11820 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11821 printf "%s\n" "$ac_cs_version"; exit ;;
11822 --config | --confi | --conf | --con | --co | --c )
11823 printf "%s\n" "$ac_cs_config"; exit ;;
11824 --debug | --debu | --deb | --de | --d | -d )
11825 debug=: ;;
11826 --file | --fil | --fi | --f )
11827 $ac_shift
11828 case $ac_optarg in
11829 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11830 '') as_fn_error $? "missing file argument" ;;
11831 esac
11832 as_fn_append CONFIG_FILES " '$ac_optarg'"
11833 ac_need_defaults=false;;
11834 --header | --heade | --head | --hea )
11835 $ac_shift
11836 case $ac_optarg in
11837 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11838 esac
11839 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11840 ac_need_defaults=false;;
11841 --he | --h)
11842 # Conflict between --help and --header
11843 as_fn_error $? "ambiguous option: \`$1'
11844 Try \`$0 --help' for more information.";;
11845 --help | --hel | -h )
11846 printf "%s\n" "$ac_cs_usage"; exit ;;
11847 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11848 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11849 ac_cs_silent=: ;;
11850
11851 # This is an error.
11852 -*) as_fn_error $? "unrecognized option: \`$1'
11853 Try \`$0 --help' for more information." ;;
11854
11855 *) as_fn_append ac_config_targets " $1"
11856 ac_need_defaults=false ;;
11857
11858 esac
11859 shift
11860 done
11861
11862 ac_configure_extra_args=
11863
11864 if $ac_cs_silent; then
11865 exec 6>/dev/null
11866 ac_configure_extra_args="$ac_configure_extra_args --silent"
11867 fi
11868
11869 _ACEOF
11870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11871 if \$ac_cs_recheck; then
11872 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11873 shift
11874 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
11875 CONFIG_SHELL='$SHELL'
11876 export CONFIG_SHELL
11877 exec "\$@"
11878 fi
11879
11880 _ACEOF
11881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11882 exec 5>>config.log
11883 {
11884 echo
11885 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11886 ## Running $as_me. ##
11887 _ASBOX
11888 printf "%s\n" "$ac_log"
11889 } >&5
11890
11891 _ACEOF
11892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11893 #
11894 # INIT-COMMANDS
11895 #
11896 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
11897
11898 _ACEOF
11899
11900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11901
11902 # Handling of arguments.
11903 for ac_config_target in $ac_config_targets
11904 do
11905 case $ac_config_target in
11906 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11907 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11908 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11909 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11910
11911 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11912 esac
11913 done
11914
11915
11916 # If the user did not use the arguments to specify the items to instantiate,
11917 # then the envvar interface is used. Set only those that are not.
11918 # We use the long form for the default assignment because of an extremely
11919 # bizarre bug on SunOS 4.1.3.
11920 if $ac_need_defaults; then
11921 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
11922 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
11923 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
11924 fi
11925
11926 # Have a temporary directory for convenience. Make it in the build tree
11927 # simply because there is no reason against having it here, and in addition,
11928 # creating and moving files from /tmp can sometimes cause problems.
11929 # Hook for its removal unless debugging.
11930 # Note that there is a small window in which the directory will not be cleaned:
11931 # after its creation but before its name has been assigned to `$tmp'.
11932 $debug ||
11933 {
11934 tmp= ac_tmp=
11935 trap 'exit_status=$?
11936 : "${ac_tmp:=$tmp}"
11937 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11938 ' 0
11939 trap 'as_fn_exit 1' 1 2 13 15
11940 }
11941 # Create a (secure) tmp directory for tmp files.
11942
11943 {
11944 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11945 test -d "$tmp"
11946 } ||
11947 {
11948 tmp=./conf$$-$RANDOM
11949 (umask 077 && mkdir "$tmp")
11950 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11951 ac_tmp=$tmp
11952
11953 # Set up the scripts for CONFIG_FILES section.
11954 # No need to generate them if there are no CONFIG_FILES.
11955 # This happens for instance with `./config.status config.h'.
11956 if test -n "$CONFIG_FILES"; then
11957
11958
11959 ac_cr=`echo X | tr X '\015'`
11960 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11961 # But we know of no other shell where ac_cr would be empty at this
11962 # point, so we can use a bashism as a fallback.
11963 if test "x$ac_cr" = x; then
11964 eval ac_cr=\$\'\\r\'
11965 fi
11966 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11967 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11968 ac_cs_awk_cr='\\r'
11969 else
11970 ac_cs_awk_cr=$ac_cr
11971 fi
11972
11973 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11974 _ACEOF
11975
11976
11977 {
11978 echo "cat >conf$$subs.awk <<_ACEOF" &&
11979 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11980 echo "_ACEOF"
11981 } >conf$$subs.sh ||
11982 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11983 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11984 ac_delim='%!_!# '
11985 for ac_last_try in false false false false false :; do
11986 . ./conf$$subs.sh ||
11987 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11988
11989 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11990 if test $ac_delim_n = $ac_delim_num; then
11991 break
11992 elif $ac_last_try; then
11993 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11994 else
11995 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11996 fi
11997 done
11998 rm -f conf$$subs.sh
11999
12000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12001 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12002 _ACEOF
12003 sed -n '
12004 h
12005 s/^/S["/; s/!.*/"]=/
12006 p
12007 g
12008 s/^[^!]*!//
12009 :repl
12010 t repl
12011 s/'"$ac_delim"'$//
12012 t delim
12013 :nl
12014 h
12015 s/\(.\{148\}\)..*/\1/
12016 t more1
12017 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12018 p
12019 n
12020 b repl
12021 :more1
12022 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12023 p
12024 g
12025 s/.\{148\}//
12026 t nl
12027 :delim
12028 h
12029 s/\(.\{148\}\)..*/\1/
12030 t more2
12031 s/["\\]/\\&/g; s/^/"/; s/$/"/
12032 p
12033 b
12034 :more2
12035 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12036 p
12037 g
12038 s/.\{148\}//
12039 t delim
12040 ' <conf$$subs.awk | sed '
12041 /^[^""]/{
12042 N
12043 s/\n//
12044 }
12045 ' >>$CONFIG_STATUS || ac_write_fail=1
12046 rm -f conf$$subs.awk
12047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12048 _ACAWK
12049 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12050 for (key in S) S_is_set[key] = 1
12051 FS = ""
12052
12053 }
12054 {
12055 line = $ 0
12056 nfields = split(line, field, "@")
12057 substed = 0
12058 len = length(field[1])
12059 for (i = 2; i < nfields; i++) {
12060 key = field[i]
12061 keylen = length(key)
12062 if (S_is_set[key]) {
12063 value = S[key]
12064 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12065 len += length(value) + length(field[++i])
12066 substed = 1
12067 } else
12068 len += 1 + keylen
12069 }
12070
12071 print line
12072 }
12073
12074 _ACAWK
12075 _ACEOF
12076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12077 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12078 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12079 else
12080 cat
12081 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12082 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12083 _ACEOF
12084
12085 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12086 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12087 # trailing colons and then remove the whole line if VPATH becomes empty
12088 # (actually we leave an empty line to preserve line numbers).
12089 if test "x$srcdir" = x.; then
12090 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12091 h
12092 s///
12093 s/^/:/
12094 s/[ ]*$/:/
12095 s/:\$(srcdir):/:/g
12096 s/:\${srcdir}:/:/g
12097 s/:@srcdir@:/:/g
12098 s/^:*//
12099 s/:*$//
12100 x
12101 s/\(=[ ]*\).*/\1/
12102 G
12103 s/\n//
12104 s/^[^=]*=[ ]*$//
12105 }'
12106 fi
12107
12108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12109 fi # test -n "$CONFIG_FILES"
12110
12111 # Set up the scripts for CONFIG_HEADERS section.
12112 # No need to generate them if there are no CONFIG_HEADERS.
12113 # This happens for instance with `./config.status Makefile'.
12114 if test -n "$CONFIG_HEADERS"; then
12115 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12116 BEGIN {
12117 _ACEOF
12118
12119 # Transform confdefs.h into an awk script `defines.awk', embedded as
12120 # here-document in config.status, that substitutes the proper values into
12121 # config.h.in to produce config.h.
12122
12123 # Create a delimiter string that does not exist in confdefs.h, to ease
12124 # handling of long lines.
12125 ac_delim='%!_!# '
12126 for ac_last_try in false false :; do
12127 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12128 if test -z "$ac_tt"; then
12129 break
12130 elif $ac_last_try; then
12131 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12132 else
12133 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12134 fi
12135 done
12136
12137 # For the awk script, D is an array of macro values keyed by name,
12138 # likewise P contains macro parameters if any. Preserve backslash
12139 # newline sequences.
12140
12141 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12142 sed -n '
12143 s/.\{148\}/&'"$ac_delim"'/g
12144 t rset
12145 :rset
12146 s/^[ ]*#[ ]*define[ ][ ]*/ /
12147 t def
12148 d
12149 :def
12150 s/\\$//
12151 t bsnl
12152 s/["\\]/\\&/g
12153 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12154 D["\1"]=" \3"/p
12155 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12156 d
12157 :bsnl
12158 s/["\\]/\\&/g
12159 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12160 D["\1"]=" \3\\\\\\n"\\/p
12161 t cont
12162 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12163 t cont
12164 d
12165 :cont
12166 n
12167 s/.\{148\}/&'"$ac_delim"'/g
12168 t clear
12169 :clear
12170 s/\\$//
12171 t bsnlc
12172 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12173 d
12174 :bsnlc
12175 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12176 b cont
12177 ' <confdefs.h | sed '
12178 s/'"$ac_delim"'/"\\\
12179 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12180
12181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12182 for (key in D) D_is_set[key] = 1
12183 FS = ""
12184 }
12185 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12186 line = \$ 0
12187 split(line, arg, " ")
12188 if (arg[1] == "#") {
12189 defundef = arg[2]
12190 mac1 = arg[3]
12191 } else {
12192 defundef = substr(arg[1], 2)
12193 mac1 = arg[2]
12194 }
12195 split(mac1, mac2, "(") #)
12196 macro = mac2[1]
12197 prefix = substr(line, 1, index(line, defundef) - 1)
12198 if (D_is_set[macro]) {
12199 # Preserve the white space surrounding the "#".
12200 print prefix "define", macro P[macro] D[macro]
12201 next
12202 } else {
12203 # Replace #undef with comments. This is necessary, for example,
12204 # in the case of _POSIX_SOURCE, which is predefined and required
12205 # on some systems where configure will not decide to define it.
12206 if (defundef == "undef") {
12207 print "/*", prefix defundef, macro, "*/"
12208 next
12209 }
12210 }
12211 }
12212 { print }
12213 _ACAWK
12214 _ACEOF
12215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12216 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12217 fi # test -n "$CONFIG_HEADERS"
12218
12219
12220 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12221 shift
12222 for ac_tag
12223 do
12224 case $ac_tag in
12225 :[FHLC]) ac_mode=$ac_tag; continue;;
12226 esac
12227 case $ac_mode$ac_tag in
12228 :[FHL]*:*);;
12229 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12230 :[FH]-) ac_tag=-:-;;
12231 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12232 esac
12233 ac_save_IFS=$IFS
12234 IFS=:
12235 set x $ac_tag
12236 IFS=$ac_save_IFS
12237 shift
12238 ac_file=$1
12239 shift
12240
12241 case $ac_mode in
12242 :L) ac_source=$1;;
12243 :[FH])
12244 ac_file_inputs=
12245 for ac_f
12246 do
12247 case $ac_f in
12248 -) ac_f="$ac_tmp/stdin";;
12249 *) # Look for the file first in the build tree, then in the source tree
12250 # (if the path is not absolute). The absolute path cannot be DOS-style,
12251 # because $ac_f cannot contain `:'.
12252 test -f "$ac_f" ||
12253 case $ac_f in
12254 [\\/$]*) false;;
12255 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12256 esac ||
12257 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12258 esac
12259 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12260 as_fn_append ac_file_inputs " '$ac_f'"
12261 done
12262
12263 # Let's still pretend it is `configure' which instantiates (i.e., don't
12264 # use $as_me), people would be surprised to read:
12265 # /* config.h. Generated by config.status. */
12266 configure_input='Generated from '`
12267 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12268 `' by configure.'
12269 if test x"$ac_file" != x-; then
12270 configure_input="$ac_file. $configure_input"
12271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12272 printf "%s\n" "$as_me: creating $ac_file" >&6;}
12273 fi
12274 # Neutralize special characters interpreted by sed in replacement strings.
12275 case $configure_input in #(
12276 *\&* | *\|* | *\\* )
12277 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12278 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12279 *) ac_sed_conf_input=$configure_input;;
12280 esac
12281
12282 case $ac_tag in
12283 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12284 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12285 esac
12286 ;;
12287 esac
12288
12289 ac_dir=`$as_dirname -- "$ac_file" ||
12290 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12291 X"$ac_file" : 'X\(//\)[^/]' \| \
12292 X"$ac_file" : 'X\(//\)$' \| \
12293 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12294 printf "%s\n" X"$ac_file" |
12295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12296 s//\1/
12297 q
12298 }
12299 /^X\(\/\/\)[^/].*/{
12300 s//\1/
12301 q
12302 }
12303 /^X\(\/\/\)$/{
12304 s//\1/
12305 q
12306 }
12307 /^X\(\/\).*/{
12308 s//\1/
12309 q
12310 }
12311 s/.*/./; q'`
12312 as_dir="$ac_dir"; as_fn_mkdir_p
12313 ac_builddir=.
12314
12315 case "$ac_dir" in
12316 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12317 *)
12318 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12319 # A ".." for each directory in $ac_dir_suffix.
12320 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12321 case $ac_top_builddir_sub in
12322 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12323 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12324 esac ;;
12325 esac
12326 ac_abs_top_builddir=$ac_pwd
12327 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12328 # for backward compatibility:
12329 ac_top_builddir=$ac_top_build_prefix
12330
12331 case $srcdir in
12332 .) # We are building in place.
12333 ac_srcdir=.
12334 ac_top_srcdir=$ac_top_builddir_sub
12335 ac_abs_top_srcdir=$ac_pwd ;;
12336 [\\/]* | ?:[\\/]* ) # Absolute name.
12337 ac_srcdir=$srcdir$ac_dir_suffix;
12338 ac_top_srcdir=$srcdir
12339 ac_abs_top_srcdir=$srcdir ;;
12340 *) # Relative name.
12341 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12342 ac_top_srcdir=$ac_top_build_prefix$srcdir
12343 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12344 esac
12345 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12346
12347
12348 case $ac_mode in
12349 :F)
12350 #
12351 # CONFIG_FILE
12352 #
12353
12354 case $INSTALL in
12355 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12356 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12357 esac
12358 ac_MKDIR_P=$MKDIR_P
12359 case $MKDIR_P in
12360 [\\/$]* | ?:[\\/]* ) ;;
12361 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12362 esac
12363 _ACEOF
12364
12365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12366 # If the template does not know about datarootdir, expand it.
12367 # FIXME: This hack should be removed a few years after 2.60.
12368 ac_datarootdir_hack=; ac_datarootdir_seen=
12369 ac_sed_dataroot='
12370 /datarootdir/ {
12371 p
12372 q
12373 }
12374 /@datadir@/p
12375 /@docdir@/p
12376 /@infodir@/p
12377 /@localedir@/p
12378 /@mandir@/p'
12379 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12380 *datarootdir*) ac_datarootdir_seen=yes;;
12381 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12383 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12384 _ACEOF
12385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12386 ac_datarootdir_hack='
12387 s&@datadir@&$datadir&g
12388 s&@docdir@&$docdir&g
12389 s&@infodir@&$infodir&g
12390 s&@localedir@&$localedir&g
12391 s&@mandir@&$mandir&g
12392 s&\\\${datarootdir}&$datarootdir&g' ;;
12393 esac
12394 _ACEOF
12395
12396 # Neutralize VPATH when `$srcdir' = `.'.
12397 # Shell code in configure.ac might set extrasub.
12398 # FIXME: do we really want to maintain this feature?
12399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12400 ac_sed_extra="$ac_vpsub
12401 $extrasub
12402 _ACEOF
12403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12404 :t
12405 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12406 s|@configure_input@|$ac_sed_conf_input|;t t
12407 s&@top_builddir@&$ac_top_builddir_sub&;t t
12408 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12409 s&@srcdir@&$ac_srcdir&;t t
12410 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12411 s&@top_srcdir@&$ac_top_srcdir&;t t
12412 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12413 s&@builddir@&$ac_builddir&;t t
12414 s&@abs_builddir@&$ac_abs_builddir&;t t
12415 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12416 s&@INSTALL@&$ac_INSTALL&;t t
12417 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12418 $ac_datarootdir_hack
12419 "
12420 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12421 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12422
12423 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12424 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12425 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12426 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12428 which seems to be undefined. Please make sure it is defined" >&5
12429 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12430 which seems to be undefined. Please make sure it is defined" >&2;}
12431
12432 rm -f "$ac_tmp/stdin"
12433 case $ac_file in
12434 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12435 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12436 esac \
12437 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12438 ;;
12439 :H)
12440 #
12441 # CONFIG_HEADER
12442 #
12443 if test x"$ac_file" != x-; then
12444 {
12445 printf "%s\n" "/* $configure_input */" >&1 \
12446 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12447 } >"$ac_tmp/config.h" \
12448 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12449 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12451 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12452 else
12453 rm -f "$ac_file"
12454 mv "$ac_tmp/config.h" "$ac_file" \
12455 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12456 fi
12457 else
12458 printf "%s\n" "/* $configure_input */" >&1 \
12459 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12460 || as_fn_error $? "could not create -" "$LINENO" 5
12461 fi
12462 # Compute "$ac_file"'s index in $config_headers.
12463 _am_arg="$ac_file"
12464 _am_stamp_count=1
12465 for _am_header in $config_headers :; do
12466 case $_am_header in
12467 $_am_arg | $_am_arg:* )
12468 break ;;
12469 * )
12470 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12471 esac
12472 done
12473 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12474 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12475 X"$_am_arg" : 'X\(//\)[^/]' \| \
12476 X"$_am_arg" : 'X\(//\)$' \| \
12477 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12478 printf "%s\n" X"$_am_arg" |
12479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12480 s//\1/
12481 q
12482 }
12483 /^X\(\/\/\)[^/].*/{
12484 s//\1/
12485 q
12486 }
12487 /^X\(\/\/\)$/{
12488 s//\1/
12489 q
12490 }
12491 /^X\(\/\).*/{
12492 s//\1/
12493 q
12494 }
12495 s/.*/./; q'`/stamp-h$_am_stamp_count
12496 ;;
12497
12498 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12499 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12500 ;;
12501 esac
12502
12503
12504 case $ac_file$ac_mode in
12505 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12506 # Older Autoconf quotes --file arguments for eval, but not when files
12507 # are listed without --file. Let's play safe and only enable the eval
12508 # if we detect the quoting.
12509 # TODO: see whether this extra hack can be removed once we start
12510 # requiring Autoconf 2.70 or later.
12511 case $CONFIG_FILES in #(
12512 *\'*) :
12513 eval set x "$CONFIG_FILES" ;; #(
12514 *) :
12515 set x $CONFIG_FILES ;; #(
12516 *) :
12517 ;;
12518 esac
12519 shift
12520 # Used to flag and report bootstrapping failures.
12521 am_rc=0
12522 for am_mf
12523 do
12524 # Strip MF so we end up with the name of the file.
12525 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12526 # Check whether this is an Automake generated Makefile which includes
12527 # dependency-tracking related rules and includes.
12528 # Grep'ing the whole file directly is not great: AIX grep has a line
12529 # limit of 2048, but all sed's we know have understand at least 4000.
12530 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12531 || continue
12532 am_dirpart=`$as_dirname -- "$am_mf" ||
12533 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12534 X"$am_mf" : 'X\(//\)[^/]' \| \
12535 X"$am_mf" : 'X\(//\)$' \| \
12536 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12537 printf "%s\n" X"$am_mf" |
12538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12539 s//\1/
12540 q
12541 }
12542 /^X\(\/\/\)[^/].*/{
12543 s//\1/
12544 q
12545 }
12546 /^X\(\/\/\)$/{
12547 s//\1/
12548 q
12549 }
12550 /^X\(\/\).*/{
12551 s//\1/
12552 q
12553 }
12554 s/.*/./; q'`
12555 am_filepart=`$as_basename -- "$am_mf" ||
12556 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12557 X"$am_mf" : 'X\(//\)$' \| \
12558 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12559 printf "%s\n" X/"$am_mf" |
12560 sed '/^.*\/\([^/][^/]*\)\/*$/{
12561 s//\1/
12562 q
12563 }
12564 /^X\/\(\/\/\)$/{
12565 s//\1/
12566 q
12567 }
12568 /^X\/\(\/\).*/{
12569 s//\1/
12570 q
12571 }
12572 s/.*/./; q'`
12573 { echo "$as_me:$LINENO: cd "$am_dirpart" \
12574 && sed -e '/# am--include-marker/d' "$am_filepart" \
12575 | $MAKE -f - am--depfiles" >&5
12576 (cd "$am_dirpart" \
12577 && sed -e '/# am--include-marker/d' "$am_filepart" \
12578 | $MAKE -f - am--depfiles) >&5 2>&5
12579 ac_status=$?
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); } || am_rc=$?
12582 done
12583 if test $am_rc -ne 0; then
12584 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12585 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12586 as_fn_error $? "Something went wrong bootstrapping makefile fragments
12587 for automatic dependency tracking. If GNU make was not used, consider
12588 re-running the configure script with MAKE=\"gmake\" (or whatever is
12589 necessary). You can also try re-running configure with the
12590 '--disable-dependency-tracking' option to at least be able to build
12591 the package (albeit without support for automatic dependency tracking).
12592 See \`config.log' for more details" "$LINENO" 5; }
12593 fi
12594 { am_dirpart=; unset am_dirpart;}
12595 { am_filepart=; unset am_filepart;}
12596 { am_mf=; unset am_mf;}
12597 { am_rc=; unset am_rc;}
12598 rm -f conftest-deps.mk
12599 }
12600 ;;
12601
12602 esac
12603 done # for ac_tag
12604
12605
12606 as_fn_exit 0
12607 _ACEOF
12608 ac_clean_files=$ac_clean_files_save
12609
12610 test $ac_write_fail = 0 ||
12611 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12612
12613
12614 # configure is writing to config.log, and then calls config.status.
12615 # config.status does its own redirection, appending to config.log.
12616 # Unfortunately, on DOS this fails, as config.log is still kept open
12617 # by configure, so config.status won't be able to write to it; its
12618 # output is simply discarded. So we exec the FD to /dev/null,
12619 # effectively closing config.log, so it can be properly (re)opened and
12620 # appended to by config.status. When coming back to configure, we
12621 # need to make the FD available again.
12622 if test "$no_create" != yes; then
12623 ac_cs_success=:
12624 ac_config_status_args=
12625 test "$silent" = yes &&
12626 ac_config_status_args="$ac_config_status_args --quiet"
12627 exec 5>/dev/null
12628 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12629 exec 5>>config.log
12630 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12631 # would make configure fail if this is the last instruction.
12632 $ac_cs_success || as_fn_exit 1
12633 fi
12634 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12636 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12637 fi
12638
12639
12640