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 xconsole 1.0.8.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xconsole/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/xconsole/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='xconsole'
614 PACKAGE_TARNAME='xconsole'
615 PACKAGE_VERSION='1.0.8'
616 PACKAGE_STRING='xconsole 1.0.8'
617 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xconsole/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 appdefaultdir
658 APPDEFS_LIBS
659 APPDEFS_CFLAGS
660 XCONSOLE_LIBS
661 XCONSOLE_CFLAGS
662 MAN_SUBSTS
663 XORG_MAN_PAGE
664 ADMIN_MAN_DIR
665 DRIVER_MAN_DIR
666 MISC_MAN_DIR
667 FILE_MAN_DIR
668 LIB_MAN_DIR
669 APP_MAN_DIR
670 ADMIN_MAN_SUFFIX
671 DRIVER_MAN_SUFFIX
672 MISC_MAN_SUFFIX
673 FILE_MAN_SUFFIX
674 LIB_MAN_SUFFIX
675 APP_MAN_SUFFIX
676 SED
677 host_os
678 host_vendor
679 host_cpu
680 host
681 build_os
682 build_vendor
683 build_cpu
684 build
685 INSTALL_CMD
686 PKG_CONFIG_LIBDIR
687 PKG_CONFIG_PATH
688 PKG_CONFIG
689 CHANGELOG_CMD
690 STRICT_CFLAGS
691 CWARNFLAGS
692 BASE_CFLAGS
693 AM_BACKSLASH
694 AM_DEFAULT_VERBOSITY
695 AM_DEFAULT_V
696 AM_V
697 CSCOPE
698 ETAGS
699 CTAGS
700 am__fastdepCC_FALSE
701 am__fastdepCC_TRUE
702 CCDEPMODE
703 am__nodep
704 AMDEPBACKSLASH
705 AMDEP_FALSE
706 AMDEP_TRUE
707 am__include
708 DEPDIR
709 am__untar
710 am__tar
711 AMTAR
712 am__leading_dot
713 SET_MAKE
714 AWK
715 mkdir_p
716 MKDIR_P
717 INSTALL_STRIP_PROGRAM
718 STRIP
719 install_sh
720 MAKEINFO
721 AUTOHEADER
722 AUTOMAKE
723 AUTOCONF
724 ACLOCAL
725 VERSION
726 PACKAGE
727 CYGPATH_W
728 am__isrc
729 INSTALL_DATA
730 INSTALL_SCRIPT
731 INSTALL_PROGRAM
732 OBJEXT
733 EXEEXT
734 ac_ct_CC
735 CPPFLAGS
736 LDFLAGS
737 CFLAGS
738 CC
739 target_alias
740 host_alias
741 build_alias
742 LIBS
743 ECHO_T
744 ECHO_N
745 ECHO_C
746 DEFS
747 mandir
748 localedir
749 libdir
750 psdir
751 pdfdir
752 dvidir
753 htmldir
754 infodir
755 docdir
756 oldincludedir
757 includedir
758 runstatedir
759 localstatedir
760 sharedstatedir
761 sysconfdir
762 datadir
763 datarootdir
764 libexecdir
765 sbindir
766 bindir
767 program_transform_name
768 prefix
769 exec_prefix
770 PACKAGE_URL
771 PACKAGE_BUGREPORT
772 PACKAGE_STRING
773 PACKAGE_VERSION
774 PACKAGE_TARNAME
775 PACKAGE_NAME
776 PATH_SEPARATOR
777 SHELL
778 am__quote'
779 ac_subst_files=''
780 ac_user_opts='
781 enable_option_checking
782 enable_dependency_tracking
783 enable_silent_rules
784 enable_selective_werror
785 enable_strict_compilation
786 with_appdefaultdir
787 '
788 ac_precious_vars='build_alias
789 host_alias
790 target_alias
791 CC
792 CFLAGS
793 LDFLAGS
794 LIBS
795 CPPFLAGS
796 PKG_CONFIG
797 PKG_CONFIG_PATH
798 PKG_CONFIG_LIBDIR
799 XCONSOLE_CFLAGS
800 XCONSOLE_LIBS
801 APPDEFS_CFLAGS
802 APPDEFS_LIBS'
803
804
805 # Initialize some variables set by options.
806 ac_init_help=
807 ac_init_version=false
808 ac_unrecognized_opts=
809 ac_unrecognized_sep=
810 # The variables have the same names as the options, with
811 # dashes changed to underlines.
812 cache_file=/dev/null
813 exec_prefix=NONE
814 no_create=
815 no_recursion=
816 prefix=NONE
817 program_prefix=NONE
818 program_suffix=NONE
819 program_transform_name=s,x,x,
820 silent=
821 site=
822 srcdir=
823 verbose=
824 x_includes=NONE
825 x_libraries=NONE
826
827 # Installation directory options.
828 # These are left unexpanded so users can "make install exec_prefix=/foo"
829 # and all the variables that are supposed to be based on exec_prefix
830 # by default will actually change.
831 # Use braces instead of parens because sh, perl, etc. also accept them.
832 # (The list follows the same order as the GNU Coding Standards.)
833 bindir='${exec_prefix}/bin'
834 sbindir='${exec_prefix}/sbin'
835 libexecdir='${exec_prefix}/libexec'
836 datarootdir='${prefix}/share'
837 datadir='${datarootdir}'
838 sysconfdir='${prefix}/etc'
839 sharedstatedir='${prefix}/com'
840 localstatedir='${prefix}/var'
841 runstatedir='${localstatedir}/run'
842 includedir='${prefix}/include'
843 oldincludedir='/usr/include'
844 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
845 infodir='${datarootdir}/info'
846 htmldir='${docdir}'
847 dvidir='${docdir}'
848 pdfdir='${docdir}'
849 psdir='${docdir}'
850 libdir='${exec_prefix}/lib'
851 localedir='${datarootdir}/locale'
852 mandir='${datarootdir}/man'
853
854 ac_prev=
855 ac_dashdash=
856 for ac_option
857 do
858 # If the previous option needs an argument, assign it.
859 if test -n "$ac_prev"; then
860 eval $ac_prev=\$ac_option
861 ac_prev=
862 continue
863 fi
864
865 case $ac_option in
866 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
867 *=) ac_optarg= ;;
868 *) ac_optarg=yes ;;
869 esac
870
871 case $ac_dashdash$ac_option in
872 --)
873 ac_dashdash=yes ;;
874
875 -bindir | --bindir | --bindi | --bind | --bin | --bi)
876 ac_prev=bindir ;;
877 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
878 bindir=$ac_optarg ;;
879
880 -build | --build | --buil | --bui | --bu)
881 ac_prev=build_alias ;;
882 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
883 build_alias=$ac_optarg ;;
884
885 -cache-file | --cache-file | --cache-fil | --cache-fi \
886 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
887 ac_prev=cache_file ;;
888 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
889 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
890 cache_file=$ac_optarg ;;
891
892 --config-cache | -C)
893 cache_file=config.cache ;;
894
895 -datadir | --datadir | --datadi | --datad)
896 ac_prev=datadir ;;
897 -datadir=* | --datadir=* | --datadi=* | --datad=*)
898 datadir=$ac_optarg ;;
899
900 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
901 | --dataroo | --dataro | --datar)
902 ac_prev=datarootdir ;;
903 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
904 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
905 datarootdir=$ac_optarg ;;
906
907 -disable-* | --disable-*)
908 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
909 # Reject names that are not valid shell variable names.
910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911 as_fn_error $? "invalid feature name: \`$ac_useropt'"
912 ac_useropt_orig=$ac_useropt
913 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
914 case $ac_user_opts in
915 *"
916 "enable_$ac_useropt"
917 "*) ;;
918 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
919 ac_unrecognized_sep=', ';;
920 esac
921 eval enable_$ac_useropt=no ;;
922
923 -docdir | --docdir | --docdi | --doc | --do)
924 ac_prev=docdir ;;
925 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
926 docdir=$ac_optarg ;;
927
928 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
929 ac_prev=dvidir ;;
930 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
931 dvidir=$ac_optarg ;;
932
933 -enable-* | --enable-*)
934 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937 as_fn_error $? "invalid feature name: \`$ac_useropt'"
938 ac_useropt_orig=$ac_useropt
939 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
940 case $ac_user_opts in
941 *"
942 "enable_$ac_useropt"
943 "*) ;;
944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
945 ac_unrecognized_sep=', ';;
946 esac
947 eval enable_$ac_useropt=\$ac_optarg ;;
948
949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951 | --exec | --exe | --ex)
952 ac_prev=exec_prefix ;;
953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955 | --exec=* | --exe=* | --ex=*)
956 exec_prefix=$ac_optarg ;;
957
958 -gas | --gas | --ga | --g)
959 # Obsolete; use --with-gas.
960 with_gas=yes ;;
961
962 -help | --help | --hel | --he | -h)
963 ac_init_help=long ;;
964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965 ac_init_help=recursive ;;
966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967 ac_init_help=short ;;
968
969 -host | --host | --hos | --ho)
970 ac_prev=host_alias ;;
971 -host=* | --host=* | --hos=* | --ho=*)
972 host_alias=$ac_optarg ;;
973
974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975 ac_prev=htmldir ;;
976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977 | --ht=*)
978 htmldir=$ac_optarg ;;
979
980 -includedir | --includedir | --includedi | --included | --include \
981 | --includ | --inclu | --incl | --inc)
982 ac_prev=includedir ;;
983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984 | --includ=* | --inclu=* | --incl=* | --inc=*)
985 includedir=$ac_optarg ;;
986
987 -infodir | --infodir | --infodi | --infod | --info | --inf)
988 ac_prev=infodir ;;
989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990 infodir=$ac_optarg ;;
991
992 -libdir | --libdir | --libdi | --libd)
993 ac_prev=libdir ;;
994 -libdir=* | --libdir=* | --libdi=* | --libd=*)
995 libdir=$ac_optarg ;;
996
997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998 | --libexe | --libex | --libe)
999 ac_prev=libexecdir ;;
1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001 | --libexe=* | --libex=* | --libe=*)
1002 libexecdir=$ac_optarg ;;
1003
1004 -localedir | --localedir | --localedi | --localed | --locale)
1005 ac_prev=localedir ;;
1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007 localedir=$ac_optarg ;;
1008
1009 -localstatedir | --localstatedir | --localstatedi | --localstated \
1010 | --localstate | --localstat | --localsta | --localst | --locals)
1011 ac_prev=localstatedir ;;
1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014 localstatedir=$ac_optarg ;;
1015
1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017 ac_prev=mandir ;;
1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019 mandir=$ac_optarg ;;
1020
1021 -nfp | --nfp | --nf)
1022 # Obsolete; use --without-fp.
1023 with_fp=no ;;
1024
1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026 | --no-cr | --no-c | -n)
1027 no_create=yes ;;
1028
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031 no_recursion=yes ;;
1032
1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035 | --oldin | --oldi | --old | --ol | --o)
1036 ac_prev=oldincludedir ;;
1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040 oldincludedir=$ac_optarg ;;
1041
1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043 ac_prev=prefix ;;
1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045 prefix=$ac_optarg ;;
1046
1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048 | --program-pre | --program-pr | --program-p)
1049 ac_prev=program_prefix ;;
1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052 program_prefix=$ac_optarg ;;
1053
1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055 | --program-suf | --program-su | --program-s)
1056 ac_prev=program_suffix ;;
1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059 program_suffix=$ac_optarg ;;
1060
1061 -program-transform-name | --program-transform-name \
1062 | --program-transform-nam | --program-transform-na \
1063 | --program-transform-n | --program-transform- \
1064 | --program-transform | --program-transfor \
1065 | --program-transfo | --program-transf \
1066 | --program-trans | --program-tran \
1067 | --progr-tra | --program-tr | --program-t)
1068 ac_prev=program_transform_name ;;
1069 -program-transform-name=* | --program-transform-name=* \
1070 | --program-transform-nam=* | --program-transform-na=* \
1071 | --program-transform-n=* | --program-transform-=* \
1072 | --program-transform=* | --program-transfor=* \
1073 | --program-transfo=* | --program-transf=* \
1074 | --program-trans=* | --program-tran=* \
1075 | --progr-tra=* | --program-tr=* | --program-t=*)
1076 program_transform_name=$ac_optarg ;;
1077
1078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079 ac_prev=pdfdir ;;
1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081 pdfdir=$ac_optarg ;;
1082
1083 -psdir | --psdir | --psdi | --psd | --ps)
1084 ac_prev=psdir ;;
1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086 psdir=$ac_optarg ;;
1087
1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1090 silent=yes ;;
1091
1092 -runstatedir | --runstatedir | --runstatedi | --runstated \
1093 | --runstate | --runstat | --runsta | --runst | --runs \
1094 | --run | --ru | --r)
1095 ac_prev=runstatedir ;;
1096 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1097 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1098 | --run=* | --ru=* | --r=*)
1099 runstatedir=$ac_optarg ;;
1100
1101 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1102 ac_prev=sbindir ;;
1103 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1104 | --sbi=* | --sb=*)
1105 sbindir=$ac_optarg ;;
1106
1107 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1108 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1109 | --sharedst | --shareds | --shared | --share | --shar \
1110 | --sha | --sh)
1111 ac_prev=sharedstatedir ;;
1112 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1113 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1114 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1115 | --sha=* | --sh=*)
1116 sharedstatedir=$ac_optarg ;;
1117
1118 -site | --site | --sit)
1119 ac_prev=site ;;
1120 -site=* | --site=* | --sit=*)
1121 site=$ac_optarg ;;
1122
1123 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1124 ac_prev=srcdir ;;
1125 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1126 srcdir=$ac_optarg ;;
1127
1128 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1129 | --syscon | --sysco | --sysc | --sys | --sy)
1130 ac_prev=sysconfdir ;;
1131 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1132 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1133 sysconfdir=$ac_optarg ;;
1134
1135 -target | --target | --targe | --targ | --tar | --ta | --t)
1136 ac_prev=target_alias ;;
1137 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1138 target_alias=$ac_optarg ;;
1139
1140 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1141 verbose=yes ;;
1142
1143 -version | --version | --versio | --versi | --vers | -V)
1144 ac_init_version=: ;;
1145
1146 -with-* | --with-*)
1147 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150 as_fn_error $? "invalid package name: \`$ac_useropt'"
1151 ac_useropt_orig=$ac_useropt
1152 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1154 *"
1155 "with_$ac_useropt"
1156 "*) ;;
1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1158 ac_unrecognized_sep=', ';;
1159 esac
1160 eval with_$ac_useropt=\$ac_optarg ;;
1161
1162 -without-* | --without-*)
1163 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 as_fn_error $? "invalid package name: \`$ac_useropt'"
1167 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1170 *"
1171 "with_$ac_useropt"
1172 "*) ;;
1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1174 ac_unrecognized_sep=', ';;
1175 esac
1176 eval with_$ac_useropt=no ;;
1177
1178 --x)
1179 # Obsolete; use --with-x.
1180 with_x=yes ;;
1181
1182 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1183 | --x-incl | --x-inc | --x-in | --x-i)
1184 ac_prev=x_includes ;;
1185 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1186 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1187 x_includes=$ac_optarg ;;
1188
1189 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1190 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1191 ac_prev=x_libraries ;;
1192 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1193 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1194 x_libraries=$ac_optarg ;;
1195
1196 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1197 Try \`$0 --help' for more information"
1198 ;;
1199
1200 *=*)
1201 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1202 # Reject names that are not valid shell variable names.
1203 case $ac_envvar in #(
1204 '' | [0-9]* | *[!_$as_cr_alnum]* )
1205 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1206 esac
1207 eval $ac_envvar=\$ac_optarg
1208 export $ac_envvar ;;
1209
1210 *)
1211 # FIXME: should be removed in autoconf 3.0.
1212 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1213 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1214 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1215 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1216 ;;
1217
1218 esac
1219 done
1220
1221 if test -n "$ac_prev"; then
1222 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1223 as_fn_error $? "missing argument to $ac_option"
1224 fi
1225
1226 if test -n "$ac_unrecognized_opts"; then
1227 case $enable_option_checking in
1228 no) ;;
1229 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1230 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1231 esac
1232 fi
1233
1234 # Check all directory arguments for consistency.
1235 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1236 datadir sysconfdir sharedstatedir localstatedir includedir \
1237 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1238 libdir localedir mandir runstatedir
1239 do
1240 eval ac_val=\$$ac_var
1241 # Remove trailing slashes.
1242 case $ac_val in
1243 */ )
1244 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1245 eval $ac_var=\$ac_val;;
1246 esac
1247 # Be sure to have absolute directory names.
1248 case $ac_val in
1249 [\\/$]* | ?:[\\/]* ) continue;;
1250 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1251 esac
1252 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1253 done
1254
1255 # There might be people who depend on the old broken behavior: `$host'
1256 # used to hold the argument of --host etc.
1257 # FIXME: To remove some day.
1258 build=$build_alias
1259 host=$host_alias
1260 target=$target_alias
1261
1262 # FIXME: To remove some day.
1263 if test "x$host_alias" != x; then
1264 if test "x$build_alias" = x; then
1265 cross_compiling=maybe
1266 elif test "x$build_alias" != "x$host_alias"; then
1267 cross_compiling=yes
1268 fi
1269 fi
1270
1271 ac_tool_prefix=
1272 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1273
1274 test "$silent" = yes && exec 6>/dev/null
1275
1276
1277 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1278 ac_ls_di=`ls -di .` &&
1279 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1280 as_fn_error $? "working directory cannot be determined"
1281 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1282 as_fn_error $? "pwd does not report name of working directory"
1283
1284
1285 # Find the source files, if location was not specified.
1286 if test -z "$srcdir"; then
1287 ac_srcdir_defaulted=yes
1288 # Try the directory containing this script, then the parent directory.
1289 ac_confdir=`$as_dirname -- "$as_myself" ||
1290 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1291 X"$as_myself" : 'X\(//\)[^/]' \| \
1292 X"$as_myself" : 'X\(//\)$' \| \
1293 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1294 printf "%s\n" X"$as_myself" |
1295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1296 s//\1/
1297 q
1298 }
1299 /^X\(\/\/\)[^/].*/{
1300 s//\1/
1301 q
1302 }
1303 /^X\(\/\/\)$/{
1304 s//\1/
1305 q
1306 }
1307 /^X\(\/\).*/{
1308 s//\1/
1309 q
1310 }
1311 s/.*/./; q'`
1312 srcdir=$ac_confdir
1313 if test ! -r "$srcdir/$ac_unique_file"; then
1314 srcdir=..
1315 fi
1316 else
1317 ac_srcdir_defaulted=no
1318 fi
1319 if test ! -r "$srcdir/$ac_unique_file"; then
1320 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1321 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1322 fi
1323 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1324 ac_abs_confdir=`(
1325 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1326 pwd)`
1327 # When building in place, set srcdir=.
1328 if test "$ac_abs_confdir" = "$ac_pwd"; then
1329 srcdir=.
1330 fi
1331 # Remove unnecessary trailing slashes from srcdir.
1332 # Double slashes in file names in object file debugging info
1333 # mess up M-x gdb in Emacs.
1334 case $srcdir in
1335 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1336 esac
1337 for ac_var in $ac_precious_vars; do
1338 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1339 eval ac_env_${ac_var}_value=\$${ac_var}
1340 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1342 done
1343
1344 #
1345 # Report the --help message.
1346 #
1347 if test "$ac_init_help" = "long"; then
1348 # Omit some internal or obsolete options to make the list less imposing.
1349 # This message is too long to be a string in the A/UX 3.1 sh.
1350 cat <<_ACEOF
1351 \`configure' configures xconsole 1.0.8 to adapt to many kinds of systems.
1352
1353 Usage: $0 [OPTION]... [VAR=VALUE]...
1354
1355 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1356 VAR=VALUE. See below for descriptions of some of the useful variables.
1357
1358 Defaults for the options are specified in brackets.
1359
1360 Configuration:
1361 -h, --help display this help and exit
1362 --help=short display options specific to this package
1363 --help=recursive display the short help of all the included packages
1364 -V, --version display version information and exit
1365 -q, --quiet, --silent do not print \`checking ...' messages
1366 --cache-file=FILE cache test results in FILE [disabled]
1367 -C, --config-cache alias for \`--cache-file=config.cache'
1368 -n, --no-create do not create output files
1369 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1370
1371 Installation directories:
1372 --prefix=PREFIX install architecture-independent files in PREFIX
1373 [$ac_default_prefix]
1374 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1375 [PREFIX]
1376
1377 By default, \`make install' will install all the files in
1378 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1379 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1380 for instance \`--prefix=\$HOME'.
1381
1382 For better control, use the options below.
1383
1384 Fine tuning of the installation directories:
1385 --bindir=DIR user executables [EPREFIX/bin]
1386 --sbindir=DIR system admin executables [EPREFIX/sbin]
1387 --libexecdir=DIR program executables [EPREFIX/libexec]
1388 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1389 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1390 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1391 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1392 --libdir=DIR object code libraries [EPREFIX/lib]
1393 --includedir=DIR C header files [PREFIX/include]
1394 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1395 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1396 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1397 --infodir=DIR info documentation [DATAROOTDIR/info]
1398 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1399 --mandir=DIR man documentation [DATAROOTDIR/man]
1400 --docdir=DIR documentation root [DATAROOTDIR/doc/xconsole]
1401 --htmldir=DIR html documentation [DOCDIR]
1402 --dvidir=DIR dvi documentation [DOCDIR]
1403 --pdfdir=DIR pdf documentation [DOCDIR]
1404 --psdir=DIR ps documentation [DOCDIR]
1405 _ACEOF
1406
1407 cat <<\_ACEOF
1408
1409 Program names:
1410 --program-prefix=PREFIX prepend PREFIX to installed program names
1411 --program-suffix=SUFFIX append SUFFIX to installed program names
1412 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1413
1414 System types:
1415 --build=BUILD configure for building on BUILD [guessed]
1416 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1417 _ACEOF
1418 fi
1419
1420 if test -n "$ac_init_help"; then
1421 case $ac_init_help in
1422 short | recursive ) echo "Configuration of xconsole 1.0.8:";;
1423 esac
1424 cat <<\_ACEOF
1425
1426 Optional Features:
1427 --disable-option-checking ignore unrecognized --enable/--with options
1428 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1429 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1430 --enable-dependency-tracking
1431 do not reject slow dependency extractors
1432 --disable-dependency-tracking
1433 speeds up one-time build
1434 --enable-silent-rules less verbose build output (undo: "make V=1")
1435 --disable-silent-rules verbose build output (undo: "make V=0")
1436 --disable-selective-werror
1437 Turn off selective compiler errors. (default:
1438 enabled)
1439 --enable-strict-compilation
1440 Enable all warnings from compiler and make them
1441 errors (default: disabled)
1442
1443 Optional Packages:
1444 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1445 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1446 --with-appdefaultdir=<pathname>
1447 specify directory for app-defaults files (default is
1448 autodetected)
1449
1450 Some influential environment variables:
1451 CC C compiler command
1452 CFLAGS C compiler flags
1453 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1454 nonstandard directory <lib dir>
1455 LIBS libraries to pass to the linker, e.g. -l<library>
1456 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1457 you have headers in a nonstandard directory <include dir>
1458 PKG_CONFIG path to pkg-config utility
1459 PKG_CONFIG_PATH
1460 directories to add to pkg-config's search path
1461 PKG_CONFIG_LIBDIR
1462 path overriding pkg-config's built-in search path
1463 XCONSOLE_CFLAGS
1464 C compiler flags for XCONSOLE, overriding pkg-config
1465 XCONSOLE_LIBS
1466 linker flags for XCONSOLE, overriding pkg-config
1467 APPDEFS_CFLAGS
1468 C compiler flags for APPDEFS, overriding pkg-config
1469 APPDEFS_LIBS
1470 linker flags for APPDEFS, overriding pkg-config
1471
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1474
1475 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xconsole/issues>.
1476 _ACEOF
1477 ac_status=$?
1478 fi
1479
1480 if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483 test -d "$ac_dir" ||
1484 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1485 continue
1486 ac_builddir=.
1487
1488 case "$ac_dir" in
1489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *)
1491 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1492 # A ".." for each directory in $ac_dir_suffix.
1493 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1494 case $ac_top_builddir_sub in
1495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497 esac ;;
1498 esac
1499 ac_abs_top_builddir=$ac_pwd
1500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501 # for backward compatibility:
1502 ac_top_builddir=$ac_top_build_prefix
1503
1504 case $srcdir in
1505 .) # We are building in place.
1506 ac_srcdir=.
1507 ac_top_srcdir=$ac_top_builddir_sub
1508 ac_abs_top_srcdir=$ac_pwd ;;
1509 [\\/]* | ?:[\\/]* ) # Absolute name.
1510 ac_srcdir=$srcdir$ac_dir_suffix;
1511 ac_top_srcdir=$srcdir
1512 ac_abs_top_srcdir=$srcdir ;;
1513 *) # Relative name.
1514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515 ac_top_srcdir=$ac_top_build_prefix$srcdir
1516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1517 esac
1518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519
1520 cd "$ac_dir" || { ac_status=$?; continue; }
1521 # Check for configure.gnu first; this name is used for a wrapper for
1522 # Metaconfig's "Configure" on case-insensitive file systems.
1523 if test -f "$ac_srcdir/configure.gnu"; then
1524 echo &&
1525 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1526 elif test -f "$ac_srcdir/configure"; then
1527 echo &&
1528 $SHELL "$ac_srcdir/configure" --help=recursive
1529 else
1530 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1531 fi || ac_status=$?
1532 cd "$ac_pwd" || { ac_status=$?; break; }
1533 done
1534 fi
1535
1536 test -n "$ac_init_help" && exit $ac_status
1537 if $ac_init_version; then
1538 cat <<\_ACEOF
1539 xconsole configure 1.0.8
1540 generated by GNU Autoconf 2.71
1541
1542 Copyright (C) 2021 Free Software Foundation, Inc.
1543 This configure script is free software; the Free Software Foundation
1544 gives unlimited permission to copy, distribute and modify it.
1545 _ACEOF
1546 exit
1547 fi
1548
1549 ## ------------------------ ##
1550 ## Autoconf initialization. ##
1551 ## ------------------------ ##
1552
1553 # ac_fn_c_try_compile LINENO
1554 # --------------------------
1555 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1556 ac_fn_c_try_compile ()
1557 {
1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559 rm -f conftest.$ac_objext conftest.beam
1560 if { { ac_try="$ac_compile"
1561 case "(($ac_try" in
1562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563 *) ac_try_echo=$ac_try;;
1564 esac
1565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566 printf "%s\n" "$ac_try_echo"; } >&5
1567 (eval "$ac_compile") 2>conftest.err
1568 ac_status=$?
1569 if test -s conftest.err; then
1570 grep -v '^ *+' conftest.err >conftest.er1
1571 cat conftest.er1 >&5
1572 mv -f conftest.er1 conftest.err
1573 fi
1574 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575 test $ac_status = 0; } && {
1576 test -z "$ac_c_werror_flag" ||
1577 test ! -s conftest.err
1578 } && test -s conftest.$ac_objext
1579 then :
1580 ac_retval=0
1581 else $as_nop
1582 printf "%s\n" "$as_me: failed program was:" >&5
1583 sed 's/^/| /' conftest.$ac_ext >&5
1584
1585 ac_retval=1
1586 fi
1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588 as_fn_set_status $ac_retval
1589
1590 } # ac_fn_c_try_compile
1591
1592 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1593 # -------------------------------------------------------
1594 # Tests whether HEADER exists and can be compiled using the include files in
1595 # INCLUDES, setting the cache variable VAR accordingly.
1596 ac_fn_c_check_header_compile ()
1597 {
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1600 printf %s "checking for $2... " >&6; }
1601 if eval test \${$3+y}
1602 then :
1603 printf %s "(cached) " >&6
1604 else $as_nop
1605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1606 /* end confdefs.h. */
1607 $4
1608 #include <$2>
1609 _ACEOF
1610 if ac_fn_c_try_compile "$LINENO"
1611 then :
1612 eval "$3=yes"
1613 else $as_nop
1614 eval "$3=no"
1615 fi
1616 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1617 fi
1618 eval ac_res=\$$3
1619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1620 printf "%s\n" "$ac_res" >&6; }
1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622
1623 } # ac_fn_c_check_header_compile
1624
1625 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1626 # ------------------------------------------------------------------
1627 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1628 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1629 ac_fn_check_decl ()
1630 {
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 as_decl_name=`echo $2|sed 's/ *(.*//'`
1633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1634 printf %s "checking whether $as_decl_name is declared... " >&6; }
1635 if eval test \${$3+y}
1636 then :
1637 printf %s "(cached) " >&6
1638 else $as_nop
1639 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1640 eval ac_save_FLAGS=\$$6
1641 as_fn_append $6 " $5"
1642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1643 /* end confdefs.h. */
1644 $4
1645 int
1646 main (void)
1647 {
1648 #ifndef $as_decl_name
1649 #ifdef __cplusplus
1650 (void) $as_decl_use;
1651 #else
1652 (void) $as_decl_name;
1653 #endif
1654 #endif
1655
1656 ;
1657 return 0;
1658 }
1659 _ACEOF
1660 if ac_fn_c_try_compile "$LINENO"
1661 then :
1662 eval "$3=yes"
1663 else $as_nop
1664 eval "$3=no"
1665 fi
1666 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1667 eval $6=\$ac_save_FLAGS
1668
1669 fi
1670 eval ac_res=\$$3
1671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1672 printf "%s\n" "$ac_res" >&6; }
1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674
1675 } # ac_fn_check_decl
1676
1677 # ac_fn_c_try_link LINENO
1678 # -----------------------
1679 # Try to link conftest.$ac_ext, and return whether this succeeded.
1680 ac_fn_c_try_link ()
1681 {
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1684 if { { ac_try="$ac_link"
1685 case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 printf "%s\n" "$ac_try_echo"; } >&5
1691 (eval "$ac_link") 2>conftest.err
1692 ac_status=$?
1693 if test -s conftest.err; then
1694 grep -v '^ *+' conftest.err >conftest.er1
1695 cat conftest.er1 >&5
1696 mv -f conftest.er1 conftest.err
1697 fi
1698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } && {
1700 test -z "$ac_c_werror_flag" ||
1701 test ! -s conftest.err
1702 } && test -s conftest$ac_exeext && {
1703 test "$cross_compiling" = yes ||
1704 test -x conftest$ac_exeext
1705 }
1706 then :
1707 ac_retval=0
1708 else $as_nop
1709 printf "%s\n" "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1711
1712 ac_retval=1
1713 fi
1714 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1715 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1716 # interfere with the next link command; also delete a directory that is
1717 # left behind by Apple's compiler. We do this before executing the actions.
1718 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720 as_fn_set_status $ac_retval
1721
1722 } # ac_fn_c_try_link
1723
1724 # ac_fn_c_check_func LINENO FUNC VAR
1725 # ----------------------------------
1726 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1727 ac_fn_c_check_func ()
1728 {
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731 printf %s "checking for $2... " >&6; }
1732 if eval test \${$3+y}
1733 then :
1734 printf %s "(cached) " >&6
1735 else $as_nop
1736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737 /* end confdefs.h. */
1738 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1740 #define $2 innocuous_$2
1741
1742 /* System header to define __stub macros and hopefully few prototypes,
1743 which can conflict with char $2 (); below. */
1744
1745 #include <limits.h>
1746 #undef $2
1747
1748 /* Override any GCC internal prototype to avoid an error.
1749 Use char because int might match the return type of a GCC
1750 builtin and then its argument prototype would still apply. */
1751 #ifdef __cplusplus
1752 extern "C"
1753 #endif
1754 char $2 ();
1755 /* The GNU C library defines this for functions which it implements
1756 to always fail with ENOSYS. Some functions are actually named
1757 something starting with __ and the normal name is an alias. */
1758 #if defined __stub_$2 || defined __stub___$2
1759 choke me
1760 #endif
1761
1762 int
1763 main (void)
1764 {
1765 return $2 ();
1766 ;
1767 return 0;
1768 }
1769 _ACEOF
1770 if ac_fn_c_try_link "$LINENO"
1771 then :
1772 eval "$3=yes"
1773 else $as_nop
1774 eval "$3=no"
1775 fi
1776 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1777 conftest$ac_exeext conftest.$ac_ext
1778 fi
1779 eval ac_res=\$$3
1780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 printf "%s\n" "$ac_res" >&6; }
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783
1784 } # ac_fn_c_check_func
1785 ac_configure_args_raw=
1786 for ac_arg
1787 do
1788 case $ac_arg in
1789 *\'*)
1790 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1791 esac
1792 as_fn_append ac_configure_args_raw " '$ac_arg'"
1793 done
1794
1795 case $ac_configure_args_raw in
1796 *$as_nl*)
1797 ac_safe_unquote= ;;
1798 *)
1799 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1800 ac_unsafe_a="$ac_unsafe_z#~"
1801 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1802 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1803 esac
1804
1805 cat >config.log <<_ACEOF
1806 This file contains any messages produced by compilers while
1807 running configure, to aid debugging if configure makes a mistake.
1808
1809 It was created by xconsole $as_me 1.0.8, which was
1810 generated by GNU Autoconf 2.71. Invocation command line was
1811
1812 $ $0$ac_configure_args_raw
1813
1814 _ACEOF
1815 exec 5>>config.log
1816 {
1817 cat <<_ASUNAME
1818 ## --------- ##
1819 ## Platform. ##
1820 ## --------- ##
1821
1822 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1823 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1824 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1825 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1826 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1827
1828 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1829 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1830
1831 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1832 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1833 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1834 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1835 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1836 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1837 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1838
1839 _ASUNAME
1840
1841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842 for as_dir in $PATH
1843 do
1844 IFS=$as_save_IFS
1845 case $as_dir in #(((
1846 '') as_dir=./ ;;
1847 */) ;;
1848 *) as_dir=$as_dir/ ;;
1849 esac
1850 printf "%s\n" "PATH: $as_dir"
1851 done
1852 IFS=$as_save_IFS
1853
1854 } >&5
1855
1856 cat >&5 <<_ACEOF
1857
1858
1859 ## ----------- ##
1860 ## Core tests. ##
1861 ## ----------- ##
1862
1863 _ACEOF
1864
1865
1866 # Keep a trace of the command line.
1867 # Strip out --no-create and --no-recursion so they do not pile up.
1868 # Strip out --silent because we don't want to record it for future runs.
1869 # Also quote any args containing shell meta-characters.
1870 # Make two passes to allow for proper duplicate-argument suppression.
1871 ac_configure_args=
1872 ac_configure_args0=
1873 ac_configure_args1=
1874 ac_must_keep_next=false
1875 for ac_pass in 1 2
1876 do
1877 for ac_arg
1878 do
1879 case $ac_arg in
1880 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1881 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1882 | -silent | --silent | --silen | --sile | --sil)
1883 continue ;;
1884 *\'*)
1885 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1886 esac
1887 case $ac_pass in
1888 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1889 2)
1890 as_fn_append ac_configure_args1 " '$ac_arg'"
1891 if test $ac_must_keep_next = true; then
1892 ac_must_keep_next=false # Got value, back to normal.
1893 else
1894 case $ac_arg in
1895 *=* | --config-cache | -C | -disable-* | --disable-* \
1896 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1897 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1898 | -with-* | --with-* | -without-* | --without-* | --x)
1899 case "$ac_configure_args0 " in
1900 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1901 esac
1902 ;;
1903 -* ) ac_must_keep_next=true ;;
1904 esac
1905 fi
1906 as_fn_append ac_configure_args " '$ac_arg'"
1907 ;;
1908 esac
1909 done
1910 done
1911 { ac_configure_args0=; unset ac_configure_args0;}
1912 { ac_configure_args1=; unset ac_configure_args1;}
1913
1914 # When interrupted or exit'd, cleanup temporary files, and complete
1915 # config.log. We remove comments because anyway the quotes in there
1916 # would cause problems or look ugly.
1917 # WARNING: Use '\'' to represent an apostrophe within the trap.
1918 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1919 trap 'exit_status=$?
1920 # Sanitize IFS.
1921 IFS=" "" $as_nl"
1922 # Save into config.log some information that might help in debugging.
1923 {
1924 echo
1925
1926 printf "%s\n" "## ---------------- ##
1927 ## Cache variables. ##
1928 ## ---------------- ##"
1929 echo
1930 # The following way of writing the cache mishandles newlines in values,
1931 (
1932 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1933 eval ac_val=\$$ac_var
1934 case $ac_val in #(
1935 *${as_nl}*)
1936 case $ac_var in #(
1937 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1938 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1939 esac
1940 case $ac_var in #(
1941 _ | IFS | as_nl) ;; #(
1942 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1943 *) { eval $ac_var=; unset $ac_var;} ;;
1944 esac ;;
1945 esac
1946 done
1947 (set) 2>&1 |
1948 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1949 *${as_nl}ac_space=\ *)
1950 sed -n \
1951 "s/'\''/'\''\\\\'\'''\''/g;
1952 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1953 ;; #(
1954 *)
1955 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1956 ;;
1957 esac |
1958 sort
1959 )
1960 echo
1961
1962 printf "%s\n" "## ----------------- ##
1963 ## Output variables. ##
1964 ## ----------------- ##"
1965 echo
1966 for ac_var in $ac_subst_vars
1967 do
1968 eval ac_val=\$$ac_var
1969 case $ac_val in
1970 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1971 esac
1972 printf "%s\n" "$ac_var='\''$ac_val'\''"
1973 done | sort
1974 echo
1975
1976 if test -n "$ac_subst_files"; then
1977 printf "%s\n" "## ------------------- ##
1978 ## File substitutions. ##
1979 ## ------------------- ##"
1980 echo
1981 for ac_var in $ac_subst_files
1982 do
1983 eval ac_val=\$$ac_var
1984 case $ac_val in
1985 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1986 esac
1987 printf "%s\n" "$ac_var='\''$ac_val'\''"
1988 done | sort
1989 echo
1990 fi
1991
1992 if test -s confdefs.h; then
1993 printf "%s\n" "## ----------- ##
1994 ## confdefs.h. ##
1995 ## ----------- ##"
1996 echo
1997 cat confdefs.h
1998 echo
1999 fi
2000 test "$ac_signal" != 0 &&
2001 printf "%s\n" "$as_me: caught signal $ac_signal"
2002 printf "%s\n" "$as_me: exit $exit_status"
2003 } >&5
2004 rm -f core *.core core.conftest.* &&
2005 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2006 exit $exit_status
2007 ' 0
2008 for ac_signal in 1 2 13 15; do
2009 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2010 done
2011 ac_signal=0
2012
2013 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2014 rm -f -r conftest* confdefs.h
2015
2016 printf "%s\n" "/* confdefs.h */" > confdefs.h
2017
2018 # Predefined preprocessor variables.
2019
2020 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2021
2022 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2023
2024 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2025
2026 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2027
2028 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2029
2030 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2031
2032
2033 # Let the site file select an alternate cache file if it wants to.
2034 # Prefer an explicitly selected file to automatically selected ones.
2035 if test -n "$CONFIG_SITE"; then
2036 ac_site_files="$CONFIG_SITE"
2037 elif test "x$prefix" != xNONE; then
2038 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2039 else
2040 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2041 fi
2042
2043 for ac_site_file in $ac_site_files
2044 do
2045 case $ac_site_file in #(
2046 */*) :
2047 ;; #(
2048 *) :
2049 ac_site_file=./$ac_site_file ;;
2050 esac
2051 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2053 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2054 sed 's/^/| /' "$ac_site_file" >&5
2055 . "$ac_site_file" \
2056 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2057 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2058 as_fn_error $? "failed to load site script $ac_site_file
2059 See \`config.log' for more details" "$LINENO" 5; }
2060 fi
2061 done
2062
2063 if test -r "$cache_file"; then
2064 # Some versions of bash will fail to source /dev/null (special files
2065 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2066 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2068 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2069 case $cache_file in
2070 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2071 *) . "./$cache_file";;
2072 esac
2073 fi
2074 else
2075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2076 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2077 >$cache_file
2078 fi
2079
2080 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2081 # Test code for whether the C compiler supports C89 (global declarations)
2082 ac_c_conftest_c89_globals='
2083 /* Does the compiler advertise C89 conformance?
2084 Do not test the value of __STDC__, because some compilers set it to 0
2085 while being otherwise adequately conformant. */
2086 #if !defined __STDC__
2087 # error "Compiler does not advertise C89 conformance"
2088 #endif
2089
2090 #include <stddef.h>
2091 #include <stdarg.h>
2092 struct stat;
2093 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2094 struct buf { int x; };
2095 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2096 static char *e (p, i)
2097 char **p;
2098 int i;
2099 {
2100 return p[i];
2101 }
2102 static char *f (char * (*g) (char **, int), char **p, ...)
2103 {
2104 char *s;
2105 va_list v;
2106 va_start (v,p);
2107 s = g (p, va_arg (v,int));
2108 va_end (v);
2109 return s;
2110 }
2111
2112 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2113 function prototypes and stuff, but not \xHH hex character constants.
2114 These do not provoke an error unfortunately, instead are silently treated
2115 as an "x". The following induces an error, until -std is added to get
2116 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2117 array size at least. It is necessary to write \x00 == 0 to get something
2118 that is true only with -std. */
2119 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2120
2121 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2122 inside strings and character constants. */
2123 #define FOO(x) '\''x'\''
2124 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2125
2126 int test (int i, double x);
2127 struct s1 {int (*f) (int a);};
2128 struct s2 {int (*f) (double a);};
2129 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2130 int, int);'
2131
2132 # Test code for whether the C compiler supports C89 (body of main).
2133 ac_c_conftest_c89_main='
2134 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2135 '
2136
2137 # Test code for whether the C compiler supports C99 (global declarations)
2138 ac_c_conftest_c99_globals='
2139 // Does the compiler advertise C99 conformance?
2140 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2141 # error "Compiler does not advertise C99 conformance"
2142 #endif
2143
2144 #include <stdbool.h>
2145 extern int puts (const char *);
2146 extern int printf (const char *, ...);
2147 extern int dprintf (int, const char *, ...);
2148 extern void *malloc (size_t);
2149
2150 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2151 // dprintf is used instead of fprintf to avoid needing to declare
2152 // FILE and stderr.
2153 #define debug(...) dprintf (2, __VA_ARGS__)
2154 #define showlist(...) puts (#__VA_ARGS__)
2155 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2156 static void
2157 test_varargs_macros (void)
2158 {
2159 int x = 1234;
2160 int y = 5678;
2161 debug ("Flag");
2162 debug ("X = %d\n", x);
2163 showlist (The first, second, and third items.);
2164 report (x>y, "x is %d but y is %d", x, y);
2165 }
2166
2167 // Check long long types.
2168 #define BIG64 18446744073709551615ull
2169 #define BIG32 4294967295ul
2170 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2171 #if !BIG_OK
2172 #error "your preprocessor is broken"
2173 #endif
2174 #if BIG_OK
2175 #else
2176 #error "your preprocessor is broken"
2177 #endif
2178 static long long int bignum = -9223372036854775807LL;
2179 static unsigned long long int ubignum = BIG64;
2180
2181 struct incomplete_array
2182 {
2183 int datasize;
2184 double data[];
2185 };
2186
2187 struct named_init {
2188 int number;
2189 const wchar_t *name;
2190 double average;
2191 };
2192
2193 typedef const char *ccp;
2194
2195 static inline int
2196 test_restrict (ccp restrict text)
2197 {
2198 // See if C++-style comments work.
2199 // Iterate through items via the restricted pointer.
2200 // Also check for declarations in for loops.
2201 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2202 continue;
2203 return 0;
2204 }
2205
2206 // Check varargs and va_copy.
2207 static bool
2208 test_varargs (const char *format, ...)
2209 {
2210 va_list args;
2211 va_start (args, format);
2212 va_list args_copy;
2213 va_copy (args_copy, args);
2214
2215 const char *str = "";
2216 int number = 0;
2217 float fnumber = 0;
2218
2219 while (*format)
2220 {
2221 switch (*format++)
2222 {
2223 case '\''s'\'': // string
2224 str = va_arg (args_copy, const char *);
2225 break;
2226 case '\''d'\'': // int
2227 number = va_arg (args_copy, int);
2228 break;
2229 case '\''f'\'': // float
2230 fnumber = va_arg (args_copy, double);
2231 break;
2232 default:
2233 break;
2234 }
2235 }
2236 va_end (args_copy);
2237 va_end (args);
2238
2239 return *str && number && fnumber;
2240 }
2241 '
2242
2243 # Test code for whether the C compiler supports C99 (body of main).
2244 ac_c_conftest_c99_main='
2245 // Check bool.
2246 _Bool success = false;
2247 success |= (argc != 0);
2248
2249 // Check restrict.
2250 if (test_restrict ("String literal") == 0)
2251 success = true;
2252 char *restrict newvar = "Another string";
2253
2254 // Check varargs.
2255 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2256 test_varargs_macros ();
2257
2258 // Check flexible array members.
2259 struct incomplete_array *ia =
2260 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2261 ia->datasize = 10;
2262 for (int i = 0; i < ia->datasize; ++i)
2263 ia->data[i] = i * 1.234;
2264
2265 // Check named initializers.
2266 struct named_init ni = {
2267 .number = 34,
2268 .name = L"Test wide string",
2269 .average = 543.34343,
2270 };
2271
2272 ni.number = 58;
2273
2274 int dynamic_array[ni.number];
2275 dynamic_array[0] = argv[0][0];
2276 dynamic_array[ni.number - 1] = 543;
2277
2278 // work around unused variable warnings
2279 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2280 || dynamic_array[ni.number - 1] != 543);
2281 '
2282
2283 # Test code for whether the C compiler supports C11 (global declarations)
2284 ac_c_conftest_c11_globals='
2285 // Does the compiler advertise C11 conformance?
2286 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2287 # error "Compiler does not advertise C11 conformance"
2288 #endif
2289
2290 // Check _Alignas.
2291 char _Alignas (double) aligned_as_double;
2292 char _Alignas (0) no_special_alignment;
2293 extern char aligned_as_int;
2294 char _Alignas (0) _Alignas (int) aligned_as_int;
2295
2296 // Check _Alignof.
2297 enum
2298 {
2299 int_alignment = _Alignof (int),
2300 int_array_alignment = _Alignof (int[100]),
2301 char_alignment = _Alignof (char)
2302 };
2303 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2304
2305 // Check _Noreturn.
2306 int _Noreturn does_not_return (void) { for (;;) continue; }
2307
2308 // Check _Static_assert.
2309 struct test_static_assert
2310 {
2311 int x;
2312 _Static_assert (sizeof (int) <= sizeof (long int),
2313 "_Static_assert does not work in struct");
2314 long int y;
2315 };
2316
2317 // Check UTF-8 literals.
2318 #define u8 syntax error!
2319 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2320
2321 // Check duplicate typedefs.
2322 typedef long *long_ptr;
2323 typedef long int *long_ptr;
2324 typedef long_ptr long_ptr;
2325
2326 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2327 struct anonymous
2328 {
2329 union {
2330 struct { int i; int j; };
2331 struct { int k; long int l; } w;
2332 };
2333 int m;
2334 } v1;
2335 '
2336
2337 # Test code for whether the C compiler supports C11 (body of main).
2338 ac_c_conftest_c11_main='
2339 _Static_assert ((offsetof (struct anonymous, i)
2340 == offsetof (struct anonymous, w.k)),
2341 "Anonymous union alignment botch");
2342 v1.i = 2;
2343 v1.w.k = 5;
2344 ok |= v1.i != 5;
2345 '
2346
2347 # Test code for whether the C compiler supports C11 (complete).
2348 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2349 ${ac_c_conftest_c99_globals}
2350 ${ac_c_conftest_c11_globals}
2351
2352 int
2353 main (int argc, char **argv)
2354 {
2355 int ok = 0;
2356 ${ac_c_conftest_c89_main}
2357 ${ac_c_conftest_c99_main}
2358 ${ac_c_conftest_c11_main}
2359 return ok;
2360 }
2361 "
2362
2363 # Test code for whether the C compiler supports C99 (complete).
2364 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2365 ${ac_c_conftest_c99_globals}
2366
2367 int
2368 main (int argc, char **argv)
2369 {
2370 int ok = 0;
2371 ${ac_c_conftest_c89_main}
2372 ${ac_c_conftest_c99_main}
2373 return ok;
2374 }
2375 "
2376
2377 # Test code for whether the C compiler supports C89 (complete).
2378 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2379
2380 int
2381 main (int argc, char **argv)
2382 {
2383 int ok = 0;
2384 ${ac_c_conftest_c89_main}
2385 return ok;
2386 }
2387 "
2388
2389 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2390 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2391 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2392 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2393 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2394 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2395 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2396 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2397 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2398 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2399
2400 # Auxiliary files required by this configure script.
2401 ac_aux_files="config.guess config.sub missing install-sh compile"
2402
2403 # Locations in which to look for auxiliary files.
2404 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2405
2406 # Search for a directory containing all of the required auxiliary files,
2407 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2408 # If we don't find one directory that contains all the files we need,
2409 # we report the set of missing files from the *first* directory in
2410 # $ac_aux_dir_candidates and give up.
2411 ac_missing_aux_files=""
2412 ac_first_candidate=:
2413 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415 as_found=false
2416 for as_dir in $ac_aux_dir_candidates
2417 do
2418 IFS=$as_save_IFS
2419 case $as_dir in #(((
2420 '') as_dir=./ ;;
2421 */) ;;
2422 *) as_dir=$as_dir/ ;;
2423 esac
2424 as_found=:
2425
2426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2427 ac_aux_dir_found=yes
2428 ac_install_sh=
2429 for ac_aux in $ac_aux_files
2430 do
2431 # As a special case, if "install-sh" is required, that requirement
2432 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2433 # and $ac_install_sh is set appropriately for whichever one is found.
2434 if test x"$ac_aux" = x"install-sh"
2435 then
2436 if test -f "${as_dir}install-sh"; then
2437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2438 ac_install_sh="${as_dir}install-sh -c"
2439 elif test -f "${as_dir}install.sh"; then
2440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2441 ac_install_sh="${as_dir}install.sh -c"
2442 elif test -f "${as_dir}shtool"; then
2443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2444 ac_install_sh="${as_dir}shtool install -c"
2445 else
2446 ac_aux_dir_found=no
2447 if $ac_first_candidate; then
2448 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2449 else
2450 break
2451 fi
2452 fi
2453 else
2454 if test -f "${as_dir}${ac_aux}"; then
2455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2456 else
2457 ac_aux_dir_found=no
2458 if $ac_first_candidate; then
2459 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2460 else
2461 break
2462 fi
2463 fi
2464 fi
2465 done
2466 if test "$ac_aux_dir_found" = yes; then
2467 ac_aux_dir="$as_dir"
2468 break
2469 fi
2470 ac_first_candidate=false
2471
2472 as_found=false
2473 done
2474 IFS=$as_save_IFS
2475 if $as_found
2476 then :
2477
2478 else $as_nop
2479 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2480 fi
2481
2482
2483 # These three variables are undocumented and unsupported,
2484 # and are intended to be withdrawn in a future Autoconf release.
2485 # They can cause serious problems if a builder's source tree is in a directory
2486 # whose full name contains unusual characters.
2487 if test -f "${ac_aux_dir}config.guess"; then
2488 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2489 fi
2490 if test -f "${ac_aux_dir}config.sub"; then
2491 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2492 fi
2493 if test -f "$ac_aux_dir/configure"; then
2494 ac_configure="$SHELL ${ac_aux_dir}configure"
2495 fi
2496
2497 # Check that the precious variables saved in the cache have kept the same
2498 # value.
2499 ac_cache_corrupted=false
2500 for ac_var in $ac_precious_vars; do
2501 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2502 eval ac_new_set=\$ac_env_${ac_var}_set
2503 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2504 eval ac_new_val=\$ac_env_${ac_var}_value
2505 case $ac_old_set,$ac_new_set in
2506 set,)
2507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2508 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2509 ac_cache_corrupted=: ;;
2510 ,set)
2511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2512 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2513 ac_cache_corrupted=: ;;
2514 ,);;
2515 *)
2516 if test "x$ac_old_val" != "x$ac_new_val"; then
2517 # differences in whitespace do not lead to failure.
2518 ac_old_val_w=`echo x $ac_old_val`
2519 ac_new_val_w=`echo x $ac_new_val`
2520 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2522 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2523 ac_cache_corrupted=:
2524 else
2525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2526 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2527 eval $ac_var=\$ac_old_val
2528 fi
2529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2530 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2532 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2533 fi;;
2534 esac
2535 # Pass precious variables to config.status.
2536 if test "$ac_new_set" = set; then
2537 case $ac_new_val in
2538 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2539 *) ac_arg=$ac_var=$ac_new_val ;;
2540 esac
2541 case " $ac_configure_args " in
2542 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2543 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2544 esac
2545 fi
2546 done
2547 if $ac_cache_corrupted; then
2548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2549 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2551 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2552 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2553 and start over" "$LINENO" 5
2554 fi
2555 ## -------------------- ##
2556 ## Main body of script. ##
2557 ## -------------------- ##
2558
2559 ac_ext=c
2560 ac_cpp='$CPP $CPPFLAGS'
2561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2564
2565
2566
2567 ac_config_headers="$ac_config_headers config.h"
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580 # Expand $ac_aux_dir to an absolute path.
2581 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2582
2583 ac_ext=c
2584 ac_cpp='$CPP $CPPFLAGS'
2585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2588 if test -n "$ac_tool_prefix"; then
2589 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2590 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2592 printf %s "checking for $ac_word... " >&6; }
2593 if test ${ac_cv_prog_CC+y}
2594 then :
2595 printf %s "(cached) " >&6
2596 else $as_nop
2597 if test -n "$CC"; then
2598 ac_cv_prog_CC="$CC" # Let the user override the test.
2599 else
2600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601 for as_dir in $PATH
2602 do
2603 IFS=$as_save_IFS
2604 case $as_dir in #(((
2605 '') as_dir=./ ;;
2606 */) ;;
2607 *) as_dir=$as_dir/ ;;
2608 esac
2609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2611 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2612 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2613 break 2
2614 fi
2615 done
2616 done
2617 IFS=$as_save_IFS
2618
2619 fi
2620 fi
2621 CC=$ac_cv_prog_CC
2622 if test -n "$CC"; then
2623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2624 printf "%s\n" "$CC" >&6; }
2625 else
2626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2627 printf "%s\n" "no" >&6; }
2628 fi
2629
2630
2631 fi
2632 if test -z "$ac_cv_prog_CC"; then
2633 ac_ct_CC=$CC
2634 # Extract the first word of "gcc", so it can be a program name with args.
2635 set dummy gcc; ac_word=$2
2636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2637 printf %s "checking for $ac_word... " >&6; }
2638 if test ${ac_cv_prog_ac_ct_CC+y}
2639 then :
2640 printf %s "(cached) " >&6
2641 else $as_nop
2642 if test -n "$ac_ct_CC"; then
2643 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2644 else
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 for as_dir in $PATH
2647 do
2648 IFS=$as_save_IFS
2649 case $as_dir in #(((
2650 '') as_dir=./ ;;
2651 */) ;;
2652 *) as_dir=$as_dir/ ;;
2653 esac
2654 for ac_exec_ext in '' $ac_executable_extensions; do
2655 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2656 ac_cv_prog_ac_ct_CC="gcc"
2657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2658 break 2
2659 fi
2660 done
2661 done
2662 IFS=$as_save_IFS
2663
2664 fi
2665 fi
2666 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2667 if test -n "$ac_ct_CC"; then
2668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2669 printf "%s\n" "$ac_ct_CC" >&6; }
2670 else
2671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2672 printf "%s\n" "no" >&6; }
2673 fi
2674
2675 if test "x$ac_ct_CC" = x; then
2676 CC=""
2677 else
2678 case $cross_compiling:$ac_tool_warned in
2679 yes:)
2680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2681 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2682 ac_tool_warned=yes ;;
2683 esac
2684 CC=$ac_ct_CC
2685 fi
2686 else
2687 CC="$ac_cv_prog_CC"
2688 fi
2689
2690 if test -z "$CC"; then
2691 if test -n "$ac_tool_prefix"; then
2692 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2693 set dummy ${ac_tool_prefix}cc; ac_word=$2
2694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2695 printf %s "checking for $ac_word... " >&6; }
2696 if test ${ac_cv_prog_CC+y}
2697 then :
2698 printf %s "(cached) " >&6
2699 else $as_nop
2700 if test -n "$CC"; then
2701 ac_cv_prog_CC="$CC" # Let the user override the test.
2702 else
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2705 do
2706 IFS=$as_save_IFS
2707 case $as_dir in #(((
2708 '') as_dir=./ ;;
2709 */) ;;
2710 *) as_dir=$as_dir/ ;;
2711 esac
2712 for ac_exec_ext in '' $ac_executable_extensions; do
2713 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2714 ac_cv_prog_CC="${ac_tool_prefix}cc"
2715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2716 break 2
2717 fi
2718 done
2719 done
2720 IFS=$as_save_IFS
2721
2722 fi
2723 fi
2724 CC=$ac_cv_prog_CC
2725 if test -n "$CC"; then
2726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2727 printf "%s\n" "$CC" >&6; }
2728 else
2729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2730 printf "%s\n" "no" >&6; }
2731 fi
2732
2733
2734 fi
2735 fi
2736 if test -z "$CC"; then
2737 # Extract the first word of "cc", so it can be a program name with args.
2738 set dummy cc; ac_word=$2
2739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2740 printf %s "checking for $ac_word... " >&6; }
2741 if test ${ac_cv_prog_CC+y}
2742 then :
2743 printf %s "(cached) " >&6
2744 else $as_nop
2745 if test -n "$CC"; then
2746 ac_cv_prog_CC="$CC" # Let the user override the test.
2747 else
2748 ac_prog_rejected=no
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in $PATH
2751 do
2752 IFS=$as_save_IFS
2753 case $as_dir in #(((
2754 '') as_dir=./ ;;
2755 */) ;;
2756 *) as_dir=$as_dir/ ;;
2757 esac
2758 for ac_exec_ext in '' $ac_executable_extensions; do
2759 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2760 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2761 ac_prog_rejected=yes
2762 continue
2763 fi
2764 ac_cv_prog_CC="cc"
2765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2766 break 2
2767 fi
2768 done
2769 done
2770 IFS=$as_save_IFS
2771
2772 if test $ac_prog_rejected = yes; then
2773 # We found a bogon in the path, so make sure we never use it.
2774 set dummy $ac_cv_prog_CC
2775 shift
2776 if test $# != 0; then
2777 # We chose a different compiler from the bogus one.
2778 # However, it has the same basename, so the bogon will be chosen
2779 # first if we set CC to just the basename; use the full file name.
2780 shift
2781 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2782 fi
2783 fi
2784 fi
2785 fi
2786 CC=$ac_cv_prog_CC
2787 if test -n "$CC"; then
2788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2789 printf "%s\n" "$CC" >&6; }
2790 else
2791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2792 printf "%s\n" "no" >&6; }
2793 fi
2794
2795
2796 fi
2797 if test -z "$CC"; then
2798 if test -n "$ac_tool_prefix"; then
2799 for ac_prog in cl.exe
2800 do
2801 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2802 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804 printf %s "checking for $ac_word... " >&6; }
2805 if test ${ac_cv_prog_CC+y}
2806 then :
2807 printf %s "(cached) " >&6
2808 else $as_nop
2809 if test -n "$CC"; then
2810 ac_cv_prog_CC="$CC" # Let the user override the test.
2811 else
2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 for as_dir in $PATH
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_exec_ext in '' $ac_executable_extensions; do
2822 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2823 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2825 break 2
2826 fi
2827 done
2828 done
2829 IFS=$as_save_IFS
2830
2831 fi
2832 fi
2833 CC=$ac_cv_prog_CC
2834 if test -n "$CC"; then
2835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2836 printf "%s\n" "$CC" >&6; }
2837 else
2838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 printf "%s\n" "no" >&6; }
2840 fi
2841
2842
2843 test -n "$CC" && break
2844 done
2845 fi
2846 if test -z "$CC"; then
2847 ac_ct_CC=$CC
2848 for ac_prog in cl.exe
2849 do
2850 # Extract the first word of "$ac_prog", so it can be a program name with args.
2851 set dummy $ac_prog; ac_word=$2
2852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2853 printf %s "checking for $ac_word... " >&6; }
2854 if test ${ac_cv_prog_ac_ct_CC+y}
2855 then :
2856 printf %s "(cached) " >&6
2857 else $as_nop
2858 if test -n "$ac_ct_CC"; then
2859 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2860 else
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 for as_dir in $PATH
2863 do
2864 IFS=$as_save_IFS
2865 case $as_dir in #(((
2866 '') as_dir=./ ;;
2867 */) ;;
2868 *) as_dir=$as_dir/ ;;
2869 esac
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2872 ac_cv_prog_ac_ct_CC="$ac_prog"
2873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2874 break 2
2875 fi
2876 done
2877 done
2878 IFS=$as_save_IFS
2879
2880 fi
2881 fi
2882 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2883 if test -n "$ac_ct_CC"; then
2884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2885 printf "%s\n" "$ac_ct_CC" >&6; }
2886 else
2887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 printf "%s\n" "no" >&6; }
2889 fi
2890
2891
2892 test -n "$ac_ct_CC" && break
2893 done
2894
2895 if test "x$ac_ct_CC" = x; then
2896 CC=""
2897 else
2898 case $cross_compiling:$ac_tool_warned in
2899 yes:)
2900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2901 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2902 ac_tool_warned=yes ;;
2903 esac
2904 CC=$ac_ct_CC
2905 fi
2906 fi
2907
2908 fi
2909 if test -z "$CC"; then
2910 if test -n "$ac_tool_prefix"; then
2911 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2912 set dummy ${ac_tool_prefix}clang; ac_word=$2
2913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914 printf %s "checking for $ac_word... " >&6; }
2915 if test ${ac_cv_prog_CC+y}
2916 then :
2917 printf %s "(cached) " >&6
2918 else $as_nop
2919 if test -n "$CC"; then
2920 ac_cv_prog_CC="$CC" # Let the user override the test.
2921 else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2924 do
2925 IFS=$as_save_IFS
2926 case $as_dir in #(((
2927 '') as_dir=./ ;;
2928 */) ;;
2929 *) as_dir=$as_dir/ ;;
2930 esac
2931 for ac_exec_ext in '' $ac_executable_extensions; do
2932 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2933 ac_cv_prog_CC="${ac_tool_prefix}clang"
2934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2935 break 2
2936 fi
2937 done
2938 done
2939 IFS=$as_save_IFS
2940
2941 fi
2942 fi
2943 CC=$ac_cv_prog_CC
2944 if test -n "$CC"; then
2945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2946 printf "%s\n" "$CC" >&6; }
2947 else
2948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949 printf "%s\n" "no" >&6; }
2950 fi
2951
2952
2953 fi
2954 if test -z "$ac_cv_prog_CC"; then
2955 ac_ct_CC=$CC
2956 # Extract the first word of "clang", so it can be a program name with args.
2957 set dummy clang; ac_word=$2
2958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959 printf %s "checking for $ac_word... " >&6; }
2960 if test ${ac_cv_prog_ac_ct_CC+y}
2961 then :
2962 printf %s "(cached) " >&6
2963 else $as_nop
2964 if test -n "$ac_ct_CC"; then
2965 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2966 else
2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968 for as_dir in $PATH
2969 do
2970 IFS=$as_save_IFS
2971 case $as_dir in #(((
2972 '') as_dir=./ ;;
2973 */) ;;
2974 *) as_dir=$as_dir/ ;;
2975 esac
2976 for ac_exec_ext in '' $ac_executable_extensions; do
2977 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2978 ac_cv_prog_ac_ct_CC="clang"
2979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2980 break 2
2981 fi
2982 done
2983 done
2984 IFS=$as_save_IFS
2985
2986 fi
2987 fi
2988 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2989 if test -n "$ac_ct_CC"; then
2990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2991 printf "%s\n" "$ac_ct_CC" >&6; }
2992 else
2993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994 printf "%s\n" "no" >&6; }
2995 fi
2996
2997 if test "x$ac_ct_CC" = x; then
2998 CC=""
2999 else
3000 case $cross_compiling:$ac_tool_warned in
3001 yes:)
3002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3003 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3004 ac_tool_warned=yes ;;
3005 esac
3006 CC=$ac_ct_CC
3007 fi
3008 else
3009 CC="$ac_cv_prog_CC"
3010 fi
3011
3012 fi
3013
3014
3015 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3016 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3017 as_fn_error $? "no acceptable C compiler found in \$PATH
3018 See \`config.log' for more details" "$LINENO" 5; }
3019
3020 # Provide some information about the compiler.
3021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3022 set X $ac_compile
3023 ac_compiler=$2
3024 for ac_option in --version -v -V -qversion -version; do
3025 { { ac_try="$ac_compiler $ac_option >&5"
3026 case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029 esac
3030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3031 printf "%s\n" "$ac_try_echo"; } >&5
3032 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3033 ac_status=$?
3034 if test -s conftest.err; then
3035 sed '10a\
3036 ... rest of stderr output deleted ...
3037 10q' conftest.err >conftest.er1
3038 cat conftest.er1 >&5
3039 fi
3040 rm -f conftest.er1 conftest.err
3041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3042 test $ac_status = 0; }
3043 done
3044
3045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3046 /* end confdefs.h. */
3047
3048 int
3049 main (void)
3050 {
3051
3052 ;
3053 return 0;
3054 }
3055 _ACEOF
3056 ac_clean_files_save=$ac_clean_files
3057 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3058 # Try to create an executable without -o first, disregard a.out.
3059 # It will help us diagnose broken compilers, and finding out an intuition
3060 # of exeext.
3061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3062 printf %s "checking whether the C compiler works... " >&6; }
3063 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3064
3065 # The possible output files:
3066 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3067
3068 ac_rmfiles=
3069 for ac_file in $ac_files
3070 do
3071 case $ac_file in
3072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3073 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3074 esac
3075 done
3076 rm -f $ac_rmfiles
3077
3078 if { { ac_try="$ac_link_default"
3079 case "(($ac_try" in
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3082 esac
3083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3084 printf "%s\n" "$ac_try_echo"; } >&5
3085 (eval "$ac_link_default") 2>&5
3086 ac_status=$?
3087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3088 test $ac_status = 0; }
3089 then :
3090 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3091 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3092 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3093 # so that the user can short-circuit this test for compilers unknown to
3094 # Autoconf.
3095 for ac_file in $ac_files ''
3096 do
3097 test -f "$ac_file" || continue
3098 case $ac_file in
3099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3100 ;;
3101 [ab].out )
3102 # We found the default executable, but exeext='' is most
3103 # certainly right.
3104 break;;
3105 *.* )
3106 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3107 then :; else
3108 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3109 fi
3110 # We set ac_cv_exeext here because the later test for it is not
3111 # safe: cross compilers may not add the suffix if given an `-o'
3112 # argument, so we may need to know it at that point already.
3113 # Even if this section looks crufty: it has the advantage of
3114 # actually working.
3115 break;;
3116 * )
3117 break;;
3118 esac
3119 done
3120 test "$ac_cv_exeext" = no && ac_cv_exeext=
3121
3122 else $as_nop
3123 ac_file=''
3124 fi
3125 if test -z "$ac_file"
3126 then :
3127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128 printf "%s\n" "no" >&6; }
3129 printf "%s\n" "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3131
3132 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3133 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3134 as_fn_error 77 "C compiler cannot create executables
3135 See \`config.log' for more details" "$LINENO" 5; }
3136 else $as_nop
3137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3138 printf "%s\n" "yes" >&6; }
3139 fi
3140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3141 printf %s "checking for C compiler default output file name... " >&6; }
3142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3143 printf "%s\n" "$ac_file" >&6; }
3144 ac_exeext=$ac_cv_exeext
3145
3146 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3147 ac_clean_files=$ac_clean_files_save
3148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3149 printf %s "checking for suffix of executables... " >&6; }
3150 if { { ac_try="$ac_link"
3151 case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3154 esac
3155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3156 printf "%s\n" "$ac_try_echo"; } >&5
3157 (eval "$ac_link") 2>&5
3158 ac_status=$?
3159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3160 test $ac_status = 0; }
3161 then :
3162 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3163 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3164 # work properly (i.e., refer to `conftest.exe'), while it won't with
3165 # `rm'.
3166 for ac_file in conftest.exe conftest conftest.*; do
3167 test -f "$ac_file" || continue
3168 case $ac_file in
3169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3170 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3171 break;;
3172 * ) break;;
3173 esac
3174 done
3175 else $as_nop
3176 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3177 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3178 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3179 See \`config.log' for more details" "$LINENO" 5; }
3180 fi
3181 rm -f conftest conftest$ac_cv_exeext
3182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3183 printf "%s\n" "$ac_cv_exeext" >&6; }
3184
3185 rm -f conftest.$ac_ext
3186 EXEEXT=$ac_cv_exeext
3187 ac_exeext=$EXEEXT
3188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3189 /* end confdefs.h. */
3190 #include <stdio.h>
3191 int
3192 main (void)
3193 {
3194 FILE *f = fopen ("conftest.out", "w");
3195 return ferror (f) || fclose (f) != 0;
3196
3197 ;
3198 return 0;
3199 }
3200 _ACEOF
3201 ac_clean_files="$ac_clean_files conftest.out"
3202 # Check that the compiler produces executables we can run. If not, either
3203 # the compiler is broken, or we cross compile.
3204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3205 printf %s "checking whether we are cross compiling... " >&6; }
3206 if test "$cross_compiling" != yes; then
3207 { { ac_try="$ac_link"
3208 case "(($ac_try" in
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3211 esac
3212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3213 printf "%s\n" "$ac_try_echo"; } >&5
3214 (eval "$ac_link") 2>&5
3215 ac_status=$?
3216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3217 test $ac_status = 0; }
3218 if { ac_try='./conftest$ac_cv_exeext'
3219 { { case "(($ac_try" in
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3222 esac
3223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224 printf "%s\n" "$ac_try_echo"; } >&5
3225 (eval "$ac_try") 2>&5
3226 ac_status=$?
3227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228 test $ac_status = 0; }; }; then
3229 cross_compiling=no
3230 else
3231 if test "$cross_compiling" = maybe; then
3232 cross_compiling=yes
3233 else
3234 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3236 as_fn_error 77 "cannot run C compiled programs.
3237 If you meant to cross compile, use \`--host'.
3238 See \`config.log' for more details" "$LINENO" 5; }
3239 fi
3240 fi
3241 fi
3242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3243 printf "%s\n" "$cross_compiling" >&6; }
3244
3245 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3246 ac_clean_files=$ac_clean_files_save
3247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3248 printf %s "checking for suffix of object files... " >&6; }
3249 if test ${ac_cv_objext+y}
3250 then :
3251 printf %s "(cached) " >&6
3252 else $as_nop
3253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254 /* end confdefs.h. */
3255
3256 int
3257 main (void)
3258 {
3259
3260 ;
3261 return 0;
3262 }
3263 _ACEOF
3264 rm -f conftest.o conftest.obj
3265 if { { ac_try="$ac_compile"
3266 case "(($ac_try" in
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3269 esac
3270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3271 printf "%s\n" "$ac_try_echo"; } >&5
3272 (eval "$ac_compile") 2>&5
3273 ac_status=$?
3274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3275 test $ac_status = 0; }
3276 then :
3277 for ac_file in conftest.o conftest.obj conftest.*; do
3278 test -f "$ac_file" || continue;
3279 case $ac_file in
3280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3281 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3282 break;;
3283 esac
3284 done
3285 else $as_nop
3286 printf "%s\n" "$as_me: failed program was:" >&5
3287 sed 's/^/| /' conftest.$ac_ext >&5
3288
3289 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3290 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3291 as_fn_error $? "cannot compute suffix of object files: cannot compile
3292 See \`config.log' for more details" "$LINENO" 5; }
3293 fi
3294 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3295 fi
3296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3297 printf "%s\n" "$ac_cv_objext" >&6; }
3298 OBJEXT=$ac_cv_objext
3299 ac_objext=$OBJEXT
3300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3301 printf %s "checking whether the compiler supports GNU C... " >&6; }
3302 if test ${ac_cv_c_compiler_gnu+y}
3303 then :
3304 printf %s "(cached) " >&6
3305 else $as_nop
3306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3307 /* end confdefs.h. */
3308
3309 int
3310 main (void)
3311 {
3312 #ifndef __GNUC__
3313 choke me
3314 #endif
3315
3316 ;
3317 return 0;
3318 }
3319 _ACEOF
3320 if ac_fn_c_try_compile "$LINENO"
3321 then :
3322 ac_compiler_gnu=yes
3323 else $as_nop
3324 ac_compiler_gnu=no
3325 fi
3326 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3327 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3328
3329 fi
3330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3331 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3333
3334 if test $ac_compiler_gnu = yes; then
3335 GCC=yes
3336 else
3337 GCC=
3338 fi
3339 ac_test_CFLAGS=${CFLAGS+y}
3340 ac_save_CFLAGS=$CFLAGS
3341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3342 printf %s "checking whether $CC accepts -g... " >&6; }
3343 if test ${ac_cv_prog_cc_g+y}
3344 then :
3345 printf %s "(cached) " >&6
3346 else $as_nop
3347 ac_save_c_werror_flag=$ac_c_werror_flag
3348 ac_c_werror_flag=yes
3349 ac_cv_prog_cc_g=no
3350 CFLAGS="-g"
3351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352 /* end confdefs.h. */
3353
3354 int
3355 main (void)
3356 {
3357
3358 ;
3359 return 0;
3360 }
3361 _ACEOF
3362 if ac_fn_c_try_compile "$LINENO"
3363 then :
3364 ac_cv_prog_cc_g=yes
3365 else $as_nop
3366 CFLAGS=""
3367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368 /* end confdefs.h. */
3369
3370 int
3371 main (void)
3372 {
3373
3374 ;
3375 return 0;
3376 }
3377 _ACEOF
3378 if ac_fn_c_try_compile "$LINENO"
3379 then :
3380
3381 else $as_nop
3382 ac_c_werror_flag=$ac_save_c_werror_flag
3383 CFLAGS="-g"
3384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385 /* end confdefs.h. */
3386
3387 int
3388 main (void)
3389 {
3390
3391 ;
3392 return 0;
3393 }
3394 _ACEOF
3395 if ac_fn_c_try_compile "$LINENO"
3396 then :
3397 ac_cv_prog_cc_g=yes
3398 fi
3399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3400 fi
3401 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3402 fi
3403 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3404 ac_c_werror_flag=$ac_save_c_werror_flag
3405 fi
3406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3407 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3408 if test $ac_test_CFLAGS; then
3409 CFLAGS=$ac_save_CFLAGS
3410 elif test $ac_cv_prog_cc_g = yes; then
3411 if test "$GCC" = yes; then
3412 CFLAGS="-g -O2"
3413 else
3414 CFLAGS="-g"
3415 fi
3416 else
3417 if test "$GCC" = yes; then
3418 CFLAGS="-O2"
3419 else
3420 CFLAGS=
3421 fi
3422 fi
3423 ac_prog_cc_stdc=no
3424 if test x$ac_prog_cc_stdc = xno
3425 then :
3426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3427 printf %s "checking for $CC option to enable C11 features... " >&6; }
3428 if test ${ac_cv_prog_cc_c11+y}
3429 then :
3430 printf %s "(cached) " >&6
3431 else $as_nop
3432 ac_cv_prog_cc_c11=no
3433 ac_save_CC=$CC
3434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435 /* end confdefs.h. */
3436 $ac_c_conftest_c11_program
3437 _ACEOF
3438 for ac_arg in '' -std=gnu11
3439 do
3440 CC="$ac_save_CC $ac_arg"
3441 if ac_fn_c_try_compile "$LINENO"
3442 then :
3443 ac_cv_prog_cc_c11=$ac_arg
3444 fi
3445 rm -f core conftest.err conftest.$ac_objext conftest.beam
3446 test "x$ac_cv_prog_cc_c11" != "xno" && break
3447 done
3448 rm -f conftest.$ac_ext
3449 CC=$ac_save_CC
3450 fi
3451
3452 if test "x$ac_cv_prog_cc_c11" = xno
3453 then :
3454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3455 printf "%s\n" "unsupported" >&6; }
3456 else $as_nop
3457 if test "x$ac_cv_prog_cc_c11" = x
3458 then :
3459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3460 printf "%s\n" "none needed" >&6; }
3461 else $as_nop
3462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3463 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3464 CC="$CC $ac_cv_prog_cc_c11"
3465 fi
3466 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3467 ac_prog_cc_stdc=c11
3468 fi
3469 fi
3470 if test x$ac_prog_cc_stdc = xno
3471 then :
3472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3473 printf %s "checking for $CC option to enable C99 features... " >&6; }
3474 if test ${ac_cv_prog_cc_c99+y}
3475 then :
3476 printf %s "(cached) " >&6
3477 else $as_nop
3478 ac_cv_prog_cc_c99=no
3479 ac_save_CC=$CC
3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h. */
3482 $ac_c_conftest_c99_program
3483 _ACEOF
3484 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3485 do
3486 CC="$ac_save_CC $ac_arg"
3487 if ac_fn_c_try_compile "$LINENO"
3488 then :
3489 ac_cv_prog_cc_c99=$ac_arg
3490 fi
3491 rm -f core conftest.err conftest.$ac_objext conftest.beam
3492 test "x$ac_cv_prog_cc_c99" != "xno" && break
3493 done
3494 rm -f conftest.$ac_ext
3495 CC=$ac_save_CC
3496 fi
3497
3498 if test "x$ac_cv_prog_cc_c99" = xno
3499 then :
3500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3501 printf "%s\n" "unsupported" >&6; }
3502 else $as_nop
3503 if test "x$ac_cv_prog_cc_c99" = x
3504 then :
3505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3506 printf "%s\n" "none needed" >&6; }
3507 else $as_nop
3508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3509 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3510 CC="$CC $ac_cv_prog_cc_c99"
3511 fi
3512 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3513 ac_prog_cc_stdc=c99
3514 fi
3515 fi
3516 if test x$ac_prog_cc_stdc = xno
3517 then :
3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3519 printf %s "checking for $CC option to enable C89 features... " >&6; }
3520 if test ${ac_cv_prog_cc_c89+y}
3521 then :
3522 printf %s "(cached) " >&6
3523 else $as_nop
3524 ac_cv_prog_cc_c89=no
3525 ac_save_CC=$CC
3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527 /* end confdefs.h. */
3528 $ac_c_conftest_c89_program
3529 _ACEOF
3530 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3531 do
3532 CC="$ac_save_CC $ac_arg"
3533 if ac_fn_c_try_compile "$LINENO"
3534 then :
3535 ac_cv_prog_cc_c89=$ac_arg
3536 fi
3537 rm -f core conftest.err conftest.$ac_objext conftest.beam
3538 test "x$ac_cv_prog_cc_c89" != "xno" && break
3539 done
3540 rm -f conftest.$ac_ext
3541 CC=$ac_save_CC
3542 fi
3543
3544 if test "x$ac_cv_prog_cc_c89" = xno
3545 then :
3546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3547 printf "%s\n" "unsupported" >&6; }
3548 else $as_nop
3549 if test "x$ac_cv_prog_cc_c89" = x
3550 then :
3551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3552 printf "%s\n" "none needed" >&6; }
3553 else $as_nop
3554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3555 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3556 CC="$CC $ac_cv_prog_cc_c89"
3557 fi
3558 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3559 ac_prog_cc_stdc=c89
3560 fi
3561 fi
3562
3563 ac_ext=c
3564 ac_cpp='$CPP $CPPFLAGS'
3565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3568
3569
3570 ac_ext=c
3571 ac_cpp='$CPP $CPPFLAGS'
3572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3576 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3577 if test ${am_cv_prog_cc_c_o+y}
3578 then :
3579 printf %s "(cached) " >&6
3580 else $as_nop
3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582 /* end confdefs.h. */
3583
3584 int
3585 main (void)
3586 {
3587
3588 ;
3589 return 0;
3590 }
3591 _ACEOF
3592 # Make sure it works both with $CC and with simple cc.
3593 # Following AC_PROG_CC_C_O, we do the test twice because some
3594 # compilers refuse to overwrite an existing .o file with -o,
3595 # though they will create one.
3596 am_cv_prog_cc_c_o=yes
3597 for am_i in 1 2; do
3598 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3599 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3600 ac_status=$?
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } \
3603 && test -f conftest2.$ac_objext; then
3604 : OK
3605 else
3606 am_cv_prog_cc_c_o=no
3607 break
3608 fi
3609 done
3610 rm -f core conftest*
3611 unset am_i
3612 fi
3613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3614 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3615 if test "$am_cv_prog_cc_c_o" != yes; then
3616 # Losing compiler, so override with the script.
3617 # FIXME: It is wrong to rewrite CC.
3618 # But if we don't then we get into trouble of one sort or another.
3619 # A longer-term fix would be to have automake use am__CC in this case,
3620 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3621 CC="$am_aux_dir/compile $CC"
3622 fi
3623 ac_ext=c
3624 ac_cpp='$CPP $CPPFLAGS'
3625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3628
3629
3630
3631 ac_header= ac_cache=
3632 for ac_item in $ac_header_c_list
3633 do
3634 if test $ac_cache; then
3635 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3636 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3637 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3638 fi
3639 ac_header= ac_cache=
3640 elif test $ac_header; then
3641 ac_cache=$ac_item
3642 else
3643 ac_header=$ac_item
3644 fi
3645 done
3646
3647
3648
3649
3650
3651
3652
3653
3654 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3655 then :
3656
3657 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3658
3659 fi
3660
3661
3662
3663
3664
3665
3666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3667 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3668 if test ${ac_cv_safe_to_define___extensions__+y}
3669 then :
3670 printf %s "(cached) " >&6
3671 else $as_nop
3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673 /* end confdefs.h. */
3674
3675 # define __EXTENSIONS__ 1
3676 $ac_includes_default
3677 int
3678 main (void)
3679 {
3680
3681 ;
3682 return 0;
3683 }
3684 _ACEOF
3685 if ac_fn_c_try_compile "$LINENO"
3686 then :
3687 ac_cv_safe_to_define___extensions__=yes
3688 else $as_nop
3689 ac_cv_safe_to_define___extensions__=no
3690 fi
3691 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3692 fi
3693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3694 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3695
3696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3697 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3698 if test ${ac_cv_should_define__xopen_source+y}
3699 then :
3700 printf %s "(cached) " >&6
3701 else $as_nop
3702 ac_cv_should_define__xopen_source=no
3703 if test $ac_cv_header_wchar_h = yes
3704 then :
3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706 /* end confdefs.h. */
3707
3708 #include <wchar.h>
3709 mbstate_t x;
3710 int
3711 main (void)
3712 {
3713
3714 ;
3715 return 0;
3716 }
3717 _ACEOF
3718 if ac_fn_c_try_compile "$LINENO"
3719 then :
3720
3721 else $as_nop
3722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723 /* end confdefs.h. */
3724
3725 #define _XOPEN_SOURCE 500
3726 #include <wchar.h>
3727 mbstate_t x;
3728 int
3729 main (void)
3730 {
3731
3732 ;
3733 return 0;
3734 }
3735 _ACEOF
3736 if ac_fn_c_try_compile "$LINENO"
3737 then :
3738 ac_cv_should_define__xopen_source=yes
3739 fi
3740 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3741 fi
3742 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3743 fi
3744 fi
3745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3746 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3747
3748 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3749
3750 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3751
3752 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3753
3754 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3755
3756 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3757
3758 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3759
3760 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3761
3762 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3763
3764 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3765
3766 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3767
3768 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3769
3770 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3771
3772 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3773
3774 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3775
3776 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3777
3778 if test $ac_cv_header_minix_config_h = yes
3779 then :
3780 MINIX=yes
3781 printf "%s\n" "#define _MINIX 1" >>confdefs.h
3782
3783 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3784
3785 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3786
3787 else $as_nop
3788 MINIX=
3789 fi
3790 if test $ac_cv_safe_to_define___extensions__ = yes
3791 then :
3792 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3793
3794 fi
3795 if test $ac_cv_should_define__xopen_source = yes
3796 then :
3797 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3798
3799 fi
3800
3801
3802 # Initialize Automake
3803 am__api_version='1.16'
3804
3805
3806 # Find a good install program. We prefer a C program (faster),
3807 # so one script is as good as another. But avoid the broken or
3808 # incompatible versions:
3809 # SysV /etc/install, /usr/sbin/install
3810 # SunOS /usr/etc/install
3811 # IRIX /sbin/install
3812 # AIX /bin/install
3813 # AmigaOS /C/install, which installs bootblocks on floppy discs
3814 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3815 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3816 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3817 # OS/2's system install, which has a completely different semantic
3818 # ./install, which can be erroneously created by make from ./install.sh.
3819 # Reject install programs that cannot install multiple files.
3820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3821 printf %s "checking for a BSD-compatible install... " >&6; }
3822 if test -z "$INSTALL"; then
3823 if test ${ac_cv_path_install+y}
3824 then :
3825 printf %s "(cached) " >&6
3826 else $as_nop
3827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3828 for as_dir in $PATH
3829 do
3830 IFS=$as_save_IFS
3831 case $as_dir in #(((
3832 '') as_dir=./ ;;
3833 */) ;;
3834 *) as_dir=$as_dir/ ;;
3835 esac
3836 # Account for fact that we put trailing slashes in our PATH walk.
3837 case $as_dir in #((
3838 ./ | /[cC]/* | \
3839 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3840 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3841 /usr/ucb/* ) ;;
3842 *)
3843 # OSF1 and SCO ODT 3.0 have their own names for install.
3844 # Don't use installbsd from OSF since it installs stuff as root
3845 # by default.
3846 for ac_prog in ginstall scoinst install; do
3847 for ac_exec_ext in '' $ac_executable_extensions; do
3848 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3849 if test $ac_prog = install &&
3850 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3851 # AIX install. It has an incompatible calling convention.
3852 :
3853 elif test $ac_prog = install &&
3854 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3855 # program-specific install script used by HP pwplus--don't use.
3856 :
3857 else
3858 rm -rf conftest.one conftest.two conftest.dir
3859 echo one > conftest.one
3860 echo two > conftest.two
3861 mkdir conftest.dir
3862 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3863 test -s conftest.one && test -s conftest.two &&
3864 test -s conftest.dir/conftest.one &&
3865 test -s conftest.dir/conftest.two
3866 then
3867 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3868 break 3
3869 fi
3870 fi
3871 fi
3872 done
3873 done
3874 ;;
3875 esac
3876
3877 done
3878 IFS=$as_save_IFS
3879
3880 rm -rf conftest.one conftest.two conftest.dir
3881
3882 fi
3883 if test ${ac_cv_path_install+y}; then
3884 INSTALL=$ac_cv_path_install
3885 else
3886 # As a last resort, use the slow shell script. Don't cache a
3887 # value for INSTALL within a source directory, because that will
3888 # break other packages using the cache if that directory is
3889 # removed, or if the value is a relative name.
3890 INSTALL=$ac_install_sh
3891 fi
3892 fi
3893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3894 printf "%s\n" "$INSTALL" >&6; }
3895
3896 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3897 # It thinks the first close brace ends the variable substitution.
3898 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3899
3900 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3901
3902 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3903
3904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3905 printf %s "checking whether build environment is sane... " >&6; }
3906 # Reject unsafe characters in $srcdir or the absolute working directory
3907 # name. Accept space and tab only in the latter.
3908 am_lf='
3909 '
3910 case `pwd` in
3911 *[\\\"\#\$\&\'\`$am_lf]*)
3912 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3913 esac
3914 case $srcdir in
3915 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3916 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3917 esac
3918
3919 # Do 'set' in a subshell so we don't clobber the current shell's
3920 # arguments. Must try -L first in case configure is actually a
3921 # symlink; some systems play weird games with the mod time of symlinks
3922 # (eg FreeBSD returns the mod time of the symlink's containing
3923 # directory).
3924 if (
3925 am_has_slept=no
3926 for am_try in 1 2; do
3927 echo "timestamp, slept: $am_has_slept" > conftest.file
3928 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3929 if test "$*" = "X"; then
3930 # -L didn't work.
3931 set X `ls -t "$srcdir/configure" conftest.file`
3932 fi
3933 if test "$*" != "X $srcdir/configure conftest.file" \
3934 && test "$*" != "X conftest.file $srcdir/configure"; then
3935
3936 # If neither matched, then we have a broken ls. This can happen
3937 # if, for instance, CONFIG_SHELL is bash and it inherits a
3938 # broken ls alias from the environment. This has actually
3939 # happened. Such a system could not be considered "sane".
3940 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3941 alias in your environment" "$LINENO" 5
3942 fi
3943 if test "$2" = conftest.file || test $am_try -eq 2; then
3944 break
3945 fi
3946 # Just in case.
3947 sleep 1
3948 am_has_slept=yes
3949 done
3950 test "$2" = conftest.file
3951 )
3952 then
3953 # Ok.
3954 :
3955 else
3956 as_fn_error $? "newly created file is older than distributed files!
3957 Check your system clock" "$LINENO" 5
3958 fi
3959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3960 printf "%s\n" "yes" >&6; }
3961 # If we didn't sleep, we still need to ensure time stamps of config.status and
3962 # generated files are strictly newer.
3963 am_sleep_pid=
3964 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3965 ( sleep 1 ) &
3966 am_sleep_pid=$!
3967 fi
3968
3969 rm -f conftest.file
3970
3971 test "$program_prefix" != NONE &&
3972 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3973 # Use a double $ so make ignores it.
3974 test "$program_suffix" != NONE &&
3975 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3976 # Double any \ or $.
3977 # By default was `s,x,x', remove it if useless.
3978 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3979 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3980
3981
3982 if test x"${MISSING+set}" != xset; then
3983 MISSING="\${SHELL} '$am_aux_dir/missing'"
3984 fi
3985 # Use eval to expand $SHELL
3986 if eval "$MISSING --is-lightweight"; then
3987 am_missing_run="$MISSING "
3988 else
3989 am_missing_run=
3990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3991 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3992 fi
3993
3994 if test x"${install_sh+set}" != xset; then
3995 case $am_aux_dir in
3996 *\ * | *\ *)
3997 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3998 *)
3999 install_sh="\${SHELL} $am_aux_dir/install-sh"
4000 esac
4001 fi
4002
4003 # Installed binaries are usually stripped using 'strip' when the user
4004 # run "make install-strip". However 'strip' might not be the right
4005 # tool to use in cross-compilation environments, therefore Automake
4006 # will honor the 'STRIP' environment variable to overrule this program.
4007 if test "$cross_compiling" != no; then
4008 if test -n "$ac_tool_prefix"; then
4009 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4010 set dummy ${ac_tool_prefix}strip; ac_word=$2
4011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4012 printf %s "checking for $ac_word... " >&6; }
4013 if test ${ac_cv_prog_STRIP+y}
4014 then :
4015 printf %s "(cached) " >&6
4016 else $as_nop
4017 if test -n "$STRIP"; then
4018 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4019 else
4020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021 for as_dir in $PATH
4022 do
4023 IFS=$as_save_IFS
4024 case $as_dir in #(((
4025 '') as_dir=./ ;;
4026 */) ;;
4027 *) as_dir=$as_dir/ ;;
4028 esac
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4031 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4033 break 2
4034 fi
4035 done
4036 done
4037 IFS=$as_save_IFS
4038
4039 fi
4040 fi
4041 STRIP=$ac_cv_prog_STRIP
4042 if test -n "$STRIP"; then
4043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4044 printf "%s\n" "$STRIP" >&6; }
4045 else
4046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4047 printf "%s\n" "no" >&6; }
4048 fi
4049
4050
4051 fi
4052 if test -z "$ac_cv_prog_STRIP"; then
4053 ac_ct_STRIP=$STRIP
4054 # Extract the first word of "strip", so it can be a program name with args.
4055 set dummy strip; ac_word=$2
4056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4057 printf %s "checking for $ac_word... " >&6; }
4058 if test ${ac_cv_prog_ac_ct_STRIP+y}
4059 then :
4060 printf %s "(cached) " >&6
4061 else $as_nop
4062 if test -n "$ac_ct_STRIP"; then
4063 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4064 else
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 for as_dir in $PATH
4067 do
4068 IFS=$as_save_IFS
4069 case $as_dir in #(((
4070 '') as_dir=./ ;;
4071 */) ;;
4072 *) as_dir=$as_dir/ ;;
4073 esac
4074 for ac_exec_ext in '' $ac_executable_extensions; do
4075 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4076 ac_cv_prog_ac_ct_STRIP="strip"
4077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4078 break 2
4079 fi
4080 done
4081 done
4082 IFS=$as_save_IFS
4083
4084 fi
4085 fi
4086 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4087 if test -n "$ac_ct_STRIP"; then
4088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4089 printf "%s\n" "$ac_ct_STRIP" >&6; }
4090 else
4091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4092 printf "%s\n" "no" >&6; }
4093 fi
4094
4095 if test "x$ac_ct_STRIP" = x; then
4096 STRIP=":"
4097 else
4098 case $cross_compiling:$ac_tool_warned in
4099 yes:)
4100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4101 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4102 ac_tool_warned=yes ;;
4103 esac
4104 STRIP=$ac_ct_STRIP
4105 fi
4106 else
4107 STRIP="$ac_cv_prog_STRIP"
4108 fi
4109
4110 fi
4111 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4112
4113
4114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4115 printf %s "checking for a race-free mkdir -p... " >&6; }
4116 if test -z "$MKDIR_P"; then
4117 if test ${ac_cv_path_mkdir+y}
4118 then :
4119 printf %s "(cached) " >&6
4120 else $as_nop
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4123 do
4124 IFS=$as_save_IFS
4125 case $as_dir in #(((
4126 '') as_dir=./ ;;
4127 */) ;;
4128 *) as_dir=$as_dir/ ;;
4129 esac
4130 for ac_prog in mkdir gmkdir; do
4131 for ac_exec_ext in '' $ac_executable_extensions; do
4132 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4133 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4134 'mkdir ('*'coreutils) '* | \
4135 'BusyBox '* | \
4136 'mkdir (fileutils) '4.1*)
4137 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4138 break 3;;
4139 esac
4140 done
4141 done
4142 done
4143 IFS=$as_save_IFS
4144
4145 fi
4146
4147 test -d ./--version && rmdir ./--version
4148 if test ${ac_cv_path_mkdir+y}; then
4149 MKDIR_P="$ac_cv_path_mkdir -p"
4150 else
4151 # As a last resort, use the slow shell script. Don't cache a
4152 # value for MKDIR_P within a source directory, because that will
4153 # break other packages using the cache if that directory is
4154 # removed, or if the value is a relative name.
4155 MKDIR_P="$ac_install_sh -d"
4156 fi
4157 fi
4158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4159 printf "%s\n" "$MKDIR_P" >&6; }
4160
4161 for ac_prog in gawk mawk nawk awk
4162 do
4163 # Extract the first word of "$ac_prog", so it can be a program name with args.
4164 set dummy $ac_prog; ac_word=$2
4165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4166 printf %s "checking for $ac_word... " >&6; }
4167 if test ${ac_cv_prog_AWK+y}
4168 then :
4169 printf %s "(cached) " >&6
4170 else $as_nop
4171 if test -n "$AWK"; then
4172 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4173 else
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 for as_dir in $PATH
4176 do
4177 IFS=$as_save_IFS
4178 case $as_dir in #(((
4179 '') as_dir=./ ;;
4180 */) ;;
4181 *) as_dir=$as_dir/ ;;
4182 esac
4183 for ac_exec_ext in '' $ac_executable_extensions; do
4184 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4185 ac_cv_prog_AWK="$ac_prog"
4186 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4187 break 2
4188 fi
4189 done
4190 done
4191 IFS=$as_save_IFS
4192
4193 fi
4194 fi
4195 AWK=$ac_cv_prog_AWK
4196 if test -n "$AWK"; then
4197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4198 printf "%s\n" "$AWK" >&6; }
4199 else
4200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201 printf "%s\n" "no" >&6; }
4202 fi
4203
4204
4205 test -n "$AWK" && break
4206 done
4207
4208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4209 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4210 set x ${MAKE-make}
4211 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4212 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4213 then :
4214 printf %s "(cached) " >&6
4215 else $as_nop
4216 cat >conftest.make <<\_ACEOF
4217 SHELL = /bin/sh
4218 all:
4219 @echo '@@@%%%=$(MAKE)=@@@%%%'
4220 _ACEOF
4221 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4222 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4223 *@@@%%%=?*=@@@%%%*)
4224 eval ac_cv_prog_make_${ac_make}_set=yes;;
4225 *)
4226 eval ac_cv_prog_make_${ac_make}_set=no;;
4227 esac
4228 rm -f conftest.make
4229 fi
4230 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4232 printf "%s\n" "yes" >&6; }
4233 SET_MAKE=
4234 else
4235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4236 printf "%s\n" "no" >&6; }
4237 SET_MAKE="MAKE=${MAKE-make}"
4238 fi
4239
4240 rm -rf .tst 2>/dev/null
4241 mkdir .tst 2>/dev/null
4242 if test -d .tst; then
4243 am__leading_dot=.
4244 else
4245 am__leading_dot=_
4246 fi
4247 rmdir .tst 2>/dev/null
4248
4249 DEPDIR="${am__leading_dot}deps"
4250
4251 ac_config_commands="$ac_config_commands depfiles"
4252
4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4254 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4255 cat > confinc.mk << 'END'
4256 am__doit:
4257 @echo this is the am__doit target >confinc.out
4258 .PHONY: am__doit
4259 END
4260 am__include="#"
4261 am__quote=
4262 # BSD make does it like this.
4263 echo '.include "confinc.mk" # ignored' > confmf.BSD
4264 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4265 echo 'include confinc.mk # ignored' > confmf.GNU
4266 _am_result=no
4267 for s in GNU BSD; do
4268 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4269 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4270 ac_status=$?
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); }
4273 case $?:`cat confinc.out 2>/dev/null` in #(
4274 '0:this is the am__doit target') :
4275 case $s in #(
4276 BSD) :
4277 am__include='.include' am__quote='"' ;; #(
4278 *) :
4279 am__include='include' am__quote='' ;;
4280 esac ;; #(
4281 *) :
4282 ;;
4283 esac
4284 if test "$am__include" != "#"; then
4285 _am_result="yes ($s style)"
4286 break
4287 fi
4288 done
4289 rm -f confinc.* confmf.*
4290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4291 printf "%s\n" "${_am_result}" >&6; }
4292
4293 # Check whether --enable-dependency-tracking was given.
4294 if test ${enable_dependency_tracking+y}
4295 then :
4296 enableval=$enable_dependency_tracking;
4297 fi
4298
4299 if test "x$enable_dependency_tracking" != xno; then
4300 am_depcomp="$ac_aux_dir/depcomp"
4301 AMDEPBACKSLASH='\'
4302 am__nodep='_no'
4303 fi
4304 if test "x$enable_dependency_tracking" != xno; then
4305 AMDEP_TRUE=
4306 AMDEP_FALSE='#'
4307 else
4308 AMDEP_TRUE='#'
4309 AMDEP_FALSE=
4310 fi
4311
4312
4313 # Check whether --enable-silent-rules was given.
4314 if test ${enable_silent_rules+y}
4315 then :
4316 enableval=$enable_silent_rules;
4317 fi
4318
4319 case $enable_silent_rules in # (((
4320 yes) AM_DEFAULT_VERBOSITY=0;;
4321 no) AM_DEFAULT_VERBOSITY=1;;
4322 *) AM_DEFAULT_VERBOSITY=1;;
4323 esac
4324 am_make=${MAKE-make}
4325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4326 printf %s "checking whether $am_make supports nested variables... " >&6; }
4327 if test ${am_cv_make_support_nested_variables+y}
4328 then :
4329 printf %s "(cached) " >&6
4330 else $as_nop
4331 if printf "%s\n" 'TRUE=$(BAR$(V))
4332 BAR0=false
4333 BAR1=true
4334 V=1
4335 am__doit:
4336 @$(TRUE)
4337 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4338 am_cv_make_support_nested_variables=yes
4339 else
4340 am_cv_make_support_nested_variables=no
4341 fi
4342 fi
4343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4344 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4345 if test $am_cv_make_support_nested_variables = yes; then
4346 AM_V='$(V)'
4347 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4348 else
4349 AM_V=$AM_DEFAULT_VERBOSITY
4350 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4351 fi
4352 AM_BACKSLASH='\'
4353
4354 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4355 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4356 # is not polluted with repeated "-I."
4357 am__isrc=' -I$(srcdir)'
4358 # test to see if srcdir already configured
4359 if test -f $srcdir/config.status; then
4360 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4361 fi
4362 fi
4363
4364 # test whether we have cygpath
4365 if test -z "$CYGPATH_W"; then
4366 if (cygpath --version) >/dev/null 2>/dev/null; then
4367 CYGPATH_W='cygpath -w'
4368 else
4369 CYGPATH_W=echo
4370 fi
4371 fi
4372
4373
4374 # Define the identity of the package.
4375 PACKAGE='xconsole'
4376 VERSION='1.0.8'
4377
4378
4379 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4380
4381
4382 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4383
4384 # Some tools Automake needs.
4385
4386 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4387
4388
4389 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4390
4391
4392 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4393
4394
4395 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4396
4397
4398 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4399
4400 # For better backward compatibility. To be removed once Automake 1.9.x
4401 # dies out for good. For more background, see:
4402 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4403 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4404 mkdir_p='$(MKDIR_P)'
4405
4406 # We need awk for the "check" target (and possibly the TAP driver). The
4407 # system "awk" is bad on some platforms.
4408 # Always define AMTAR for backward compatibility. Yes, it's still used
4409 # in the wild :-( We should find a proper way to deprecate it ...
4410 AMTAR='$${TAR-tar}'
4411
4412
4413 # We'll loop over all known methods to create a tar archive until one works.
4414 _am_tools='gnutar pax cpio none'
4415
4416 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4417
4418
4419
4420
4421
4422 depcc="$CC" am_compiler_list=
4423
4424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4425 printf %s "checking dependency style of $depcc... " >&6; }
4426 if test ${am_cv_CC_dependencies_compiler_type+y}
4427 then :
4428 printf %s "(cached) " >&6
4429 else $as_nop
4430 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4431 # We make a subdir and do the tests there. Otherwise we can end up
4432 # making bogus files that we don't know about and never remove. For
4433 # instance it was reported that on HP-UX the gcc test will end up
4434 # making a dummy file named 'D' -- because '-MD' means "put the output
4435 # in D".
4436 rm -rf conftest.dir
4437 mkdir conftest.dir
4438 # Copy depcomp to subdir because otherwise we won't find it if we're
4439 # using a relative directory.
4440 cp "$am_depcomp" conftest.dir
4441 cd conftest.dir
4442 # We will build objects and dependencies in a subdirectory because
4443 # it helps to detect inapplicable dependency modes. For instance
4444 # both Tru64's cc and ICC support -MD to output dependencies as a
4445 # side effect of compilation, but ICC will put the dependencies in
4446 # the current directory while Tru64 will put them in the object
4447 # directory.
4448 mkdir sub
4449
4450 am_cv_CC_dependencies_compiler_type=none
4451 if test "$am_compiler_list" = ""; then
4452 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4453 fi
4454 am__universal=false
4455 case " $depcc " in #(
4456 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4457 esac
4458
4459 for depmode in $am_compiler_list; do
4460 # Setup a source with many dependencies, because some compilers
4461 # like to wrap large dependency lists on column 80 (with \), and
4462 # we should not choose a depcomp mode which is confused by this.
4463 #
4464 # We need to recreate these files for each test, as the compiler may
4465 # overwrite some of them when testing with obscure command lines.
4466 # This happens at least with the AIX C compiler.
4467 : > sub/conftest.c
4468 for i in 1 2 3 4 5 6; do
4469 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4470 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4471 # Solaris 10 /bin/sh.
4472 echo '/* dummy */' > sub/conftst$i.h
4473 done
4474 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4475
4476 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4477 # mode. It turns out that the SunPro C++ compiler does not properly
4478 # handle '-M -o', and we need to detect this. Also, some Intel
4479 # versions had trouble with output in subdirs.
4480 am__obj=sub/conftest.${OBJEXT-o}
4481 am__minus_obj="-o $am__obj"
4482 case $depmode in
4483 gcc)
4484 # This depmode causes a compiler race in universal mode.
4485 test "$am__universal" = false || continue
4486 ;;
4487 nosideeffect)
4488 # After this tag, mechanisms are not by side-effect, so they'll
4489 # only be used when explicitly requested.
4490 if test "x$enable_dependency_tracking" = xyes; then
4491 continue
4492 else
4493 break
4494 fi
4495 ;;
4496 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4497 # This compiler won't grok '-c -o', but also, the minuso test has
4498 # not run yet. These depmodes are late enough in the game, and
4499 # so weak that their functioning should not be impacted.
4500 am__obj=conftest.${OBJEXT-o}
4501 am__minus_obj=
4502 ;;
4503 none) break ;;
4504 esac
4505 if depmode=$depmode \
4506 source=sub/conftest.c object=$am__obj \
4507 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4508 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4509 >/dev/null 2>conftest.err &&
4510 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4511 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4512 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4513 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4514 # icc doesn't choke on unknown options, it will just issue warnings
4515 # or remarks (even with -Werror). So we grep stderr for any message
4516 # that says an option was ignored or not supported.
4517 # When given -MP, icc 7.0 and 7.1 complain thusly:
4518 # icc: Command line warning: ignoring option '-M'; no argument required
4519 # The diagnosis changed in icc 8.0:
4520 # icc: Command line remark: option '-MP' not supported
4521 if (grep 'ignoring option' conftest.err ||
4522 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4523 am_cv_CC_dependencies_compiler_type=$depmode
4524 break
4525 fi
4526 fi
4527 done
4528
4529 cd ..
4530 rm -rf conftest.dir
4531 else
4532 am_cv_CC_dependencies_compiler_type=none
4533 fi
4534
4535 fi
4536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4537 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4538 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4539
4540 if
4541 test "x$enable_dependency_tracking" != xno \
4542 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4543 am__fastdepCC_TRUE=
4544 am__fastdepCC_FALSE='#'
4545 else
4546 am__fastdepCC_TRUE='#'
4547 am__fastdepCC_FALSE=
4548 fi
4549
4550
4551 # Variables for tags utilities; see am/tags.am
4552 if test -z "$CTAGS"; then
4553 CTAGS=ctags
4554 fi
4555
4556 if test -z "$ETAGS"; then
4557 ETAGS=etags
4558 fi
4559
4560 if test -z "$CSCOPE"; then
4561 CSCOPE=cscope
4562 fi
4563
4564
4565
4566 # POSIX will say in a future version that running "rm -f" with no argument
4567 # is OK; and we want to be able to make that assumption in our Makefile
4568 # recipes. So use an aggressive probe to check that the usage we want is
4569 # actually supported "in the wild" to an acceptable degree.
4570 # See automake bug#10828.
4571 # To make any issue more visible, cause the running configure to be aborted
4572 # by default if the 'rm' program in use doesn't match our expectations; the
4573 # user can still override this though.
4574 if rm -f && rm -fr && rm -rf; then : OK; else
4575 cat >&2 <<'END'
4576 Oops!
4577
4578 Your 'rm' program seems unable to run without file operands specified
4579 on the command line, even when the '-f' option is present. This is contrary
4580 to the behaviour of most rm programs out there, and not conforming with
4581 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4582
4583 Please tell bug-automake@gnu.org about your system, including the value
4584 of your $PATH and any error possibly output before this message. This
4585 can help us improve future automake versions.
4586
4587 END
4588 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4589 echo 'Configuration will proceed anyway, since you have set the' >&2
4590 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4591 echo >&2
4592 else
4593 cat >&2 <<'END'
4594 Aborting the configuration process, to ensure you take notice of the issue.
4595
4596 You can download and install GNU coreutils to get an 'rm' implementation
4597 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4598
4599 If you want to complete the configuration process using your problematic
4600 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4601 to "yes", and re-run configure.
4602
4603 END
4604 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4605 fi
4606 fi
4607
4608
4609 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4623 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4624 if test ${ac_cv_c_undeclared_builtin_options+y}
4625 then :
4626 printf %s "(cached) " >&6
4627 else $as_nop
4628 ac_save_CFLAGS=$CFLAGS
4629 ac_cv_c_undeclared_builtin_options='cannot detect'
4630 for ac_arg in '' -fno-builtin; do
4631 CFLAGS="$ac_save_CFLAGS $ac_arg"
4632 # This test program should *not* compile successfully.
4633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4634 /* end confdefs.h. */
4635
4636 int
4637 main (void)
4638 {
4639 (void) strchr;
4640 ;
4641 return 0;
4642 }
4643 _ACEOF
4644 if ac_fn_c_try_compile "$LINENO"
4645 then :
4646
4647 else $as_nop
4648 # This test program should compile successfully.
4649 # No library function is consistently available on
4650 # freestanding implementations, so test against a dummy
4651 # declaration. Include always-available headers on the
4652 # off chance that they somehow elicit warnings.
4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654 /* end confdefs.h. */
4655 #include <float.h>
4656 #include <limits.h>
4657 #include <stdarg.h>
4658 #include <stddef.h>
4659 extern void ac_decl (int, char *);
4660
4661 int
4662 main (void)
4663 {
4664 (void) ac_decl (0, (char *) 0);
4665 (void) ac_decl;
4666
4667 ;
4668 return 0;
4669 }
4670 _ACEOF
4671 if ac_fn_c_try_compile "$LINENO"
4672 then :
4673 if test x"$ac_arg" = x
4674 then :
4675 ac_cv_c_undeclared_builtin_options='none needed'
4676 else $as_nop
4677 ac_cv_c_undeclared_builtin_options=$ac_arg
4678 fi
4679 break
4680 fi
4681 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4682 fi
4683 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4684 done
4685 CFLAGS=$ac_save_CFLAGS
4686
4687 fi
4688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4689 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4690 case $ac_cv_c_undeclared_builtin_options in #(
4691 'cannot detect') :
4692 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4693 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4694 as_fn_error $? "cannot make $CC report undeclared builtins
4695 See \`config.log' for more details" "$LINENO" 5; } ;; #(
4696 'none needed') :
4697 ac_c_undeclared_builtin_options='' ;; #(
4698 *) :
4699 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4700 esac
4701
4702
4703
4704
4705
4706 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4707 if test "x$ac_cv_have_decl___clang__" = xyes
4708 then :
4709 CLANGCC="yes"
4710 else $as_nop
4711 CLANGCC="no"
4712 fi
4713 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4714 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4715 then :
4716 INTELCC="yes"
4717 else $as_nop
4718 INTELCC="no"
4719 fi
4720 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4721 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4722 then :
4723 SUNCC="yes"
4724 else $as_nop
4725 SUNCC="no"
4726 fi
4727
4728
4729
4730
4731
4732
4733
4734
4735 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4736 if test -n "$ac_tool_prefix"; then
4737 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4738 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4740 printf %s "checking for $ac_word... " >&6; }
4741 if test ${ac_cv_path_PKG_CONFIG+y}
4742 then :
4743 printf %s "(cached) " >&6
4744 else $as_nop
4745 case $PKG_CONFIG in
4746 [\\/]* | ?:[\\/]*)
4747 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4748 ;;
4749 *)
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH
4752 do
4753 IFS=$as_save_IFS
4754 case $as_dir in #(((
4755 '') as_dir=./ ;;
4756 */) ;;
4757 *) as_dir=$as_dir/ ;;
4758 esac
4759 for ac_exec_ext in '' $ac_executable_extensions; do
4760 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4761 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4763 break 2
4764 fi
4765 done
4766 done
4767 IFS=$as_save_IFS
4768
4769 ;;
4770 esac
4771 fi
4772 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4773 if test -n "$PKG_CONFIG"; then
4774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4775 printf "%s\n" "$PKG_CONFIG" >&6; }
4776 else
4777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4778 printf "%s\n" "no" >&6; }
4779 fi
4780
4781
4782 fi
4783 if test -z "$ac_cv_path_PKG_CONFIG"; then
4784 ac_pt_PKG_CONFIG=$PKG_CONFIG
4785 # Extract the first word of "pkg-config", so it can be a program name with args.
4786 set dummy pkg-config; ac_word=$2
4787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4788 printf %s "checking for $ac_word... " >&6; }
4789 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4790 then :
4791 printf %s "(cached) " >&6
4792 else $as_nop
4793 case $ac_pt_PKG_CONFIG in
4794 [\\/]* | ?:[\\/]*)
4795 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4796 ;;
4797 *)
4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799 for as_dir in $PATH
4800 do
4801 IFS=$as_save_IFS
4802 case $as_dir in #(((
4803 '') as_dir=./ ;;
4804 */) ;;
4805 *) as_dir=$as_dir/ ;;
4806 esac
4807 for ac_exec_ext in '' $ac_executable_extensions; do
4808 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4809 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4811 break 2
4812 fi
4813 done
4814 done
4815 IFS=$as_save_IFS
4816
4817 ;;
4818 esac
4819 fi
4820 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4821 if test -n "$ac_pt_PKG_CONFIG"; then
4822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4823 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4824 else
4825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4826 printf "%s\n" "no" >&6; }
4827 fi
4828
4829 if test "x$ac_pt_PKG_CONFIG" = x; then
4830 PKG_CONFIG=""
4831 else
4832 case $cross_compiling:$ac_tool_warned in
4833 yes:)
4834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4835 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4836 ac_tool_warned=yes ;;
4837 esac
4838 PKG_CONFIG=$ac_pt_PKG_CONFIG
4839 fi
4840 else
4841 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4842 fi
4843
4844 fi
4845 if test -n "$PKG_CONFIG"; then
4846 _pkg_min_version=0.9.0
4847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4848 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4849 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4851 printf "%s\n" "yes" >&6; }
4852 else
4853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854 printf "%s\n" "no" >&6; }
4855 PKG_CONFIG=""
4856 fi
4857 fi
4858
4859
4860 # Make sure we can run config.sub.
4861 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4862 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4863
4864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4865 printf %s "checking build system type... " >&6; }
4866 if test ${ac_cv_build+y}
4867 then :
4868 printf %s "(cached) " >&6
4869 else $as_nop
4870 ac_build_alias=$build_alias
4871 test "x$ac_build_alias" = x &&
4872 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4873 test "x$ac_build_alias" = x &&
4874 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4875 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4876 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4877
4878 fi
4879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4880 printf "%s\n" "$ac_cv_build" >&6; }
4881 case $ac_cv_build in
4882 *-*-*) ;;
4883 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4884 esac
4885 build=$ac_cv_build
4886 ac_save_IFS=$IFS; IFS='-'
4887 set x $ac_cv_build
4888 shift
4889 build_cpu=$1
4890 build_vendor=$2
4891 shift; shift
4892 # Remember, the first character of IFS is used to create $*,
4893 # except with old shells:
4894 build_os=$*
4895 IFS=$ac_save_IFS
4896 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4897
4898
4899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4900 printf %s "checking host system type... " >&6; }
4901 if test ${ac_cv_host+y}
4902 then :
4903 printf %s "(cached) " >&6
4904 else $as_nop
4905 if test "x$host_alias" = x; then
4906 ac_cv_host=$ac_cv_build
4907 else
4908 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4909 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4910 fi
4911
4912 fi
4913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4914 printf "%s\n" "$ac_cv_host" >&6; }
4915 case $ac_cv_host in
4916 *-*-*) ;;
4917 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4918 esac
4919 host=$ac_cv_host
4920 ac_save_IFS=$IFS; IFS='-'
4921 set x $ac_cv_host
4922 shift
4923 host_cpu=$1
4924 host_vendor=$2
4925 shift; shift
4926 # Remember, the first character of IFS is used to create $*,
4927 # except with old shells:
4928 host_os=$*
4929 IFS=$ac_save_IFS
4930 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4931
4932
4933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4934 printf %s "checking for a sed that does not truncate output... " >&6; }
4935 if test ${ac_cv_path_SED+y}
4936 then :
4937 printf %s "(cached) " >&6
4938 else $as_nop
4939 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4940 for ac_i in 1 2 3 4 5 6 7; do
4941 ac_script="$ac_script$as_nl$ac_script"
4942 done
4943 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4944 { ac_script=; unset ac_script;}
4945 if test -z "$SED"; then
4946 ac_path_SED_found=false
4947 # Loop through the user's path and test for each of PROGNAME-LIST
4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 for as_dir in $PATH
4950 do
4951 IFS=$as_save_IFS
4952 case $as_dir in #(((
4953 '') as_dir=./ ;;
4954 */) ;;
4955 *) as_dir=$as_dir/ ;;
4956 esac
4957 for ac_prog in sed gsed
4958 do
4959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4961 as_fn_executable_p "$ac_path_SED" || continue
4962 # Check for GNU ac_path_SED and select it if it is found.
4963 # Check for GNU $ac_path_SED
4964 case `"$ac_path_SED" --version 2>&1` in
4965 *GNU*)
4966 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4967 *)
4968 ac_count=0
4969 printf %s 0123456789 >"conftest.in"
4970 while :
4971 do
4972 cat "conftest.in" "conftest.in" >"conftest.tmp"
4973 mv "conftest.tmp" "conftest.in"
4974 cp "conftest.in" "conftest.nl"
4975 printf "%s\n" '' >> "conftest.nl"
4976 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4977 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4978 as_fn_arith $ac_count + 1 && ac_count=$as_val
4979 if test $ac_count -gt ${ac_path_SED_max-0}; then
4980 # Best one so far, save it but keep looking for a better one
4981 ac_cv_path_SED="$ac_path_SED"
4982 ac_path_SED_max=$ac_count
4983 fi
4984 # 10*(2^10) chars as input seems more than enough
4985 test $ac_count -gt 10 && break
4986 done
4987 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4988 esac
4989
4990 $ac_path_SED_found && break 3
4991 done
4992 done
4993 done
4994 IFS=$as_save_IFS
4995 if test -z "$ac_cv_path_SED"; then
4996 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4997 fi
4998 else
4999 ac_cv_path_SED=$SED
5000 fi
5001
5002 fi
5003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5004 printf "%s\n" "$ac_cv_path_SED" >&6; }
5005 SED="$ac_cv_path_SED"
5006 rm -f conftest.sed
5007
5008
5009
5010
5011
5012
5013 # Check whether --enable-selective-werror was given.
5014 if test ${enable_selective_werror+y}
5015 then :
5016 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5017 else $as_nop
5018 SELECTIVE_WERROR=yes
5019 fi
5020
5021
5022
5023
5024
5025 # -v is too short to test reliably with XORG_TESTSET_CFLAG
5026 if test "x$SUNCC" = "xyes"; then
5027 BASE_CFLAGS="-v"
5028 else
5029 BASE_CFLAGS=""
5030 fi
5031
5032 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046 xorg_testset_save_CFLAGS="$CFLAGS"
5047
5048 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5051 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5052 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5053 then :
5054 printf %s "(cached) " >&6
5055 else $as_nop
5056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057 /* end confdefs.h. */
5058 int i;
5059 _ACEOF
5060 if ac_fn_c_try_compile "$LINENO"
5061 then :
5062 xorg_cv_cc_flag_unknown_warning_option=yes
5063 else $as_nop
5064 xorg_cv_cc_flag_unknown_warning_option=no
5065 fi
5066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5067 fi
5068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5069 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5070 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5071 CFLAGS="$xorg_testset_save_CFLAGS"
5072 fi
5073
5074 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5077 fi
5078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5080 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5081 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5082 then :
5083 printf %s "(cached) " >&6
5084 else $as_nop
5085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086 /* end confdefs.h. */
5087 int i;
5088 _ACEOF
5089 if ac_fn_c_try_compile "$LINENO"
5090 then :
5091 xorg_cv_cc_flag_unused_command_line_argument=yes
5092 else $as_nop
5093 xorg_cv_cc_flag_unused_command_line_argument=no
5094 fi
5095 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5096 fi
5097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5098 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5099 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5100 CFLAGS="$xorg_testset_save_CFLAGS"
5101 fi
5102
5103 found="no"
5104
5105 if test $found = "no" ; then
5106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5108 fi
5109
5110 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5112 fi
5113
5114 CFLAGS="$CFLAGS -Wall"
5115
5116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5117 printf %s "checking if $CC supports -Wall... " >&6; }
5118 cacheid=xorg_cv_cc_flag__Wall
5119 if eval test \${$cacheid+y}
5120 then :
5121 printf %s "(cached) " >&6
5122 else $as_nop
5123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5124 /* end confdefs.h. */
5125 int i;
5126 int
5127 main (void)
5128 {
5129
5130 ;
5131 return 0;
5132 }
5133 _ACEOF
5134 if ac_fn_c_try_link "$LINENO"
5135 then :
5136 eval $cacheid=yes
5137 else $as_nop
5138 eval $cacheid=no
5139 fi
5140 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5141 conftest$ac_exeext conftest.$ac_ext
5142 fi
5143
5144
5145 CFLAGS="$xorg_testset_save_CFLAGS"
5146
5147 eval supported=\$$cacheid
5148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5149 printf "%s\n" "$supported" >&6; }
5150 if test "$supported" = "yes" ; then
5151 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5152 found="yes"
5153 fi
5154 fi
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170 xorg_testset_save_CFLAGS="$CFLAGS"
5171
5172 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5173 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5175 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5176 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5177 then :
5178 printf %s "(cached) " >&6
5179 else $as_nop
5180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181 /* end confdefs.h. */
5182 int i;
5183 _ACEOF
5184 if ac_fn_c_try_compile "$LINENO"
5185 then :
5186 xorg_cv_cc_flag_unknown_warning_option=yes
5187 else $as_nop
5188 xorg_cv_cc_flag_unknown_warning_option=no
5189 fi
5190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5191 fi
5192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5193 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5194 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5195 CFLAGS="$xorg_testset_save_CFLAGS"
5196 fi
5197
5198 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5201 fi
5202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5204 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5205 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5206 then :
5207 printf %s "(cached) " >&6
5208 else $as_nop
5209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5210 /* end confdefs.h. */
5211 int i;
5212 _ACEOF
5213 if ac_fn_c_try_compile "$LINENO"
5214 then :
5215 xorg_cv_cc_flag_unused_command_line_argument=yes
5216 else $as_nop
5217 xorg_cv_cc_flag_unused_command_line_argument=no
5218 fi
5219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5220 fi
5221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5222 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5223 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5224 CFLAGS="$xorg_testset_save_CFLAGS"
5225 fi
5226
5227 found="no"
5228
5229 if test $found = "no" ; then
5230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5232 fi
5233
5234 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5236 fi
5237
5238 CFLAGS="$CFLAGS -Wpointer-arith"
5239
5240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5241 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5242 cacheid=xorg_cv_cc_flag__Wpointer_arith
5243 if eval test \${$cacheid+y}
5244 then :
5245 printf %s "(cached) " >&6
5246 else $as_nop
5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248 /* end confdefs.h. */
5249 int i;
5250 int
5251 main (void)
5252 {
5253
5254 ;
5255 return 0;
5256 }
5257 _ACEOF
5258 if ac_fn_c_try_link "$LINENO"
5259 then :
5260 eval $cacheid=yes
5261 else $as_nop
5262 eval $cacheid=no
5263 fi
5264 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5265 conftest$ac_exeext conftest.$ac_ext
5266 fi
5267
5268
5269 CFLAGS="$xorg_testset_save_CFLAGS"
5270
5271 eval supported=\$$cacheid
5272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5273 printf "%s\n" "$supported" >&6; }
5274 if test "$supported" = "yes" ; then
5275 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5276 found="yes"
5277 fi
5278 fi
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294 xorg_testset_save_CFLAGS="$CFLAGS"
5295
5296 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5297 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5299 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5300 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5301 then :
5302 printf %s "(cached) " >&6
5303 else $as_nop
5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5306 int i;
5307 _ACEOF
5308 if ac_fn_c_try_compile "$LINENO"
5309 then :
5310 xorg_cv_cc_flag_unknown_warning_option=yes
5311 else $as_nop
5312 xorg_cv_cc_flag_unknown_warning_option=no
5313 fi
5314 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5315 fi
5316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5317 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5318 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5319 CFLAGS="$xorg_testset_save_CFLAGS"
5320 fi
5321
5322 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5325 fi
5326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5328 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5329 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5330 then :
5331 printf %s "(cached) " >&6
5332 else $as_nop
5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334 /* end confdefs.h. */
5335 int i;
5336 _ACEOF
5337 if ac_fn_c_try_compile "$LINENO"
5338 then :
5339 xorg_cv_cc_flag_unused_command_line_argument=yes
5340 else $as_nop
5341 xorg_cv_cc_flag_unused_command_line_argument=no
5342 fi
5343 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5344 fi
5345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5346 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5348 CFLAGS="$xorg_testset_save_CFLAGS"
5349 fi
5350
5351 found="no"
5352
5353 if test $found = "no" ; then
5354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5356 fi
5357
5358 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5360 fi
5361
5362 CFLAGS="$CFLAGS -Wmissing-declarations"
5363
5364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5365 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5366 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5367 if eval test \${$cacheid+y}
5368 then :
5369 printf %s "(cached) " >&6
5370 else $as_nop
5371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372 /* end confdefs.h. */
5373 int i;
5374 int
5375 main (void)
5376 {
5377
5378 ;
5379 return 0;
5380 }
5381 _ACEOF
5382 if ac_fn_c_try_link "$LINENO"
5383 then :
5384 eval $cacheid=yes
5385 else $as_nop
5386 eval $cacheid=no
5387 fi
5388 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5389 conftest$ac_exeext conftest.$ac_ext
5390 fi
5391
5392
5393 CFLAGS="$xorg_testset_save_CFLAGS"
5394
5395 eval supported=\$$cacheid
5396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5397 printf "%s\n" "$supported" >&6; }
5398 if test "$supported" = "yes" ; then
5399 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5400 found="yes"
5401 fi
5402 fi
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418 xorg_testset_save_CFLAGS="$CFLAGS"
5419
5420 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5421 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5423 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5424 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5425 then :
5426 printf %s "(cached) " >&6
5427 else $as_nop
5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h. */
5430 int i;
5431 _ACEOF
5432 if ac_fn_c_try_compile "$LINENO"
5433 then :
5434 xorg_cv_cc_flag_unknown_warning_option=yes
5435 else $as_nop
5436 xorg_cv_cc_flag_unknown_warning_option=no
5437 fi
5438 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5439 fi
5440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5441 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5442 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5443 CFLAGS="$xorg_testset_save_CFLAGS"
5444 fi
5445
5446 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5448 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5449 fi
5450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5452 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5453 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5454 then :
5455 printf %s "(cached) " >&6
5456 else $as_nop
5457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458 /* end confdefs.h. */
5459 int i;
5460 _ACEOF
5461 if ac_fn_c_try_compile "$LINENO"
5462 then :
5463 xorg_cv_cc_flag_unused_command_line_argument=yes
5464 else $as_nop
5465 xorg_cv_cc_flag_unused_command_line_argument=no
5466 fi
5467 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5468 fi
5469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5470 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5471 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5472 CFLAGS="$xorg_testset_save_CFLAGS"
5473 fi
5474
5475 found="no"
5476
5477 if test $found = "no" ; then
5478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5479 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5480 fi
5481
5482 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5484 fi
5485
5486 CFLAGS="$CFLAGS -Wformat=2"
5487
5488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5489 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5490 cacheid=xorg_cv_cc_flag__Wformat_2
5491 if eval test \${$cacheid+y}
5492 then :
5493 printf %s "(cached) " >&6
5494 else $as_nop
5495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5496 /* end confdefs.h. */
5497 int i;
5498 int
5499 main (void)
5500 {
5501
5502 ;
5503 return 0;
5504 }
5505 _ACEOF
5506 if ac_fn_c_try_link "$LINENO"
5507 then :
5508 eval $cacheid=yes
5509 else $as_nop
5510 eval $cacheid=no
5511 fi
5512 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5513 conftest$ac_exeext conftest.$ac_ext
5514 fi
5515
5516
5517 CFLAGS="$xorg_testset_save_CFLAGS"
5518
5519 eval supported=\$$cacheid
5520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5521 printf "%s\n" "$supported" >&6; }
5522 if test "$supported" = "yes" ; then
5523 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5524 found="yes"
5525 fi
5526 fi
5527
5528 if test $found = "no" ; then
5529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5531 fi
5532
5533 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5535 fi
5536
5537 CFLAGS="$CFLAGS -Wformat"
5538
5539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5540 printf %s "checking if $CC supports -Wformat... " >&6; }
5541 cacheid=xorg_cv_cc_flag__Wformat
5542 if eval test \${$cacheid+y}
5543 then :
5544 printf %s "(cached) " >&6
5545 else $as_nop
5546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5547 /* end confdefs.h. */
5548 int i;
5549 int
5550 main (void)
5551 {
5552
5553 ;
5554 return 0;
5555 }
5556 _ACEOF
5557 if ac_fn_c_try_link "$LINENO"
5558 then :
5559 eval $cacheid=yes
5560 else $as_nop
5561 eval $cacheid=no
5562 fi
5563 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5564 conftest$ac_exeext conftest.$ac_ext
5565 fi
5566
5567
5568 CFLAGS="$xorg_testset_save_CFLAGS"
5569
5570 eval supported=\$$cacheid
5571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5572 printf "%s\n" "$supported" >&6; }
5573 if test "$supported" = "yes" ; then
5574 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5575 found="yes"
5576 fi
5577 fi
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595 xorg_testset_save_CFLAGS="$CFLAGS"
5596
5597 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5600 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5601 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5602 then :
5603 printf %s "(cached) " >&6
5604 else $as_nop
5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606 /* end confdefs.h. */
5607 int i;
5608 _ACEOF
5609 if ac_fn_c_try_compile "$LINENO"
5610 then :
5611 xorg_cv_cc_flag_unknown_warning_option=yes
5612 else $as_nop
5613 xorg_cv_cc_flag_unknown_warning_option=no
5614 fi
5615 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5616 fi
5617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5618 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5619 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5620 CFLAGS="$xorg_testset_save_CFLAGS"
5621 fi
5622
5623 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5625 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5626 fi
5627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5629 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5630 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5631 then :
5632 printf %s "(cached) " >&6
5633 else $as_nop
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h. */
5636 int i;
5637 _ACEOF
5638 if ac_fn_c_try_compile "$LINENO"
5639 then :
5640 xorg_cv_cc_flag_unused_command_line_argument=yes
5641 else $as_nop
5642 xorg_cv_cc_flag_unused_command_line_argument=no
5643 fi
5644 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5645 fi
5646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5647 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5648 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5649 CFLAGS="$xorg_testset_save_CFLAGS"
5650 fi
5651
5652 found="no"
5653
5654 if test $found = "no" ; then
5655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5656 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5657 fi
5658
5659 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5661 fi
5662
5663 CFLAGS="$CFLAGS -Wstrict-prototypes"
5664
5665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5666 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5667 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5668 if eval test \${$cacheid+y}
5669 then :
5670 printf %s "(cached) " >&6
5671 else $as_nop
5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673 /* end confdefs.h. */
5674 int i;
5675 int
5676 main (void)
5677 {
5678
5679 ;
5680 return 0;
5681 }
5682 _ACEOF
5683 if ac_fn_c_try_link "$LINENO"
5684 then :
5685 eval $cacheid=yes
5686 else $as_nop
5687 eval $cacheid=no
5688 fi
5689 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5690 conftest$ac_exeext conftest.$ac_ext
5691 fi
5692
5693
5694 CFLAGS="$xorg_testset_save_CFLAGS"
5695
5696 eval supported=\$$cacheid
5697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5698 printf "%s\n" "$supported" >&6; }
5699 if test "$supported" = "yes" ; then
5700 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5701 found="yes"
5702 fi
5703 fi
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719 xorg_testset_save_CFLAGS="$CFLAGS"
5720
5721 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5724 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5725 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5726 then :
5727 printf %s "(cached) " >&6
5728 else $as_nop
5729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730 /* end confdefs.h. */
5731 int i;
5732 _ACEOF
5733 if ac_fn_c_try_compile "$LINENO"
5734 then :
5735 xorg_cv_cc_flag_unknown_warning_option=yes
5736 else $as_nop
5737 xorg_cv_cc_flag_unknown_warning_option=no
5738 fi
5739 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5740 fi
5741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5742 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5743 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5744 CFLAGS="$xorg_testset_save_CFLAGS"
5745 fi
5746
5747 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5749 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5750 fi
5751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5753 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5754 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5755 then :
5756 printf %s "(cached) " >&6
5757 else $as_nop
5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5760 int i;
5761 _ACEOF
5762 if ac_fn_c_try_compile "$LINENO"
5763 then :
5764 xorg_cv_cc_flag_unused_command_line_argument=yes
5765 else $as_nop
5766 xorg_cv_cc_flag_unused_command_line_argument=no
5767 fi
5768 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5769 fi
5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5771 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5772 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5773 CFLAGS="$xorg_testset_save_CFLAGS"
5774 fi
5775
5776 found="no"
5777
5778 if test $found = "no" ; then
5779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5781 fi
5782
5783 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5785 fi
5786
5787 CFLAGS="$CFLAGS -Wmissing-prototypes"
5788
5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5790 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5791 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5792 if eval test \${$cacheid+y}
5793 then :
5794 printf %s "(cached) " >&6
5795 else $as_nop
5796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5797 /* end confdefs.h. */
5798 int i;
5799 int
5800 main (void)
5801 {
5802
5803 ;
5804 return 0;
5805 }
5806 _ACEOF
5807 if ac_fn_c_try_link "$LINENO"
5808 then :
5809 eval $cacheid=yes
5810 else $as_nop
5811 eval $cacheid=no
5812 fi
5813 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5814 conftest$ac_exeext conftest.$ac_ext
5815 fi
5816
5817
5818 CFLAGS="$xorg_testset_save_CFLAGS"
5819
5820 eval supported=\$$cacheid
5821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5822 printf "%s\n" "$supported" >&6; }
5823 if test "$supported" = "yes" ; then
5824 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5825 found="yes"
5826 fi
5827 fi
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843 xorg_testset_save_CFLAGS="$CFLAGS"
5844
5845 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5848 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5849 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5850 then :
5851 printf %s "(cached) " >&6
5852 else $as_nop
5853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854 /* end confdefs.h. */
5855 int i;
5856 _ACEOF
5857 if ac_fn_c_try_compile "$LINENO"
5858 then :
5859 xorg_cv_cc_flag_unknown_warning_option=yes
5860 else $as_nop
5861 xorg_cv_cc_flag_unknown_warning_option=no
5862 fi
5863 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5864 fi
5865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5866 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5867 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5868 CFLAGS="$xorg_testset_save_CFLAGS"
5869 fi
5870
5871 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5873 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5874 fi
5875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5877 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5878 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5879 then :
5880 printf %s "(cached) " >&6
5881 else $as_nop
5882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883 /* end confdefs.h. */
5884 int i;
5885 _ACEOF
5886 if ac_fn_c_try_compile "$LINENO"
5887 then :
5888 xorg_cv_cc_flag_unused_command_line_argument=yes
5889 else $as_nop
5890 xorg_cv_cc_flag_unused_command_line_argument=no
5891 fi
5892 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5893 fi
5894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5895 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5896 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5897 CFLAGS="$xorg_testset_save_CFLAGS"
5898 fi
5899
5900 found="no"
5901
5902 if test $found = "no" ; then
5903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5905 fi
5906
5907 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5909 fi
5910
5911 CFLAGS="$CFLAGS -Wnested-externs"
5912
5913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5914 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5915 cacheid=xorg_cv_cc_flag__Wnested_externs
5916 if eval test \${$cacheid+y}
5917 then :
5918 printf %s "(cached) " >&6
5919 else $as_nop
5920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5921 /* end confdefs.h. */
5922 int i;
5923 int
5924 main (void)
5925 {
5926
5927 ;
5928 return 0;
5929 }
5930 _ACEOF
5931 if ac_fn_c_try_link "$LINENO"
5932 then :
5933 eval $cacheid=yes
5934 else $as_nop
5935 eval $cacheid=no
5936 fi
5937 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5938 conftest$ac_exeext conftest.$ac_ext
5939 fi
5940
5941
5942 CFLAGS="$xorg_testset_save_CFLAGS"
5943
5944 eval supported=\$$cacheid
5945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5946 printf "%s\n" "$supported" >&6; }
5947 if test "$supported" = "yes" ; then
5948 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5949 found="yes"
5950 fi
5951 fi
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967 xorg_testset_save_CFLAGS="$CFLAGS"
5968
5969 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5972 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5973 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5974 then :
5975 printf %s "(cached) " >&6
5976 else $as_nop
5977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5978 /* end confdefs.h. */
5979 int i;
5980 _ACEOF
5981 if ac_fn_c_try_compile "$LINENO"
5982 then :
5983 xorg_cv_cc_flag_unknown_warning_option=yes
5984 else $as_nop
5985 xorg_cv_cc_flag_unknown_warning_option=no
5986 fi
5987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5988 fi
5989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5990 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5991 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5992 CFLAGS="$xorg_testset_save_CFLAGS"
5993 fi
5994
5995 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5998 fi
5999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6001 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6002 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6003 then :
6004 printf %s "(cached) " >&6
6005 else $as_nop
6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007 /* end confdefs.h. */
6008 int i;
6009 _ACEOF
6010 if ac_fn_c_try_compile "$LINENO"
6011 then :
6012 xorg_cv_cc_flag_unused_command_line_argument=yes
6013 else $as_nop
6014 xorg_cv_cc_flag_unused_command_line_argument=no
6015 fi
6016 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6017 fi
6018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6019 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6020 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6021 CFLAGS="$xorg_testset_save_CFLAGS"
6022 fi
6023
6024 found="no"
6025
6026 if test $found = "no" ; then
6027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6029 fi
6030
6031 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6033 fi
6034
6035 CFLAGS="$CFLAGS -Wbad-function-cast"
6036
6037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6038 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6039 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6040 if eval test \${$cacheid+y}
6041 then :
6042 printf %s "(cached) " >&6
6043 else $as_nop
6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h. */
6046 int i;
6047 int
6048 main (void)
6049 {
6050
6051 ;
6052 return 0;
6053 }
6054 _ACEOF
6055 if ac_fn_c_try_link "$LINENO"
6056 then :
6057 eval $cacheid=yes
6058 else $as_nop
6059 eval $cacheid=no
6060 fi
6061 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6062 conftest$ac_exeext conftest.$ac_ext
6063 fi
6064
6065
6066 CFLAGS="$xorg_testset_save_CFLAGS"
6067
6068 eval supported=\$$cacheid
6069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6070 printf "%s\n" "$supported" >&6; }
6071 if test "$supported" = "yes" ; then
6072 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6073 found="yes"
6074 fi
6075 fi
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091 xorg_testset_save_CFLAGS="$CFLAGS"
6092
6093 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6094 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6096 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6097 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6098 then :
6099 printf %s "(cached) " >&6
6100 else $as_nop
6101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6102 /* end confdefs.h. */
6103 int i;
6104 _ACEOF
6105 if ac_fn_c_try_compile "$LINENO"
6106 then :
6107 xorg_cv_cc_flag_unknown_warning_option=yes
6108 else $as_nop
6109 xorg_cv_cc_flag_unknown_warning_option=no
6110 fi
6111 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6112 fi
6113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6114 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6115 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6116 CFLAGS="$xorg_testset_save_CFLAGS"
6117 fi
6118
6119 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6122 fi
6123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6125 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6126 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6127 then :
6128 printf %s "(cached) " >&6
6129 else $as_nop
6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h. */
6132 int i;
6133 _ACEOF
6134 if ac_fn_c_try_compile "$LINENO"
6135 then :
6136 xorg_cv_cc_flag_unused_command_line_argument=yes
6137 else $as_nop
6138 xorg_cv_cc_flag_unused_command_line_argument=no
6139 fi
6140 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6141 fi
6142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6143 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6144 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6145 CFLAGS="$xorg_testset_save_CFLAGS"
6146 fi
6147
6148 found="no"
6149
6150 if test $found = "no" ; then
6151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6153 fi
6154
6155 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6157 fi
6158
6159 CFLAGS="$CFLAGS -Wold-style-definition"
6160
6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6162 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6163 cacheid=xorg_cv_cc_flag__Wold_style_definition
6164 if eval test \${$cacheid+y}
6165 then :
6166 printf %s "(cached) " >&6
6167 else $as_nop
6168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6169 /* end confdefs.h. */
6170 int i;
6171 int
6172 main (void)
6173 {
6174
6175 ;
6176 return 0;
6177 }
6178 _ACEOF
6179 if ac_fn_c_try_link "$LINENO"
6180 then :
6181 eval $cacheid=yes
6182 else $as_nop
6183 eval $cacheid=no
6184 fi
6185 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6186 conftest$ac_exeext conftest.$ac_ext
6187 fi
6188
6189
6190 CFLAGS="$xorg_testset_save_CFLAGS"
6191
6192 eval supported=\$$cacheid
6193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6194 printf "%s\n" "$supported" >&6; }
6195 if test "$supported" = "yes" ; then
6196 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6197 found="yes"
6198 fi
6199 fi
6200
6201 if test $found = "no" ; then
6202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6204 fi
6205
6206 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6208 fi
6209
6210 CFLAGS="$CFLAGS -fd"
6211
6212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6213 printf %s "checking if $CC supports -fd... " >&6; }
6214 cacheid=xorg_cv_cc_flag__fd
6215 if eval test \${$cacheid+y}
6216 then :
6217 printf %s "(cached) " >&6
6218 else $as_nop
6219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6220 /* end confdefs.h. */
6221 int i;
6222 int
6223 main (void)
6224 {
6225
6226 ;
6227 return 0;
6228 }
6229 _ACEOF
6230 if ac_fn_c_try_link "$LINENO"
6231 then :
6232 eval $cacheid=yes
6233 else $as_nop
6234 eval $cacheid=no
6235 fi
6236 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6237 conftest$ac_exeext conftest.$ac_ext
6238 fi
6239
6240
6241 CFLAGS="$xorg_testset_save_CFLAGS"
6242
6243 eval supported=\$$cacheid
6244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6245 printf "%s\n" "$supported" >&6; }
6246 if test "$supported" = "yes" ; then
6247 BASE_CFLAGS="$BASE_CFLAGS -fd"
6248 found="yes"
6249 fi
6250 fi
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266 xorg_testset_save_CFLAGS="$CFLAGS"
6267
6268 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6269 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6271 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6272 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6273 then :
6274 printf %s "(cached) " >&6
6275 else $as_nop
6276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6277 /* end confdefs.h. */
6278 int i;
6279 _ACEOF
6280 if ac_fn_c_try_compile "$LINENO"
6281 then :
6282 xorg_cv_cc_flag_unknown_warning_option=yes
6283 else $as_nop
6284 xorg_cv_cc_flag_unknown_warning_option=no
6285 fi
6286 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6287 fi
6288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6289 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6290 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6291 CFLAGS="$xorg_testset_save_CFLAGS"
6292 fi
6293
6294 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6297 fi
6298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6300 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6301 if test ${xorg_cv_cc_flag_unused_command_line_argument+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_unused_command_line_argument=yes
6312 else $as_nop
6313 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
6318 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6319 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6320 CFLAGS="$xorg_testset_save_CFLAGS"
6321 fi
6322
6323 found="no"
6324
6325 if test $found = "no" ; then
6326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6328 fi
6329
6330 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6332 fi
6333
6334 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6335
6336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6337 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6338 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6339 if eval test \${$cacheid+y}
6340 then :
6341 printf %s "(cached) " >&6
6342 else $as_nop
6343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6344 /* end confdefs.h. */
6345 int i;
6346 int
6347 main (void)
6348 {
6349
6350 ;
6351 return 0;
6352 }
6353 _ACEOF
6354 if ac_fn_c_try_link "$LINENO"
6355 then :
6356 eval $cacheid=yes
6357 else $as_nop
6358 eval $cacheid=no
6359 fi
6360 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6361 conftest$ac_exeext conftest.$ac_ext
6362 fi
6363
6364
6365 CFLAGS="$xorg_testset_save_CFLAGS"
6366
6367 eval supported=\$$cacheid
6368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6369 printf "%s\n" "$supported" >&6; }
6370 if test "$supported" = "yes" ; then
6371 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6372 found="yes"
6373 fi
6374 fi
6375
6376
6377
6378
6379
6380 # This chunk adds additional warnings that could catch undesired effects.
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394 xorg_testset_save_CFLAGS="$CFLAGS"
6395
6396 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6399 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6400 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6401 then :
6402 printf %s "(cached) " >&6
6403 else $as_nop
6404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6405 /* end confdefs.h. */
6406 int i;
6407 _ACEOF
6408 if ac_fn_c_try_compile "$LINENO"
6409 then :
6410 xorg_cv_cc_flag_unknown_warning_option=yes
6411 else $as_nop
6412 xorg_cv_cc_flag_unknown_warning_option=no
6413 fi
6414 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6415 fi
6416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6417 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6418 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6419 CFLAGS="$xorg_testset_save_CFLAGS"
6420 fi
6421
6422 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6425 fi
6426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6428 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6429 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6430 then :
6431 printf %s "(cached) " >&6
6432 else $as_nop
6433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6434 /* end confdefs.h. */
6435 int i;
6436 _ACEOF
6437 if ac_fn_c_try_compile "$LINENO"
6438 then :
6439 xorg_cv_cc_flag_unused_command_line_argument=yes
6440 else $as_nop
6441 xorg_cv_cc_flag_unused_command_line_argument=no
6442 fi
6443 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6444 fi
6445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6446 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6447 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6448 CFLAGS="$xorg_testset_save_CFLAGS"
6449 fi
6450
6451 found="no"
6452
6453 if test $found = "no" ; then
6454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6456 fi
6457
6458 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6460 fi
6461
6462 CFLAGS="$CFLAGS -Wunused"
6463
6464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6465 printf %s "checking if $CC supports -Wunused... " >&6; }
6466 cacheid=xorg_cv_cc_flag__Wunused
6467 if eval test \${$cacheid+y}
6468 then :
6469 printf %s "(cached) " >&6
6470 else $as_nop
6471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6472 /* end confdefs.h. */
6473 int i;
6474 int
6475 main (void)
6476 {
6477
6478 ;
6479 return 0;
6480 }
6481 _ACEOF
6482 if ac_fn_c_try_link "$LINENO"
6483 then :
6484 eval $cacheid=yes
6485 else $as_nop
6486 eval $cacheid=no
6487 fi
6488 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6489 conftest$ac_exeext conftest.$ac_ext
6490 fi
6491
6492
6493 CFLAGS="$xorg_testset_save_CFLAGS"
6494
6495 eval supported=\$$cacheid
6496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6497 printf "%s\n" "$supported" >&6; }
6498 if test "$supported" = "yes" ; then
6499 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6500 found="yes"
6501 fi
6502 fi
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518 xorg_testset_save_CFLAGS="$CFLAGS"
6519
6520 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6521 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6523 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6524 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6525 then :
6526 printf %s "(cached) " >&6
6527 else $as_nop
6528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6529 /* end confdefs.h. */
6530 int i;
6531 _ACEOF
6532 if ac_fn_c_try_compile "$LINENO"
6533 then :
6534 xorg_cv_cc_flag_unknown_warning_option=yes
6535 else $as_nop
6536 xorg_cv_cc_flag_unknown_warning_option=no
6537 fi
6538 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6539 fi
6540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6541 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6542 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6543 CFLAGS="$xorg_testset_save_CFLAGS"
6544 fi
6545
6546 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6549 fi
6550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6552 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6553 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6554 then :
6555 printf %s "(cached) " >&6
6556 else $as_nop
6557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6558 /* end confdefs.h. */
6559 int i;
6560 _ACEOF
6561 if ac_fn_c_try_compile "$LINENO"
6562 then :
6563 xorg_cv_cc_flag_unused_command_line_argument=yes
6564 else $as_nop
6565 xorg_cv_cc_flag_unused_command_line_argument=no
6566 fi
6567 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6568 fi
6569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6570 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6571 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6572 CFLAGS="$xorg_testset_save_CFLAGS"
6573 fi
6574
6575 found="no"
6576
6577 if test $found = "no" ; then
6578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6580 fi
6581
6582 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6584 fi
6585
6586 CFLAGS="$CFLAGS -Wuninitialized"
6587
6588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6589 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6590 cacheid=xorg_cv_cc_flag__Wuninitialized
6591 if eval test \${$cacheid+y}
6592 then :
6593 printf %s "(cached) " >&6
6594 else $as_nop
6595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6596 /* end confdefs.h. */
6597 int i;
6598 int
6599 main (void)
6600 {
6601
6602 ;
6603 return 0;
6604 }
6605 _ACEOF
6606 if ac_fn_c_try_link "$LINENO"
6607 then :
6608 eval $cacheid=yes
6609 else $as_nop
6610 eval $cacheid=no
6611 fi
6612 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6613 conftest$ac_exeext conftest.$ac_ext
6614 fi
6615
6616
6617 CFLAGS="$xorg_testset_save_CFLAGS"
6618
6619 eval supported=\$$cacheid
6620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6621 printf "%s\n" "$supported" >&6; }
6622 if test "$supported" = "yes" ; then
6623 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6624 found="yes"
6625 fi
6626 fi
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642 xorg_testset_save_CFLAGS="$CFLAGS"
6643
6644 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6645 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6647 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6648 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6649 then :
6650 printf %s "(cached) " >&6
6651 else $as_nop
6652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6653 /* end confdefs.h. */
6654 int i;
6655 _ACEOF
6656 if ac_fn_c_try_compile "$LINENO"
6657 then :
6658 xorg_cv_cc_flag_unknown_warning_option=yes
6659 else $as_nop
6660 xorg_cv_cc_flag_unknown_warning_option=no
6661 fi
6662 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6663 fi
6664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6665 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6666 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6667 CFLAGS="$xorg_testset_save_CFLAGS"
6668 fi
6669
6670 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6673 fi
6674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6676 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6677 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6678 then :
6679 printf %s "(cached) " >&6
6680 else $as_nop
6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682 /* end confdefs.h. */
6683 int i;
6684 _ACEOF
6685 if ac_fn_c_try_compile "$LINENO"
6686 then :
6687 xorg_cv_cc_flag_unused_command_line_argument=yes
6688 else $as_nop
6689 xorg_cv_cc_flag_unused_command_line_argument=no
6690 fi
6691 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6692 fi
6693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6694 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6695 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6696 CFLAGS="$xorg_testset_save_CFLAGS"
6697 fi
6698
6699 found="no"
6700
6701 if test $found = "no" ; then
6702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6704 fi
6705
6706 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6708 fi
6709
6710 CFLAGS="$CFLAGS -Wshadow"
6711
6712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6713 printf %s "checking if $CC supports -Wshadow... " >&6; }
6714 cacheid=xorg_cv_cc_flag__Wshadow
6715 if eval test \${$cacheid+y}
6716 then :
6717 printf %s "(cached) " >&6
6718 else $as_nop
6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720 /* end confdefs.h. */
6721 int i;
6722 int
6723 main (void)
6724 {
6725
6726 ;
6727 return 0;
6728 }
6729 _ACEOF
6730 if ac_fn_c_try_link "$LINENO"
6731 then :
6732 eval $cacheid=yes
6733 else $as_nop
6734 eval $cacheid=no
6735 fi
6736 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6737 conftest$ac_exeext conftest.$ac_ext
6738 fi
6739
6740
6741 CFLAGS="$xorg_testset_save_CFLAGS"
6742
6743 eval supported=\$$cacheid
6744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6745 printf "%s\n" "$supported" >&6; }
6746 if test "$supported" = "yes" ; then
6747 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6748 found="yes"
6749 fi
6750 fi
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766 xorg_testset_save_CFLAGS="$CFLAGS"
6767
6768 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6771 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6772 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6773 then :
6774 printf %s "(cached) " >&6
6775 else $as_nop
6776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6777 /* end confdefs.h. */
6778 int i;
6779 _ACEOF
6780 if ac_fn_c_try_compile "$LINENO"
6781 then :
6782 xorg_cv_cc_flag_unknown_warning_option=yes
6783 else $as_nop
6784 xorg_cv_cc_flag_unknown_warning_option=no
6785 fi
6786 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6787 fi
6788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6789 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6790 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6791 CFLAGS="$xorg_testset_save_CFLAGS"
6792 fi
6793
6794 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6797 fi
6798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6800 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6801 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6802 then :
6803 printf %s "(cached) " >&6
6804 else $as_nop
6805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6806 /* end confdefs.h. */
6807 int i;
6808 _ACEOF
6809 if ac_fn_c_try_compile "$LINENO"
6810 then :
6811 xorg_cv_cc_flag_unused_command_line_argument=yes
6812 else $as_nop
6813 xorg_cv_cc_flag_unused_command_line_argument=no
6814 fi
6815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6816 fi
6817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6818 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6819 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6820 CFLAGS="$xorg_testset_save_CFLAGS"
6821 fi
6822
6823 found="no"
6824
6825 if test $found = "no" ; then
6826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6828 fi
6829
6830 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6832 fi
6833
6834 CFLAGS="$CFLAGS -Wmissing-noreturn"
6835
6836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6837 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6838 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6839 if eval test \${$cacheid+y}
6840 then :
6841 printf %s "(cached) " >&6
6842 else $as_nop
6843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844 /* end confdefs.h. */
6845 int i;
6846 int
6847 main (void)
6848 {
6849
6850 ;
6851 return 0;
6852 }
6853 _ACEOF
6854 if ac_fn_c_try_link "$LINENO"
6855 then :
6856 eval $cacheid=yes
6857 else $as_nop
6858 eval $cacheid=no
6859 fi
6860 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6861 conftest$ac_exeext conftest.$ac_ext
6862 fi
6863
6864
6865 CFLAGS="$xorg_testset_save_CFLAGS"
6866
6867 eval supported=\$$cacheid
6868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6869 printf "%s\n" "$supported" >&6; }
6870 if test "$supported" = "yes" ; then
6871 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6872 found="yes"
6873 fi
6874 fi
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890 xorg_testset_save_CFLAGS="$CFLAGS"
6891
6892 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6893 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6895 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6896 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6897 then :
6898 printf %s "(cached) " >&6
6899 else $as_nop
6900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901 /* end confdefs.h. */
6902 int i;
6903 _ACEOF
6904 if ac_fn_c_try_compile "$LINENO"
6905 then :
6906 xorg_cv_cc_flag_unknown_warning_option=yes
6907 else $as_nop
6908 xorg_cv_cc_flag_unknown_warning_option=no
6909 fi
6910 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6911 fi
6912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6913 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6914 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6915 CFLAGS="$xorg_testset_save_CFLAGS"
6916 fi
6917
6918 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6921 fi
6922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6924 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6925 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6926 then :
6927 printf %s "(cached) " >&6
6928 else $as_nop
6929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930 /* end confdefs.h. */
6931 int i;
6932 _ACEOF
6933 if ac_fn_c_try_compile "$LINENO"
6934 then :
6935 xorg_cv_cc_flag_unused_command_line_argument=yes
6936 else $as_nop
6937 xorg_cv_cc_flag_unused_command_line_argument=no
6938 fi
6939 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6940 fi
6941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6942 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6943 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6944 CFLAGS="$xorg_testset_save_CFLAGS"
6945 fi
6946
6947 found="no"
6948
6949 if test $found = "no" ; then
6950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6951 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6952 fi
6953
6954 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6956 fi
6957
6958 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6959
6960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6961 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6962 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6963 if eval test \${$cacheid+y}
6964 then :
6965 printf %s "(cached) " >&6
6966 else $as_nop
6967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968 /* end confdefs.h. */
6969 int i;
6970 int
6971 main (void)
6972 {
6973
6974 ;
6975 return 0;
6976 }
6977 _ACEOF
6978 if ac_fn_c_try_link "$LINENO"
6979 then :
6980 eval $cacheid=yes
6981 else $as_nop
6982 eval $cacheid=no
6983 fi
6984 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6985 conftest$ac_exeext conftest.$ac_ext
6986 fi
6987
6988
6989 CFLAGS="$xorg_testset_save_CFLAGS"
6990
6991 eval supported=\$$cacheid
6992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6993 printf "%s\n" "$supported" >&6; }
6994 if test "$supported" = "yes" ; then
6995 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6996 found="yes"
6997 fi
6998 fi
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014 xorg_testset_save_CFLAGS="$CFLAGS"
7015
7016 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7019 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7020 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7021 then :
7022 printf %s "(cached) " >&6
7023 else $as_nop
7024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7025 /* end confdefs.h. */
7026 int i;
7027 _ACEOF
7028 if ac_fn_c_try_compile "$LINENO"
7029 then :
7030 xorg_cv_cc_flag_unknown_warning_option=yes
7031 else $as_nop
7032 xorg_cv_cc_flag_unknown_warning_option=no
7033 fi
7034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7035 fi
7036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7037 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7038 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7039 CFLAGS="$xorg_testset_save_CFLAGS"
7040 fi
7041
7042 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7045 fi
7046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7048 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7049 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7050 then :
7051 printf %s "(cached) " >&6
7052 else $as_nop
7053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054 /* end confdefs.h. */
7055 int i;
7056 _ACEOF
7057 if ac_fn_c_try_compile "$LINENO"
7058 then :
7059 xorg_cv_cc_flag_unused_command_line_argument=yes
7060 else $as_nop
7061 xorg_cv_cc_flag_unused_command_line_argument=no
7062 fi
7063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7064 fi
7065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7066 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7067 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7068 CFLAGS="$xorg_testset_save_CFLAGS"
7069 fi
7070
7071 found="no"
7072
7073 if test $found = "no" ; then
7074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7076 fi
7077
7078 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7080 fi
7081
7082 CFLAGS="$CFLAGS -Wredundant-decls"
7083
7084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7085 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7086 cacheid=xorg_cv_cc_flag__Wredundant_decls
7087 if eval test \${$cacheid+y}
7088 then :
7089 printf %s "(cached) " >&6
7090 else $as_nop
7091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7092 /* end confdefs.h. */
7093 int i;
7094 int
7095 main (void)
7096 {
7097
7098 ;
7099 return 0;
7100 }
7101 _ACEOF
7102 if ac_fn_c_try_link "$LINENO"
7103 then :
7104 eval $cacheid=yes
7105 else $as_nop
7106 eval $cacheid=no
7107 fi
7108 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7109 conftest$ac_exeext conftest.$ac_ext
7110 fi
7111
7112
7113 CFLAGS="$xorg_testset_save_CFLAGS"
7114
7115 eval supported=\$$cacheid
7116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7117 printf "%s\n" "$supported" >&6; }
7118 if test "$supported" = "yes" ; then
7119 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7120 found="yes"
7121 fi
7122 fi
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138 xorg_testset_save_CFLAGS="$CFLAGS"
7139
7140 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7143 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7144 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7145 then :
7146 printf %s "(cached) " >&6
7147 else $as_nop
7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149 /* end confdefs.h. */
7150 int i;
7151 _ACEOF
7152 if ac_fn_c_try_compile "$LINENO"
7153 then :
7154 xorg_cv_cc_flag_unknown_warning_option=yes
7155 else $as_nop
7156 xorg_cv_cc_flag_unknown_warning_option=no
7157 fi
7158 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7159 fi
7160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7161 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7162 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7163 CFLAGS="$xorg_testset_save_CFLAGS"
7164 fi
7165
7166 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7169 fi
7170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7172 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7173 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7174 then :
7175 printf %s "(cached) " >&6
7176 else $as_nop
7177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178 /* end confdefs.h. */
7179 int i;
7180 _ACEOF
7181 if ac_fn_c_try_compile "$LINENO"
7182 then :
7183 xorg_cv_cc_flag_unused_command_line_argument=yes
7184 else $as_nop
7185 xorg_cv_cc_flag_unused_command_line_argument=no
7186 fi
7187 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7188 fi
7189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7190 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7191 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7192 CFLAGS="$xorg_testset_save_CFLAGS"
7193 fi
7194
7195 found="no"
7196
7197 if test $found = "no" ; then
7198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7200 fi
7201
7202 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7204 fi
7205
7206 CFLAGS="$CFLAGS -Wlogical-op"
7207
7208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7209 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7210 cacheid=xorg_cv_cc_flag__Wlogical_op
7211 if eval test \${$cacheid+y}
7212 then :
7213 printf %s "(cached) " >&6
7214 else $as_nop
7215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7216 /* end confdefs.h. */
7217 int i;
7218 int
7219 main (void)
7220 {
7221
7222 ;
7223 return 0;
7224 }
7225 _ACEOF
7226 if ac_fn_c_try_link "$LINENO"
7227 then :
7228 eval $cacheid=yes
7229 else $as_nop
7230 eval $cacheid=no
7231 fi
7232 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7233 conftest$ac_exeext conftest.$ac_ext
7234 fi
7235
7236
7237 CFLAGS="$xorg_testset_save_CFLAGS"
7238
7239 eval supported=\$$cacheid
7240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7241 printf "%s\n" "$supported" >&6; }
7242 if test "$supported" = "yes" ; then
7243 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7244 found="yes"
7245 fi
7246 fi
7247
7248
7249
7250 # These are currently disabled because they are noisy. They will be enabled
7251 # in the future once the codebase is sufficiently modernized to silence
7252 # them. For now, I don't want them to drown out the other warnings.
7253 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7254 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7255 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7256
7257 # Turn some warnings into errors, so we don't accidently get successful builds
7258 # when there are problems that should be fixed.
7259
7260 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274 xorg_testset_save_CFLAGS="$CFLAGS"
7275
7276 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7277 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7279 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7280 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7281 then :
7282 printf %s "(cached) " >&6
7283 else $as_nop
7284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285 /* end confdefs.h. */
7286 int i;
7287 _ACEOF
7288 if ac_fn_c_try_compile "$LINENO"
7289 then :
7290 xorg_cv_cc_flag_unknown_warning_option=yes
7291 else $as_nop
7292 xorg_cv_cc_flag_unknown_warning_option=no
7293 fi
7294 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7295 fi
7296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7297 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7298 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7299 CFLAGS="$xorg_testset_save_CFLAGS"
7300 fi
7301
7302 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7305 fi
7306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7308 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7309 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7310 then :
7311 printf %s "(cached) " >&6
7312 else $as_nop
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7315 int i;
7316 _ACEOF
7317 if ac_fn_c_try_compile "$LINENO"
7318 then :
7319 xorg_cv_cc_flag_unused_command_line_argument=yes
7320 else $as_nop
7321 xorg_cv_cc_flag_unused_command_line_argument=no
7322 fi
7323 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7324 fi
7325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7326 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7327 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7328 CFLAGS="$xorg_testset_save_CFLAGS"
7329 fi
7330
7331 found="no"
7332
7333 if test $found = "no" ; then
7334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7336 fi
7337
7338 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7340 fi
7341
7342 CFLAGS="$CFLAGS -Werror=implicit"
7343
7344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7345 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7346 cacheid=xorg_cv_cc_flag__Werror_implicit
7347 if eval test \${$cacheid+y}
7348 then :
7349 printf %s "(cached) " >&6
7350 else $as_nop
7351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7352 /* end confdefs.h. */
7353 int i;
7354 int
7355 main (void)
7356 {
7357
7358 ;
7359 return 0;
7360 }
7361 _ACEOF
7362 if ac_fn_c_try_link "$LINENO"
7363 then :
7364 eval $cacheid=yes
7365 else $as_nop
7366 eval $cacheid=no
7367 fi
7368 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7369 conftest$ac_exeext conftest.$ac_ext
7370 fi
7371
7372
7373 CFLAGS="$xorg_testset_save_CFLAGS"
7374
7375 eval supported=\$$cacheid
7376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7377 printf "%s\n" "$supported" >&6; }
7378 if test "$supported" = "yes" ; then
7379 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7380 found="yes"
7381 fi
7382 fi
7383
7384 if test $found = "no" ; then
7385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7386 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7387 fi
7388
7389 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7391 fi
7392
7393 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7394
7395 { 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
7396 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7397 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7398 if eval test \${$cacheid+y}
7399 then :
7400 printf %s "(cached) " >&6
7401 else $as_nop
7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7403 /* end confdefs.h. */
7404 int i;
7405 int
7406 main (void)
7407 {
7408
7409 ;
7410 return 0;
7411 }
7412 _ACEOF
7413 if ac_fn_c_try_link "$LINENO"
7414 then :
7415 eval $cacheid=yes
7416 else $as_nop
7417 eval $cacheid=no
7418 fi
7419 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7420 conftest$ac_exeext conftest.$ac_ext
7421 fi
7422
7423
7424 CFLAGS="$xorg_testset_save_CFLAGS"
7425
7426 eval supported=\$$cacheid
7427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7428 printf "%s\n" "$supported" >&6; }
7429 if test "$supported" = "yes" ; then
7430 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7431 found="yes"
7432 fi
7433 fi
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449 xorg_testset_save_CFLAGS="$CFLAGS"
7450
7451 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7452 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7454 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7455 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7456 then :
7457 printf %s "(cached) " >&6
7458 else $as_nop
7459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460 /* end confdefs.h. */
7461 int i;
7462 _ACEOF
7463 if ac_fn_c_try_compile "$LINENO"
7464 then :
7465 xorg_cv_cc_flag_unknown_warning_option=yes
7466 else $as_nop
7467 xorg_cv_cc_flag_unknown_warning_option=no
7468 fi
7469 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7470 fi
7471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7472 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7473 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7474 CFLAGS="$xorg_testset_save_CFLAGS"
7475 fi
7476
7477 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7479 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7480 fi
7481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7483 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7484 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7485 then :
7486 printf %s "(cached) " >&6
7487 else $as_nop
7488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489 /* end confdefs.h. */
7490 int i;
7491 _ACEOF
7492 if ac_fn_c_try_compile "$LINENO"
7493 then :
7494 xorg_cv_cc_flag_unused_command_line_argument=yes
7495 else $as_nop
7496 xorg_cv_cc_flag_unused_command_line_argument=no
7497 fi
7498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7499 fi
7500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7501 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7502 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7503 CFLAGS="$xorg_testset_save_CFLAGS"
7504 fi
7505
7506 found="no"
7507
7508 if test $found = "no" ; then
7509 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7510 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7511 fi
7512
7513 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7515 fi
7516
7517 CFLAGS="$CFLAGS -Werror=nonnull"
7518
7519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7520 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7521 cacheid=xorg_cv_cc_flag__Werror_nonnull
7522 if eval test \${$cacheid+y}
7523 then :
7524 printf %s "(cached) " >&6
7525 else $as_nop
7526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527 /* end confdefs.h. */
7528 int i;
7529 int
7530 main (void)
7531 {
7532
7533 ;
7534 return 0;
7535 }
7536 _ACEOF
7537 if ac_fn_c_try_link "$LINENO"
7538 then :
7539 eval $cacheid=yes
7540 else $as_nop
7541 eval $cacheid=no
7542 fi
7543 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7544 conftest$ac_exeext conftest.$ac_ext
7545 fi
7546
7547
7548 CFLAGS="$xorg_testset_save_CFLAGS"
7549
7550 eval supported=\$$cacheid
7551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7552 printf "%s\n" "$supported" >&6; }
7553 if test "$supported" = "yes" ; then
7554 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7555 found="yes"
7556 fi
7557 fi
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573 xorg_testset_save_CFLAGS="$CFLAGS"
7574
7575 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7576 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7578 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7579 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7580 then :
7581 printf %s "(cached) " >&6
7582 else $as_nop
7583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584 /* end confdefs.h. */
7585 int i;
7586 _ACEOF
7587 if ac_fn_c_try_compile "$LINENO"
7588 then :
7589 xorg_cv_cc_flag_unknown_warning_option=yes
7590 else $as_nop
7591 xorg_cv_cc_flag_unknown_warning_option=no
7592 fi
7593 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7594 fi
7595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7596 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7597 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7598 CFLAGS="$xorg_testset_save_CFLAGS"
7599 fi
7600
7601 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7603 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7604 fi
7605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7607 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7608 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7609 then :
7610 printf %s "(cached) " >&6
7611 else $as_nop
7612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7613 /* end confdefs.h. */
7614 int i;
7615 _ACEOF
7616 if ac_fn_c_try_compile "$LINENO"
7617 then :
7618 xorg_cv_cc_flag_unused_command_line_argument=yes
7619 else $as_nop
7620 xorg_cv_cc_flag_unused_command_line_argument=no
7621 fi
7622 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7623 fi
7624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7625 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7626 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7627 CFLAGS="$xorg_testset_save_CFLAGS"
7628 fi
7629
7630 found="no"
7631
7632 if test $found = "no" ; then
7633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7635 fi
7636
7637 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7639 fi
7640
7641 CFLAGS="$CFLAGS -Werror=init-self"
7642
7643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7644 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7645 cacheid=xorg_cv_cc_flag__Werror_init_self
7646 if eval test \${$cacheid+y}
7647 then :
7648 printf %s "(cached) " >&6
7649 else $as_nop
7650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7651 /* end confdefs.h. */
7652 int i;
7653 int
7654 main (void)
7655 {
7656
7657 ;
7658 return 0;
7659 }
7660 _ACEOF
7661 if ac_fn_c_try_link "$LINENO"
7662 then :
7663 eval $cacheid=yes
7664 else $as_nop
7665 eval $cacheid=no
7666 fi
7667 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7668 conftest$ac_exeext conftest.$ac_ext
7669 fi
7670
7671
7672 CFLAGS="$xorg_testset_save_CFLAGS"
7673
7674 eval supported=\$$cacheid
7675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7676 printf "%s\n" "$supported" >&6; }
7677 if test "$supported" = "yes" ; then
7678 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7679 found="yes"
7680 fi
7681 fi
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697 xorg_testset_save_CFLAGS="$CFLAGS"
7698
7699 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7702 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7703 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7704 then :
7705 printf %s "(cached) " >&6
7706 else $as_nop
7707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7708 /* end confdefs.h. */
7709 int i;
7710 _ACEOF
7711 if ac_fn_c_try_compile "$LINENO"
7712 then :
7713 xorg_cv_cc_flag_unknown_warning_option=yes
7714 else $as_nop
7715 xorg_cv_cc_flag_unknown_warning_option=no
7716 fi
7717 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7718 fi
7719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7720 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7722 CFLAGS="$xorg_testset_save_CFLAGS"
7723 fi
7724
7725 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7728 fi
7729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7731 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7732 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7733 then :
7734 printf %s "(cached) " >&6
7735 else $as_nop
7736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737 /* end confdefs.h. */
7738 int i;
7739 _ACEOF
7740 if ac_fn_c_try_compile "$LINENO"
7741 then :
7742 xorg_cv_cc_flag_unused_command_line_argument=yes
7743 else $as_nop
7744 xorg_cv_cc_flag_unused_command_line_argument=no
7745 fi
7746 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7747 fi
7748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7749 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7750 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7751 CFLAGS="$xorg_testset_save_CFLAGS"
7752 fi
7753
7754 found="no"
7755
7756 if test $found = "no" ; then
7757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7758 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7759 fi
7760
7761 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7763 fi
7764
7765 CFLAGS="$CFLAGS -Werror=main"
7766
7767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7768 printf %s "checking if $CC supports -Werror=main... " >&6; }
7769 cacheid=xorg_cv_cc_flag__Werror_main
7770 if eval test \${$cacheid+y}
7771 then :
7772 printf %s "(cached) " >&6
7773 else $as_nop
7774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775 /* end confdefs.h. */
7776 int i;
7777 int
7778 main (void)
7779 {
7780
7781 ;
7782 return 0;
7783 }
7784 _ACEOF
7785 if ac_fn_c_try_link "$LINENO"
7786 then :
7787 eval $cacheid=yes
7788 else $as_nop
7789 eval $cacheid=no
7790 fi
7791 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7792 conftest$ac_exeext conftest.$ac_ext
7793 fi
7794
7795
7796 CFLAGS="$xorg_testset_save_CFLAGS"
7797
7798 eval supported=\$$cacheid
7799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7800 printf "%s\n" "$supported" >&6; }
7801 if test "$supported" = "yes" ; then
7802 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7803 found="yes"
7804 fi
7805 fi
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821 xorg_testset_save_CFLAGS="$CFLAGS"
7822
7823 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7826 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7827 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7828 then :
7829 printf %s "(cached) " >&6
7830 else $as_nop
7831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832 /* end confdefs.h. */
7833 int i;
7834 _ACEOF
7835 if ac_fn_c_try_compile "$LINENO"
7836 then :
7837 xorg_cv_cc_flag_unknown_warning_option=yes
7838 else $as_nop
7839 xorg_cv_cc_flag_unknown_warning_option=no
7840 fi
7841 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7842 fi
7843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7844 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7845 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7846 CFLAGS="$xorg_testset_save_CFLAGS"
7847 fi
7848
7849 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7852 fi
7853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7855 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7856 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7857 then :
7858 printf %s "(cached) " >&6
7859 else $as_nop
7860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861 /* end confdefs.h. */
7862 int i;
7863 _ACEOF
7864 if ac_fn_c_try_compile "$LINENO"
7865 then :
7866 xorg_cv_cc_flag_unused_command_line_argument=yes
7867 else $as_nop
7868 xorg_cv_cc_flag_unused_command_line_argument=no
7869 fi
7870 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7871 fi
7872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7873 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7874 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7875 CFLAGS="$xorg_testset_save_CFLAGS"
7876 fi
7877
7878 found="no"
7879
7880 if test $found = "no" ; then
7881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7882 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7883 fi
7884
7885 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7887 fi
7888
7889 CFLAGS="$CFLAGS -Werror=missing-braces"
7890
7891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7892 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7893 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7894 if eval test \${$cacheid+y}
7895 then :
7896 printf %s "(cached) " >&6
7897 else $as_nop
7898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899 /* end confdefs.h. */
7900 int i;
7901 int
7902 main (void)
7903 {
7904
7905 ;
7906 return 0;
7907 }
7908 _ACEOF
7909 if ac_fn_c_try_link "$LINENO"
7910 then :
7911 eval $cacheid=yes
7912 else $as_nop
7913 eval $cacheid=no
7914 fi
7915 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7916 conftest$ac_exeext conftest.$ac_ext
7917 fi
7918
7919
7920 CFLAGS="$xorg_testset_save_CFLAGS"
7921
7922 eval supported=\$$cacheid
7923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7924 printf "%s\n" "$supported" >&6; }
7925 if test "$supported" = "yes" ; then
7926 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7927 found="yes"
7928 fi
7929 fi
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945 xorg_testset_save_CFLAGS="$CFLAGS"
7946
7947 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7950 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7951 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7952 then :
7953 printf %s "(cached) " >&6
7954 else $as_nop
7955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956 /* end confdefs.h. */
7957 int i;
7958 _ACEOF
7959 if ac_fn_c_try_compile "$LINENO"
7960 then :
7961 xorg_cv_cc_flag_unknown_warning_option=yes
7962 else $as_nop
7963 xorg_cv_cc_flag_unknown_warning_option=no
7964 fi
7965 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7966 fi
7967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7968 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7969 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7970 CFLAGS="$xorg_testset_save_CFLAGS"
7971 fi
7972
7973 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7976 fi
7977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7979 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7980 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7981 then :
7982 printf %s "(cached) " >&6
7983 else $as_nop
7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h. */
7986 int i;
7987 _ACEOF
7988 if ac_fn_c_try_compile "$LINENO"
7989 then :
7990 xorg_cv_cc_flag_unused_command_line_argument=yes
7991 else $as_nop
7992 xorg_cv_cc_flag_unused_command_line_argument=no
7993 fi
7994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7995 fi
7996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7997 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7998 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7999 CFLAGS="$xorg_testset_save_CFLAGS"
8000 fi
8001
8002 found="no"
8003
8004 if test $found = "no" ; then
8005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8007 fi
8008
8009 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8011 fi
8012
8013 CFLAGS="$CFLAGS -Werror=sequence-point"
8014
8015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8016 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8017 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8018 if eval test \${$cacheid+y}
8019 then :
8020 printf %s "(cached) " >&6
8021 else $as_nop
8022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8023 /* end confdefs.h. */
8024 int i;
8025 int
8026 main (void)
8027 {
8028
8029 ;
8030 return 0;
8031 }
8032 _ACEOF
8033 if ac_fn_c_try_link "$LINENO"
8034 then :
8035 eval $cacheid=yes
8036 else $as_nop
8037 eval $cacheid=no
8038 fi
8039 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8040 conftest$ac_exeext conftest.$ac_ext
8041 fi
8042
8043
8044 CFLAGS="$xorg_testset_save_CFLAGS"
8045
8046 eval supported=\$$cacheid
8047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8048 printf "%s\n" "$supported" >&6; }
8049 if test "$supported" = "yes" ; then
8050 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8051 found="yes"
8052 fi
8053 fi
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069 xorg_testset_save_CFLAGS="$CFLAGS"
8070
8071 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8074 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8075 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8076 then :
8077 printf %s "(cached) " >&6
8078 else $as_nop
8079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8080 /* end confdefs.h. */
8081 int i;
8082 _ACEOF
8083 if ac_fn_c_try_compile "$LINENO"
8084 then :
8085 xorg_cv_cc_flag_unknown_warning_option=yes
8086 else $as_nop
8087 xorg_cv_cc_flag_unknown_warning_option=no
8088 fi
8089 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8090 fi
8091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8092 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8093 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8094 CFLAGS="$xorg_testset_save_CFLAGS"
8095 fi
8096
8097 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8100 fi
8101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8103 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8104 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8105 then :
8106 printf %s "(cached) " >&6
8107 else $as_nop
8108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8109 /* end confdefs.h. */
8110 int i;
8111 _ACEOF
8112 if ac_fn_c_try_compile "$LINENO"
8113 then :
8114 xorg_cv_cc_flag_unused_command_line_argument=yes
8115 else $as_nop
8116 xorg_cv_cc_flag_unused_command_line_argument=no
8117 fi
8118 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8119 fi
8120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8121 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8122 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8123 CFLAGS="$xorg_testset_save_CFLAGS"
8124 fi
8125
8126 found="no"
8127
8128 if test $found = "no" ; then
8129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8131 fi
8132
8133 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8135 fi
8136
8137 CFLAGS="$CFLAGS -Werror=return-type"
8138
8139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8140 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8141 cacheid=xorg_cv_cc_flag__Werror_return_type
8142 if eval test \${$cacheid+y}
8143 then :
8144 printf %s "(cached) " >&6
8145 else $as_nop
8146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8147 /* end confdefs.h. */
8148 int i;
8149 int
8150 main (void)
8151 {
8152
8153 ;
8154 return 0;
8155 }
8156 _ACEOF
8157 if ac_fn_c_try_link "$LINENO"
8158 then :
8159 eval $cacheid=yes
8160 else $as_nop
8161 eval $cacheid=no
8162 fi
8163 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8164 conftest$ac_exeext conftest.$ac_ext
8165 fi
8166
8167
8168 CFLAGS="$xorg_testset_save_CFLAGS"
8169
8170 eval supported=\$$cacheid
8171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8172 printf "%s\n" "$supported" >&6; }
8173 if test "$supported" = "yes" ; then
8174 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8175 found="yes"
8176 fi
8177 fi
8178
8179 if test $found = "no" ; then
8180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8181 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8182 fi
8183
8184 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8186 fi
8187
8188 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8189
8190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8191 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8192 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8193 if eval test \${$cacheid+y}
8194 then :
8195 printf %s "(cached) " >&6
8196 else $as_nop
8197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8198 /* end confdefs.h. */
8199 int i;
8200 int
8201 main (void)
8202 {
8203
8204 ;
8205 return 0;
8206 }
8207 _ACEOF
8208 if ac_fn_c_try_link "$LINENO"
8209 then :
8210 eval $cacheid=yes
8211 else $as_nop
8212 eval $cacheid=no
8213 fi
8214 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8215 conftest$ac_exeext conftest.$ac_ext
8216 fi
8217
8218
8219 CFLAGS="$xorg_testset_save_CFLAGS"
8220
8221 eval supported=\$$cacheid
8222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8223 printf "%s\n" "$supported" >&6; }
8224 if test "$supported" = "yes" ; then
8225 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8226 found="yes"
8227 fi
8228 fi
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244 xorg_testset_save_CFLAGS="$CFLAGS"
8245
8246 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8249 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8250 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8251 then :
8252 printf %s "(cached) " >&6
8253 else $as_nop
8254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8255 /* end confdefs.h. */
8256 int i;
8257 _ACEOF
8258 if ac_fn_c_try_compile "$LINENO"
8259 then :
8260 xorg_cv_cc_flag_unknown_warning_option=yes
8261 else $as_nop
8262 xorg_cv_cc_flag_unknown_warning_option=no
8263 fi
8264 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8265 fi
8266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8267 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8268 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8269 CFLAGS="$xorg_testset_save_CFLAGS"
8270 fi
8271
8272 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8273 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8274 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8275 fi
8276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8278 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8279 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8280 then :
8281 printf %s "(cached) " >&6
8282 else $as_nop
8283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8284 /* end confdefs.h. */
8285 int i;
8286 _ACEOF
8287 if ac_fn_c_try_compile "$LINENO"
8288 then :
8289 xorg_cv_cc_flag_unused_command_line_argument=yes
8290 else $as_nop
8291 xorg_cv_cc_flag_unused_command_line_argument=no
8292 fi
8293 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8294 fi
8295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8296 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8297 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8298 CFLAGS="$xorg_testset_save_CFLAGS"
8299 fi
8300
8301 found="no"
8302
8303 if test $found = "no" ; then
8304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8306 fi
8307
8308 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8310 fi
8311
8312 CFLAGS="$CFLAGS -Werror=trigraphs"
8313
8314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8315 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8316 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8317 if eval test \${$cacheid+y}
8318 then :
8319 printf %s "(cached) " >&6
8320 else $as_nop
8321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322 /* end confdefs.h. */
8323 int i;
8324 int
8325 main (void)
8326 {
8327
8328 ;
8329 return 0;
8330 }
8331 _ACEOF
8332 if ac_fn_c_try_link "$LINENO"
8333 then :
8334 eval $cacheid=yes
8335 else $as_nop
8336 eval $cacheid=no
8337 fi
8338 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8339 conftest$ac_exeext conftest.$ac_ext
8340 fi
8341
8342
8343 CFLAGS="$xorg_testset_save_CFLAGS"
8344
8345 eval supported=\$$cacheid
8346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8347 printf "%s\n" "$supported" >&6; }
8348 if test "$supported" = "yes" ; then
8349 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8350 found="yes"
8351 fi
8352 fi
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368 xorg_testset_save_CFLAGS="$CFLAGS"
8369
8370 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8373 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8374 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8375 then :
8376 printf %s "(cached) " >&6
8377 else $as_nop
8378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8379 /* end confdefs.h. */
8380 int i;
8381 _ACEOF
8382 if ac_fn_c_try_compile "$LINENO"
8383 then :
8384 xorg_cv_cc_flag_unknown_warning_option=yes
8385 else $as_nop
8386 xorg_cv_cc_flag_unknown_warning_option=no
8387 fi
8388 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8389 fi
8390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8391 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8392 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8393 CFLAGS="$xorg_testset_save_CFLAGS"
8394 fi
8395
8396 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8399 fi
8400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8402 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8403 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8404 then :
8405 printf %s "(cached) " >&6
8406 else $as_nop
8407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8408 /* end confdefs.h. */
8409 int i;
8410 _ACEOF
8411 if ac_fn_c_try_compile "$LINENO"
8412 then :
8413 xorg_cv_cc_flag_unused_command_line_argument=yes
8414 else $as_nop
8415 xorg_cv_cc_flag_unused_command_line_argument=no
8416 fi
8417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8418 fi
8419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8420 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8421 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8422 CFLAGS="$xorg_testset_save_CFLAGS"
8423 fi
8424
8425 found="no"
8426
8427 if test $found = "no" ; then
8428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8430 fi
8431
8432 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8434 fi
8435
8436 CFLAGS="$CFLAGS -Werror=array-bounds"
8437
8438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8439 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8440 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8441 if eval test \${$cacheid+y}
8442 then :
8443 printf %s "(cached) " >&6
8444 else $as_nop
8445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8446 /* end confdefs.h. */
8447 int i;
8448 int
8449 main (void)
8450 {
8451
8452 ;
8453 return 0;
8454 }
8455 _ACEOF
8456 if ac_fn_c_try_link "$LINENO"
8457 then :
8458 eval $cacheid=yes
8459 else $as_nop
8460 eval $cacheid=no
8461 fi
8462 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8463 conftest$ac_exeext conftest.$ac_ext
8464 fi
8465
8466
8467 CFLAGS="$xorg_testset_save_CFLAGS"
8468
8469 eval supported=\$$cacheid
8470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8471 printf "%s\n" "$supported" >&6; }
8472 if test "$supported" = "yes" ; then
8473 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8474 found="yes"
8475 fi
8476 fi
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492 xorg_testset_save_CFLAGS="$CFLAGS"
8493
8494 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8495 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8497 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8498 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8499 then :
8500 printf %s "(cached) " >&6
8501 else $as_nop
8502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8503 /* end confdefs.h. */
8504 int i;
8505 _ACEOF
8506 if ac_fn_c_try_compile "$LINENO"
8507 then :
8508 xorg_cv_cc_flag_unknown_warning_option=yes
8509 else $as_nop
8510 xorg_cv_cc_flag_unknown_warning_option=no
8511 fi
8512 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8513 fi
8514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8515 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8516 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8517 CFLAGS="$xorg_testset_save_CFLAGS"
8518 fi
8519
8520 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8522 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8523 fi
8524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8526 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8527 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8528 then :
8529 printf %s "(cached) " >&6
8530 else $as_nop
8531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8532 /* end confdefs.h. */
8533 int i;
8534 _ACEOF
8535 if ac_fn_c_try_compile "$LINENO"
8536 then :
8537 xorg_cv_cc_flag_unused_command_line_argument=yes
8538 else $as_nop
8539 xorg_cv_cc_flag_unused_command_line_argument=no
8540 fi
8541 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8542 fi
8543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8544 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8545 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8546 CFLAGS="$xorg_testset_save_CFLAGS"
8547 fi
8548
8549 found="no"
8550
8551 if test $found = "no" ; then
8552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8554 fi
8555
8556 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8558 fi
8559
8560 CFLAGS="$CFLAGS -Werror=write-strings"
8561
8562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8563 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8564 cacheid=xorg_cv_cc_flag__Werror_write_strings
8565 if eval test \${$cacheid+y}
8566 then :
8567 printf %s "(cached) " >&6
8568 else $as_nop
8569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8570 /* end confdefs.h. */
8571 int i;
8572 int
8573 main (void)
8574 {
8575
8576 ;
8577 return 0;
8578 }
8579 _ACEOF
8580 if ac_fn_c_try_link "$LINENO"
8581 then :
8582 eval $cacheid=yes
8583 else $as_nop
8584 eval $cacheid=no
8585 fi
8586 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8587 conftest$ac_exeext conftest.$ac_ext
8588 fi
8589
8590
8591 CFLAGS="$xorg_testset_save_CFLAGS"
8592
8593 eval supported=\$$cacheid
8594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8595 printf "%s\n" "$supported" >&6; }
8596 if test "$supported" = "yes" ; then
8597 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8598 found="yes"
8599 fi
8600 fi
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616 xorg_testset_save_CFLAGS="$CFLAGS"
8617
8618 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8621 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8622 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8623 then :
8624 printf %s "(cached) " >&6
8625 else $as_nop
8626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8627 /* end confdefs.h. */
8628 int i;
8629 _ACEOF
8630 if ac_fn_c_try_compile "$LINENO"
8631 then :
8632 xorg_cv_cc_flag_unknown_warning_option=yes
8633 else $as_nop
8634 xorg_cv_cc_flag_unknown_warning_option=no
8635 fi
8636 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8637 fi
8638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8639 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8640 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8641 CFLAGS="$xorg_testset_save_CFLAGS"
8642 fi
8643
8644 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8646 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8647 fi
8648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8650 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8651 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8652 then :
8653 printf %s "(cached) " >&6
8654 else $as_nop
8655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8656 /* end confdefs.h. */
8657 int i;
8658 _ACEOF
8659 if ac_fn_c_try_compile "$LINENO"
8660 then :
8661 xorg_cv_cc_flag_unused_command_line_argument=yes
8662 else $as_nop
8663 xorg_cv_cc_flag_unused_command_line_argument=no
8664 fi
8665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8666 fi
8667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8668 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8669 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8670 CFLAGS="$xorg_testset_save_CFLAGS"
8671 fi
8672
8673 found="no"
8674
8675 if test $found = "no" ; then
8676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8678 fi
8679
8680 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8682 fi
8683
8684 CFLAGS="$CFLAGS -Werror=address"
8685
8686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8687 printf %s "checking if $CC supports -Werror=address... " >&6; }
8688 cacheid=xorg_cv_cc_flag__Werror_address
8689 if eval test \${$cacheid+y}
8690 then :
8691 printf %s "(cached) " >&6
8692 else $as_nop
8693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8694 /* end confdefs.h. */
8695 int i;
8696 int
8697 main (void)
8698 {
8699
8700 ;
8701 return 0;
8702 }
8703 _ACEOF
8704 if ac_fn_c_try_link "$LINENO"
8705 then :
8706 eval $cacheid=yes
8707 else $as_nop
8708 eval $cacheid=no
8709 fi
8710 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8711 conftest$ac_exeext conftest.$ac_ext
8712 fi
8713
8714
8715 CFLAGS="$xorg_testset_save_CFLAGS"
8716
8717 eval supported=\$$cacheid
8718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8719 printf "%s\n" "$supported" >&6; }
8720 if test "$supported" = "yes" ; then
8721 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8722 found="yes"
8723 fi
8724 fi
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740 xorg_testset_save_CFLAGS="$CFLAGS"
8741
8742 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8745 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8746 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8747 then :
8748 printf %s "(cached) " >&6
8749 else $as_nop
8750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8751 /* end confdefs.h. */
8752 int i;
8753 _ACEOF
8754 if ac_fn_c_try_compile "$LINENO"
8755 then :
8756 xorg_cv_cc_flag_unknown_warning_option=yes
8757 else $as_nop
8758 xorg_cv_cc_flag_unknown_warning_option=no
8759 fi
8760 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8761 fi
8762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8763 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8764 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8765 CFLAGS="$xorg_testset_save_CFLAGS"
8766 fi
8767
8768 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8771 fi
8772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8774 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8775 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8776 then :
8777 printf %s "(cached) " >&6
8778 else $as_nop
8779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8780 /* end confdefs.h. */
8781 int i;
8782 _ACEOF
8783 if ac_fn_c_try_compile "$LINENO"
8784 then :
8785 xorg_cv_cc_flag_unused_command_line_argument=yes
8786 else $as_nop
8787 xorg_cv_cc_flag_unused_command_line_argument=no
8788 fi
8789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8790 fi
8791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8792 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8793 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8794 CFLAGS="$xorg_testset_save_CFLAGS"
8795 fi
8796
8797 found="no"
8798
8799 if test $found = "no" ; then
8800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8802 fi
8803
8804 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8806 fi
8807
8808 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8809
8810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8811 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8812 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8813 if eval test \${$cacheid+y}
8814 then :
8815 printf %s "(cached) " >&6
8816 else $as_nop
8817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8818 /* end confdefs.h. */
8819 int i;
8820 int
8821 main (void)
8822 {
8823
8824 ;
8825 return 0;
8826 }
8827 _ACEOF
8828 if ac_fn_c_try_link "$LINENO"
8829 then :
8830 eval $cacheid=yes
8831 else $as_nop
8832 eval $cacheid=no
8833 fi
8834 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8835 conftest$ac_exeext conftest.$ac_ext
8836 fi
8837
8838
8839 CFLAGS="$xorg_testset_save_CFLAGS"
8840
8841 eval supported=\$$cacheid
8842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8843 printf "%s\n" "$supported" >&6; }
8844 if test "$supported" = "yes" ; then
8845 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8846 found="yes"
8847 fi
8848 fi
8849
8850 if test $found = "no" ; then
8851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8853 fi
8854
8855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8857 fi
8858
8859 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8860
8861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8862 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8863 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8864 if eval test \${$cacheid+y}
8865 then :
8866 printf %s "(cached) " >&6
8867 else $as_nop
8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869 /* end confdefs.h. */
8870 int i;
8871 int
8872 main (void)
8873 {
8874
8875 ;
8876 return 0;
8877 }
8878 _ACEOF
8879 if ac_fn_c_try_link "$LINENO"
8880 then :
8881 eval $cacheid=yes
8882 else $as_nop
8883 eval $cacheid=no
8884 fi
8885 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8886 conftest$ac_exeext conftest.$ac_ext
8887 fi
8888
8889
8890 CFLAGS="$xorg_testset_save_CFLAGS"
8891
8892 eval supported=\$$cacheid
8893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8894 printf "%s\n" "$supported" >&6; }
8895 if test "$supported" = "yes" ; then
8896 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8897 found="yes"
8898 fi
8899 fi
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915 xorg_testset_save_CFLAGS="$CFLAGS"
8916
8917 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8918 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8920 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8921 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8922 then :
8923 printf %s "(cached) " >&6
8924 else $as_nop
8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8927 int i;
8928 _ACEOF
8929 if ac_fn_c_try_compile "$LINENO"
8930 then :
8931 xorg_cv_cc_flag_unknown_warning_option=yes
8932 else $as_nop
8933 xorg_cv_cc_flag_unknown_warning_option=no
8934 fi
8935 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8936 fi
8937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8938 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8939 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8940 CFLAGS="$xorg_testset_save_CFLAGS"
8941 fi
8942
8943 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8946 fi
8947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8949 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8950 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8951 then :
8952 printf %s "(cached) " >&6
8953 else $as_nop
8954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8955 /* end confdefs.h. */
8956 int i;
8957 _ACEOF
8958 if ac_fn_c_try_compile "$LINENO"
8959 then :
8960 xorg_cv_cc_flag_unused_command_line_argument=yes
8961 else $as_nop
8962 xorg_cv_cc_flag_unused_command_line_argument=no
8963 fi
8964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8965 fi
8966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8967 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8968 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8969 CFLAGS="$xorg_testset_save_CFLAGS"
8970 fi
8971
8972 found="no"
8973
8974 if test $found = "no" ; then
8975 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8977 fi
8978
8979 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8981 fi
8982
8983 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8984
8985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8986 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8987 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8988 if eval test \${$cacheid+y}
8989 then :
8990 printf %s "(cached) " >&6
8991 else $as_nop
8992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8993 /* end confdefs.h. */
8994 int i;
8995 int
8996 main (void)
8997 {
8998
8999 ;
9000 return 0;
9001 }
9002 _ACEOF
9003 if ac_fn_c_try_link "$LINENO"
9004 then :
9005 eval $cacheid=yes
9006 else $as_nop
9007 eval $cacheid=no
9008 fi
9009 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9010 conftest$ac_exeext conftest.$ac_ext
9011 fi
9012
9013
9014 CFLAGS="$xorg_testset_save_CFLAGS"
9015
9016 eval supported=\$$cacheid
9017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9018 printf "%s\n" "$supported" >&6; }
9019 if test "$supported" = "yes" ; then
9020 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9021 found="yes"
9022 fi
9023 fi
9024
9025 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9026 else
9027 { 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
9028 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;}
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042 xorg_testset_save_CFLAGS="$CFLAGS"
9043
9044 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9047 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9048 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9049 then :
9050 printf %s "(cached) " >&6
9051 else $as_nop
9052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9053 /* end confdefs.h. */
9054 int i;
9055 _ACEOF
9056 if ac_fn_c_try_compile "$LINENO"
9057 then :
9058 xorg_cv_cc_flag_unknown_warning_option=yes
9059 else $as_nop
9060 xorg_cv_cc_flag_unknown_warning_option=no
9061 fi
9062 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9063 fi
9064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9065 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9066 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9067 CFLAGS="$xorg_testset_save_CFLAGS"
9068 fi
9069
9070 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9073 fi
9074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9076 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9077 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9078 then :
9079 printf %s "(cached) " >&6
9080 else $as_nop
9081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9082 /* end confdefs.h. */
9083 int i;
9084 _ACEOF
9085 if ac_fn_c_try_compile "$LINENO"
9086 then :
9087 xorg_cv_cc_flag_unused_command_line_argument=yes
9088 else $as_nop
9089 xorg_cv_cc_flag_unused_command_line_argument=no
9090 fi
9091 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9092 fi
9093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9094 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9095 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9096 CFLAGS="$xorg_testset_save_CFLAGS"
9097 fi
9098
9099 found="no"
9100
9101 if test $found = "no" ; then
9102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9103 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9104 fi
9105
9106 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9108 fi
9109
9110 CFLAGS="$CFLAGS -Wimplicit"
9111
9112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9113 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9114 cacheid=xorg_cv_cc_flag__Wimplicit
9115 if eval test \${$cacheid+y}
9116 then :
9117 printf %s "(cached) " >&6
9118 else $as_nop
9119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9120 /* end confdefs.h. */
9121 int i;
9122 int
9123 main (void)
9124 {
9125
9126 ;
9127 return 0;
9128 }
9129 _ACEOF
9130 if ac_fn_c_try_link "$LINENO"
9131 then :
9132 eval $cacheid=yes
9133 else $as_nop
9134 eval $cacheid=no
9135 fi
9136 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9137 conftest$ac_exeext conftest.$ac_ext
9138 fi
9139
9140
9141 CFLAGS="$xorg_testset_save_CFLAGS"
9142
9143 eval supported=\$$cacheid
9144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9145 printf "%s\n" "$supported" >&6; }
9146 if test "$supported" = "yes" ; then
9147 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9148 found="yes"
9149 fi
9150 fi
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166 xorg_testset_save_CFLAGS="$CFLAGS"
9167
9168 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9171 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9172 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9173 then :
9174 printf %s "(cached) " >&6
9175 else $as_nop
9176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9177 /* end confdefs.h. */
9178 int i;
9179 _ACEOF
9180 if ac_fn_c_try_compile "$LINENO"
9181 then :
9182 xorg_cv_cc_flag_unknown_warning_option=yes
9183 else $as_nop
9184 xorg_cv_cc_flag_unknown_warning_option=no
9185 fi
9186 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9187 fi
9188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9189 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9190 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9191 CFLAGS="$xorg_testset_save_CFLAGS"
9192 fi
9193
9194 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9197 fi
9198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9200 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9201 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9202 then :
9203 printf %s "(cached) " >&6
9204 else $as_nop
9205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206 /* end confdefs.h. */
9207 int i;
9208 _ACEOF
9209 if ac_fn_c_try_compile "$LINENO"
9210 then :
9211 xorg_cv_cc_flag_unused_command_line_argument=yes
9212 else $as_nop
9213 xorg_cv_cc_flag_unused_command_line_argument=no
9214 fi
9215 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9216 fi
9217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9218 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9219 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9220 CFLAGS="$xorg_testset_save_CFLAGS"
9221 fi
9222
9223 found="no"
9224
9225 if test $found = "no" ; then
9226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9227 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9228 fi
9229
9230 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9232 fi
9233
9234 CFLAGS="$CFLAGS -Wnonnull"
9235
9236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9237 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9238 cacheid=xorg_cv_cc_flag__Wnonnull
9239 if eval test \${$cacheid+y}
9240 then :
9241 printf %s "(cached) " >&6
9242 else $as_nop
9243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9244 /* end confdefs.h. */
9245 int i;
9246 int
9247 main (void)
9248 {
9249
9250 ;
9251 return 0;
9252 }
9253 _ACEOF
9254 if ac_fn_c_try_link "$LINENO"
9255 then :
9256 eval $cacheid=yes
9257 else $as_nop
9258 eval $cacheid=no
9259 fi
9260 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9261 conftest$ac_exeext conftest.$ac_ext
9262 fi
9263
9264
9265 CFLAGS="$xorg_testset_save_CFLAGS"
9266
9267 eval supported=\$$cacheid
9268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9269 printf "%s\n" "$supported" >&6; }
9270 if test "$supported" = "yes" ; then
9271 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9272 found="yes"
9273 fi
9274 fi
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290 xorg_testset_save_CFLAGS="$CFLAGS"
9291
9292 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9295 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9296 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9297 then :
9298 printf %s "(cached) " >&6
9299 else $as_nop
9300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9301 /* end confdefs.h. */
9302 int i;
9303 _ACEOF
9304 if ac_fn_c_try_compile "$LINENO"
9305 then :
9306 xorg_cv_cc_flag_unknown_warning_option=yes
9307 else $as_nop
9308 xorg_cv_cc_flag_unknown_warning_option=no
9309 fi
9310 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9311 fi
9312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9313 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9314 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9315 CFLAGS="$xorg_testset_save_CFLAGS"
9316 fi
9317
9318 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9321 fi
9322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9324 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9325 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9326 then :
9327 printf %s "(cached) " >&6
9328 else $as_nop
9329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9330 /* end confdefs.h. */
9331 int i;
9332 _ACEOF
9333 if ac_fn_c_try_compile "$LINENO"
9334 then :
9335 xorg_cv_cc_flag_unused_command_line_argument=yes
9336 else $as_nop
9337 xorg_cv_cc_flag_unused_command_line_argument=no
9338 fi
9339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9340 fi
9341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9342 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9343 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9344 CFLAGS="$xorg_testset_save_CFLAGS"
9345 fi
9346
9347 found="no"
9348
9349 if test $found = "no" ; then
9350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9352 fi
9353
9354 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9356 fi
9357
9358 CFLAGS="$CFLAGS -Winit-self"
9359
9360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9361 printf %s "checking if $CC supports -Winit-self... " >&6; }
9362 cacheid=xorg_cv_cc_flag__Winit_self
9363 if eval test \${$cacheid+y}
9364 then :
9365 printf %s "(cached) " >&6
9366 else $as_nop
9367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9368 /* end confdefs.h. */
9369 int i;
9370 int
9371 main (void)
9372 {
9373
9374 ;
9375 return 0;
9376 }
9377 _ACEOF
9378 if ac_fn_c_try_link "$LINENO"
9379 then :
9380 eval $cacheid=yes
9381 else $as_nop
9382 eval $cacheid=no
9383 fi
9384 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9385 conftest$ac_exeext conftest.$ac_ext
9386 fi
9387
9388
9389 CFLAGS="$xorg_testset_save_CFLAGS"
9390
9391 eval supported=\$$cacheid
9392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9393 printf "%s\n" "$supported" >&6; }
9394 if test "$supported" = "yes" ; then
9395 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9396 found="yes"
9397 fi
9398 fi
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414 xorg_testset_save_CFLAGS="$CFLAGS"
9415
9416 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9419 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9420 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9421 then :
9422 printf %s "(cached) " >&6
9423 else $as_nop
9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425 /* end confdefs.h. */
9426 int i;
9427 _ACEOF
9428 if ac_fn_c_try_compile "$LINENO"
9429 then :
9430 xorg_cv_cc_flag_unknown_warning_option=yes
9431 else $as_nop
9432 xorg_cv_cc_flag_unknown_warning_option=no
9433 fi
9434 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9435 fi
9436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9437 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9438 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9439 CFLAGS="$xorg_testset_save_CFLAGS"
9440 fi
9441
9442 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9445 fi
9446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9448 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9449 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9450 then :
9451 printf %s "(cached) " >&6
9452 else $as_nop
9453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9454 /* end confdefs.h. */
9455 int i;
9456 _ACEOF
9457 if ac_fn_c_try_compile "$LINENO"
9458 then :
9459 xorg_cv_cc_flag_unused_command_line_argument=yes
9460 else $as_nop
9461 xorg_cv_cc_flag_unused_command_line_argument=no
9462 fi
9463 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9464 fi
9465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9466 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9467 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9468 CFLAGS="$xorg_testset_save_CFLAGS"
9469 fi
9470
9471 found="no"
9472
9473 if test $found = "no" ; then
9474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9476 fi
9477
9478 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9480 fi
9481
9482 CFLAGS="$CFLAGS -Wmain"
9483
9484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9485 printf %s "checking if $CC supports -Wmain... " >&6; }
9486 cacheid=xorg_cv_cc_flag__Wmain
9487 if eval test \${$cacheid+y}
9488 then :
9489 printf %s "(cached) " >&6
9490 else $as_nop
9491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9492 /* end confdefs.h. */
9493 int i;
9494 int
9495 main (void)
9496 {
9497
9498 ;
9499 return 0;
9500 }
9501 _ACEOF
9502 if ac_fn_c_try_link "$LINENO"
9503 then :
9504 eval $cacheid=yes
9505 else $as_nop
9506 eval $cacheid=no
9507 fi
9508 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9509 conftest$ac_exeext conftest.$ac_ext
9510 fi
9511
9512
9513 CFLAGS="$xorg_testset_save_CFLAGS"
9514
9515 eval supported=\$$cacheid
9516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9517 printf "%s\n" "$supported" >&6; }
9518 if test "$supported" = "yes" ; then
9519 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9520 found="yes"
9521 fi
9522 fi
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538 xorg_testset_save_CFLAGS="$CFLAGS"
9539
9540 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9543 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9544 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9545 then :
9546 printf %s "(cached) " >&6
9547 else $as_nop
9548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9549 /* end confdefs.h. */
9550 int i;
9551 _ACEOF
9552 if ac_fn_c_try_compile "$LINENO"
9553 then :
9554 xorg_cv_cc_flag_unknown_warning_option=yes
9555 else $as_nop
9556 xorg_cv_cc_flag_unknown_warning_option=no
9557 fi
9558 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9559 fi
9560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9561 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9562 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9563 CFLAGS="$xorg_testset_save_CFLAGS"
9564 fi
9565
9566 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9568 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9569 fi
9570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9572 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9573 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9574 then :
9575 printf %s "(cached) " >&6
9576 else $as_nop
9577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9578 /* end confdefs.h. */
9579 int i;
9580 _ACEOF
9581 if ac_fn_c_try_compile "$LINENO"
9582 then :
9583 xorg_cv_cc_flag_unused_command_line_argument=yes
9584 else $as_nop
9585 xorg_cv_cc_flag_unused_command_line_argument=no
9586 fi
9587 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9588 fi
9589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9590 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9591 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9592 CFLAGS="$xorg_testset_save_CFLAGS"
9593 fi
9594
9595 found="no"
9596
9597 if test $found = "no" ; then
9598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9599 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9600 fi
9601
9602 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9604 fi
9605
9606 CFLAGS="$CFLAGS -Wmissing-braces"
9607
9608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9609 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9610 cacheid=xorg_cv_cc_flag__Wmissing_braces
9611 if eval test \${$cacheid+y}
9612 then :
9613 printf %s "(cached) " >&6
9614 else $as_nop
9615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9616 /* end confdefs.h. */
9617 int i;
9618 int
9619 main (void)
9620 {
9621
9622 ;
9623 return 0;
9624 }
9625 _ACEOF
9626 if ac_fn_c_try_link "$LINENO"
9627 then :
9628 eval $cacheid=yes
9629 else $as_nop
9630 eval $cacheid=no
9631 fi
9632 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9633 conftest$ac_exeext conftest.$ac_ext
9634 fi
9635
9636
9637 CFLAGS="$xorg_testset_save_CFLAGS"
9638
9639 eval supported=\$$cacheid
9640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9641 printf "%s\n" "$supported" >&6; }
9642 if test "$supported" = "yes" ; then
9643 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9644 found="yes"
9645 fi
9646 fi
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662 xorg_testset_save_CFLAGS="$CFLAGS"
9663
9664 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9667 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9668 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9669 then :
9670 printf %s "(cached) " >&6
9671 else $as_nop
9672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9673 /* end confdefs.h. */
9674 int i;
9675 _ACEOF
9676 if ac_fn_c_try_compile "$LINENO"
9677 then :
9678 xorg_cv_cc_flag_unknown_warning_option=yes
9679 else $as_nop
9680 xorg_cv_cc_flag_unknown_warning_option=no
9681 fi
9682 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9683 fi
9684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9685 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9686 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9687 CFLAGS="$xorg_testset_save_CFLAGS"
9688 fi
9689
9690 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9693 fi
9694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9696 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9697 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9698 then :
9699 printf %s "(cached) " >&6
9700 else $as_nop
9701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9702 /* end confdefs.h. */
9703 int i;
9704 _ACEOF
9705 if ac_fn_c_try_compile "$LINENO"
9706 then :
9707 xorg_cv_cc_flag_unused_command_line_argument=yes
9708 else $as_nop
9709 xorg_cv_cc_flag_unused_command_line_argument=no
9710 fi
9711 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9712 fi
9713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9714 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9715 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9716 CFLAGS="$xorg_testset_save_CFLAGS"
9717 fi
9718
9719 found="no"
9720
9721 if test $found = "no" ; then
9722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9724 fi
9725
9726 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9728 fi
9729
9730 CFLAGS="$CFLAGS -Wsequence-point"
9731
9732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9733 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9734 cacheid=xorg_cv_cc_flag__Wsequence_point
9735 if eval test \${$cacheid+y}
9736 then :
9737 printf %s "(cached) " >&6
9738 else $as_nop
9739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9740 /* end confdefs.h. */
9741 int i;
9742 int
9743 main (void)
9744 {
9745
9746 ;
9747 return 0;
9748 }
9749 _ACEOF
9750 if ac_fn_c_try_link "$LINENO"
9751 then :
9752 eval $cacheid=yes
9753 else $as_nop
9754 eval $cacheid=no
9755 fi
9756 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9757 conftest$ac_exeext conftest.$ac_ext
9758 fi
9759
9760
9761 CFLAGS="$xorg_testset_save_CFLAGS"
9762
9763 eval supported=\$$cacheid
9764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9765 printf "%s\n" "$supported" >&6; }
9766 if test "$supported" = "yes" ; then
9767 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9768 found="yes"
9769 fi
9770 fi
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786 xorg_testset_save_CFLAGS="$CFLAGS"
9787
9788 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9791 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9792 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9793 then :
9794 printf %s "(cached) " >&6
9795 else $as_nop
9796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9797 /* end confdefs.h. */
9798 int i;
9799 _ACEOF
9800 if ac_fn_c_try_compile "$LINENO"
9801 then :
9802 xorg_cv_cc_flag_unknown_warning_option=yes
9803 else $as_nop
9804 xorg_cv_cc_flag_unknown_warning_option=no
9805 fi
9806 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9807 fi
9808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9809 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9810 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9811 CFLAGS="$xorg_testset_save_CFLAGS"
9812 fi
9813
9814 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9816 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9817 fi
9818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9820 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9821 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9822 then :
9823 printf %s "(cached) " >&6
9824 else $as_nop
9825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9826 /* end confdefs.h. */
9827 int i;
9828 _ACEOF
9829 if ac_fn_c_try_compile "$LINENO"
9830 then :
9831 xorg_cv_cc_flag_unused_command_line_argument=yes
9832 else $as_nop
9833 xorg_cv_cc_flag_unused_command_line_argument=no
9834 fi
9835 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9836 fi
9837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9838 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9839 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9840 CFLAGS="$xorg_testset_save_CFLAGS"
9841 fi
9842
9843 found="no"
9844
9845 if test $found = "no" ; then
9846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9847 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9848 fi
9849
9850 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9852 fi
9853
9854 CFLAGS="$CFLAGS -Wreturn-type"
9855
9856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9857 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9858 cacheid=xorg_cv_cc_flag__Wreturn_type
9859 if eval test \${$cacheid+y}
9860 then :
9861 printf %s "(cached) " >&6
9862 else $as_nop
9863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9864 /* end confdefs.h. */
9865 int i;
9866 int
9867 main (void)
9868 {
9869
9870 ;
9871 return 0;
9872 }
9873 _ACEOF
9874 if ac_fn_c_try_link "$LINENO"
9875 then :
9876 eval $cacheid=yes
9877 else $as_nop
9878 eval $cacheid=no
9879 fi
9880 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9881 conftest$ac_exeext conftest.$ac_ext
9882 fi
9883
9884
9885 CFLAGS="$xorg_testset_save_CFLAGS"
9886
9887 eval supported=\$$cacheid
9888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9889 printf "%s\n" "$supported" >&6; }
9890 if test "$supported" = "yes" ; then
9891 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9892 found="yes"
9893 fi
9894 fi
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910 xorg_testset_save_CFLAGS="$CFLAGS"
9911
9912 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9915 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9916 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9917 then :
9918 printf %s "(cached) " >&6
9919 else $as_nop
9920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921 /* end confdefs.h. */
9922 int i;
9923 _ACEOF
9924 if ac_fn_c_try_compile "$LINENO"
9925 then :
9926 xorg_cv_cc_flag_unknown_warning_option=yes
9927 else $as_nop
9928 xorg_cv_cc_flag_unknown_warning_option=no
9929 fi
9930 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9931 fi
9932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9933 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9934 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9935 CFLAGS="$xorg_testset_save_CFLAGS"
9936 fi
9937
9938 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9941 fi
9942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9944 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9945 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9946 then :
9947 printf %s "(cached) " >&6
9948 else $as_nop
9949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950 /* end confdefs.h. */
9951 int i;
9952 _ACEOF
9953 if ac_fn_c_try_compile "$LINENO"
9954 then :
9955 xorg_cv_cc_flag_unused_command_line_argument=yes
9956 else $as_nop
9957 xorg_cv_cc_flag_unused_command_line_argument=no
9958 fi
9959 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9960 fi
9961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9962 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9963 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9964 CFLAGS="$xorg_testset_save_CFLAGS"
9965 fi
9966
9967 found="no"
9968
9969 if test $found = "no" ; then
9970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9971 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9972 fi
9973
9974 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9976 fi
9977
9978 CFLAGS="$CFLAGS -Wtrigraphs"
9979
9980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9981 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9982 cacheid=xorg_cv_cc_flag__Wtrigraphs
9983 if eval test \${$cacheid+y}
9984 then :
9985 printf %s "(cached) " >&6
9986 else $as_nop
9987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9988 /* end confdefs.h. */
9989 int i;
9990 int
9991 main (void)
9992 {
9993
9994 ;
9995 return 0;
9996 }
9997 _ACEOF
9998 if ac_fn_c_try_link "$LINENO"
9999 then :
10000 eval $cacheid=yes
10001 else $as_nop
10002 eval $cacheid=no
10003 fi
10004 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10005 conftest$ac_exeext conftest.$ac_ext
10006 fi
10007
10008
10009 CFLAGS="$xorg_testset_save_CFLAGS"
10010
10011 eval supported=\$$cacheid
10012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10013 printf "%s\n" "$supported" >&6; }
10014 if test "$supported" = "yes" ; then
10015 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10016 found="yes"
10017 fi
10018 fi
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034 xorg_testset_save_CFLAGS="$CFLAGS"
10035
10036 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10039 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10040 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10041 then :
10042 printf %s "(cached) " >&6
10043 else $as_nop
10044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10045 /* end confdefs.h. */
10046 int i;
10047 _ACEOF
10048 if ac_fn_c_try_compile "$LINENO"
10049 then :
10050 xorg_cv_cc_flag_unknown_warning_option=yes
10051 else $as_nop
10052 xorg_cv_cc_flag_unknown_warning_option=no
10053 fi
10054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10055 fi
10056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10057 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10058 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10059 CFLAGS="$xorg_testset_save_CFLAGS"
10060 fi
10061
10062 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10065 fi
10066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10068 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10069 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10070 then :
10071 printf %s "(cached) " >&6
10072 else $as_nop
10073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10074 /* end confdefs.h. */
10075 int i;
10076 _ACEOF
10077 if ac_fn_c_try_compile "$LINENO"
10078 then :
10079 xorg_cv_cc_flag_unused_command_line_argument=yes
10080 else $as_nop
10081 xorg_cv_cc_flag_unused_command_line_argument=no
10082 fi
10083 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10084 fi
10085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10086 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10087 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10088 CFLAGS="$xorg_testset_save_CFLAGS"
10089 fi
10090
10091 found="no"
10092
10093 if test $found = "no" ; then
10094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10095 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10096 fi
10097
10098 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10100 fi
10101
10102 CFLAGS="$CFLAGS -Warray-bounds"
10103
10104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10105 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10106 cacheid=xorg_cv_cc_flag__Warray_bounds
10107 if eval test \${$cacheid+y}
10108 then :
10109 printf %s "(cached) " >&6
10110 else $as_nop
10111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10112 /* end confdefs.h. */
10113 int i;
10114 int
10115 main (void)
10116 {
10117
10118 ;
10119 return 0;
10120 }
10121 _ACEOF
10122 if ac_fn_c_try_link "$LINENO"
10123 then :
10124 eval $cacheid=yes
10125 else $as_nop
10126 eval $cacheid=no
10127 fi
10128 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10129 conftest$ac_exeext conftest.$ac_ext
10130 fi
10131
10132
10133 CFLAGS="$xorg_testset_save_CFLAGS"
10134
10135 eval supported=\$$cacheid
10136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10137 printf "%s\n" "$supported" >&6; }
10138 if test "$supported" = "yes" ; then
10139 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10140 found="yes"
10141 fi
10142 fi
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158 xorg_testset_save_CFLAGS="$CFLAGS"
10159
10160 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10163 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10164 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10165 then :
10166 printf %s "(cached) " >&6
10167 else $as_nop
10168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10169 /* end confdefs.h. */
10170 int i;
10171 _ACEOF
10172 if ac_fn_c_try_compile "$LINENO"
10173 then :
10174 xorg_cv_cc_flag_unknown_warning_option=yes
10175 else $as_nop
10176 xorg_cv_cc_flag_unknown_warning_option=no
10177 fi
10178 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10179 fi
10180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10181 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10182 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10183 CFLAGS="$xorg_testset_save_CFLAGS"
10184 fi
10185
10186 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10189 fi
10190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10192 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10193 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10194 then :
10195 printf %s "(cached) " >&6
10196 else $as_nop
10197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10198 /* end confdefs.h. */
10199 int i;
10200 _ACEOF
10201 if ac_fn_c_try_compile "$LINENO"
10202 then :
10203 xorg_cv_cc_flag_unused_command_line_argument=yes
10204 else $as_nop
10205 xorg_cv_cc_flag_unused_command_line_argument=no
10206 fi
10207 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10208 fi
10209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10210 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10211 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10212 CFLAGS="$xorg_testset_save_CFLAGS"
10213 fi
10214
10215 found="no"
10216
10217 if test $found = "no" ; then
10218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10219 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10220 fi
10221
10222 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10224 fi
10225
10226 CFLAGS="$CFLAGS -Wwrite-strings"
10227
10228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10229 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10230 cacheid=xorg_cv_cc_flag__Wwrite_strings
10231 if eval test \${$cacheid+y}
10232 then :
10233 printf %s "(cached) " >&6
10234 else $as_nop
10235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10236 /* end confdefs.h. */
10237 int i;
10238 int
10239 main (void)
10240 {
10241
10242 ;
10243 return 0;
10244 }
10245 _ACEOF
10246 if ac_fn_c_try_link "$LINENO"
10247 then :
10248 eval $cacheid=yes
10249 else $as_nop
10250 eval $cacheid=no
10251 fi
10252 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10253 conftest$ac_exeext conftest.$ac_ext
10254 fi
10255
10256
10257 CFLAGS="$xorg_testset_save_CFLAGS"
10258
10259 eval supported=\$$cacheid
10260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10261 printf "%s\n" "$supported" >&6; }
10262 if test "$supported" = "yes" ; then
10263 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10264 found="yes"
10265 fi
10266 fi
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282 xorg_testset_save_CFLAGS="$CFLAGS"
10283
10284 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10285 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10287 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10288 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10289 then :
10290 printf %s "(cached) " >&6
10291 else $as_nop
10292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10293 /* end confdefs.h. */
10294 int i;
10295 _ACEOF
10296 if ac_fn_c_try_compile "$LINENO"
10297 then :
10298 xorg_cv_cc_flag_unknown_warning_option=yes
10299 else $as_nop
10300 xorg_cv_cc_flag_unknown_warning_option=no
10301 fi
10302 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10303 fi
10304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10305 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10306 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10307 CFLAGS="$xorg_testset_save_CFLAGS"
10308 fi
10309
10310 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10313 fi
10314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10316 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10317 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10318 then :
10319 printf %s "(cached) " >&6
10320 else $as_nop
10321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10322 /* end confdefs.h. */
10323 int i;
10324 _ACEOF
10325 if ac_fn_c_try_compile "$LINENO"
10326 then :
10327 xorg_cv_cc_flag_unused_command_line_argument=yes
10328 else $as_nop
10329 xorg_cv_cc_flag_unused_command_line_argument=no
10330 fi
10331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10332 fi
10333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10334 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10335 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10336 CFLAGS="$xorg_testset_save_CFLAGS"
10337 fi
10338
10339 found="no"
10340
10341 if test $found = "no" ; then
10342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10344 fi
10345
10346 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10348 fi
10349
10350 CFLAGS="$CFLAGS -Waddress"
10351
10352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10353 printf %s "checking if $CC supports -Waddress... " >&6; }
10354 cacheid=xorg_cv_cc_flag__Waddress
10355 if eval test \${$cacheid+y}
10356 then :
10357 printf %s "(cached) " >&6
10358 else $as_nop
10359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10360 /* end confdefs.h. */
10361 int i;
10362 int
10363 main (void)
10364 {
10365
10366 ;
10367 return 0;
10368 }
10369 _ACEOF
10370 if ac_fn_c_try_link "$LINENO"
10371 then :
10372 eval $cacheid=yes
10373 else $as_nop
10374 eval $cacheid=no
10375 fi
10376 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10377 conftest$ac_exeext conftest.$ac_ext
10378 fi
10379
10380
10381 CFLAGS="$xorg_testset_save_CFLAGS"
10382
10383 eval supported=\$$cacheid
10384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10385 printf "%s\n" "$supported" >&6; }
10386 if test "$supported" = "yes" ; then
10387 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10388 found="yes"
10389 fi
10390 fi
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406 xorg_testset_save_CFLAGS="$CFLAGS"
10407
10408 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10411 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10412 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10413 then :
10414 printf %s "(cached) " >&6
10415 else $as_nop
10416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10417 /* end confdefs.h. */
10418 int i;
10419 _ACEOF
10420 if ac_fn_c_try_compile "$LINENO"
10421 then :
10422 xorg_cv_cc_flag_unknown_warning_option=yes
10423 else $as_nop
10424 xorg_cv_cc_flag_unknown_warning_option=no
10425 fi
10426 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10427 fi
10428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10429 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10430 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10431 CFLAGS="$xorg_testset_save_CFLAGS"
10432 fi
10433
10434 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10437 fi
10438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10440 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10441 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10442 then :
10443 printf %s "(cached) " >&6
10444 else $as_nop
10445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10446 /* end confdefs.h. */
10447 int i;
10448 _ACEOF
10449 if ac_fn_c_try_compile "$LINENO"
10450 then :
10451 xorg_cv_cc_flag_unused_command_line_argument=yes
10452 else $as_nop
10453 xorg_cv_cc_flag_unused_command_line_argument=no
10454 fi
10455 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10456 fi
10457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10458 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10459 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10460 CFLAGS="$xorg_testset_save_CFLAGS"
10461 fi
10462
10463 found="no"
10464
10465 if test $found = "no" ; then
10466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10468 fi
10469
10470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10472 fi
10473
10474 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10475
10476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10477 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10478 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10479 if eval test \${$cacheid+y}
10480 then :
10481 printf %s "(cached) " >&6
10482 else $as_nop
10483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10484 /* end confdefs.h. */
10485 int i;
10486 int
10487 main (void)
10488 {
10489
10490 ;
10491 return 0;
10492 }
10493 _ACEOF
10494 if ac_fn_c_try_link "$LINENO"
10495 then :
10496 eval $cacheid=yes
10497 else $as_nop
10498 eval $cacheid=no
10499 fi
10500 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10501 conftest$ac_exeext conftest.$ac_ext
10502 fi
10503
10504
10505 CFLAGS="$xorg_testset_save_CFLAGS"
10506
10507 eval supported=\$$cacheid
10508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10509 printf "%s\n" "$supported" >&6; }
10510 if test "$supported" = "yes" ; then
10511 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10512 found="yes"
10513 fi
10514 fi
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530 xorg_testset_save_CFLAGS="$CFLAGS"
10531
10532 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10533 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10535 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10536 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10537 then :
10538 printf %s "(cached) " >&6
10539 else $as_nop
10540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10541 /* end confdefs.h. */
10542 int i;
10543 _ACEOF
10544 if ac_fn_c_try_compile "$LINENO"
10545 then :
10546 xorg_cv_cc_flag_unknown_warning_option=yes
10547 else $as_nop
10548 xorg_cv_cc_flag_unknown_warning_option=no
10549 fi
10550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10551 fi
10552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10553 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10554 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10555 CFLAGS="$xorg_testset_save_CFLAGS"
10556 fi
10557
10558 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10561 fi
10562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10564 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10565 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10566 then :
10567 printf %s "(cached) " >&6
10568 else $as_nop
10569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10570 /* end confdefs.h. */
10571 int i;
10572 _ACEOF
10573 if ac_fn_c_try_compile "$LINENO"
10574 then :
10575 xorg_cv_cc_flag_unused_command_line_argument=yes
10576 else $as_nop
10577 xorg_cv_cc_flag_unused_command_line_argument=no
10578 fi
10579 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10580 fi
10581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10582 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10583 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10584 CFLAGS="$xorg_testset_save_CFLAGS"
10585 fi
10586
10587 found="no"
10588
10589 if test $found = "no" ; then
10590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10592 fi
10593
10594 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10596 fi
10597
10598 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10599
10600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10601 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10602 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10603 if eval test \${$cacheid+y}
10604 then :
10605 printf %s "(cached) " >&6
10606 else $as_nop
10607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10608 /* end confdefs.h. */
10609 int i;
10610 int
10611 main (void)
10612 {
10613
10614 ;
10615 return 0;
10616 }
10617 _ACEOF
10618 if ac_fn_c_try_link "$LINENO"
10619 then :
10620 eval $cacheid=yes
10621 else $as_nop
10622 eval $cacheid=no
10623 fi
10624 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10625 conftest$ac_exeext conftest.$ac_ext
10626 fi
10627
10628
10629 CFLAGS="$xorg_testset_save_CFLAGS"
10630
10631 eval supported=\$$cacheid
10632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10633 printf "%s\n" "$supported" >&6; }
10634 if test "$supported" = "yes" ; then
10635 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10636 found="yes"
10637 fi
10638 fi
10639
10640
10641 fi
10642
10643
10644
10645
10646
10647
10648
10649 CWARNFLAGS="$BASE_CFLAGS"
10650 if test "x$GCC" = xyes ; then
10651 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10652 fi
10653
10654
10655
10656
10657
10658
10659
10660
10661 # Check whether --enable-strict-compilation was given.
10662 if test ${enable_strict_compilation+y}
10663 then :
10664 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10665 else $as_nop
10666 STRICT_COMPILE=no
10667 fi
10668
10669
10670
10671
10672
10673
10674 STRICT_CFLAGS=""
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688 xorg_testset_save_CFLAGS="$CFLAGS"
10689
10690 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10693 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10694 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10695 then :
10696 printf %s "(cached) " >&6
10697 else $as_nop
10698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10699 /* end confdefs.h. */
10700 int i;
10701 _ACEOF
10702 if ac_fn_c_try_compile "$LINENO"
10703 then :
10704 xorg_cv_cc_flag_unknown_warning_option=yes
10705 else $as_nop
10706 xorg_cv_cc_flag_unknown_warning_option=no
10707 fi
10708 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10709 fi
10710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10711 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10712 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10713 CFLAGS="$xorg_testset_save_CFLAGS"
10714 fi
10715
10716 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10718 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10719 fi
10720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10722 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10723 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10724 then :
10725 printf %s "(cached) " >&6
10726 else $as_nop
10727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10728 /* end confdefs.h. */
10729 int i;
10730 _ACEOF
10731 if ac_fn_c_try_compile "$LINENO"
10732 then :
10733 xorg_cv_cc_flag_unused_command_line_argument=yes
10734 else $as_nop
10735 xorg_cv_cc_flag_unused_command_line_argument=no
10736 fi
10737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10738 fi
10739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10740 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10741 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10742 CFLAGS="$xorg_testset_save_CFLAGS"
10743 fi
10744
10745 found="no"
10746
10747 if test $found = "no" ; then
10748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10749 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10750 fi
10751
10752 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10754 fi
10755
10756 CFLAGS="$CFLAGS -pedantic"
10757
10758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10759 printf %s "checking if $CC supports -pedantic... " >&6; }
10760 cacheid=xorg_cv_cc_flag__pedantic
10761 if eval test \${$cacheid+y}
10762 then :
10763 printf %s "(cached) " >&6
10764 else $as_nop
10765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10766 /* end confdefs.h. */
10767 int i;
10768 int
10769 main (void)
10770 {
10771
10772 ;
10773 return 0;
10774 }
10775 _ACEOF
10776 if ac_fn_c_try_link "$LINENO"
10777 then :
10778 eval $cacheid=yes
10779 else $as_nop
10780 eval $cacheid=no
10781 fi
10782 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10783 conftest$ac_exeext conftest.$ac_ext
10784 fi
10785
10786
10787 CFLAGS="$xorg_testset_save_CFLAGS"
10788
10789 eval supported=\$$cacheid
10790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10791 printf "%s\n" "$supported" >&6; }
10792 if test "$supported" = "yes" ; then
10793 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10794 found="yes"
10795 fi
10796 fi
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812 xorg_testset_save_CFLAGS="$CFLAGS"
10813
10814 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10817 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10818 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10819 then :
10820 printf %s "(cached) " >&6
10821 else $as_nop
10822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10823 /* end confdefs.h. */
10824 int i;
10825 _ACEOF
10826 if ac_fn_c_try_compile "$LINENO"
10827 then :
10828 xorg_cv_cc_flag_unknown_warning_option=yes
10829 else $as_nop
10830 xorg_cv_cc_flag_unknown_warning_option=no
10831 fi
10832 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10833 fi
10834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10835 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10836 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10837 CFLAGS="$xorg_testset_save_CFLAGS"
10838 fi
10839
10840 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10842 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10843 fi
10844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10846 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10847 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10848 then :
10849 printf %s "(cached) " >&6
10850 else $as_nop
10851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10852 /* end confdefs.h. */
10853 int i;
10854 _ACEOF
10855 if ac_fn_c_try_compile "$LINENO"
10856 then :
10857 xorg_cv_cc_flag_unused_command_line_argument=yes
10858 else $as_nop
10859 xorg_cv_cc_flag_unused_command_line_argument=no
10860 fi
10861 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10862 fi
10863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10864 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10865 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10866 CFLAGS="$xorg_testset_save_CFLAGS"
10867 fi
10868
10869 found="no"
10870
10871 if test $found = "no" ; then
10872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10873 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10874 fi
10875
10876 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10878 fi
10879
10880 CFLAGS="$CFLAGS -Werror"
10881
10882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10883 printf %s "checking if $CC supports -Werror... " >&6; }
10884 cacheid=xorg_cv_cc_flag__Werror
10885 if eval test \${$cacheid+y}
10886 then :
10887 printf %s "(cached) " >&6
10888 else $as_nop
10889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10890 /* end confdefs.h. */
10891 int i;
10892 int
10893 main (void)
10894 {
10895
10896 ;
10897 return 0;
10898 }
10899 _ACEOF
10900 if ac_fn_c_try_link "$LINENO"
10901 then :
10902 eval $cacheid=yes
10903 else $as_nop
10904 eval $cacheid=no
10905 fi
10906 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10907 conftest$ac_exeext conftest.$ac_ext
10908 fi
10909
10910
10911 CFLAGS="$xorg_testset_save_CFLAGS"
10912
10913 eval supported=\$$cacheid
10914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10915 printf "%s\n" "$supported" >&6; }
10916 if test "$supported" = "yes" ; then
10917 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10918 found="yes"
10919 fi
10920 fi
10921
10922 if test $found = "no" ; then
10923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10924 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10925 fi
10926
10927 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10929 fi
10930
10931 CFLAGS="$CFLAGS -errwarn"
10932
10933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10934 printf %s "checking if $CC supports -errwarn... " >&6; }
10935 cacheid=xorg_cv_cc_flag__errwarn
10936 if eval test \${$cacheid+y}
10937 then :
10938 printf %s "(cached) " >&6
10939 else $as_nop
10940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10941 /* end confdefs.h. */
10942 int i;
10943 int
10944 main (void)
10945 {
10946
10947 ;
10948 return 0;
10949 }
10950 _ACEOF
10951 if ac_fn_c_try_link "$LINENO"
10952 then :
10953 eval $cacheid=yes
10954 else $as_nop
10955 eval $cacheid=no
10956 fi
10957 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10958 conftest$ac_exeext conftest.$ac_ext
10959 fi
10960
10961
10962 CFLAGS="$xorg_testset_save_CFLAGS"
10963
10964 eval supported=\$$cacheid
10965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10966 printf "%s\n" "$supported" >&6; }
10967 if test "$supported" = "yes" ; then
10968 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10969 found="yes"
10970 fi
10971 fi
10972
10973
10974
10975 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10976 # activate it with -Werror, so we add it here explicitly.
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990 xorg_testset_save_CFLAGS="$CFLAGS"
10991
10992 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10995 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10996 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10997 then :
10998 printf %s "(cached) " >&6
10999 else $as_nop
11000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11001 /* end confdefs.h. */
11002 int i;
11003 _ACEOF
11004 if ac_fn_c_try_compile "$LINENO"
11005 then :
11006 xorg_cv_cc_flag_unknown_warning_option=yes
11007 else $as_nop
11008 xorg_cv_cc_flag_unknown_warning_option=no
11009 fi
11010 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11011 fi
11012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11013 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11014 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11015 CFLAGS="$xorg_testset_save_CFLAGS"
11016 fi
11017
11018 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11021 fi
11022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11024 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11025 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11026 then :
11027 printf %s "(cached) " >&6
11028 else $as_nop
11029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11030 /* end confdefs.h. */
11031 int i;
11032 _ACEOF
11033 if ac_fn_c_try_compile "$LINENO"
11034 then :
11035 xorg_cv_cc_flag_unused_command_line_argument=yes
11036 else $as_nop
11037 xorg_cv_cc_flag_unused_command_line_argument=no
11038 fi
11039 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11040 fi
11041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11042 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11043 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11044 CFLAGS="$xorg_testset_save_CFLAGS"
11045 fi
11046
11047 found="no"
11048
11049 if test $found = "no" ; then
11050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11052 fi
11053
11054 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11056 fi
11057
11058 CFLAGS="$CFLAGS -Werror=attributes"
11059
11060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11061 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11062 cacheid=xorg_cv_cc_flag__Werror_attributes
11063 if eval test \${$cacheid+y}
11064 then :
11065 printf %s "(cached) " >&6
11066 else $as_nop
11067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11068 /* end confdefs.h. */
11069 int i;
11070 int
11071 main (void)
11072 {
11073
11074 ;
11075 return 0;
11076 }
11077 _ACEOF
11078 if ac_fn_c_try_link "$LINENO"
11079 then :
11080 eval $cacheid=yes
11081 else $as_nop
11082 eval $cacheid=no
11083 fi
11084 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11085 conftest$ac_exeext conftest.$ac_ext
11086 fi
11087
11088
11089 CFLAGS="$xorg_testset_save_CFLAGS"
11090
11091 eval supported=\$$cacheid
11092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11093 printf "%s\n" "$supported" >&6; }
11094 if test "$supported" = "yes" ; then
11095 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11096 found="yes"
11097 fi
11098 fi
11099
11100
11101
11102 if test "x$STRICT_COMPILE" = "xyes"; then
11103 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11104 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11105 fi
11106
11107
11108
11109
11110
11111
11112 cat >>confdefs.h <<_ACEOF
11113 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11114 _ACEOF
11115
11116 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11117 if test "x$PVM" = "x"; then
11118 PVM="0"
11119 fi
11120
11121 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11122
11123 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11124 if test "x$PVP" = "x"; then
11125 PVP="0"
11126 fi
11127
11128 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11129
11130
11131
11132 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11133 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11134 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11135 touch \$(top_srcdir)/ChangeLog; \
11136 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11137
11138
11139
11140
11141 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11142 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11143 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11144 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11145 touch \$(top_srcdir)/INSTALL; \
11146 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11147
11148
11149
11150
11151
11152
11153 case $host_os in
11154 solaris*)
11155 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11156 # check for a man page file found in later versions that use
11157 # traditional section numbers instead
11158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11159 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11160 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11161 then :
11162 printf %s "(cached) " >&6
11163 else $as_nop
11164 test "$cross_compiling" = yes &&
11165 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11166 if test -r "/usr/share/man/man7/attributes.7"; then
11167 ac_cv_file__usr_share_man_man7_attributes_7=yes
11168 else
11169 ac_cv_file__usr_share_man_man7_attributes_7=no
11170 fi
11171 fi
11172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11173 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11174 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11175 then :
11176 SYSV_MAN_SECTIONS=false
11177 else $as_nop
11178 SYSV_MAN_SECTIONS=true
11179 fi
11180
11181 ;;
11182 *) SYSV_MAN_SECTIONS=false ;;
11183 esac
11184
11185 if test x$APP_MAN_SUFFIX = x ; then
11186 APP_MAN_SUFFIX=1
11187 fi
11188 if test x$APP_MAN_DIR = x ; then
11189 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11190 fi
11191
11192 if test x$LIB_MAN_SUFFIX = x ; then
11193 LIB_MAN_SUFFIX=3
11194 fi
11195 if test x$LIB_MAN_DIR = x ; then
11196 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11197 fi
11198
11199 if test x$FILE_MAN_SUFFIX = x ; then
11200 case $SYSV_MAN_SECTIONS in
11201 true) FILE_MAN_SUFFIX=4 ;;
11202 *) FILE_MAN_SUFFIX=5 ;;
11203 esac
11204 fi
11205 if test x$FILE_MAN_DIR = x ; then
11206 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11207 fi
11208
11209 if test x$MISC_MAN_SUFFIX = x ; then
11210 case $SYSV_MAN_SECTIONS in
11211 true) MISC_MAN_SUFFIX=5 ;;
11212 *) MISC_MAN_SUFFIX=7 ;;
11213 esac
11214 fi
11215 if test x$MISC_MAN_DIR = x ; then
11216 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11217 fi
11218
11219 if test x$DRIVER_MAN_SUFFIX = x ; then
11220 case $SYSV_MAN_SECTIONS in
11221 true) DRIVER_MAN_SUFFIX=7 ;;
11222 *) DRIVER_MAN_SUFFIX=4 ;;
11223 esac
11224 fi
11225 if test x$DRIVER_MAN_DIR = x ; then
11226 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11227 fi
11228
11229 if test x$ADMIN_MAN_SUFFIX = x ; then
11230 case $SYSV_MAN_SECTIONS in
11231 true) ADMIN_MAN_SUFFIX=1m ;;
11232 *) ADMIN_MAN_SUFFIX=8 ;;
11233 esac
11234 fi
11235 if test x$ADMIN_MAN_DIR = x ; then
11236 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11237 fi
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253 XORG_MAN_PAGE="X Version 11"
11254
11255 MAN_SUBSTS="\
11256 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11257 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11258 -e 's|__xservername__|Xorg|g' \
11259 -e 's|__xconfigfile__|xorg.conf|g' \
11260 -e 's|__projectroot__|\$(prefix)|g' \
11261 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11262 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11263 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11264 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11265 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11266 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11267 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11268
11269
11270
11271 # Check whether --enable-silent-rules was given.
11272 if test ${enable_silent_rules+y}
11273 then :
11274 enableval=$enable_silent_rules;
11275 fi
11276
11277 case $enable_silent_rules in # (((
11278 yes) AM_DEFAULT_VERBOSITY=0;;
11279 no) AM_DEFAULT_VERBOSITY=1;;
11280 *) AM_DEFAULT_VERBOSITY=0;;
11281 esac
11282 am_make=${MAKE-make}
11283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11284 printf %s "checking whether $am_make supports nested variables... " >&6; }
11285 if test ${am_cv_make_support_nested_variables+y}
11286 then :
11287 printf %s "(cached) " >&6
11288 else $as_nop
11289 if printf "%s\n" 'TRUE=$(BAR$(V))
11290 BAR0=false
11291 BAR1=true
11292 V=1
11293 am__doit:
11294 @$(TRUE)
11295 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11296 am_cv_make_support_nested_variables=yes
11297 else
11298 am_cv_make_support_nested_variables=no
11299 fi
11300 fi
11301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11302 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11303 if test $am_cv_make_support_nested_variables = yes; then
11304 AM_V='$(V)'
11305 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11306 else
11307 AM_V=$AM_DEFAULT_VERBOSITY
11308 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11309 fi
11310 AM_BACKSLASH='\'
11311
11312
11313
11314 # Checks for pkg-config packages
11315
11316 pkg_failed=no
11317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XCONSOLE" >&5
11318 printf %s "checking for XCONSOLE... " >&6; }
11319
11320 if test -n "$XCONSOLE_CFLAGS"; then
11321 pkg_cv_XCONSOLE_CFLAGS="$XCONSOLE_CFLAGS"
11322 elif test -n "$PKG_CONFIG"; then
11323 if test -n "$PKG_CONFIG" && \
11324 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17\""; } >&5
11325 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17") 2>&5
11326 ac_status=$?
11327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11328 test $ac_status = 0; }; then
11329 pkg_cv_XCONSOLE_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17" 2>/dev/null`
11330 test "x$?" != "x0" && pkg_failed=yes
11331 else
11332 pkg_failed=yes
11333 fi
11334 else
11335 pkg_failed=untried
11336 fi
11337 if test -n "$XCONSOLE_LIBS"; then
11338 pkg_cv_XCONSOLE_LIBS="$XCONSOLE_LIBS"
11339 elif test -n "$PKG_CONFIG"; then
11340 if test -n "$PKG_CONFIG" && \
11341 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17\""; } >&5
11342 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17") 2>&5
11343 ac_status=$?
11344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11345 test $ac_status = 0; }; then
11346 pkg_cv_XCONSOLE_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17" 2>/dev/null`
11347 test "x$?" != "x0" && pkg_failed=yes
11348 else
11349 pkg_failed=yes
11350 fi
11351 else
11352 pkg_failed=untried
11353 fi
11354
11355
11356
11357 if test $pkg_failed = yes; then
11358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11359 printf "%s\n" "no" >&6; }
11360
11361 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11362 _pkg_short_errors_supported=yes
11363 else
11364 _pkg_short_errors_supported=no
11365 fi
11366 if test $_pkg_short_errors_supported = yes; then
11367 XCONSOLE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17" 2>&1`
11368 else
11369 XCONSOLE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17" 2>&1`
11370 fi
11371 # Put the nasty error message in config.log where it belongs
11372 echo "$XCONSOLE_PKG_ERRORS" >&5
11373
11374 as_fn_error $? "Package requirements (xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17) were not met:
11375
11376 $XCONSOLE_PKG_ERRORS
11377
11378 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11379 installed software in a non-standard prefix.
11380
11381 Alternatively, you may set the environment variables XCONSOLE_CFLAGS
11382 and XCONSOLE_LIBS to avoid the need to call pkg-config.
11383 See the pkg-config man page for more details." "$LINENO" 5
11384 elif test $pkg_failed = untried; then
11385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11386 printf "%s\n" "no" >&6; }
11387 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11388 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11389 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11390 is in your PATH or set the PKG_CONFIG environment variable to the full
11391 path to pkg-config.
11392
11393 Alternatively, you may set the environment variables XCONSOLE_CFLAGS
11394 and XCONSOLE_LIBS to avoid the need to call pkg-config.
11395 See the pkg-config man page for more details.
11396
11397 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11398 See \`config.log' for more details" "$LINENO" 5; }
11399 else
11400 XCONSOLE_CFLAGS=$pkg_cv_XCONSOLE_CFLAGS
11401 XCONSOLE_LIBS=$pkg_cv_XCONSOLE_LIBS
11402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11403 printf "%s\n" "yes" >&6; }
11404
11405 fi
11406
11407
11408 pkg_failed=no
11409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
11410 printf %s "checking for APPDEFS... " >&6; }
11411
11412 if test -n "$APPDEFS_CFLAGS"; then
11413 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
11414 elif test -n "$PKG_CONFIG"; then
11415 if test -n "$PKG_CONFIG" && \
11416 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11417 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11418 ac_status=$?
11419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11420 test $ac_status = 0; }; then
11421 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
11422 test "x$?" != "x0" && pkg_failed=yes
11423 else
11424 pkg_failed=yes
11425 fi
11426 else
11427 pkg_failed=untried
11428 fi
11429 if test -n "$APPDEFS_LIBS"; then
11430 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
11431 elif test -n "$PKG_CONFIG"; then
11432 if test -n "$PKG_CONFIG" && \
11433 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11434 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11435 ac_status=$?
11436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11437 test $ac_status = 0; }; then
11438 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
11439 test "x$?" != "x0" && pkg_failed=yes
11440 else
11441 pkg_failed=yes
11442 fi
11443 else
11444 pkg_failed=untried
11445 fi
11446
11447
11448
11449 if test $pkg_failed = yes; then
11450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11451 printf "%s\n" "no" >&6; }
11452
11453 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11454 _pkg_short_errors_supported=yes
11455 else
11456 _pkg_short_errors_supported=no
11457 fi
11458 if test $_pkg_short_errors_supported = yes; then
11459 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
11460 else
11461 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
11462 fi
11463 # Put the nasty error message in config.log where it belongs
11464 echo "$APPDEFS_PKG_ERRORS" >&5
11465
11466 as_fn_error $? "Package requirements (xt) were not met:
11467
11468 $APPDEFS_PKG_ERRORS
11469
11470 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11471 installed software in a non-standard prefix.
11472
11473 Alternatively, you may set the environment variables APPDEFS_CFLAGS
11474 and APPDEFS_LIBS to avoid the need to call pkg-config.
11475 See the pkg-config man page for more details." "$LINENO" 5
11476 elif test $pkg_failed = untried; then
11477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11478 printf "%s\n" "no" >&6; }
11479 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11480 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11481 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11482 is in your PATH or set the PKG_CONFIG environment variable to the full
11483 path to pkg-config.
11484
11485 Alternatively, you may set the environment variables APPDEFS_CFLAGS
11486 and APPDEFS_LIBS to avoid the need to call pkg-config.
11487 See the pkg-config man page for more details.
11488
11489 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11490 See \`config.log' for more details" "$LINENO" 5; }
11491 else
11492 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
11493 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
11494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11495 printf "%s\n" "yes" >&6; }
11496
11497 fi
11498 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11499
11500 # Check whether --with-appdefaultdir was given.
11501 if test ${with_appdefaultdir+y}
11502 then :
11503 withval=$with_appdefaultdir; appdefaultdir="$withval"
11504 else $as_nop
11505 appdefaultdir="${xt_appdefaultdir}"
11506 fi
11507
11508
11509
11510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
11511 printf %s "checking for library containing openpty... " >&6; }
11512 if test ${ac_cv_search_openpty+y}
11513 then :
11514 printf %s "(cached) " >&6
11515 else $as_nop
11516 ac_func_search_save_LIBS=$LIBS
11517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11518 /* end confdefs.h. */
11519
11520 /* Override any GCC internal prototype to avoid an error.
11521 Use char because int might match the return type of a GCC
11522 builtin and then its argument prototype would still apply. */
11523 char openpty ();
11524 int
11525 main (void)
11526 {
11527 return openpty ();
11528 ;
11529 return 0;
11530 }
11531 _ACEOF
11532 for ac_lib in '' util
11533 do
11534 if test -z "$ac_lib"; then
11535 ac_res="none required"
11536 else
11537 ac_res=-l$ac_lib
11538 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11539 fi
11540 if ac_fn_c_try_link "$LINENO"
11541 then :
11542 ac_cv_search_openpty=$ac_res
11543 fi
11544 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11545 conftest$ac_exeext
11546 if test ${ac_cv_search_openpty+y}
11547 then :
11548 break
11549 fi
11550 done
11551 if test ${ac_cv_search_openpty+y}
11552 then :
11553
11554 else $as_nop
11555 ac_cv_search_openpty=no
11556 fi
11557 rm conftest.$ac_ext
11558 LIBS=$ac_func_search_save_LIBS
11559 fi
11560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
11561 printf "%s\n" "$ac_cv_search_openpty" >&6; }
11562 ac_res=$ac_cv_search_openpty
11563 if test "$ac_res" != no
11564 then :
11565 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11566
11567 fi
11568
11569 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
11570 if test "x$ac_cv_func_openpty" = xyes
11571 then :
11572 HAS_OPENPTY="yes"
11573 fi
11574
11575 if test "x$HAS_OPENPTY" = "xyes" ; then
11576
11577 printf "%s\n" "#define HAS_OPENPTY 1" >>confdefs.h
11578
11579 for ac_header in util.h libutil.h pty.h
11580 do :
11581 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
11582 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11583 if eval test \"x\$"$as_ac_Header"\" = x"yes"
11584 then :
11585 cat >>confdefs.h <<_ACEOF
11586 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
11587 _ACEOF
11588 break
11589 fi
11590
11591 done
11592 fi
11593
11594
11595 ac_config_files="$ac_config_files Makefile man/Makefile"
11596
11597 cat >confcache <<\_ACEOF
11598 # This file is a shell script that caches the results of configure
11599 # tests run on this system so they can be shared between configure
11600 # scripts and configure runs, see configure's option --config-cache.
11601 # It is not useful on other systems. If it contains results you don't
11602 # want to keep, you may remove or edit it.
11603 #
11604 # config.status only pays attention to the cache file if you give it
11605 # the --recheck option to rerun configure.
11606 #
11607 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11608 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11609 # following values.
11610
11611 _ACEOF
11612
11613 # The following way of writing the cache mishandles newlines in values,
11614 # but we know of no workaround that is simple, portable, and efficient.
11615 # So, we kill variables containing newlines.
11616 # Ultrix sh set writes to stderr and can't be redirected directly,
11617 # and sets the high bit in the cache file unless we assign to the vars.
11618 (
11619 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11620 eval ac_val=\$$ac_var
11621 case $ac_val in #(
11622 *${as_nl}*)
11623 case $ac_var in #(
11624 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11625 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11626 esac
11627 case $ac_var in #(
11628 _ | IFS | as_nl) ;; #(
11629 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11630 *) { eval $ac_var=; unset $ac_var;} ;;
11631 esac ;;
11632 esac
11633 done
11634
11635 (set) 2>&1 |
11636 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11637 *${as_nl}ac_space=\ *)
11638 # `set' does not quote correctly, so add quotes: double-quote
11639 # substitution turns \\\\ into \\, and sed turns \\ into \.
11640 sed -n \
11641 "s/'/'\\\\''/g;
11642 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11643 ;; #(
11644 *)
11645 # `set' quotes correctly as required by POSIX, so do not add quotes.
11646 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11647 ;;
11648 esac |
11649 sort
11650 ) |
11651 sed '
11652 /^ac_cv_env_/b end
11653 t clear
11654 :clear
11655 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11656 t end
11657 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11658 :end' >>confcache
11659 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11660 if test -w "$cache_file"; then
11661 if test "x$cache_file" != "x/dev/null"; then
11662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11663 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11664 if test ! -f "$cache_file" || test -h "$cache_file"; then
11665 cat confcache >"$cache_file"
11666 else
11667 case $cache_file in #(
11668 */* | ?:*)
11669 mv -f confcache "$cache_file"$$ &&
11670 mv -f "$cache_file"$$ "$cache_file" ;; #(
11671 *)
11672 mv -f confcache "$cache_file" ;;
11673 esac
11674 fi
11675 fi
11676 else
11677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11678 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11679 fi
11680 fi
11681 rm -f confcache
11682
11683 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11684 # Let make expand exec_prefix.
11685 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11686
11687 DEFS=-DHAVE_CONFIG_H
11688
11689 ac_libobjs=
11690 ac_ltlibobjs=
11691 U=
11692 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11693 # 1. Remove the extension, and $U if already installed.
11694 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11695 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11696 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11697 # will be set to the directory where LIBOBJS objects are built.
11698 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11699 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11700 done
11701 LIBOBJS=$ac_libobjs
11702
11703 LTLIBOBJS=$ac_ltlibobjs
11704
11705
11706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11707 printf %s "checking that generated files are newer than configure... " >&6; }
11708 if test -n "$am_sleep_pid"; then
11709 # Hide warnings about reused PIDs.
11710 wait $am_sleep_pid 2>/dev/null
11711 fi
11712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11713 printf "%s\n" "done" >&6; }
11714 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11715 as_fn_error $? "conditional \"AMDEP\" was never defined.
11716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11717 fi
11718 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11719 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11721 fi
11722 if test -n "$EXEEXT"; then
11723 am__EXEEXT_TRUE=
11724 am__EXEEXT_FALSE='#'
11725 else
11726 am__EXEEXT_TRUE='#'
11727 am__EXEEXT_FALSE=
11728 fi
11729
11730
11731 : "${CONFIG_STATUS=./config.status}"
11732 ac_write_fail=0
11733 ac_clean_files_save=$ac_clean_files
11734 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11736 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11737 as_write_fail=0
11738 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11739 #! $SHELL
11740 # Generated by $as_me.
11741 # Run this file to recreate the current configuration.
11742 # Compiler output produced by configure, useful for debugging
11743 # configure, is in config.log if it exists.
11744
11745 debug=false
11746 ac_cs_recheck=false
11747 ac_cs_silent=false
11748
11749 SHELL=\${CONFIG_SHELL-$SHELL}
11750 export SHELL
11751 _ASEOF
11752 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11753 ## -------------------- ##
11754 ## M4sh Initialization. ##
11755 ## -------------------- ##
11756
11757 # Be more Bourne compatible
11758 DUALCASE=1; export DUALCASE # for MKS sh
11759 as_nop=:
11760 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11761 then :
11762 emulate sh
11763 NULLCMD=:
11764 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11765 # is contrary to our usage. Disable this feature.
11766 alias -g '${1+"$@"}'='"$@"'
11767 setopt NO_GLOB_SUBST
11768 else $as_nop
11769 case `(set -o) 2>/dev/null` in #(
11770 *posix*) :
11771 set -o posix ;; #(
11772 *) :
11773 ;;
11774 esac
11775 fi
11776
11777
11778
11779 # Reset variables that may have inherited troublesome values from
11780 # the environment.
11781
11782 # IFS needs to be set, to space, tab, and newline, in precisely that order.
11783 # (If _AS_PATH_WALK were called with IFS unset, it would have the
11784 # side effect of setting IFS to empty, thus disabling word splitting.)
11785 # Quoting is to prevent editors from complaining about space-tab.
11786 as_nl='
11787 '
11788 export as_nl
11789 IFS=" "" $as_nl"
11790
11791 PS1='$ '
11792 PS2='> '
11793 PS4='+ '
11794
11795 # Ensure predictable behavior from utilities with locale-dependent output.
11796 LC_ALL=C
11797 export LC_ALL
11798 LANGUAGE=C
11799 export LANGUAGE
11800
11801 # We cannot yet rely on "unset" to work, but we need these variables
11802 # to be unset--not just set to an empty or harmless value--now, to
11803 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
11804 # also avoids known problems related to "unset" and subshell syntax
11805 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11806 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11807 do eval test \${$as_var+y} \
11808 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11809 done
11810
11811 # Ensure that fds 0, 1, and 2 are open.
11812 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11813 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11814 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
11815
11816 # The user is always right.
11817 if ${PATH_SEPARATOR+false} :; then
11818 PATH_SEPARATOR=:
11819 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11820 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11821 PATH_SEPARATOR=';'
11822 }
11823 fi
11824
11825
11826 # Find who we are. Look in the path if we contain no directory separator.
11827 as_myself=
11828 case $0 in #((
11829 *[\\/]* ) as_myself=$0 ;;
11830 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11831 for as_dir in $PATH
11832 do
11833 IFS=$as_save_IFS
11834 case $as_dir in #(((
11835 '') as_dir=./ ;;
11836 */) ;;
11837 *) as_dir=$as_dir/ ;;
11838 esac
11839 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11840 done
11841 IFS=$as_save_IFS
11842
11843 ;;
11844 esac
11845 # We did not find ourselves, most probably we were run as `sh COMMAND'
11846 # in which case we are not to be found in the path.
11847 if test "x$as_myself" = x; then
11848 as_myself=$0
11849 fi
11850 if test ! -f "$as_myself"; then
11851 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11852 exit 1
11853 fi
11854
11855
11856
11857 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11858 # ----------------------------------------
11859 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11860 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11861 # script with STATUS, using 1 if that was 0.
11862 as_fn_error ()
11863 {
11864 as_status=$1; test $as_status -eq 0 && as_status=1
11865 if test "$4"; then
11866 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11868 fi
11869 printf "%s\n" "$as_me: error: $2" >&2
11870 as_fn_exit $as_status
11871 } # as_fn_error
11872
11873
11874
11875 # as_fn_set_status STATUS
11876 # -----------------------
11877 # Set $? to STATUS, without forking.
11878 as_fn_set_status ()
11879 {
11880 return $1
11881 } # as_fn_set_status
11882
11883 # as_fn_exit STATUS
11884 # -----------------
11885 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11886 as_fn_exit ()
11887 {
11888 set +e
11889 as_fn_set_status $1
11890 exit $1
11891 } # as_fn_exit
11892
11893 # as_fn_unset VAR
11894 # ---------------
11895 # Portably unset VAR.
11896 as_fn_unset ()
11897 {
11898 { eval $1=; unset $1;}
11899 }
11900 as_unset=as_fn_unset
11901
11902 # as_fn_append VAR VALUE
11903 # ----------------------
11904 # Append the text in VALUE to the end of the definition contained in VAR. Take
11905 # advantage of any shell optimizations that allow amortized linear growth over
11906 # repeated appends, instead of the typical quadratic growth present in naive
11907 # implementations.
11908 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11909 then :
11910 eval 'as_fn_append ()
11911 {
11912 eval $1+=\$2
11913 }'
11914 else $as_nop
11915 as_fn_append ()
11916 {
11917 eval $1=\$$1\$2
11918 }
11919 fi # as_fn_append
11920
11921 # as_fn_arith ARG...
11922 # ------------------
11923 # Perform arithmetic evaluation on the ARGs, and store the result in the
11924 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11925 # must be portable across $(()) and expr.
11926 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11927 then :
11928 eval 'as_fn_arith ()
11929 {
11930 as_val=$(( $* ))
11931 }'
11932 else $as_nop
11933 as_fn_arith ()
11934 {
11935 as_val=`expr "$@" || test $? -eq 1`
11936 }
11937 fi # as_fn_arith
11938
11939
11940 if expr a : '\(a\)' >/dev/null 2>&1 &&
11941 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11942 as_expr=expr
11943 else
11944 as_expr=false
11945 fi
11946
11947 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11948 as_basename=basename
11949 else
11950 as_basename=false
11951 fi
11952
11953 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11954 as_dirname=dirname
11955 else
11956 as_dirname=false
11957 fi
11958
11959 as_me=`$as_basename -- "$0" ||
11960 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11961 X"$0" : 'X\(//\)$' \| \
11962 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11963 printf "%s\n" X/"$0" |
11964 sed '/^.*\/\([^/][^/]*\)\/*$/{
11965 s//\1/
11966 q
11967 }
11968 /^X\/\(\/\/\)$/{
11969 s//\1/
11970 q
11971 }
11972 /^X\/\(\/\).*/{
11973 s//\1/
11974 q
11975 }
11976 s/.*/./; q'`
11977
11978 # Avoid depending upon Character Ranges.
11979 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11980 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11981 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11982 as_cr_digits='0123456789'
11983 as_cr_alnum=$as_cr_Letters$as_cr_digits
11984
11985
11986 # Determine whether it's possible to make 'echo' print without a newline.
11987 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11988 # for compatibility with existing Makefiles.
11989 ECHO_C= ECHO_N= ECHO_T=
11990 case `echo -n x` in #(((((
11991 -n*)
11992 case `echo 'xy\c'` in
11993 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11994 xy) ECHO_C='\c';;
11995 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11996 ECHO_T=' ';;
11997 esac;;
11998 *)
11999 ECHO_N='-n';;
12000 esac
12001
12002 # For backward compatibility with old third-party macros, we provide
12003 # the shell variables $as_echo and $as_echo_n. New code should use
12004 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12005 as_echo='printf %s\n'
12006 as_echo_n='printf %s'
12007
12008 rm -f conf$$ conf$$.exe conf$$.file
12009 if test -d conf$$.dir; then
12010 rm -f conf$$.dir/conf$$.file
12011 else
12012 rm -f conf$$.dir
12013 mkdir conf$$.dir 2>/dev/null
12014 fi
12015 if (echo >conf$$.file) 2>/dev/null; then
12016 if ln -s conf$$.file conf$$ 2>/dev/null; then
12017 as_ln_s='ln -s'
12018 # ... but there are two gotchas:
12019 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12020 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12021 # In both cases, we have to default to `cp -pR'.
12022 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12023 as_ln_s='cp -pR'
12024 elif ln conf$$.file conf$$ 2>/dev/null; then
12025 as_ln_s=ln
12026 else
12027 as_ln_s='cp -pR'
12028 fi
12029 else
12030 as_ln_s='cp -pR'
12031 fi
12032 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12033 rmdir conf$$.dir 2>/dev/null
12034
12035
12036 # as_fn_mkdir_p
12037 # -------------
12038 # Create "$as_dir" as a directory, including parents if necessary.
12039 as_fn_mkdir_p ()
12040 {
12041
12042 case $as_dir in #(
12043 -*) as_dir=./$as_dir;;
12044 esac
12045 test -d "$as_dir" || eval $as_mkdir_p || {
12046 as_dirs=
12047 while :; do
12048 case $as_dir in #(
12049 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12050 *) as_qdir=$as_dir;;
12051 esac
12052 as_dirs="'$as_qdir' $as_dirs"
12053 as_dir=`$as_dirname -- "$as_dir" ||
12054 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12055 X"$as_dir" : 'X\(//\)[^/]' \| \
12056 X"$as_dir" : 'X\(//\)$' \| \
12057 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12058 printf "%s\n" X"$as_dir" |
12059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12060 s//\1/
12061 q
12062 }
12063 /^X\(\/\/\)[^/].*/{
12064 s//\1/
12065 q
12066 }
12067 /^X\(\/\/\)$/{
12068 s//\1/
12069 q
12070 }
12071 /^X\(\/\).*/{
12072 s//\1/
12073 q
12074 }
12075 s/.*/./; q'`
12076 test -d "$as_dir" && break
12077 done
12078 test -z "$as_dirs" || eval "mkdir $as_dirs"
12079 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12080
12081
12082 } # as_fn_mkdir_p
12083 if mkdir -p . 2>/dev/null; then
12084 as_mkdir_p='mkdir -p "$as_dir"'
12085 else
12086 test -d ./-p && rmdir ./-p
12087 as_mkdir_p=false
12088 fi
12089
12090
12091 # as_fn_executable_p FILE
12092 # -----------------------
12093 # Test if FILE is an executable regular file.
12094 as_fn_executable_p ()
12095 {
12096 test -f "$1" && test -x "$1"
12097 } # as_fn_executable_p
12098 as_test_x='test -x'
12099 as_executable_p=as_fn_executable_p
12100
12101 # Sed expression to map a string onto a valid CPP name.
12102 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12103
12104 # Sed expression to map a string onto a valid variable name.
12105 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12106
12107
12108 exec 6>&1
12109 ## ----------------------------------- ##
12110 ## Main body of $CONFIG_STATUS script. ##
12111 ## ----------------------------------- ##
12112 _ASEOF
12113 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12114
12115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12116 # Save the log message, to keep $0 and so on meaningful, and to
12117 # report actual input values of CONFIG_FILES etc. instead of their
12118 # values after options handling.
12119 ac_log="
12120 This file was extended by xconsole $as_me 1.0.8, which was
12121 generated by GNU Autoconf 2.71. Invocation command line was
12122
12123 CONFIG_FILES = $CONFIG_FILES
12124 CONFIG_HEADERS = $CONFIG_HEADERS
12125 CONFIG_LINKS = $CONFIG_LINKS
12126 CONFIG_COMMANDS = $CONFIG_COMMANDS
12127 $ $0 $@
12128
12129 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12130 "
12131
12132 _ACEOF
12133
12134 case $ac_config_files in *"
12135 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12136 esac
12137
12138 case $ac_config_headers in *"
12139 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12140 esac
12141
12142
12143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12144 # Files that config.status was made for.
12145 config_files="$ac_config_files"
12146 config_headers="$ac_config_headers"
12147 config_commands="$ac_config_commands"
12148
12149 _ACEOF
12150
12151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12152 ac_cs_usage="\
12153 \`$as_me' instantiates files and other configuration actions
12154 from templates according to the current configuration. Unless the files
12155 and actions are specified as TAGs, all are instantiated by default.
12156
12157 Usage: $0 [OPTION]... [TAG]...
12158
12159 -h, --help print this help, then exit
12160 -V, --version print version number and configuration settings, then exit
12161 --config print configuration, then exit
12162 -q, --quiet, --silent
12163 do not print progress messages
12164 -d, --debug don't remove temporary files
12165 --recheck update $as_me by reconfiguring in the same conditions
12166 --file=FILE[:TEMPLATE]
12167 instantiate the configuration file FILE
12168 --header=FILE[:TEMPLATE]
12169 instantiate the configuration header FILE
12170
12171 Configuration files:
12172 $config_files
12173
12174 Configuration headers:
12175 $config_headers
12176
12177 Configuration commands:
12178 $config_commands
12179
12180 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xconsole/issues>."
12181
12182 _ACEOF
12183 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12184 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12186 ac_cs_config='$ac_cs_config_escaped'
12187 ac_cs_version="\\
12188 xconsole config.status 1.0.8
12189 configured by $0, generated by GNU Autoconf 2.71,
12190 with options \\"\$ac_cs_config\\"
12191
12192 Copyright (C) 2021 Free Software Foundation, Inc.
12193 This config.status script is free software; the Free Software Foundation
12194 gives unlimited permission to copy, distribute and modify it."
12195
12196 ac_pwd='$ac_pwd'
12197 srcdir='$srcdir'
12198 INSTALL='$INSTALL'
12199 MKDIR_P='$MKDIR_P'
12200 AWK='$AWK'
12201 test -n "\$AWK" || AWK=awk
12202 _ACEOF
12203
12204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12205 # The default lists apply if the user does not specify any file.
12206 ac_need_defaults=:
12207 while test $# != 0
12208 do
12209 case $1 in
12210 --*=?*)
12211 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12212 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12213 ac_shift=:
12214 ;;
12215 --*=)
12216 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12217 ac_optarg=
12218 ac_shift=:
12219 ;;
12220 *)
12221 ac_option=$1
12222 ac_optarg=$2
12223 ac_shift=shift
12224 ;;
12225 esac
12226
12227 case $ac_option in
12228 # Handling of the options.
12229 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12230 ac_cs_recheck=: ;;
12231 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12232 printf "%s\n" "$ac_cs_version"; exit ;;
12233 --config | --confi | --conf | --con | --co | --c )
12234 printf "%s\n" "$ac_cs_config"; exit ;;
12235 --debug | --debu | --deb | --de | --d | -d )
12236 debug=: ;;
12237 --file | --fil | --fi | --f )
12238 $ac_shift
12239 case $ac_optarg in
12240 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12241 '') as_fn_error $? "missing file argument" ;;
12242 esac
12243 as_fn_append CONFIG_FILES " '$ac_optarg'"
12244 ac_need_defaults=false;;
12245 --header | --heade | --head | --hea )
12246 $ac_shift
12247 case $ac_optarg in
12248 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12249 esac
12250 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12251 ac_need_defaults=false;;
12252 --he | --h)
12253 # Conflict between --help and --header
12254 as_fn_error $? "ambiguous option: \`$1'
12255 Try \`$0 --help' for more information.";;
12256 --help | --hel | -h )
12257 printf "%s\n" "$ac_cs_usage"; exit ;;
12258 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12259 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12260 ac_cs_silent=: ;;
12261
12262 # This is an error.
12263 -*) as_fn_error $? "unrecognized option: \`$1'
12264 Try \`$0 --help' for more information." ;;
12265
12266 *) as_fn_append ac_config_targets " $1"
12267 ac_need_defaults=false ;;
12268
12269 esac
12270 shift
12271 done
12272
12273 ac_configure_extra_args=
12274
12275 if $ac_cs_silent; then
12276 exec 6>/dev/null
12277 ac_configure_extra_args="$ac_configure_extra_args --silent"
12278 fi
12279
12280 _ACEOF
12281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12282 if \$ac_cs_recheck; then
12283 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12284 shift
12285 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12286 CONFIG_SHELL='$SHELL'
12287 export CONFIG_SHELL
12288 exec "\$@"
12289 fi
12290
12291 _ACEOF
12292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12293 exec 5>>config.log
12294 {
12295 echo
12296 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12297 ## Running $as_me. ##
12298 _ASBOX
12299 printf "%s\n" "$ac_log"
12300 } >&5
12301
12302 _ACEOF
12303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12304 #
12305 # INIT-COMMANDS
12306 #
12307 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12308
12309 _ACEOF
12310
12311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12312
12313 # Handling of arguments.
12314 for ac_config_target in $ac_config_targets
12315 do
12316 case $ac_config_target in
12317 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12318 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12319 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12320 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12321
12322 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12323 esac
12324 done
12325
12326
12327 # If the user did not use the arguments to specify the items to instantiate,
12328 # then the envvar interface is used. Set only those that are not.
12329 # We use the long form for the default assignment because of an extremely
12330 # bizarre bug on SunOS 4.1.3.
12331 if $ac_need_defaults; then
12332 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12333 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12334 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12335 fi
12336
12337 # Have a temporary directory for convenience. Make it in the build tree
12338 # simply because there is no reason against having it here, and in addition,
12339 # creating and moving files from /tmp can sometimes cause problems.
12340 # Hook for its removal unless debugging.
12341 # Note that there is a small window in which the directory will not be cleaned:
12342 # after its creation but before its name has been assigned to `$tmp'.
12343 $debug ||
12344 {
12345 tmp= ac_tmp=
12346 trap 'exit_status=$?
12347 : "${ac_tmp:=$tmp}"
12348 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12349 ' 0
12350 trap 'as_fn_exit 1' 1 2 13 15
12351 }
12352 # Create a (secure) tmp directory for tmp files.
12353
12354 {
12355 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12356 test -d "$tmp"
12357 } ||
12358 {
12359 tmp=./conf$$-$RANDOM
12360 (umask 077 && mkdir "$tmp")
12361 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12362 ac_tmp=$tmp
12363
12364 # Set up the scripts for CONFIG_FILES section.
12365 # No need to generate them if there are no CONFIG_FILES.
12366 # This happens for instance with `./config.status config.h'.
12367 if test -n "$CONFIG_FILES"; then
12368
12369
12370 ac_cr=`echo X | tr X '\015'`
12371 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12372 # But we know of no other shell where ac_cr would be empty at this
12373 # point, so we can use a bashism as a fallback.
12374 if test "x$ac_cr" = x; then
12375 eval ac_cr=\$\'\\r\'
12376 fi
12377 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12378 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12379 ac_cs_awk_cr='\\r'
12380 else
12381 ac_cs_awk_cr=$ac_cr
12382 fi
12383
12384 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12385 _ACEOF
12386
12387
12388 {
12389 echo "cat >conf$$subs.awk <<_ACEOF" &&
12390 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12391 echo "_ACEOF"
12392 } >conf$$subs.sh ||
12393 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12394 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12395 ac_delim='%!_!# '
12396 for ac_last_try in false false false false false :; do
12397 . ./conf$$subs.sh ||
12398 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12399
12400 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12401 if test $ac_delim_n = $ac_delim_num; then
12402 break
12403 elif $ac_last_try; then
12404 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12405 else
12406 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12407 fi
12408 done
12409 rm -f conf$$subs.sh
12410
12411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12412 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12413 _ACEOF
12414 sed -n '
12415 h
12416 s/^/S["/; s/!.*/"]=/
12417 p
12418 g
12419 s/^[^!]*!//
12420 :repl
12421 t repl
12422 s/'"$ac_delim"'$//
12423 t delim
12424 :nl
12425 h
12426 s/\(.\{148\}\)..*/\1/
12427 t more1
12428 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12429 p
12430 n
12431 b repl
12432 :more1
12433 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12434 p
12435 g
12436 s/.\{148\}//
12437 t nl
12438 :delim
12439 h
12440 s/\(.\{148\}\)..*/\1/
12441 t more2
12442 s/["\\]/\\&/g; s/^/"/; s/$/"/
12443 p
12444 b
12445 :more2
12446 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12447 p
12448 g
12449 s/.\{148\}//
12450 t delim
12451 ' <conf$$subs.awk | sed '
12452 /^[^""]/{
12453 N
12454 s/\n//
12455 }
12456 ' >>$CONFIG_STATUS || ac_write_fail=1
12457 rm -f conf$$subs.awk
12458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12459 _ACAWK
12460 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12461 for (key in S) S_is_set[key] = 1
12462 FS = ""
12463
12464 }
12465 {
12466 line = $ 0
12467 nfields = split(line, field, "@")
12468 substed = 0
12469 len = length(field[1])
12470 for (i = 2; i < nfields; i++) {
12471 key = field[i]
12472 keylen = length(key)
12473 if (S_is_set[key]) {
12474 value = S[key]
12475 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12476 len += length(value) + length(field[++i])
12477 substed = 1
12478 } else
12479 len += 1 + keylen
12480 }
12481
12482 print line
12483 }
12484
12485 _ACAWK
12486 _ACEOF
12487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12488 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12489 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12490 else
12491 cat
12492 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12493 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12494 _ACEOF
12495
12496 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12497 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12498 # trailing colons and then remove the whole line if VPATH becomes empty
12499 # (actually we leave an empty line to preserve line numbers).
12500 if test "x$srcdir" = x.; then
12501 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12502 h
12503 s///
12504 s/^/:/
12505 s/[ ]*$/:/
12506 s/:\$(srcdir):/:/g
12507 s/:\${srcdir}:/:/g
12508 s/:@srcdir@:/:/g
12509 s/^:*//
12510 s/:*$//
12511 x
12512 s/\(=[ ]*\).*/\1/
12513 G
12514 s/\n//
12515 s/^[^=]*=[ ]*$//
12516 }'
12517 fi
12518
12519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12520 fi # test -n "$CONFIG_FILES"
12521
12522 # Set up the scripts for CONFIG_HEADERS section.
12523 # No need to generate them if there are no CONFIG_HEADERS.
12524 # This happens for instance with `./config.status Makefile'.
12525 if test -n "$CONFIG_HEADERS"; then
12526 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12527 BEGIN {
12528 _ACEOF
12529
12530 # Transform confdefs.h into an awk script `defines.awk', embedded as
12531 # here-document in config.status, that substitutes the proper values into
12532 # config.h.in to produce config.h.
12533
12534 # Create a delimiter string that does not exist in confdefs.h, to ease
12535 # handling of long lines.
12536 ac_delim='%!_!# '
12537 for ac_last_try in false false :; do
12538 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12539 if test -z "$ac_tt"; then
12540 break
12541 elif $ac_last_try; then
12542 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12543 else
12544 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12545 fi
12546 done
12547
12548 # For the awk script, D is an array of macro values keyed by name,
12549 # likewise P contains macro parameters if any. Preserve backslash
12550 # newline sequences.
12551
12552 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12553 sed -n '
12554 s/.\{148\}/&'"$ac_delim"'/g
12555 t rset
12556 :rset
12557 s/^[ ]*#[ ]*define[ ][ ]*/ /
12558 t def
12559 d
12560 :def
12561 s/\\$//
12562 t bsnl
12563 s/["\\]/\\&/g
12564 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12565 D["\1"]=" \3"/p
12566 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12567 d
12568 :bsnl
12569 s/["\\]/\\&/g
12570 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12571 D["\1"]=" \3\\\\\\n"\\/p
12572 t cont
12573 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12574 t cont
12575 d
12576 :cont
12577 n
12578 s/.\{148\}/&'"$ac_delim"'/g
12579 t clear
12580 :clear
12581 s/\\$//
12582 t bsnlc
12583 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12584 d
12585 :bsnlc
12586 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12587 b cont
12588 ' <confdefs.h | sed '
12589 s/'"$ac_delim"'/"\\\
12590 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12591
12592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12593 for (key in D) D_is_set[key] = 1
12594 FS = ""
12595 }
12596 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12597 line = \$ 0
12598 split(line, arg, " ")
12599 if (arg[1] == "#") {
12600 defundef = arg[2]
12601 mac1 = arg[3]
12602 } else {
12603 defundef = substr(arg[1], 2)
12604 mac1 = arg[2]
12605 }
12606 split(mac1, mac2, "(") #)
12607 macro = mac2[1]
12608 prefix = substr(line, 1, index(line, defundef) - 1)
12609 if (D_is_set[macro]) {
12610 # Preserve the white space surrounding the "#".
12611 print prefix "define", macro P[macro] D[macro]
12612 next
12613 } else {
12614 # Replace #undef with comments. This is necessary, for example,
12615 # in the case of _POSIX_SOURCE, which is predefined and required
12616 # on some systems where configure will not decide to define it.
12617 if (defundef == "undef") {
12618 print "/*", prefix defundef, macro, "*/"
12619 next
12620 }
12621 }
12622 }
12623 { print }
12624 _ACAWK
12625 _ACEOF
12626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12627 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12628 fi # test -n "$CONFIG_HEADERS"
12629
12630
12631 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12632 shift
12633 for ac_tag
12634 do
12635 case $ac_tag in
12636 :[FHLC]) ac_mode=$ac_tag; continue;;
12637 esac
12638 case $ac_mode$ac_tag in
12639 :[FHL]*:*);;
12640 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12641 :[FH]-) ac_tag=-:-;;
12642 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12643 esac
12644 ac_save_IFS=$IFS
12645 IFS=:
12646 set x $ac_tag
12647 IFS=$ac_save_IFS
12648 shift
12649 ac_file=$1
12650 shift
12651
12652 case $ac_mode in
12653 :L) ac_source=$1;;
12654 :[FH])
12655 ac_file_inputs=
12656 for ac_f
12657 do
12658 case $ac_f in
12659 -) ac_f="$ac_tmp/stdin";;
12660 *) # Look for the file first in the build tree, then in the source tree
12661 # (if the path is not absolute). The absolute path cannot be DOS-style,
12662 # because $ac_f cannot contain `:'.
12663 test -f "$ac_f" ||
12664 case $ac_f in
12665 [\\/$]*) false;;
12666 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12667 esac ||
12668 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12669 esac
12670 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12671 as_fn_append ac_file_inputs " '$ac_f'"
12672 done
12673
12674 # Let's still pretend it is `configure' which instantiates (i.e., don't
12675 # use $as_me), people would be surprised to read:
12676 # /* config.h. Generated by config.status. */
12677 configure_input='Generated from '`
12678 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12679 `' by configure.'
12680 if test x"$ac_file" != x-; then
12681 configure_input="$ac_file. $configure_input"
12682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12683 printf "%s\n" "$as_me: creating $ac_file" >&6;}
12684 fi
12685 # Neutralize special characters interpreted by sed in replacement strings.
12686 case $configure_input in #(
12687 *\&* | *\|* | *\\* )
12688 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12689 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12690 *) ac_sed_conf_input=$configure_input;;
12691 esac
12692
12693 case $ac_tag in
12694 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12695 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12696 esac
12697 ;;
12698 esac
12699
12700 ac_dir=`$as_dirname -- "$ac_file" ||
12701 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12702 X"$ac_file" : 'X\(//\)[^/]' \| \
12703 X"$ac_file" : 'X\(//\)$' \| \
12704 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12705 printf "%s\n" X"$ac_file" |
12706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12707 s//\1/
12708 q
12709 }
12710 /^X\(\/\/\)[^/].*/{
12711 s//\1/
12712 q
12713 }
12714 /^X\(\/\/\)$/{
12715 s//\1/
12716 q
12717 }
12718 /^X\(\/\).*/{
12719 s//\1/
12720 q
12721 }
12722 s/.*/./; q'`
12723 as_dir="$ac_dir"; as_fn_mkdir_p
12724 ac_builddir=.
12725
12726 case "$ac_dir" in
12727 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12728 *)
12729 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12730 # A ".." for each directory in $ac_dir_suffix.
12731 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12732 case $ac_top_builddir_sub in
12733 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12734 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12735 esac ;;
12736 esac
12737 ac_abs_top_builddir=$ac_pwd
12738 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12739 # for backward compatibility:
12740 ac_top_builddir=$ac_top_build_prefix
12741
12742 case $srcdir in
12743 .) # We are building in place.
12744 ac_srcdir=.
12745 ac_top_srcdir=$ac_top_builddir_sub
12746 ac_abs_top_srcdir=$ac_pwd ;;
12747 [\\/]* | ?:[\\/]* ) # Absolute name.
12748 ac_srcdir=$srcdir$ac_dir_suffix;
12749 ac_top_srcdir=$srcdir
12750 ac_abs_top_srcdir=$srcdir ;;
12751 *) # Relative name.
12752 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12753 ac_top_srcdir=$ac_top_build_prefix$srcdir
12754 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12755 esac
12756 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12757
12758
12759 case $ac_mode in
12760 :F)
12761 #
12762 # CONFIG_FILE
12763 #
12764
12765 case $INSTALL in
12766 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12767 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12768 esac
12769 ac_MKDIR_P=$MKDIR_P
12770 case $MKDIR_P in
12771 [\\/$]* | ?:[\\/]* ) ;;
12772 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12773 esac
12774 _ACEOF
12775
12776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12777 # If the template does not know about datarootdir, expand it.
12778 # FIXME: This hack should be removed a few years after 2.60.
12779 ac_datarootdir_hack=; ac_datarootdir_seen=
12780 ac_sed_dataroot='
12781 /datarootdir/ {
12782 p
12783 q
12784 }
12785 /@datadir@/p
12786 /@docdir@/p
12787 /@infodir@/p
12788 /@localedir@/p
12789 /@mandir@/p'
12790 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12791 *datarootdir*) ac_datarootdir_seen=yes;;
12792 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12794 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12795 _ACEOF
12796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12797 ac_datarootdir_hack='
12798 s&@datadir@&$datadir&g
12799 s&@docdir@&$docdir&g
12800 s&@infodir@&$infodir&g
12801 s&@localedir@&$localedir&g
12802 s&@mandir@&$mandir&g
12803 s&\\\${datarootdir}&$datarootdir&g' ;;
12804 esac
12805 _ACEOF
12806
12807 # Neutralize VPATH when `$srcdir' = `.'.
12808 # Shell code in configure.ac might set extrasub.
12809 # FIXME: do we really want to maintain this feature?
12810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12811 ac_sed_extra="$ac_vpsub
12812 $extrasub
12813 _ACEOF
12814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12815 :t
12816 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12817 s|@configure_input@|$ac_sed_conf_input|;t t
12818 s&@top_builddir@&$ac_top_builddir_sub&;t t
12819 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12820 s&@srcdir@&$ac_srcdir&;t t
12821 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12822 s&@top_srcdir@&$ac_top_srcdir&;t t
12823 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12824 s&@builddir@&$ac_builddir&;t t
12825 s&@abs_builddir@&$ac_abs_builddir&;t t
12826 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12827 s&@INSTALL@&$ac_INSTALL&;t t
12828 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12829 $ac_datarootdir_hack
12830 "
12831 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12832 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12833
12834 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12835 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12836 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12837 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12839 which seems to be undefined. Please make sure it is defined" >&5
12840 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12841 which seems to be undefined. Please make sure it is defined" >&2;}
12842
12843 rm -f "$ac_tmp/stdin"
12844 case $ac_file in
12845 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12846 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12847 esac \
12848 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12849 ;;
12850 :H)
12851 #
12852 # CONFIG_HEADER
12853 #
12854 if test x"$ac_file" != x-; then
12855 {
12856 printf "%s\n" "/* $configure_input */" >&1 \
12857 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12858 } >"$ac_tmp/config.h" \
12859 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12860 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12862 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12863 else
12864 rm -f "$ac_file"
12865 mv "$ac_tmp/config.h" "$ac_file" \
12866 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12867 fi
12868 else
12869 printf "%s\n" "/* $configure_input */" >&1 \
12870 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12871 || as_fn_error $? "could not create -" "$LINENO" 5
12872 fi
12873 # Compute "$ac_file"'s index in $config_headers.
12874 _am_arg="$ac_file"
12875 _am_stamp_count=1
12876 for _am_header in $config_headers :; do
12877 case $_am_header in
12878 $_am_arg | $_am_arg:* )
12879 break ;;
12880 * )
12881 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12882 esac
12883 done
12884 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12885 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12886 X"$_am_arg" : 'X\(//\)[^/]' \| \
12887 X"$_am_arg" : 'X\(//\)$' \| \
12888 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12889 printf "%s\n" X"$_am_arg" |
12890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12891 s//\1/
12892 q
12893 }
12894 /^X\(\/\/\)[^/].*/{
12895 s//\1/
12896 q
12897 }
12898 /^X\(\/\/\)$/{
12899 s//\1/
12900 q
12901 }
12902 /^X\(\/\).*/{
12903 s//\1/
12904 q
12905 }
12906 s/.*/./; q'`/stamp-h$_am_stamp_count
12907 ;;
12908
12909 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12910 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12911 ;;
12912 esac
12913
12914
12915 case $ac_file$ac_mode in
12916 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12917 # Older Autoconf quotes --file arguments for eval, but not when files
12918 # are listed without --file. Let's play safe and only enable the eval
12919 # if we detect the quoting.
12920 # TODO: see whether this extra hack can be removed once we start
12921 # requiring Autoconf 2.70 or later.
12922 case $CONFIG_FILES in #(
12923 *\'*) :
12924 eval set x "$CONFIG_FILES" ;; #(
12925 *) :
12926 set x $CONFIG_FILES ;; #(
12927 *) :
12928 ;;
12929 esac
12930 shift
12931 # Used to flag and report bootstrapping failures.
12932 am_rc=0
12933 for am_mf
12934 do
12935 # Strip MF so we end up with the name of the file.
12936 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12937 # Check whether this is an Automake generated Makefile which includes
12938 # dependency-tracking related rules and includes.
12939 # Grep'ing the whole file directly is not great: AIX grep has a line
12940 # limit of 2048, but all sed's we know have understand at least 4000.
12941 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12942 || continue
12943 am_dirpart=`$as_dirname -- "$am_mf" ||
12944 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12945 X"$am_mf" : 'X\(//\)[^/]' \| \
12946 X"$am_mf" : 'X\(//\)$' \| \
12947 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12948 printf "%s\n" X"$am_mf" |
12949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12950 s//\1/
12951 q
12952 }
12953 /^X\(\/\/\)[^/].*/{
12954 s//\1/
12955 q
12956 }
12957 /^X\(\/\/\)$/{
12958 s//\1/
12959 q
12960 }
12961 /^X\(\/\).*/{
12962 s//\1/
12963 q
12964 }
12965 s/.*/./; q'`
12966 am_filepart=`$as_basename -- "$am_mf" ||
12967 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12968 X"$am_mf" : 'X\(//\)$' \| \
12969 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12970 printf "%s\n" X/"$am_mf" |
12971 sed '/^.*\/\([^/][^/]*\)\/*$/{
12972 s//\1/
12973 q
12974 }
12975 /^X\/\(\/\/\)$/{
12976 s//\1/
12977 q
12978 }
12979 /^X\/\(\/\).*/{
12980 s//\1/
12981 q
12982 }
12983 s/.*/./; q'`
12984 { echo "$as_me:$LINENO: cd "$am_dirpart" \
12985 && sed -e '/# am--include-marker/d' "$am_filepart" \
12986 | $MAKE -f - am--depfiles" >&5
12987 (cd "$am_dirpart" \
12988 && sed -e '/# am--include-marker/d' "$am_filepart" \
12989 | $MAKE -f - am--depfiles) >&5 2>&5
12990 ac_status=$?
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); } || am_rc=$?
12993 done
12994 if test $am_rc -ne 0; then
12995 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12996 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12997 as_fn_error $? "Something went wrong bootstrapping makefile fragments
12998 for automatic dependency tracking. If GNU make was not used, consider
12999 re-running the configure script with MAKE=\"gmake\" (or whatever is
13000 necessary). You can also try re-running configure with the
13001 '--disable-dependency-tracking' option to at least be able to build
13002 the package (albeit without support for automatic dependency tracking).
13003 See \`config.log' for more details" "$LINENO" 5; }
13004 fi
13005 { am_dirpart=; unset am_dirpart;}
13006 { am_filepart=; unset am_filepart;}
13007 { am_mf=; unset am_mf;}
13008 { am_rc=; unset am_rc;}
13009 rm -f conftest-deps.mk
13010 }
13011 ;;
13012
13013 esac
13014 done # for ac_tag
13015
13016
13017 as_fn_exit 0
13018 _ACEOF
13019 ac_clean_files=$ac_clean_files_save
13020
13021 test $ac_write_fail = 0 ||
13022 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13023
13024
13025 # configure is writing to config.log, and then calls config.status.
13026 # config.status does its own redirection, appending to config.log.
13027 # Unfortunately, on DOS this fails, as config.log is still kept open
13028 # by configure, so config.status won't be able to write to it; its
13029 # output is simply discarded. So we exec the FD to /dev/null,
13030 # effectively closing config.log, so it can be properly (re)opened and
13031 # appended to by config.status. When coming back to configure, we
13032 # need to make the FD available again.
13033 if test "$no_create" != yes; then
13034 ac_cs_success=:
13035 ac_config_status_args=
13036 test "$silent" = yes &&
13037 ac_config_status_args="$ac_config_status_args --quiet"
13038 exec 5>/dev/null
13039 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13040 exec 5>>config.log
13041 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13042 # would make configure fail if this is the last instruction.
13043 $ac_cs_success || as_fn_exit 1
13044 fi
13045 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13047 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13048 fi
13049
13050
13051