Debian Codegraph @

xwd/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for xwd 1.0.9.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xwd/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 [email protected] and
271 $0: https://gitlab.freedesktop.org/xorg/app/xwd/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='xwd'
614 PACKAGE_TARNAME='xwd'
615 PACKAGE_VERSION='1.0.9'
616 PACKAGE_STRING='xwd 1.0.9'
617 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xwd/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 XWD_LIBS
658 XWD_CFLAGS
659 MAN_SUBSTS
660 XORG_MAN_PAGE
661 ADMIN_MAN_DIR
662 DRIVER_MAN_DIR
663 MISC_MAN_DIR
664 FILE_MAN_DIR
665 LIB_MAN_DIR
666 APP_MAN_DIR
667 ADMIN_MAN_SUFFIX
668 DRIVER_MAN_SUFFIX
669 MISC_MAN_SUFFIX
670 FILE_MAN_SUFFIX
671 LIB_MAN_SUFFIX
672 APP_MAN_SUFFIX
673 SED
674 host_os
675 host_vendor
676 host_cpu
677 host
678 build_os
679 build_vendor
680 build_cpu
681 build
682 INSTALL_CMD
683 PKG_CONFIG_LIBDIR
684 PKG_CONFIG_PATH
685 PKG_CONFIG
686 CHANGELOG_CMD
687 STRICT_CFLAGS
688 CWARNFLAGS
689 BASE_CFLAGS
690 am__fastdepCC_FALSE
691 am__fastdepCC_TRUE
692 CCDEPMODE
693 am__nodep
694 AMDEPBACKSLASH
695 AMDEP_FALSE
696 AMDEP_TRUE
697 am__include
698 DEPDIR
699 OBJEXT
700 EXEEXT
701 ac_ct_CC
702 CPPFLAGS
703 LDFLAGS
704 CFLAGS
705 CC
706 AM_BACKSLASH
707 AM_DEFAULT_VERBOSITY
708 AM_DEFAULT_V
709 AM_V
710 CSCOPE
711 ETAGS
712 CTAGS
713 am__untar
714 am__tar
715 AMTAR
716 am__leading_dot
717 SET_MAKE
718 AWK
719 mkdir_p
720 MKDIR_P
721 INSTALL_STRIP_PROGRAM
722 STRIP
723 install_sh
724 MAKEINFO
725 AUTOHEADER
726 AUTOMAKE
727 AUTOCONF
728 ACLOCAL
729 VERSION
730 PACKAGE
731 CYGPATH_W
732 am__isrc
733 INSTALL_DATA
734 INSTALL_SCRIPT
735 INSTALL_PROGRAM
736 target_alias
737 host_alias
738 build_alias
739 LIBS
740 ECHO_T
741 ECHO_N
742 ECHO_C
743 DEFS
744 mandir
745 localedir
746 libdir
747 psdir
748 pdfdir
749 dvidir
750 htmldir
751 infodir
752 docdir
753 oldincludedir
754 includedir
755 runstatedir
756 localstatedir
757 sharedstatedir
758 sysconfdir
759 datadir
760 datarootdir
761 libexecdir
762 sbindir
763 bindir
764 program_transform_name
765 prefix
766 exec_prefix
767 PACKAGE_URL
768 PACKAGE_BUGREPORT
769 PACKAGE_STRING
770 PACKAGE_VERSION
771 PACKAGE_TARNAME
772 PACKAGE_NAME
773 PATH_SEPARATOR
774 SHELL
775 am__quote'
776 ac_subst_files=''
777 ac_user_opts='
778 enable_option_checking
779 enable_silent_rules
780 enable_dependency_tracking
781 enable_selective_werror
782 enable_strict_compilation
783 with_xkb
784 '
785 ac_precious_vars='build_alias
786 host_alias
787 target_alias
788 CC
789 CFLAGS
790 LDFLAGS
791 LIBS
792 CPPFLAGS
793 PKG_CONFIG
794 PKG_CONFIG_PATH
795 PKG_CONFIG_LIBDIR
796 XWD_CFLAGS
797 XWD_LIBS'
798
799
800 # Initialize some variables set by options.
801 ac_init_help=
802 ac_init_version=false
803 ac_unrecognized_opts=
804 ac_unrecognized_sep=
805 # The variables have the same names as the options, with
806 # dashes changed to underlines.
807 cache_file=/dev/null
808 exec_prefix=NONE
809 no_create=
810 no_recursion=
811 prefix=NONE
812 program_prefix=NONE
813 program_suffix=NONE
814 program_transform_name=s,x,x,
815 silent=
816 site=
817 srcdir=
818 verbose=
819 x_includes=NONE
820 x_libraries=NONE
821
822 # Installation directory options.
823 # These are left unexpanded so users can "make install exec_prefix=/foo"
824 # and all the variables that are supposed to be based on exec_prefix
825 # by default will actually change.
826 # Use braces instead of parens because sh, perl, etc. also accept them.
827 # (The list follows the same order as the GNU Coding Standards.)
828 bindir='${exec_prefix}/bin'
829 sbindir='${exec_prefix}/sbin'
830 libexecdir='${exec_prefix}/libexec'
831 datarootdir='${prefix}/share'
832 datadir='${datarootdir}'
833 sysconfdir='${prefix}/etc'
834 sharedstatedir='${prefix}/com'
835 localstatedir='${prefix}/var'
836 runstatedir='${localstatedir}/run'
837 includedir='${prefix}/include'
838 oldincludedir='/usr/include'
839 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
840 infodir='${datarootdir}/info'
841 htmldir='${docdir}'
842 dvidir='${docdir}'
843 pdfdir='${docdir}'
844 psdir='${docdir}'
845 libdir='${exec_prefix}/lib'
846 localedir='${datarootdir}/locale'
847 mandir='${datarootdir}/man'
848
849 ac_prev=
850 ac_dashdash=
851 for ac_option
852 do
853 # If the previous option needs an argument, assign it.
854 if test -n "$ac_prev"; then
855 eval $ac_prev=\$ac_option
856 ac_prev=
857 continue
858 fi
859
860 case $ac_option in
861 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
862 *=) ac_optarg= ;;
863 *) ac_optarg=yes ;;
864 esac
865
866 case $ac_dashdash$ac_option in
867 --)
868 ac_dashdash=yes ;;
869
870 -bindir | --bindir | --bindi | --bind | --bin | --bi)
871 ac_prev=bindir ;;
872 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
873 bindir=$ac_optarg ;;
874
875 -build | --build | --buil | --bui | --bu)
876 ac_prev=build_alias ;;
877 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
878 build_alias=$ac_optarg ;;
879
880 -cache-file | --cache-file | --cache-fil | --cache-fi \
881 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
882 ac_prev=cache_file ;;
883 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
884 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
885 cache_file=$ac_optarg ;;
886
887 --config-cache | -C)
888 cache_file=config.cache ;;
889
890 -datadir | --datadir | --datadi | --datad)
891 ac_prev=datadir ;;
892 -datadir=* | --datadir=* | --datadi=* | --datad=*)
893 datadir=$ac_optarg ;;
894
895 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
896 | --dataroo | --dataro | --datar)
897 ac_prev=datarootdir ;;
898 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
899 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
900 datarootdir=$ac_optarg ;;
901
902 -disable-* | --disable-*)
903 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
904 # Reject names that are not valid shell variable names.
905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906 as_fn_error $? "invalid feature name: \`$ac_useropt'"
907 ac_useropt_orig=$ac_useropt
908 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
909 case $ac_user_opts in
910 *"
911 "enable_$ac_useropt"
912 "*) ;;
913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
914 ac_unrecognized_sep=', ';;
915 esac
916 eval enable_$ac_useropt=no ;;
917
918 -docdir | --docdir | --docdi | --doc | --do)
919 ac_prev=docdir ;;
920 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
921 docdir=$ac_optarg ;;
922
923 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
924 ac_prev=dvidir ;;
925 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
926 dvidir=$ac_optarg ;;
927
928 -enable-* | --enable-*)
929 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
930 # Reject names that are not valid shell variable names.
931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932 as_fn_error $? "invalid feature name: \`$ac_useropt'"
933 ac_useropt_orig=$ac_useropt
934 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
935 case $ac_user_opts in
936 *"
937 "enable_$ac_useropt"
938 "*) ;;
939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
940 ac_unrecognized_sep=', ';;
941 esac
942 eval enable_$ac_useropt=\$ac_optarg ;;
943
944 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
945 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
946 | --exec | --exe | --ex)
947 ac_prev=exec_prefix ;;
948 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
949 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
950 | --exec=* | --exe=* | --ex=*)
951 exec_prefix=$ac_optarg ;;
952
953 -gas | --gas | --ga | --g)
954 # Obsolete; use --with-gas.
955 with_gas=yes ;;
956
957 -help | --help | --hel | --he | -h)
958 ac_init_help=long ;;
959 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
960 ac_init_help=recursive ;;
961 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
962 ac_init_help=short ;;
963
964 -host | --host | --hos | --ho)
965 ac_prev=host_alias ;;
966 -host=* | --host=* | --hos=* | --ho=*)
967 host_alias=$ac_optarg ;;
968
969 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
970 ac_prev=htmldir ;;
971 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
972 | --ht=*)
973 htmldir=$ac_optarg ;;
974
975 -includedir | --includedir | --includedi | --included | --include \
976 | --includ | --inclu | --incl | --inc)
977 ac_prev=includedir ;;
978 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
979 | --includ=* | --inclu=* | --incl=* | --inc=*)
980 includedir=$ac_optarg ;;
981
982 -infodir | --infodir | --infodi | --infod | --info | --inf)
983 ac_prev=infodir ;;
984 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
985 infodir=$ac_optarg ;;
986
987 -libdir | --libdir | --libdi | --libd)
988 ac_prev=libdir ;;
989 -libdir=* | --libdir=* | --libdi=* | --libd=*)
990 libdir=$ac_optarg ;;
991
992 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
993 | --libexe | --libex | --libe)
994 ac_prev=libexecdir ;;
995 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
996 | --libexe=* | --libex=* | --libe=*)
997 libexecdir=$ac_optarg ;;
998
999 -localedir | --localedir | --localedi | --localed | --locale)
1000 ac_prev=localedir ;;
1001 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1002 localedir=$ac_optarg ;;
1003
1004 -localstatedir | --localstatedir | --localstatedi | --localstated \
1005 | --localstate | --localstat | --localsta | --localst | --locals)
1006 ac_prev=localstatedir ;;
1007 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1008 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1009 localstatedir=$ac_optarg ;;
1010
1011 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1012 ac_prev=mandir ;;
1013 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1014 mandir=$ac_optarg ;;
1015
1016 -nfp | --nfp | --nf)
1017 # Obsolete; use --without-fp.
1018 with_fp=no ;;
1019
1020 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1021 | --no-cr | --no-c | -n)
1022 no_create=yes ;;
1023
1024 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1026 no_recursion=yes ;;
1027
1028 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1029 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1030 | --oldin | --oldi | --old | --ol | --o)
1031 ac_prev=oldincludedir ;;
1032 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1033 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1034 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1035 oldincludedir=$ac_optarg ;;
1036
1037 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1038 ac_prev=prefix ;;
1039 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1040 prefix=$ac_optarg ;;
1041
1042 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1043 | --program-pre | --program-pr | --program-p)
1044 ac_prev=program_prefix ;;
1045 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1046 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1047 program_prefix=$ac_optarg ;;
1048
1049 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1050 | --program-suf | --program-su | --program-s)
1051 ac_prev=program_suffix ;;
1052 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1053 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1054 program_suffix=$ac_optarg ;;
1055
1056 -program-transform-name | --program-transform-name \
1057 | --program-transform-nam | --program-transform-na \
1058 | --program-transform-n | --program-transform- \
1059 | --program-transform | --program-transfor \
1060 | --program-transfo | --program-transf \
1061 | --program-trans | --program-tran \
1062 | --progr-tra | --program-tr | --program-t)
1063 ac_prev=program_transform_name ;;
1064 -program-transform-name=* | --program-transform-name=* \
1065 | --program-transform-nam=* | --program-transform-na=* \
1066 | --program-transform-n=* | --program-transform-=* \
1067 | --program-transform=* | --program-transfor=* \
1068 | --program-transfo=* | --program-transf=* \
1069 | --program-trans=* | --program-tran=* \
1070 | --progr-tra=* | --program-tr=* | --program-t=*)
1071 program_transform_name=$ac_optarg ;;
1072
1073 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1074 ac_prev=pdfdir ;;
1075 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1076 pdfdir=$ac_optarg ;;
1077
1078 -psdir | --psdir | --psdi | --psd | --ps)
1079 ac_prev=psdir ;;
1080 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1081 psdir=$ac_optarg ;;
1082
1083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084 | -silent | --silent | --silen | --sile | --sil)
1085 silent=yes ;;
1086
1087 -runstatedir | --runstatedir | --runstatedi | --runstated \
1088 | --runstate | --runstat | --runsta | --runst | --runs \
1089 | --run | --ru | --r)
1090 ac_prev=runstatedir ;;
1091 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1092 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1093 | --run=* | --ru=* | --r=*)
1094 runstatedir=$ac_optarg ;;
1095
1096 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1097 ac_prev=sbindir ;;
1098 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1099 | --sbi=* | --sb=*)
1100 sbindir=$ac_optarg ;;
1101
1102 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1103 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1104 | --sharedst | --shareds | --shared | --share | --shar \
1105 | --sha | --sh)
1106 ac_prev=sharedstatedir ;;
1107 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1108 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1109 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1110 | --sha=* | --sh=*)
1111 sharedstatedir=$ac_optarg ;;
1112
1113 -site | --site | --sit)
1114 ac_prev=site ;;
1115 -site=* | --site=* | --sit=*)
1116 site=$ac_optarg ;;
1117
1118 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1119 ac_prev=srcdir ;;
1120 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1121 srcdir=$ac_optarg ;;
1122
1123 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1124 | --syscon | --sysco | --sysc | --sys | --sy)
1125 ac_prev=sysconfdir ;;
1126 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1127 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1128 sysconfdir=$ac_optarg ;;
1129
1130 -target | --target | --targe | --targ | --tar | --ta | --t)
1131 ac_prev=target_alias ;;
1132 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1133 target_alias=$ac_optarg ;;
1134
1135 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1136 verbose=yes ;;
1137
1138 -version | --version | --versio | --versi | --vers | -V)
1139 ac_init_version=: ;;
1140
1141 -with-* | --with-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error $? "invalid package name: \`$ac_useropt'"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1149 *"
1150 "with_$ac_useropt"
1151 "*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval with_$ac_useropt=\$ac_optarg ;;
1156
1157 -without-* | --without-*)
1158 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1161 as_fn_error $? "invalid package name: \`$ac_useropt'"
1162 ac_useropt_orig=$ac_useropt
1163 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1164 case $ac_user_opts in
1165 *"
1166 "with_$ac_useropt"
1167 "*) ;;
1168 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1169 ac_unrecognized_sep=', ';;
1170 esac
1171 eval with_$ac_useropt=no ;;
1172
1173 --x)
1174 # Obsolete; use --with-x.
1175 with_x=yes ;;
1176
1177 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1178 | --x-incl | --x-inc | --x-in | --x-i)
1179 ac_prev=x_includes ;;
1180 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1181 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1182 x_includes=$ac_optarg ;;
1183
1184 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1185 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1186 ac_prev=x_libraries ;;
1187 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1188 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1189 x_libraries=$ac_optarg ;;
1190
1191 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1192 Try \`$0 --help' for more information"
1193 ;;
1194
1195 *=*)
1196 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1197 # Reject names that are not valid shell variable names.
1198 case $ac_envvar in #(
1199 '' | [0-9]* | *[!_$as_cr_alnum]* )
1200 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1201 esac
1202 eval $ac_envvar=\$ac_optarg
1203 export $ac_envvar ;;
1204
1205 *)
1206 # FIXME: should be removed in autoconf 3.0.
1207 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1208 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1209 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1210 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1211 ;;
1212
1213 esac
1214 done
1215
1216 if test -n "$ac_prev"; then
1217 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1218 as_fn_error $? "missing argument to $ac_option"
1219 fi
1220
1221 if test -n "$ac_unrecognized_opts"; then
1222 case $enable_option_checking in
1223 no) ;;
1224 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1225 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1226 esac
1227 fi
1228
1229 # Check all directory arguments for consistency.
1230 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1231 datadir sysconfdir sharedstatedir localstatedir includedir \
1232 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1233 libdir localedir mandir runstatedir
1234 do
1235 eval ac_val=\$$ac_var
1236 # Remove trailing slashes.
1237 case $ac_val in
1238 */ )
1239 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1240 eval $ac_var=\$ac_val;;
1241 esac
1242 # Be sure to have absolute directory names.
1243 case $ac_val in
1244 [\\/$]* | ?:[\\/]* ) continue;;
1245 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1246 esac
1247 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1248 done
1249
1250 # There might be people who depend on the old broken behavior: `$host'
1251 # used to hold the argument of --host etc.
1252 # FIXME: To remove some day.
1253 build=$build_alias
1254 host=$host_alias
1255 target=$target_alias
1256
1257 # FIXME: To remove some day.
1258 if test "x$host_alias" != x; then
1259 if test "x$build_alias" = x; then
1260 cross_compiling=maybe
1261 elif test "x$build_alias" != "x$host_alias"; then
1262 cross_compiling=yes
1263 fi
1264 fi
1265
1266 ac_tool_prefix=
1267 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1268
1269 test "$silent" = yes && exec 6>/dev/null
1270
1271
1272 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1273 ac_ls_di=`ls -di .` &&
1274 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1275 as_fn_error $? "working directory cannot be determined"
1276 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1277 as_fn_error $? "pwd does not report name of working directory"
1278
1279
1280 # Find the source files, if location was not specified.
1281 if test -z "$srcdir"; then
1282 ac_srcdir_defaulted=yes
1283 # Try the directory containing this script, then the parent directory.
1284 ac_confdir=`$as_dirname -- "$as_myself" ||
1285 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1286 X"$as_myself" : 'X\(//\)[^/]' \| \
1287 X"$as_myself" : 'X\(//\)$' \| \
1288 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1289 printf "%s\n" X"$as_myself" |
1290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1291 s//\1/
1292 q
1293 }
1294 /^X\(\/\/\)[^/].*/{
1295 s//\1/
1296 q
1297 }
1298 /^X\(\/\/\)$/{
1299 s//\1/
1300 q
1301 }
1302 /^X\(\/\).*/{
1303 s//\1/
1304 q
1305 }
1306 s/.*/./; q'`
1307 srcdir=$ac_confdir
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309 srcdir=..
1310 fi
1311 else
1312 ac_srcdir_defaulted=no
1313 fi
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1315 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1316 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1317 fi
1318 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1319 ac_abs_confdir=`(
1320 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1321 pwd)`
1322 # When building in place, set srcdir=.
1323 if test "$ac_abs_confdir" = "$ac_pwd"; then
1324 srcdir=.
1325 fi
1326 # Remove unnecessary trailing slashes from srcdir.
1327 # Double slashes in file names in object file debugging info
1328 # mess up M-x gdb in Emacs.
1329 case $srcdir in
1330 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1331 esac
1332 for ac_var in $ac_precious_vars; do
1333 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1334 eval ac_env_${ac_var}_value=\$${ac_var}
1335 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1336 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1337 done
1338
1339 #
1340 # Report the --help message.
1341 #
1342 if test "$ac_init_help" = "long"; then
1343 # Omit some internal or obsolete options to make the list less imposing.
1344 # This message is too long to be a string in the A/UX 3.1 sh.
1345 cat <<_ACEOF
1346 \`configure' configures xwd 1.0.9 to adapt to many kinds of systems.
1347
1348 Usage: $0 [OPTION]... [VAR=VALUE]...
1349
1350 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1351 VAR=VALUE. See below for descriptions of some of the useful variables.
1352
1353 Defaults for the options are specified in brackets.
1354
1355 Configuration:
1356 -h, --help display this help and exit
1357 --help=short display options specific to this package
1358 --help=recursive display the short help of all the included packages
1359 -V, --version display version information and exit
1360 -q, --quiet, --silent do not print \`checking ...' messages
1361 --cache-file=FILE cache test results in FILE [disabled]
1362 -C, --config-cache alias for \`--cache-file=config.cache'
1363 -n, --no-create do not create output files
1364 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1365
1366 Installation directories:
1367 --prefix=PREFIX install architecture-independent files in PREFIX
1368 [$ac_default_prefix]
1369 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1370 [PREFIX]
1371
1372 By default, \`make install' will install all the files in
1373 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1374 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1375 for instance \`--prefix=\$HOME'.
1376
1377 For better control, use the options below.
1378
1379 Fine tuning of the installation directories:
1380 --bindir=DIR user executables [EPREFIX/bin]
1381 --sbindir=DIR system admin executables [EPREFIX/sbin]
1382 --libexecdir=DIR program executables [EPREFIX/libexec]
1383 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1384 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1385 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1386 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1387 --libdir=DIR object code libraries [EPREFIX/lib]
1388 --includedir=DIR C header files [PREFIX/include]
1389 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1390 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1391 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1392 --infodir=DIR info documentation [DATAROOTDIR/info]
1393 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1394 --mandir=DIR man documentation [DATAROOTDIR/man]
1395 --docdir=DIR documentation root [DATAROOTDIR/doc/xwd]
1396 --htmldir=DIR html documentation [DOCDIR]
1397 --dvidir=DIR dvi documentation [DOCDIR]
1398 --pdfdir=DIR pdf documentation [DOCDIR]
1399 --psdir=DIR ps documentation [DOCDIR]
1400 _ACEOF
1401
1402 cat <<\_ACEOF
1403
1404 Program names:
1405 --program-prefix=PREFIX prepend PREFIX to installed program names
1406 --program-suffix=SUFFIX append SUFFIX to installed program names
1407 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1408
1409 System types:
1410 --build=BUILD configure for building on BUILD [guessed]
1411 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1412 _ACEOF
1413 fi
1414
1415 if test -n "$ac_init_help"; then
1416 case $ac_init_help in
1417 short | recursive ) echo "Configuration of xwd 1.0.9:";;
1418 esac
1419 cat <<\_ACEOF
1420
1421 Optional Features:
1422 --disable-option-checking ignore unrecognized --enable/--with options
1423 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1424 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1425 --enable-silent-rules less verbose build output (undo: "make V=1")
1426 --disable-silent-rules verbose build output (undo: "make V=0")
1427 --enable-dependency-tracking
1428 do not reject slow dependency extractors
1429 --disable-dependency-tracking
1430 speeds up one-time build
1431 --disable-selective-werror
1432 Turn off selective compiler errors. (default:
1433 enabled)
1434 --enable-strict-compilation
1435 Enable all warnings from compiler and make them
1436 errors (default: disabled)
1437
1438 Optional Packages:
1439 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1440 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1441 --without-xkb Disable use of XKB to sound bells (Default is
1442 with-xkb)
1443
1444 Some influential environment variables:
1445 CC C compiler command
1446 CFLAGS C compiler flags
1447 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1448 nonstandard directory <lib dir>
1449 LIBS libraries to pass to the linker, e.g. -l<library>
1450 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1451 you have headers in a nonstandard directory <include dir>
1452 PKG_CONFIG path to pkg-config utility
1453 PKG_CONFIG_PATH
1454 directories to add to pkg-config's search path
1455 PKG_CONFIG_LIBDIR
1456 path overriding pkg-config's built-in search path
1457 XWD_CFLAGS C compiler flags for XWD, overriding pkg-config
1458 XWD_LIBS linker flags for XWD, overriding pkg-config
1459
1460 Use these variables to override the choices made by `configure' or to help
1461 it to find libraries and programs with nonstandard names/locations.
1462
1463 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xwd/issues>.
1464 _ACEOF
1465 ac_status=$?
1466 fi
1467
1468 if test "$ac_init_help" = "recursive"; then
1469 # If there are subdirs, report their specific --help.
1470 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1471 test -d "$ac_dir" ||
1472 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1473 continue
1474 ac_builddir=.
1475
1476 case "$ac_dir" in
1477 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 *)
1479 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1480 # A ".." for each directory in $ac_dir_suffix.
1481 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1482 case $ac_top_builddir_sub in
1483 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1485 esac ;;
1486 esac
1487 ac_abs_top_builddir=$ac_pwd
1488 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1489 # for backward compatibility:
1490 ac_top_builddir=$ac_top_build_prefix
1491
1492 case $srcdir in
1493 .) # We are building in place.
1494 ac_srcdir=.
1495 ac_top_srcdir=$ac_top_builddir_sub
1496 ac_abs_top_srcdir=$ac_pwd ;;
1497 [\\/]* | ?:[\\/]* ) # Absolute name.
1498 ac_srcdir=$srcdir$ac_dir_suffix;
1499 ac_top_srcdir=$srcdir
1500 ac_abs_top_srcdir=$srcdir ;;
1501 *) # Relative name.
1502 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1503 ac_top_srcdir=$ac_top_build_prefix$srcdir
1504 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1505 esac
1506 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1507
1508 cd "$ac_dir" || { ac_status=$?; continue; }
1509 # Check for configure.gnu first; this name is used for a wrapper for
1510 # Metaconfig's "Configure" on case-insensitive file systems.
1511 if test -f "$ac_srcdir/configure.gnu"; then
1512 echo &&
1513 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1514 elif test -f "$ac_srcdir/configure"; then
1515 echo &&
1516 $SHELL "$ac_srcdir/configure" --help=recursive
1517 else
1518 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1519 fi || ac_status=$?
1520 cd "$ac_pwd" || { ac_status=$?; break; }
1521 done
1522 fi
1523
1524 test -n "$ac_init_help" && exit $ac_status
1525 if $ac_init_version; then
1526 cat <<\_ACEOF
1527 xwd configure 1.0.9
1528 generated by GNU Autoconf 2.71
1529
1530 Copyright (C) 2021 Free Software Foundation, Inc.
1531 This configure script is free software; the Free Software Foundation
1532 gives unlimited permission to copy, distribute and modify it.
1533 _ACEOF
1534 exit
1535 fi
1536
1537 ## ------------------------ ##
1538 ## Autoconf initialization. ##
1539 ## ------------------------ ##
1540
1541 # ac_fn_c_try_compile LINENO
1542 # --------------------------
1543 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1544 ac_fn_c_try_compile ()
1545 {
1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547 rm -f conftest.$ac_objext conftest.beam
1548 if { { ac_try="$ac_compile"
1549 case "(($ac_try" in
1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551 *) ac_try_echo=$ac_try;;
1552 esac
1553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554 printf "%s\n" "$ac_try_echo"; } >&5
1555 (eval "$ac_compile") 2>conftest.err
1556 ac_status=$?
1557 if test -s conftest.err; then
1558 grep -v '^ *+' conftest.err >conftest.er1
1559 cat conftest.er1 >&5
1560 mv -f conftest.er1 conftest.err
1561 fi
1562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563 test $ac_status = 0; } && {
1564 test -z "$ac_c_werror_flag" ||
1565 test ! -s conftest.err
1566 } && test -s conftest.$ac_objext
1567 then :
1568 ac_retval=0
1569 else $as_nop
1570 printf "%s\n" "$as_me: failed program was:" >&5
1571 sed 's/^/| /' conftest.$ac_ext >&5
1572
1573 ac_retval=1
1574 fi
1575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1576 as_fn_set_status $ac_retval
1577
1578 } # ac_fn_c_try_compile
1579
1580 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1581 # ------------------------------------------------------------------
1582 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1583 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1584 ac_fn_check_decl ()
1585 {
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 as_decl_name=`echo $2|sed 's/ *(.*//'`
1588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1589 printf %s "checking whether $as_decl_name is declared... " >&6; }
1590 if eval test \${$3+y}
1591 then :
1592 printf %s "(cached) " >&6
1593 else $as_nop
1594 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1595 eval ac_save_FLAGS=\$$6
1596 as_fn_append $6 " $5"
1597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1598 /* end confdefs.h. */
1599 $4
1600 int
1601 main (void)
1602 {
1603 #ifndef $as_decl_name
1604 #ifdef __cplusplus
1605 (void) $as_decl_use;
1606 #else
1607 (void) $as_decl_name;
1608 #endif
1609 #endif
1610
1611 ;
1612 return 0;
1613 }
1614 _ACEOF
1615 if ac_fn_c_try_compile "$LINENO"
1616 then :
1617 eval "$3=yes"
1618 else $as_nop
1619 eval "$3=no"
1620 fi
1621 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1622 eval $6=\$ac_save_FLAGS
1623
1624 fi
1625 eval ac_res=\$$3
1626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1627 printf "%s\n" "$ac_res" >&6; }
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629
1630 } # ac_fn_check_decl
1631
1632 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1633 # -------------------------------------------------------
1634 # Tests whether HEADER exists and can be compiled using the include files in
1635 # INCLUDES, setting the cache variable VAR accordingly.
1636 ac_fn_c_check_header_compile ()
1637 {
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1640 printf %s "checking for $2... " >&6; }
1641 if eval test \${$3+y}
1642 then :
1643 printf %s "(cached) " >&6
1644 else $as_nop
1645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1646 /* end confdefs.h. */
1647 $4
1648 #include <$2>
1649 _ACEOF
1650 if ac_fn_c_try_compile "$LINENO"
1651 then :
1652 eval "$3=yes"
1653 else $as_nop
1654 eval "$3=no"
1655 fi
1656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1657 fi
1658 eval ac_res=\$$3
1659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1660 printf "%s\n" "$ac_res" >&6; }
1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662
1663 } # ac_fn_c_check_header_compile
1664
1665 # ac_fn_c_try_link LINENO
1666 # -----------------------
1667 # Try to link conftest.$ac_ext, and return whether this succeeded.
1668 ac_fn_c_try_link ()
1669 {
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1672 if { { ac_try="$ac_link"
1673 case "(($ac_try" in
1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1676 esac
1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 printf "%s\n" "$ac_try_echo"; } >&5
1679 (eval "$ac_link") 2>conftest.err
1680 ac_status=$?
1681 if test -s conftest.err; then
1682 grep -v '^ *+' conftest.err >conftest.er1
1683 cat conftest.er1 >&5
1684 mv -f conftest.er1 conftest.err
1685 fi
1686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } && {
1688 test -z "$ac_c_werror_flag" ||
1689 test ! -s conftest.err
1690 } && test -s conftest$ac_exeext && {
1691 test "$cross_compiling" = yes ||
1692 test -x conftest$ac_exeext
1693 }
1694 then :
1695 ac_retval=0
1696 else $as_nop
1697 printf "%s\n" "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1699
1700 ac_retval=1
1701 fi
1702 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1703 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1704 # interfere with the next link command; also delete a directory that is
1705 # left behind by Apple's compiler. We do this before executing the actions.
1706 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708 as_fn_set_status $ac_retval
1709
1710 } # ac_fn_c_try_link
1711 ac_configure_args_raw=
1712 for ac_arg
1713 do
1714 case $ac_arg in
1715 *\'*)
1716 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1717 esac
1718 as_fn_append ac_configure_args_raw " '$ac_arg'"
1719 done
1720
1721 case $ac_configure_args_raw in
1722 *$as_nl*)
1723 ac_safe_unquote= ;;
1724 *)
1725 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1726 ac_unsafe_a="$ac_unsafe_z#~"
1727 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1728 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1729 esac
1730
1731 cat >config.log <<_ACEOF
1732 This file contains any messages produced by compilers while
1733 running configure, to aid debugging if configure makes a mistake.
1734
1735 It was created by xwd $as_me 1.0.9, which was
1736 generated by GNU Autoconf 2.71. Invocation command line was
1737
1738 $ $0$ac_configure_args_raw
1739
1740 _ACEOF
1741 exec 5>>config.log
1742 {
1743 cat <<_ASUNAME
1744 ## --------- ##
1745 ## Platform. ##
1746 ## --------- ##
1747
1748 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1749 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1750 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1751 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1752 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1753
1754 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1755 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1756
1757 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1758 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1759 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1760 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1761 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1762 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1763 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1764
1765 _ASUNAME
1766
1767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1768 for as_dir in $PATH
1769 do
1770 IFS=$as_save_IFS
1771 case $as_dir in #(((
1772 '') as_dir=./ ;;
1773 */) ;;
1774 *) as_dir=$as_dir/ ;;
1775 esac
1776 printf "%s\n" "PATH: $as_dir"
1777 done
1778 IFS=$as_save_IFS
1779
1780 } >&5
1781
1782 cat >&5 <<_ACEOF
1783
1784
1785 ## ----------- ##
1786 ## Core tests. ##
1787 ## ----------- ##
1788
1789 _ACEOF
1790
1791
1792 # Keep a trace of the command line.
1793 # Strip out --no-create and --no-recursion so they do not pile up.
1794 # Strip out --silent because we don't want to record it for future runs.
1795 # Also quote any args containing shell meta-characters.
1796 # Make two passes to allow for proper duplicate-argument suppression.
1797 ac_configure_args=
1798 ac_configure_args0=
1799 ac_configure_args1=
1800 ac_must_keep_next=false
1801 for ac_pass in 1 2
1802 do
1803 for ac_arg
1804 do
1805 case $ac_arg in
1806 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1807 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1808 | -silent | --silent | --silen | --sile | --sil)
1809 continue ;;
1810 *\'*)
1811 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1812 esac
1813 case $ac_pass in
1814 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1815 2)
1816 as_fn_append ac_configure_args1 " '$ac_arg'"
1817 if test $ac_must_keep_next = true; then
1818 ac_must_keep_next=false # Got value, back to normal.
1819 else
1820 case $ac_arg in
1821 *=* | --config-cache | -C | -disable-* | --disable-* \
1822 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1823 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1824 | -with-* | --with-* | -without-* | --without-* | --x)
1825 case "$ac_configure_args0 " in
1826 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1827 esac
1828 ;;
1829 -* ) ac_must_keep_next=true ;;
1830 esac
1831 fi
1832 as_fn_append ac_configure_args " '$ac_arg'"
1833 ;;
1834 esac
1835 done
1836 done
1837 { ac_configure_args0=; unset ac_configure_args0;}
1838 { ac_configure_args1=; unset ac_configure_args1;}
1839
1840 # When interrupted or exit'd, cleanup temporary files, and complete
1841 # config.log. We remove comments because anyway the quotes in there
1842 # would cause problems or look ugly.
1843 # WARNING: Use '\'' to represent an apostrophe within the trap.
1844 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1845 trap 'exit_status=$?
1846 # Sanitize IFS.
1847 IFS=" "" $as_nl"
1848 # Save into config.log some information that might help in debugging.
1849 {
1850 echo
1851
1852 printf "%s\n" "## ---------------- ##
1853 ## Cache variables. ##
1854 ## ---------------- ##"
1855 echo
1856 # The following way of writing the cache mishandles newlines in values,
1857 (
1858 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1859 eval ac_val=\$$ac_var
1860 case $ac_val in #(
1861 *${as_nl}*)
1862 case $ac_var in #(
1863 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1864 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1865 esac
1866 case $ac_var in #(
1867 _ | IFS | as_nl) ;; #(
1868 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1869 *) { eval $ac_var=; unset $ac_var;} ;;
1870 esac ;;
1871 esac
1872 done
1873 (set) 2>&1 |
1874 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1875 *${as_nl}ac_space=\ *)
1876 sed -n \
1877 "s/'\''/'\''\\\\'\'''\''/g;
1878 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1879 ;; #(
1880 *)
1881 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1882 ;;
1883 esac |
1884 sort
1885 )
1886 echo
1887
1888 printf "%s\n" "## ----------------- ##
1889 ## Output variables. ##
1890 ## ----------------- ##"
1891 echo
1892 for ac_var in $ac_subst_vars
1893 do
1894 eval ac_val=\$$ac_var
1895 case $ac_val in
1896 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1897 esac
1898 printf "%s\n" "$ac_var='\''$ac_val'\''"
1899 done | sort
1900 echo
1901
1902 if test -n "$ac_subst_files"; then
1903 printf "%s\n" "## ------------------- ##
1904 ## File substitutions. ##
1905 ## ------------------- ##"
1906 echo
1907 for ac_var in $ac_subst_files
1908 do
1909 eval ac_val=\$$ac_var
1910 case $ac_val in
1911 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1912 esac
1913 printf "%s\n" "$ac_var='\''$ac_val'\''"
1914 done | sort
1915 echo
1916 fi
1917
1918 if test -s confdefs.h; then
1919 printf "%s\n" "## ----------- ##
1920 ## confdefs.h. ##
1921 ## ----------- ##"
1922 echo
1923 cat confdefs.h
1924 echo
1925 fi
1926 test "$ac_signal" != 0 &&
1927 printf "%s\n" "$as_me: caught signal $ac_signal"
1928 printf "%s\n" "$as_me: exit $exit_status"
1929 } >&5
1930 rm -f core *.core core.conftest.* &&
1931 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1932 exit $exit_status
1933 ' 0
1934 for ac_signal in 1 2 13 15; do
1935 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1936 done
1937 ac_signal=0
1938
1939 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1940 rm -f -r conftest* confdefs.h
1941
1942 printf "%s\n" "/* confdefs.h */" > confdefs.h
1943
1944 # Predefined preprocessor variables.
1945
1946 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1947
1948 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1949
1950 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1951
1952 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1953
1954 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1955
1956 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1957
1958
1959 # Let the site file select an alternate cache file if it wants to.
1960 # Prefer an explicitly selected file to automatically selected ones.
1961 if test -n "$CONFIG_SITE"; then
1962 ac_site_files="$CONFIG_SITE"
1963 elif test "x$prefix" != xNONE; then
1964 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1965 else
1966 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1967 fi
1968
1969 for ac_site_file in $ac_site_files
1970 do
1971 case $ac_site_file in #(
1972 */*) :
1973 ;; #(
1974 *) :
1975 ac_site_file=./$ac_site_file ;;
1976 esac
1977 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1979 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1980 sed 's/^/| /' "$ac_site_file" >&5
1981 . "$ac_site_file" \
1982 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1983 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1984 as_fn_error $? "failed to load site script $ac_site_file
1985 See \`config.log' for more details" "$LINENO" 5; }
1986 fi
1987 done
1988
1989 if test -r "$cache_file"; then
1990 # Some versions of bash will fail to source /dev/null (special files
1991 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1992 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1994 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1995 case $cache_file in
1996 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1997 *) . "./$cache_file";;
1998 esac
1999 fi
2000 else
2001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2002 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2003 >$cache_file
2004 fi
2005
2006 # Test code for whether the C compiler supports C89 (global declarations)
2007 ac_c_conftest_c89_globals='
2008 /* Does the compiler advertise C89 conformance?
2009 Do not test the value of __STDC__, because some compilers set it to 0
2010 while being otherwise adequately conformant. */
2011 #if !defined __STDC__
2012 # error "Compiler does not advertise C89 conformance"
2013 #endif
2014
2015 #include <stddef.h>
2016 #include <stdarg.h>
2017 struct stat;
2018 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2019 struct buf { int x; };
2020 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2021 static char *e (p, i)
2022 char **p;
2023 int i;
2024 {
2025 return p[i];
2026 }
2027 static char *f (char * (*g) (char **, int), char **p, ...)
2028 {
2029 char *s;
2030 va_list v;
2031 va_start (v,p);
2032 s = g (p, va_arg (v,int));
2033 va_end (v);
2034 return s;
2035 }
2036
2037 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2038 function prototypes and stuff, but not \xHH hex character constants.
2039 These do not provoke an error unfortunately, instead are silently treated
2040 as an "x". The following induces an error, until -std is added to get
2041 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2042 array size at least. It is necessary to write \x00 == 0 to get something
2043 that is true only with -std. */
2044 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2045
2046 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2047 inside strings and character constants. */
2048 #define FOO(x) '\''x'\''
2049 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2050
2051 int test (int i, double x);
2052 struct s1 {int (*f) (int a);};
2053 struct s2 {int (*f) (double a);};
2054 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2055 int, int);'
2056
2057 # Test code for whether the C compiler supports C89 (body of main).
2058 ac_c_conftest_c89_main='
2059 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2060 '
2061
2062 # Test code for whether the C compiler supports C99 (global declarations)
2063 ac_c_conftest_c99_globals='
2064 // Does the compiler advertise C99 conformance?
2065 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2066 # error "Compiler does not advertise C99 conformance"
2067 #endif
2068
2069 #include <stdbool.h>
2070 extern int puts (const char *);
2071 extern int printf (const char *, ...);
2072 extern int dprintf (int, const char *, ...);
2073 extern void *malloc (size_t);
2074
2075 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2076 // dprintf is used instead of fprintf to avoid needing to declare
2077 // FILE and stderr.
2078 #define debug(...) dprintf (2, __VA_ARGS__)
2079 #define showlist(...) puts (#__VA_ARGS__)
2080 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2081 static void
2082 test_varargs_macros (void)
2083 {
2084 int x = 1234;
2085 int y = 5678;
2086 debug ("Flag");
2087 debug ("X = %d\n", x);
2088 showlist (The first, second, and third items.);
2089 report (x>y, "x is %d but y is %d", x, y);
2090 }
2091
2092 // Check long long types.
2093 #define BIG64 18446744073709551615ull
2094 #define BIG32 4294967295ul
2095 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2096 #if !BIG_OK
2097 #error "your preprocessor is broken"
2098 #endif
2099 #if BIG_OK
2100 #else
2101 #error "your preprocessor is broken"
2102 #endif
2103 static long long int bignum = -9223372036854775807LL;
2104 static unsigned long long int ubignum = BIG64;
2105
2106 struct incomplete_array
2107 {
2108 int datasize;
2109 double data[];
2110 };
2111
2112 struct named_init {
2113 int number;
2114 const wchar_t *name;
2115 double average;
2116 };
2117
2118 typedef const char *ccp;
2119
2120 static inline int
2121 test_restrict (ccp restrict text)
2122 {
2123 // See if C++-style comments work.
2124 // Iterate through items via the restricted pointer.
2125 // Also check for declarations in for loops.
2126 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2127 continue;
2128 return 0;
2129 }
2130
2131 // Check varargs and va_copy.
2132 static bool
2133 test_varargs (const char *format, ...)
2134 {
2135 va_list args;
2136 va_start (args, format);
2137 va_list args_copy;
2138 va_copy (args_copy, args);
2139
2140 const char *str = "";
2141 int number = 0;
2142 float fnumber = 0;
2143
2144 while (*format)
2145 {
2146 switch (*format++)
2147 {
2148 case '\''s'\'': // string
2149 str = va_arg (args_copy, const char *);
2150 break;
2151 case '\''d'\'': // int
2152 number = va_arg (args_copy, int);
2153 break;
2154 case '\''f'\'': // float
2155 fnumber = va_arg (args_copy, double);
2156 break;
2157 default:
2158 break;
2159 }
2160 }
2161 va_end (args_copy);
2162 va_end (args);
2163
2164 return *str && number && fnumber;
2165 }
2166 '
2167
2168 # Test code for whether the C compiler supports C99 (body of main).
2169 ac_c_conftest_c99_main='
2170 // Check bool.
2171 _Bool success = false;
2172 success |= (argc != 0);
2173
2174 // Check restrict.
2175 if (test_restrict ("String literal") == 0)
2176 success = true;
2177 char *restrict newvar = "Another string";
2178
2179 // Check varargs.
2180 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2181 test_varargs_macros ();
2182
2183 // Check flexible array members.
2184 struct incomplete_array *ia =
2185 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2186 ia->datasize = 10;
2187 for (int i = 0; i < ia->datasize; ++i)
2188 ia->data[i] = i * 1.234;
2189
2190 // Check named initializers.
2191 struct named_init ni = {
2192 .number = 34,
2193 .name = L"Test wide string",
2194 .average = 543.34343,
2195 };
2196
2197 ni.number = 58;
2198
2199 int dynamic_array[ni.number];
2200 dynamic_array[0] = argv[0][0];
2201 dynamic_array[ni.number - 1] = 543;
2202
2203 // work around unused variable warnings
2204 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2205 || dynamic_array[ni.number - 1] != 543);
2206 '
2207
2208 # Test code for whether the C compiler supports C11 (global declarations)
2209 ac_c_conftest_c11_globals='
2210 // Does the compiler advertise C11 conformance?
2211 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2212 # error "Compiler does not advertise C11 conformance"
2213 #endif
2214
2215 // Check _Alignas.
2216 char _Alignas (double) aligned_as_double;
2217 char _Alignas (0) no_special_alignment;
2218 extern char aligned_as_int;
2219 char _Alignas (0) _Alignas (int) aligned_as_int;
2220
2221 // Check _Alignof.
2222 enum
2223 {
2224 int_alignment = _Alignof (int),
2225 int_array_alignment = _Alignof (int[100]),
2226 char_alignment = _Alignof (char)
2227 };
2228 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2229
2230 // Check _Noreturn.
2231 int _Noreturn does_not_return (void) { for (;;) continue; }
2232
2233 // Check _Static_assert.
2234 struct test_static_assert
2235 {
2236 int x;
2237 _Static_assert (sizeof (int) <= sizeof (long int),
2238 "_Static_assert does not work in struct");
2239 long int y;
2240 };
2241
2242 // Check UTF-8 literals.
2243 #define u8 syntax error!
2244 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2245
2246 // Check duplicate typedefs.
2247 typedef long *long_ptr;
2248 typedef long int *long_ptr;
2249 typedef long_ptr long_ptr;
2250
2251 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2252 struct anonymous
2253 {
2254 union {
2255 struct { int i; int j; };
2256 struct { int k; long int l; } w;
2257 };
2258 int m;
2259 } v1;
2260 '
2261
2262 # Test code for whether the C compiler supports C11 (body of main).
2263 ac_c_conftest_c11_main='
2264 _Static_assert ((offsetof (struct anonymous, i)
2265 == offsetof (struct anonymous, w.k)),
2266 "Anonymous union alignment botch");
2267 v1.i = 2;
2268 v1.w.k = 5;
2269 ok |= v1.i != 5;
2270 '
2271
2272 # Test code for whether the C compiler supports C11 (complete).
2273 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2274 ${ac_c_conftest_c99_globals}
2275 ${ac_c_conftest_c11_globals}
2276
2277 int
2278 main (int argc, char **argv)
2279 {
2280 int ok = 0;
2281 ${ac_c_conftest_c89_main}
2282 ${ac_c_conftest_c99_main}
2283 ${ac_c_conftest_c11_main}
2284 return ok;
2285 }
2286 "
2287
2288 # Test code for whether the C compiler supports C99 (complete).
2289 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2290 ${ac_c_conftest_c99_globals}
2291
2292 int
2293 main (int argc, char **argv)
2294 {
2295 int ok = 0;
2296 ${ac_c_conftest_c89_main}
2297 ${ac_c_conftest_c99_main}
2298 return ok;
2299 }
2300 "
2301
2302 # Test code for whether the C compiler supports C89 (complete).
2303 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2304
2305 int
2306 main (int argc, char **argv)
2307 {
2308 int ok = 0;
2309 ${ac_c_conftest_c89_main}
2310 return ok;
2311 }
2312 "
2313
2314 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2315 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2316 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2317 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2318 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2319 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2320 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2321 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2322 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2323
2324 # Auxiliary files required by this configure script.
2325 ac_aux_files="config.guess config.sub compile missing install-sh"
2326
2327 # Locations in which to look for auxiliary files.
2328 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2329
2330 # Search for a directory containing all of the required auxiliary files,
2331 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2332 # If we don't find one directory that contains all the files we need,
2333 # we report the set of missing files from the *first* directory in
2334 # $ac_aux_dir_candidates and give up.
2335 ac_missing_aux_files=""
2336 ac_first_candidate=:
2337 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2339 as_found=false
2340 for as_dir in $ac_aux_dir_candidates
2341 do
2342 IFS=$as_save_IFS
2343 case $as_dir in #(((
2344 '') as_dir=./ ;;
2345 */) ;;
2346 *) as_dir=$as_dir/ ;;
2347 esac
2348 as_found=:
2349
2350 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2351 ac_aux_dir_found=yes
2352 ac_install_sh=
2353 for ac_aux in $ac_aux_files
2354 do
2355 # As a special case, if "install-sh" is required, that requirement
2356 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2357 # and $ac_install_sh is set appropriately for whichever one is found.
2358 if test x"$ac_aux" = x"install-sh"
2359 then
2360 if test -f "${as_dir}install-sh"; then
2361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2362 ac_install_sh="${as_dir}install-sh -c"
2363 elif test -f "${as_dir}install.sh"; then
2364 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2365 ac_install_sh="${as_dir}install.sh -c"
2366 elif test -f "${as_dir}shtool"; then
2367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2368 ac_install_sh="${as_dir}shtool install -c"
2369 else
2370 ac_aux_dir_found=no
2371 if $ac_first_candidate; then
2372 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2373 else
2374 break
2375 fi
2376 fi
2377 else
2378 if test -f "${as_dir}${ac_aux}"; then
2379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2380 else
2381 ac_aux_dir_found=no
2382 if $ac_first_candidate; then
2383 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2384 else
2385 break
2386 fi
2387 fi
2388 fi
2389 done
2390 if test "$ac_aux_dir_found" = yes; then
2391 ac_aux_dir="$as_dir"
2392 break
2393 fi
2394 ac_first_candidate=false
2395
2396 as_found=false
2397 done
2398 IFS=$as_save_IFS
2399 if $as_found
2400 then :
2401
2402 else $as_nop
2403 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2404 fi
2405
2406
2407 # These three variables are undocumented and unsupported,
2408 # and are intended to be withdrawn in a future Autoconf release.
2409 # They can cause serious problems if a builder's source tree is in a directory
2410 # whose full name contains unusual characters.
2411 if test -f "${ac_aux_dir}config.guess"; then
2412 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2413 fi
2414 if test -f "${ac_aux_dir}config.sub"; then
2415 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2416 fi
2417 if test -f "$ac_aux_dir/configure"; then
2418 ac_configure="$SHELL ${ac_aux_dir}configure"
2419 fi
2420
2421 # Check that the precious variables saved in the cache have kept the same
2422 # value.
2423 ac_cache_corrupted=false
2424 for ac_var in $ac_precious_vars; do
2425 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2426 eval ac_new_set=\$ac_env_${ac_var}_set
2427 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2428 eval ac_new_val=\$ac_env_${ac_var}_value
2429 case $ac_old_set,$ac_new_set in
2430 set,)
2431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2432 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2433 ac_cache_corrupted=: ;;
2434 ,set)
2435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2436 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2437 ac_cache_corrupted=: ;;
2438 ,);;
2439 *)
2440 if test "x$ac_old_val" != "x$ac_new_val"; then
2441 # differences in whitespace do not lead to failure.
2442 ac_old_val_w=`echo x $ac_old_val`
2443 ac_new_val_w=`echo x $ac_new_val`
2444 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2446 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2447 ac_cache_corrupted=:
2448 else
2449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2450 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2451 eval $ac_var=\$ac_old_val
2452 fi
2453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2454 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2456 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2457 fi;;
2458 esac
2459 # Pass precious variables to config.status.
2460 if test "$ac_new_set" = set; then
2461 case $ac_new_val in
2462 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2463 *) ac_arg=$ac_var=$ac_new_val ;;
2464 esac
2465 case " $ac_configure_args " in
2466 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2467 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2468 esac
2469 fi
2470 done
2471 if $ac_cache_corrupted; then
2472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2473 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2475 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2476 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2477 and start over" "$LINENO" 5
2478 fi
2479 ## -------------------- ##
2480 ## Main body of script. ##
2481 ## -------------------- ##
2482
2483 ac_ext=c
2484 ac_cpp='$CPP $CPPFLAGS'
2485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2488
2489
2490
2491 ac_config_headers="$ac_config_headers config.h"
2492
2493
2494 # Initialize Automake
2495 am__api_version='1.16'
2496
2497
2498
2499 # Find a good install program. We prefer a C program (faster),
2500 # so one script is as good as another. But avoid the broken or
2501 # incompatible versions:
2502 # SysV /etc/install, /usr/sbin/install
2503 # SunOS /usr/etc/install
2504 # IRIX /sbin/install
2505 # AIX /bin/install
2506 # AmigaOS /C/install, which installs bootblocks on floppy discs
2507 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2508 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2509 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2510 # OS/2's system install, which has a completely different semantic
2511 # ./install, which can be erroneously created by make from ./install.sh.
2512 # Reject install programs that cannot install multiple files.
2513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2514 printf %s "checking for a BSD-compatible install... " >&6; }
2515 if test -z "$INSTALL"; then
2516 if test ${ac_cv_path_install+y}
2517 then :
2518 printf %s "(cached) " >&6
2519 else $as_nop
2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521 for as_dir in $PATH
2522 do
2523 IFS=$as_save_IFS
2524 case $as_dir in #(((
2525 '') as_dir=./ ;;
2526 */) ;;
2527 *) as_dir=$as_dir/ ;;
2528 esac
2529 # Account for fact that we put trailing slashes in our PATH walk.
2530 case $as_dir in #((
2531 ./ | /[cC]/* | \
2532 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2533 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2534 /usr/ucb/* ) ;;
2535 *)
2536 # OSF1 and SCO ODT 3.0 have their own names for install.
2537 # Don't use installbsd from OSF since it installs stuff as root
2538 # by default.
2539 for ac_prog in ginstall scoinst install; do
2540 for ac_exec_ext in '' $ac_executable_extensions; do
2541 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2542 if test $ac_prog = install &&
2543 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2544 # AIX install. It has an incompatible calling convention.
2545 :
2546 elif test $ac_prog = install &&
2547 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2548 # program-specific install script used by HP pwplus--don't use.
2549 :
2550 else
2551 rm -rf conftest.one conftest.two conftest.dir
2552 echo one > conftest.one
2553 echo two > conftest.two
2554 mkdir conftest.dir
2555 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2556 test -s conftest.one && test -s conftest.two &&
2557 test -s conftest.dir/conftest.one &&
2558 test -s conftest.dir/conftest.two
2559 then
2560 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2561 break 3
2562 fi
2563 fi
2564 fi
2565 done
2566 done
2567 ;;
2568 esac
2569
2570 done
2571 IFS=$as_save_IFS
2572
2573 rm -rf conftest.one conftest.two conftest.dir
2574
2575 fi
2576 if test ${ac_cv_path_install+y}; then
2577 INSTALL=$ac_cv_path_install
2578 else
2579 # As a last resort, use the slow shell script. Don't cache a
2580 # value for INSTALL within a source directory, because that will
2581 # break other packages using the cache if that directory is
2582 # removed, or if the value is a relative name.
2583 INSTALL=$ac_install_sh
2584 fi
2585 fi
2586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2587 printf "%s\n" "$INSTALL" >&6; }
2588
2589 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2590 # It thinks the first close brace ends the variable substitution.
2591 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2592
2593 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2594
2595 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2596
2597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2598 printf %s "checking whether build environment is sane... " >&6; }
2599 # Reject unsafe characters in $srcdir or the absolute working directory
2600 # name. Accept space and tab only in the latter.
2601 am_lf='
2602 '
2603 case `pwd` in
2604 *[\\\"\#\$\&\'\`$am_lf]*)
2605 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2606 esac
2607 case $srcdir in
2608 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2609 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2610 esac
2611
2612 # Do 'set' in a subshell so we don't clobber the current shell's
2613 # arguments. Must try -L first in case configure is actually a
2614 # symlink; some systems play weird games with the mod time of symlinks
2615 # (eg FreeBSD returns the mod time of the symlink's containing
2616 # directory).
2617 if (
2618 am_has_slept=no
2619 for am_try in 1 2; do
2620 echo "timestamp, slept: $am_has_slept" > conftest.file
2621 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2622 if test "$*" = "X"; then
2623 # -L didn't work.
2624 set X `ls -t "$srcdir/configure" conftest.file`
2625 fi
2626 if test "$*" != "X $srcdir/configure conftest.file" \
2627 && test "$*" != "X conftest.file $srcdir/configure"; then
2628
2629 # If neither matched, then we have a broken ls. This can happen
2630 # if, for instance, CONFIG_SHELL is bash and it inherits a
2631 # broken ls alias from the environment. This has actually
2632 # happened. Such a system could not be considered "sane".
2633 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2634 alias in your environment" "$LINENO" 5
2635 fi
2636 if test "$2" = conftest.file || test $am_try -eq 2; then
2637 break
2638 fi
2639 # Just in case.
2640 sleep 1
2641 am_has_slept=yes
2642 done
2643 test "$2" = conftest.file
2644 )
2645 then
2646 # Ok.
2647 :
2648 else
2649 as_fn_error $? "newly created file is older than distributed files!
2650 Check your system clock" "$LINENO" 5
2651 fi
2652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2653 printf "%s\n" "yes" >&6; }
2654 # If we didn't sleep, we still need to ensure time stamps of config.status and
2655 # generated files are strictly newer.
2656 am_sleep_pid=
2657 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2658 ( sleep 1 ) &
2659 am_sleep_pid=$!
2660 fi
2661
2662 rm -f conftest.file
2663
2664 test "$program_prefix" != NONE &&
2665 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2666 # Use a double $ so make ignores it.
2667 test "$program_suffix" != NONE &&
2668 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2669 # Double any \ or $.
2670 # By default was `s,x,x', remove it if useless.
2671 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2672 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2673
2674
2675 # Expand $ac_aux_dir to an absolute path.
2676 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2677
2678
2679 if test x"${MISSING+set}" != xset; then
2680 MISSING="\${SHELL} '$am_aux_dir/missing'"
2681 fi
2682 # Use eval to expand $SHELL
2683 if eval "$MISSING --is-lightweight"; then
2684 am_missing_run="$MISSING "
2685 else
2686 am_missing_run=
2687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2688 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2689 fi
2690
2691 if test x"${install_sh+set}" != xset; then
2692 case $am_aux_dir in
2693 *\ * | *\ *)
2694 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2695 *)
2696 install_sh="\${SHELL} $am_aux_dir/install-sh"
2697 esac
2698 fi
2699
2700 # Installed binaries are usually stripped using 'strip' when the user
2701 # run "make install-strip". However 'strip' might not be the right
2702 # tool to use in cross-compilation environments, therefore Automake
2703 # will honor the 'STRIP' environment variable to overrule this program.
2704 if test "$cross_compiling" != no; then
2705 if test -n "$ac_tool_prefix"; then
2706 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2707 set dummy ${ac_tool_prefix}strip; ac_word=$2
2708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2709 printf %s "checking for $ac_word... " >&6; }
2710 if test ${ac_cv_prog_STRIP+y}
2711 then :
2712 printf %s "(cached) " >&6
2713 else $as_nop
2714 if test -n "$STRIP"; then
2715 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2716 else
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 for as_dir in $PATH
2719 do
2720 IFS=$as_save_IFS
2721 case $as_dir in #(((
2722 '') as_dir=./ ;;
2723 */) ;;
2724 *) as_dir=$as_dir/ ;;
2725 esac
2726 for ac_exec_ext in '' $ac_executable_extensions; do
2727 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2728 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2730 break 2
2731 fi
2732 done
2733 done
2734 IFS=$as_save_IFS
2735
2736 fi
2737 fi
2738 STRIP=$ac_cv_prog_STRIP
2739 if test -n "$STRIP"; then
2740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2741 printf "%s\n" "$STRIP" >&6; }
2742 else
2743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2744 printf "%s\n" "no" >&6; }
2745 fi
2746
2747
2748 fi
2749 if test -z "$ac_cv_prog_STRIP"; then
2750 ac_ct_STRIP=$STRIP
2751 # Extract the first word of "strip", so it can be a program name with args.
2752 set dummy strip; ac_word=$2
2753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754 printf %s "checking for $ac_word... " >&6; }
2755 if test ${ac_cv_prog_ac_ct_STRIP+y}
2756 then :
2757 printf %s "(cached) " >&6
2758 else $as_nop
2759 if test -n "$ac_ct_STRIP"; then
2760 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2761 else
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 for as_dir in $PATH
2764 do
2765 IFS=$as_save_IFS
2766 case $as_dir in #(((
2767 '') as_dir=./ ;;
2768 */) ;;
2769 *) as_dir=$as_dir/ ;;
2770 esac
2771 for ac_exec_ext in '' $ac_executable_extensions; do
2772 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2773 ac_cv_prog_ac_ct_STRIP="strip"
2774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2775 break 2
2776 fi
2777 done
2778 done
2779 IFS=$as_save_IFS
2780
2781 fi
2782 fi
2783 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2784 if test -n "$ac_ct_STRIP"; then
2785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2786 printf "%s\n" "$ac_ct_STRIP" >&6; }
2787 else
2788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789 printf "%s\n" "no" >&6; }
2790 fi
2791
2792 if test "x$ac_ct_STRIP" = x; then
2793 STRIP=":"
2794 else
2795 case $cross_compiling:$ac_tool_warned in
2796 yes:)
2797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2798 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2799 ac_tool_warned=yes ;;
2800 esac
2801 STRIP=$ac_ct_STRIP
2802 fi
2803 else
2804 STRIP="$ac_cv_prog_STRIP"
2805 fi
2806
2807 fi
2808 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2809
2810
2811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2812 printf %s "checking for a race-free mkdir -p... " >&6; }
2813 if test -z "$MKDIR_P"; then
2814 if test ${ac_cv_path_mkdir+y}
2815 then :
2816 printf %s "(cached) " >&6
2817 else $as_nop
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2820 do
2821 IFS=$as_save_IFS
2822 case $as_dir in #(((
2823 '') as_dir=./ ;;
2824 */) ;;
2825 *) as_dir=$as_dir/ ;;
2826 esac
2827 for ac_prog in mkdir gmkdir; do
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2830 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2831 'mkdir ('*'coreutils) '* | \
2832 'BusyBox '* | \
2833 'mkdir (fileutils) '4.1*)
2834 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2835 break 3;;
2836 esac
2837 done
2838 done
2839 done
2840 IFS=$as_save_IFS
2841
2842 fi
2843
2844 test -d ./--version && rmdir ./--version
2845 if test ${ac_cv_path_mkdir+y}; then
2846 MKDIR_P="$ac_cv_path_mkdir -p"
2847 else
2848 # As a last resort, use the slow shell script. Don't cache a
2849 # value for MKDIR_P within a source directory, because that will
2850 # break other packages using the cache if that directory is
2851 # removed, or if the value is a relative name.
2852 MKDIR_P="$ac_install_sh -d"
2853 fi
2854 fi
2855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2856 printf "%s\n" "$MKDIR_P" >&6; }
2857
2858 for ac_prog in gawk mawk nawk awk
2859 do
2860 # Extract the first word of "$ac_prog", so it can be a program name with args.
2861 set dummy $ac_prog; ac_word=$2
2862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2863 printf %s "checking for $ac_word... " >&6; }
2864 if test ${ac_cv_prog_AWK+y}
2865 then :
2866 printf %s "(cached) " >&6
2867 else $as_nop
2868 if test -n "$AWK"; then
2869 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2870 else
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 for as_dir in $PATH
2873 do
2874 IFS=$as_save_IFS
2875 case $as_dir in #(((
2876 '') as_dir=./ ;;
2877 */) ;;
2878 *) as_dir=$as_dir/ ;;
2879 esac
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2882 ac_cv_prog_AWK="$ac_prog"
2883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2884 break 2
2885 fi
2886 done
2887 done
2888 IFS=$as_save_IFS
2889
2890 fi
2891 fi
2892 AWK=$ac_cv_prog_AWK
2893 if test -n "$AWK"; then
2894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2895 printf "%s\n" "$AWK" >&6; }
2896 else
2897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2898 printf "%s\n" "no" >&6; }
2899 fi
2900
2901
2902 test -n "$AWK" && break
2903 done
2904
2905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2906 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2907 set x ${MAKE-make}
2908 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2909 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2910 then :
2911 printf %s "(cached) " >&6
2912 else $as_nop
2913 cat >conftest.make <<\_ACEOF
2914 SHELL = /bin/sh
2915 all:
2916 @echo '@@@%%%=$(MAKE)=@@@%%%'
2917 _ACEOF
2918 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2919 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2920 *@@@%%%=?*=@@@%%%*)
2921 eval ac_cv_prog_make_${ac_make}_set=yes;;
2922 *)
2923 eval ac_cv_prog_make_${ac_make}_set=no;;
2924 esac
2925 rm -f conftest.make
2926 fi
2927 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2929 printf "%s\n" "yes" >&6; }
2930 SET_MAKE=
2931 else
2932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 printf "%s\n" "no" >&6; }
2934 SET_MAKE="MAKE=${MAKE-make}"
2935 fi
2936
2937 rm -rf .tst 2>/dev/null
2938 mkdir .tst 2>/dev/null
2939 if test -d .tst; then
2940 am__leading_dot=.
2941 else
2942 am__leading_dot=_
2943 fi
2944 rmdir .tst 2>/dev/null
2945
2946 # Check whether --enable-silent-rules was given.
2947 if test ${enable_silent_rules+y}
2948 then :
2949 enableval=$enable_silent_rules;
2950 fi
2951
2952 case $enable_silent_rules in # (((
2953 yes) AM_DEFAULT_VERBOSITY=0;;
2954 no) AM_DEFAULT_VERBOSITY=1;;
2955 *) AM_DEFAULT_VERBOSITY=1;;
2956 esac
2957 am_make=${MAKE-make}
2958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2959 printf %s "checking whether $am_make supports nested variables... " >&6; }
2960 if test ${am_cv_make_support_nested_variables+y}
2961 then :
2962 printf %s "(cached) " >&6
2963 else $as_nop
2964 if printf "%s\n" 'TRUE=$(BAR$(V))
2965 BAR0=false
2966 BAR1=true
2967 V=1
2968 am__doit:
2969 @$(TRUE)
2970 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2971 am_cv_make_support_nested_variables=yes
2972 else
2973 am_cv_make_support_nested_variables=no
2974 fi
2975 fi
2976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2977 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
2978 if test $am_cv_make_support_nested_variables = yes; then
2979 AM_V='$(V)'
2980 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2981 else
2982 AM_V=$AM_DEFAULT_VERBOSITY
2983 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2984 fi
2985 AM_BACKSLASH='\'
2986
2987 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2988 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2989 # is not polluted with repeated "-I."
2990 am__isrc=' -I$(srcdir)'
2991 # test to see if srcdir already configured
2992 if test -f $srcdir/config.status; then
2993 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2994 fi
2995 fi
2996
2997 # test whether we have cygpath
2998 if test -z "$CYGPATH_W"; then
2999 if (cygpath --version) >/dev/null 2>/dev/null; then
3000 CYGPATH_W='cygpath -w'
3001 else
3002 CYGPATH_W=echo
3003 fi
3004 fi
3005
3006
3007 # Define the identity of the package.
3008 PACKAGE='xwd'
3009 VERSION='1.0.9'
3010
3011
3012 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3013
3014
3015 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3016
3017 # Some tools Automake needs.
3018
3019 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3020
3021
3022 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3023
3024
3025 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3026
3027
3028 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3029
3030
3031 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3032
3033 # For better backward compatibility. To be removed once Automake 1.9.x
3034 # dies out for good. For more background, see:
3035 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3036 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3037 mkdir_p='$(MKDIR_P)'
3038
3039 # We need awk for the "check" target (and possibly the TAP driver). The
3040 # system "awk" is bad on some platforms.
3041 # Always define AMTAR for backward compatibility. Yes, it's still used
3042 # in the wild :-( We should find a proper way to deprecate it ...
3043 AMTAR='$${TAR-tar}'
3044
3045
3046 # We'll loop over all known methods to create a tar archive until one works.
3047 _am_tools='gnutar pax cpio none'
3048
3049 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3050
3051
3052
3053
3054
3055 # Variables for tags utilities; see am/tags.am
3056 if test -z "$CTAGS"; then
3057 CTAGS=ctags
3058 fi
3059
3060 if test -z "$ETAGS"; then
3061 ETAGS=etags
3062 fi
3063
3064 if test -z "$CSCOPE"; then
3065 CSCOPE=cscope
3066 fi
3067
3068
3069
3070 # POSIX will say in a future version that running "rm -f" with no argument
3071 # is OK; and we want to be able to make that assumption in our Makefile
3072 # recipes. So use an aggressive probe to check that the usage we want is
3073 # actually supported "in the wild" to an acceptable degree.
3074 # See automake bug#10828.
3075 # To make any issue more visible, cause the running configure to be aborted
3076 # by default if the 'rm' program in use doesn't match our expectations; the
3077 # user can still override this though.
3078 if rm -f && rm -fr && rm -rf; then : OK; else
3079 cat >&2 <<'END'
3080 Oops!
3081
3082 Your 'rm' program seems unable to run without file operands specified
3083 on the command line, even when the '-f' option is present. This is contrary
3084 to the behaviour of most rm programs out there, and not conforming with
3085 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3086
3087 Please tell [email protected] about your system, including the value
3088 of your $PATH and any error possibly output before this message. This
3089 can help us improve future automake versions.
3090
3091 END
3092 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3093 echo 'Configuration will proceed anyway, since you have set the' >&2
3094 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3095 echo >&2
3096 else
3097 cat >&2 <<'END'
3098 Aborting the configuration process, to ensure you take notice of the issue.
3099
3100 You can download and install GNU coreutils to get an 'rm' implementation
3101 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3102
3103 If you want to complete the configuration process using your problematic
3104 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3105 to "yes", and re-run configure.
3106
3107 END
3108 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3109 fi
3110 fi
3111
3112
3113 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134 DEPDIR="${am__leading_dot}deps"
3135
3136 ac_config_commands="$ac_config_commands depfiles"
3137
3138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3139 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3140 cat > confinc.mk << 'END'
3141 am__doit:
3142 @echo this is the am__doit target >confinc.out
3143 .PHONY: am__doit
3144 END
3145 am__include="#"
3146 am__quote=
3147 # BSD make does it like this.
3148 echo '.include "confinc.mk" # ignored' > confmf.BSD
3149 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3150 echo 'include confinc.mk # ignored' > confmf.GNU
3151 _am_result=no
3152 for s in GNU BSD; do
3153 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3154 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3155 ac_status=$?
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }
3158 case $?:`cat confinc.out 2>/dev/null` in #(
3159 '0:this is the am__doit target') :
3160 case $s in #(
3161 BSD) :
3162 am__include='.include' am__quote='"' ;; #(
3163 *) :
3164 am__include='include' am__quote='' ;;
3165 esac ;; #(
3166 *) :
3167 ;;
3168 esac
3169 if test "$am__include" != "#"; then
3170 _am_result="yes ($s style)"
3171 break
3172 fi
3173 done
3174 rm -f confinc.* confmf.*
3175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3176 printf "%s\n" "${_am_result}" >&6; }
3177
3178 # Check whether --enable-dependency-tracking was given.
3179 if test ${enable_dependency_tracking+y}
3180 then :
3181 enableval=$enable_dependency_tracking;
3182 fi
3183
3184 if test "x$enable_dependency_tracking" != xno; then
3185 am_depcomp="$ac_aux_dir/depcomp"
3186 AMDEPBACKSLASH='\'
3187 am__nodep='_no'
3188 fi
3189 if test "x$enable_dependency_tracking" != xno; then
3190 AMDEP_TRUE=
3191 AMDEP_FALSE='#'
3192 else
3193 AMDEP_TRUE='#'
3194 AMDEP_FALSE=
3195 fi
3196
3197
3198 ac_ext=c
3199 ac_cpp='$CPP $CPPFLAGS'
3200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3203 if test -n "$ac_tool_prefix"; then
3204 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3205 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207 printf %s "checking for $ac_word... " >&6; }
3208 if test ${ac_cv_prog_CC+y}
3209 then :
3210 printf %s "(cached) " >&6
3211 else $as_nop
3212 if test -n "$CC"; then
3213 ac_cv_prog_CC="$CC" # Let the user override the test.
3214 else
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216 for as_dir in $PATH
3217 do
3218 IFS=$as_save_IFS
3219 case $as_dir in #(((
3220 '') as_dir=./ ;;
3221 */) ;;
3222 *) as_dir=$as_dir/ ;;
3223 esac
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3226 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3228 break 2
3229 fi
3230 done
3231 done
3232 IFS=$as_save_IFS
3233
3234 fi
3235 fi
3236 CC=$ac_cv_prog_CC
3237 if test -n "$CC"; then
3238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3239 printf "%s\n" "$CC" >&6; }
3240 else
3241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 printf "%s\n" "no" >&6; }
3243 fi
3244
3245
3246 fi
3247 if test -z "$ac_cv_prog_CC"; then
3248 ac_ct_CC=$CC
3249 # Extract the first word of "gcc", so it can be a program name with args.
3250 set dummy gcc; ac_word=$2
3251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3252 printf %s "checking for $ac_word... " >&6; }
3253 if test ${ac_cv_prog_ac_ct_CC+y}
3254 then :
3255 printf %s "(cached) " >&6
3256 else $as_nop
3257 if test -n "$ac_ct_CC"; then
3258 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3259 else
3260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261 for as_dir in $PATH
3262 do
3263 IFS=$as_save_IFS
3264 case $as_dir in #(((
3265 '') as_dir=./ ;;
3266 */) ;;
3267 *) as_dir=$as_dir/ ;;
3268 esac
3269 for ac_exec_ext in '' $ac_executable_extensions; do
3270 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3271 ac_cv_prog_ac_ct_CC="gcc"
3272 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3273 break 2
3274 fi
3275 done
3276 done
3277 IFS=$as_save_IFS
3278
3279 fi
3280 fi
3281 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3282 if test -n "$ac_ct_CC"; then
3283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3284 printf "%s\n" "$ac_ct_CC" >&6; }
3285 else
3286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 printf "%s\n" "no" >&6; }
3288 fi
3289
3290 if test "x$ac_ct_CC" = x; then
3291 CC=""
3292 else
3293 case $cross_compiling:$ac_tool_warned in
3294 yes:)
3295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3296 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3297 ac_tool_warned=yes ;;
3298 esac
3299 CC=$ac_ct_CC
3300 fi
3301 else
3302 CC="$ac_cv_prog_CC"
3303 fi
3304
3305 if test -z "$CC"; then
3306 if test -n "$ac_tool_prefix"; then
3307 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3308 set dummy ${ac_tool_prefix}cc; ac_word=$2
3309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3310 printf %s "checking for $ac_word... " >&6; }
3311 if test ${ac_cv_prog_CC+y}
3312 then :
3313 printf %s "(cached) " >&6
3314 else $as_nop
3315 if test -n "$CC"; then
3316 ac_cv_prog_CC="$CC" # Let the user override the test.
3317 else
3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 for as_dir in $PATH
3320 do
3321 IFS=$as_save_IFS
3322 case $as_dir in #(((
3323 '') as_dir=./ ;;
3324 */) ;;
3325 *) as_dir=$as_dir/ ;;
3326 esac
3327 for ac_exec_ext in '' $ac_executable_extensions; do
3328 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3329 ac_cv_prog_CC="${ac_tool_prefix}cc"
3330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3331 break 2
3332 fi
3333 done
3334 done
3335 IFS=$as_save_IFS
3336
3337 fi
3338 fi
3339 CC=$ac_cv_prog_CC
3340 if test -n "$CC"; then
3341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3342 printf "%s\n" "$CC" >&6; }
3343 else
3344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345 printf "%s\n" "no" >&6; }
3346 fi
3347
3348
3349 fi
3350 fi
3351 if test -z "$CC"; then
3352 # Extract the first word of "cc", so it can be a program name with args.
3353 set dummy cc; ac_word=$2
3354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3355 printf %s "checking for $ac_word... " >&6; }
3356 if test ${ac_cv_prog_CC+y}
3357 then :
3358 printf %s "(cached) " >&6
3359 else $as_nop
3360 if test -n "$CC"; then
3361 ac_cv_prog_CC="$CC" # Let the user override the test.
3362 else
3363 ac_prog_rejected=no
3364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365 for as_dir in $PATH
3366 do
3367 IFS=$as_save_IFS
3368 case $as_dir in #(((
3369 '') as_dir=./ ;;
3370 */) ;;
3371 *) as_dir=$as_dir/ ;;
3372 esac
3373 for ac_exec_ext in '' $ac_executable_extensions; do
3374 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3375 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3376 ac_prog_rejected=yes
3377 continue
3378 fi
3379 ac_cv_prog_CC="cc"
3380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3381 break 2
3382 fi
3383 done
3384 done
3385 IFS=$as_save_IFS
3386
3387 if test $ac_prog_rejected = yes; then
3388 # We found a bogon in the path, so make sure we never use it.
3389 set dummy $ac_cv_prog_CC
3390 shift
3391 if test $# != 0; then
3392 # We chose a different compiler from the bogus one.
3393 # However, it has the same basename, so the bogon will be chosen
3394 # first if we set CC to just the basename; use the full file name.
3395 shift
3396 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3397 fi
3398 fi
3399 fi
3400 fi
3401 CC=$ac_cv_prog_CC
3402 if test -n "$CC"; then
3403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3404 printf "%s\n" "$CC" >&6; }
3405 else
3406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 printf "%s\n" "no" >&6; }
3408 fi
3409
3410
3411 fi
3412 if test -z "$CC"; then
3413 if test -n "$ac_tool_prefix"; then
3414 for ac_prog in cl.exe
3415 do
3416 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3417 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3419 printf %s "checking for $ac_word... " >&6; }
3420 if test ${ac_cv_prog_CC+y}
3421 then :
3422 printf %s "(cached) " >&6
3423 else $as_nop
3424 if test -n "$CC"; then
3425 ac_cv_prog_CC="$CC" # Let the user override the test.
3426 else
3427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428 for as_dir in $PATH
3429 do
3430 IFS=$as_save_IFS
3431 case $as_dir in #(((
3432 '') as_dir=./ ;;
3433 */) ;;
3434 *) as_dir=$as_dir/ ;;
3435 esac
3436 for ac_exec_ext in '' $ac_executable_extensions; do
3437 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3438 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3440 break 2
3441 fi
3442 done
3443 done
3444 IFS=$as_save_IFS
3445
3446 fi
3447 fi
3448 CC=$ac_cv_prog_CC
3449 if test -n "$CC"; then
3450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3451 printf "%s\n" "$CC" >&6; }
3452 else
3453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454 printf "%s\n" "no" >&6; }
3455 fi
3456
3457
3458 test -n "$CC" && break
3459 done
3460 fi
3461 if test -z "$CC"; then
3462 ac_ct_CC=$CC
3463 for ac_prog in cl.exe
3464 do
3465 # Extract the first word of "$ac_prog", so it can be a program name with args.
3466 set dummy $ac_prog; ac_word=$2
3467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3468 printf %s "checking for $ac_word... " >&6; }
3469 if test ${ac_cv_prog_ac_ct_CC+y}
3470 then :
3471 printf %s "(cached) " >&6
3472 else $as_nop
3473 if test -n "$ac_ct_CC"; then
3474 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3475 else
3476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 for as_dir in $PATH
3478 do
3479 IFS=$as_save_IFS
3480 case $as_dir in #(((
3481 '') as_dir=./ ;;
3482 */) ;;
3483 *) as_dir=$as_dir/ ;;
3484 esac
3485 for ac_exec_ext in '' $ac_executable_extensions; do
3486 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3487 ac_cv_prog_ac_ct_CC="$ac_prog"
3488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3489 break 2
3490 fi
3491 done
3492 done
3493 IFS=$as_save_IFS
3494
3495 fi
3496 fi
3497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3498 if test -n "$ac_ct_CC"; then
3499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3500 printf "%s\n" "$ac_ct_CC" >&6; }
3501 else
3502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503 printf "%s\n" "no" >&6; }
3504 fi
3505
3506
3507 test -n "$ac_ct_CC" && break
3508 done
3509
3510 if test "x$ac_ct_CC" = x; then
3511 CC=""
3512 else
3513 case $cross_compiling:$ac_tool_warned in
3514 yes:)
3515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3516 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3517 ac_tool_warned=yes ;;
3518 esac
3519 CC=$ac_ct_CC
3520 fi
3521 fi
3522
3523 fi
3524 if test -z "$CC"; then
3525 if test -n "$ac_tool_prefix"; then
3526 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3527 set dummy ${ac_tool_prefix}clang; ac_word=$2
3528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3529 printf %s "checking for $ac_word... " >&6; }
3530 if test ${ac_cv_prog_CC+y}
3531 then :
3532 printf %s "(cached) " >&6
3533 else $as_nop
3534 if test -n "$CC"; then
3535 ac_cv_prog_CC="$CC" # Let the user override the test.
3536 else
3537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538 for as_dir in $PATH
3539 do
3540 IFS=$as_save_IFS
3541 case $as_dir in #(((
3542 '') as_dir=./ ;;
3543 */) ;;
3544 *) as_dir=$as_dir/ ;;
3545 esac
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3548 ac_cv_prog_CC="${ac_tool_prefix}clang"
3549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3550 break 2
3551 fi
3552 done
3553 done
3554 IFS=$as_save_IFS
3555
3556 fi
3557 fi
3558 CC=$ac_cv_prog_CC
3559 if test -n "$CC"; then
3560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3561 printf "%s\n" "$CC" >&6; }
3562 else
3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564 printf "%s\n" "no" >&6; }
3565 fi
3566
3567
3568 fi
3569 if test -z "$ac_cv_prog_CC"; then
3570 ac_ct_CC=$CC
3571 # Extract the first word of "clang", so it can be a program name with args.
3572 set dummy clang; ac_word=$2
3573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3574 printf %s "checking for $ac_word... " >&6; }
3575 if test ${ac_cv_prog_ac_ct_CC+y}
3576 then :
3577 printf %s "(cached) " >&6
3578 else $as_nop
3579 if test -n "$ac_ct_CC"; then
3580 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3581 else
3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583 for as_dir in $PATH
3584 do
3585 IFS=$as_save_IFS
3586 case $as_dir in #(((
3587 '') as_dir=./ ;;
3588 */) ;;
3589 *) as_dir=$as_dir/ ;;
3590 esac
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3593 ac_cv_prog_ac_ct_CC="clang"
3594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3595 break 2
3596 fi
3597 done
3598 done
3599 IFS=$as_save_IFS
3600
3601 fi
3602 fi
3603 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3604 if test -n "$ac_ct_CC"; then
3605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3606 printf "%s\n" "$ac_ct_CC" >&6; }
3607 else
3608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3609 printf "%s\n" "no" >&6; }
3610 fi
3611
3612 if test "x$ac_ct_CC" = x; then
3613 CC=""
3614 else
3615 case $cross_compiling:$ac_tool_warned in
3616 yes:)
3617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3618 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3619 ac_tool_warned=yes ;;
3620 esac
3621 CC=$ac_ct_CC
3622 fi
3623 else
3624 CC="$ac_cv_prog_CC"
3625 fi
3626
3627 fi
3628
3629
3630 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3631 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3632 as_fn_error $? "no acceptable C compiler found in \$PATH
3633 See \`config.log' for more details" "$LINENO" 5; }
3634
3635 # Provide some information about the compiler.
3636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3637 set X $ac_compile
3638 ac_compiler=$2
3639 for ac_option in --version -v -V -qversion -version; do
3640 { { ac_try="$ac_compiler $ac_option >&5"
3641 case "(($ac_try" in
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3644 esac
3645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3646 printf "%s\n" "$ac_try_echo"; } >&5
3647 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3648 ac_status=$?
3649 if test -s conftest.err; then
3650 sed '10a\
3651 ... rest of stderr output deleted ...
3652 10q' conftest.err >conftest.er1
3653 cat conftest.er1 >&5
3654 fi
3655 rm -f conftest.er1 conftest.err
3656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3657 test $ac_status = 0; }
3658 done
3659
3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661 /* end confdefs.h. */
3662
3663 int
3664 main (void)
3665 {
3666
3667 ;
3668 return 0;
3669 }
3670 _ACEOF
3671 ac_clean_files_save=$ac_clean_files
3672 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3673 # Try to create an executable without -o first, disregard a.out.
3674 # It will help us diagnose broken compilers, and finding out an intuition
3675 # of exeext.
3676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3677 printf %s "checking whether the C compiler works... " >&6; }
3678 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3679
3680 # The possible output files:
3681 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3682
3683 ac_rmfiles=
3684 for ac_file in $ac_files
3685 do
3686 case $ac_file in
3687 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3688 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3689 esac
3690 done
3691 rm -f $ac_rmfiles
3692
3693 if { { ac_try="$ac_link_default"
3694 case "(($ac_try" in
3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3697 esac
3698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3699 printf "%s\n" "$ac_try_echo"; } >&5
3700 (eval "$ac_link_default") 2>&5
3701 ac_status=$?
3702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3703 test $ac_status = 0; }
3704 then :
3705 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3706 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3707 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3708 # so that the user can short-circuit this test for compilers unknown to
3709 # Autoconf.
3710 for ac_file in $ac_files ''
3711 do
3712 test -f "$ac_file" || continue
3713 case $ac_file in
3714 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3715 ;;
3716 [ab].out )
3717 # We found the default executable, but exeext='' is most
3718 # certainly right.
3719 break;;
3720 *.* )
3721 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3722 then :; else
3723 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3724 fi
3725 # We set ac_cv_exeext here because the later test for it is not
3726 # safe: cross compilers may not add the suffix if given an `-o'
3727 # argument, so we may need to know it at that point already.
3728 # Even if this section looks crufty: it has the advantage of
3729 # actually working.
3730 break;;
3731 * )
3732 break;;
3733 esac
3734 done
3735 test "$ac_cv_exeext" = no && ac_cv_exeext=
3736
3737 else $as_nop
3738 ac_file=''
3739 fi
3740 if test -z "$ac_file"
3741 then :
3742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3743 printf "%s\n" "no" >&6; }
3744 printf "%s\n" "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.$ac_ext >&5
3746
3747 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3748 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3749 as_fn_error 77 "C compiler cannot create executables
3750 See \`config.log' for more details" "$LINENO" 5; }
3751 else $as_nop
3752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3753 printf "%s\n" "yes" >&6; }
3754 fi
3755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3756 printf %s "checking for C compiler default output file name... " >&6; }
3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3758 printf "%s\n" "$ac_file" >&6; }
3759 ac_exeext=$ac_cv_exeext
3760
3761 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3762 ac_clean_files=$ac_clean_files_save
3763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3764 printf %s "checking for suffix of executables... " >&6; }
3765 if { { ac_try="$ac_link"
3766 case "(($ac_try" in
3767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768 *) ac_try_echo=$ac_try;;
3769 esac
3770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3771 printf "%s\n" "$ac_try_echo"; } >&5
3772 (eval "$ac_link") 2>&5
3773 ac_status=$?
3774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3775 test $ac_status = 0; }
3776 then :
3777 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3778 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3779 # work properly (i.e., refer to `conftest.exe'), while it won't with
3780 # `rm'.
3781 for ac_file in conftest.exe conftest conftest.*; do
3782 test -f "$ac_file" || continue
3783 case $ac_file in
3784 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3785 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3786 break;;
3787 * ) break;;
3788 esac
3789 done
3790 else $as_nop
3791 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3792 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3793 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3794 See \`config.log' for more details" "$LINENO" 5; }
3795 fi
3796 rm -f conftest conftest$ac_cv_exeext
3797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3798 printf "%s\n" "$ac_cv_exeext" >&6; }
3799
3800 rm -f conftest.$ac_ext
3801 EXEEXT=$ac_cv_exeext
3802 ac_exeext=$EXEEXT
3803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804 /* end confdefs.h. */
3805 #include <stdio.h>
3806 int
3807 main (void)
3808 {
3809 FILE *f = fopen ("conftest.out", "w");
3810 return ferror (f) || fclose (f) != 0;
3811
3812 ;
3813 return 0;
3814 }
3815 _ACEOF
3816 ac_clean_files="$ac_clean_files conftest.out"
3817 # Check that the compiler produces executables we can run. If not, either
3818 # the compiler is broken, or we cross compile.
3819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3820 printf %s "checking whether we are cross compiling... " >&6; }
3821 if test "$cross_compiling" != yes; then
3822 { { ac_try="$ac_link"
3823 case "(($ac_try" in
3824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825 *) ac_try_echo=$ac_try;;
3826 esac
3827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3828 printf "%s\n" "$ac_try_echo"; } >&5
3829 (eval "$ac_link") 2>&5
3830 ac_status=$?
3831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3832 test $ac_status = 0; }
3833 if { ac_try='./conftest$ac_cv_exeext'
3834 { { case "(($ac_try" in
3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836 *) ac_try_echo=$ac_try;;
3837 esac
3838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3839 printf "%s\n" "$ac_try_echo"; } >&5
3840 (eval "$ac_try") 2>&5
3841 ac_status=$?
3842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3843 test $ac_status = 0; }; }; then
3844 cross_compiling=no
3845 else
3846 if test "$cross_compiling" = maybe; then
3847 cross_compiling=yes
3848 else
3849 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3850 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3851 as_fn_error 77 "cannot run C compiled programs.
3852 If you meant to cross compile, use \`--host'.
3853 See \`config.log' for more details" "$LINENO" 5; }
3854 fi
3855 fi
3856 fi
3857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3858 printf "%s\n" "$cross_compiling" >&6; }
3859
3860 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3861 ac_clean_files=$ac_clean_files_save
3862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3863 printf %s "checking for suffix of object files... " >&6; }
3864 if test ${ac_cv_objext+y}
3865 then :
3866 printf %s "(cached) " >&6
3867 else $as_nop
3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869 /* end confdefs.h. */
3870
3871 int
3872 main (void)
3873 {
3874
3875 ;
3876 return 0;
3877 }
3878 _ACEOF
3879 rm -f conftest.o conftest.obj
3880 if { { ac_try="$ac_compile"
3881 case "(($ac_try" in
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3884 esac
3885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3886 printf "%s\n" "$ac_try_echo"; } >&5
3887 (eval "$ac_compile") 2>&5
3888 ac_status=$?
3889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3890 test $ac_status = 0; }
3891 then :
3892 for ac_file in conftest.o conftest.obj conftest.*; do
3893 test -f "$ac_file" || continue;
3894 case $ac_file in
3895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3896 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3897 break;;
3898 esac
3899 done
3900 else $as_nop
3901 printf "%s\n" "$as_me: failed program was:" >&5
3902 sed 's/^/| /' conftest.$ac_ext >&5
3903
3904 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3905 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3906 as_fn_error $? "cannot compute suffix of object files: cannot compile
3907 See \`config.log' for more details" "$LINENO" 5; }
3908 fi
3909 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3910 fi
3911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3912 printf "%s\n" "$ac_cv_objext" >&6; }
3913 OBJEXT=$ac_cv_objext
3914 ac_objext=$OBJEXT
3915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3916 printf %s "checking whether the compiler supports GNU C... " >&6; }
3917 if test ${ac_cv_c_compiler_gnu+y}
3918 then :
3919 printf %s "(cached) " >&6
3920 else $as_nop
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3923
3924 int
3925 main (void)
3926 {
3927 #ifndef __GNUC__
3928 choke me
3929 #endif
3930
3931 ;
3932 return 0;
3933 }
3934 _ACEOF
3935 if ac_fn_c_try_compile "$LINENO"
3936 then :
3937 ac_compiler_gnu=yes
3938 else $as_nop
3939 ac_compiler_gnu=no
3940 fi
3941 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3942 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3943
3944 fi
3945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3946 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3948
3949 if test $ac_compiler_gnu = yes; then
3950 GCC=yes
3951 else
3952 GCC=
3953 fi
3954 ac_test_CFLAGS=${CFLAGS+y}
3955 ac_save_CFLAGS=$CFLAGS
3956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3957 printf %s "checking whether $CC accepts -g... " >&6; }
3958 if test ${ac_cv_prog_cc_g+y}
3959 then :
3960 printf %s "(cached) " >&6
3961 else $as_nop
3962 ac_save_c_werror_flag=$ac_c_werror_flag
3963 ac_c_werror_flag=yes
3964 ac_cv_prog_cc_g=no
3965 CFLAGS="-g"
3966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967 /* end confdefs.h. */
3968
3969 int
3970 main (void)
3971 {
3972
3973 ;
3974 return 0;
3975 }
3976 _ACEOF
3977 if ac_fn_c_try_compile "$LINENO"
3978 then :
3979 ac_cv_prog_cc_g=yes
3980 else $as_nop
3981 CFLAGS=""
3982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983 /* end confdefs.h. */
3984
3985 int
3986 main (void)
3987 {
3988
3989 ;
3990 return 0;
3991 }
3992 _ACEOF
3993 if ac_fn_c_try_compile "$LINENO"
3994 then :
3995
3996 else $as_nop
3997 ac_c_werror_flag=$ac_save_c_werror_flag
3998 CFLAGS="-g"
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4001
4002 int
4003 main (void)
4004 {
4005
4006 ;
4007 return 0;
4008 }
4009 _ACEOF
4010 if ac_fn_c_try_compile "$LINENO"
4011 then :
4012 ac_cv_prog_cc_g=yes
4013 fi
4014 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4015 fi
4016 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4017 fi
4018 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4019 ac_c_werror_flag=$ac_save_c_werror_flag
4020 fi
4021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4022 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4023 if test $ac_test_CFLAGS; then
4024 CFLAGS=$ac_save_CFLAGS
4025 elif test $ac_cv_prog_cc_g = yes; then
4026 if test "$GCC" = yes; then
4027 CFLAGS="-g -O2"
4028 else
4029 CFLAGS="-g"
4030 fi
4031 else
4032 if test "$GCC" = yes; then
4033 CFLAGS="-O2"
4034 else
4035 CFLAGS=
4036 fi
4037 fi
4038 ac_prog_cc_stdc=no
4039 if test x$ac_prog_cc_stdc = xno
4040 then :
4041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4042 printf %s "checking for $CC option to enable C11 features... " >&6; }
4043 if test ${ac_cv_prog_cc_c11+y}
4044 then :
4045 printf %s "(cached) " >&6
4046 else $as_nop
4047 ac_cv_prog_cc_c11=no
4048 ac_save_CC=$CC
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4051 $ac_c_conftest_c11_program
4052 _ACEOF
4053 for ac_arg in '' -std=gnu11
4054 do
4055 CC="$ac_save_CC $ac_arg"
4056 if ac_fn_c_try_compile "$LINENO"
4057 then :
4058 ac_cv_prog_cc_c11=$ac_arg
4059 fi
4060 rm -f core conftest.err conftest.$ac_objext conftest.beam
4061 test "x$ac_cv_prog_cc_c11" != "xno" && break
4062 done
4063 rm -f conftest.$ac_ext
4064 CC=$ac_save_CC
4065 fi
4066
4067 if test "x$ac_cv_prog_cc_c11" = xno
4068 then :
4069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4070 printf "%s\n" "unsupported" >&6; }
4071 else $as_nop
4072 if test "x$ac_cv_prog_cc_c11" = x
4073 then :
4074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4075 printf "%s\n" "none needed" >&6; }
4076 else $as_nop
4077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4078 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4079 CC="$CC $ac_cv_prog_cc_c11"
4080 fi
4081 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4082 ac_prog_cc_stdc=c11
4083 fi
4084 fi
4085 if test x$ac_prog_cc_stdc = xno
4086 then :
4087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4088 printf %s "checking for $CC option to enable C99 features... " >&6; }
4089 if test ${ac_cv_prog_cc_c99+y}
4090 then :
4091 printf %s "(cached) " >&6
4092 else $as_nop
4093 ac_cv_prog_cc_c99=no
4094 ac_save_CC=$CC
4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096 /* end confdefs.h. */
4097 $ac_c_conftest_c99_program
4098 _ACEOF
4099 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4100 do
4101 CC="$ac_save_CC $ac_arg"
4102 if ac_fn_c_try_compile "$LINENO"
4103 then :
4104 ac_cv_prog_cc_c99=$ac_arg
4105 fi
4106 rm -f core conftest.err conftest.$ac_objext conftest.beam
4107 test "x$ac_cv_prog_cc_c99" != "xno" && break
4108 done
4109 rm -f conftest.$ac_ext
4110 CC=$ac_save_CC
4111 fi
4112
4113 if test "x$ac_cv_prog_cc_c99" = xno
4114 then :
4115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4116 printf "%s\n" "unsupported" >&6; }
4117 else $as_nop
4118 if test "x$ac_cv_prog_cc_c99" = x
4119 then :
4120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4121 printf "%s\n" "none needed" >&6; }
4122 else $as_nop
4123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4124 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4125 CC="$CC $ac_cv_prog_cc_c99"
4126 fi
4127 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4128 ac_prog_cc_stdc=c99
4129 fi
4130 fi
4131 if test x$ac_prog_cc_stdc = xno
4132 then :
4133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4134 printf %s "checking for $CC option to enable C89 features... " >&6; }
4135 if test ${ac_cv_prog_cc_c89+y}
4136 then :
4137 printf %s "(cached) " >&6
4138 else $as_nop
4139 ac_cv_prog_cc_c89=no
4140 ac_save_CC=$CC
4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142 /* end confdefs.h. */
4143 $ac_c_conftest_c89_program
4144 _ACEOF
4145 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4146 do
4147 CC="$ac_save_CC $ac_arg"
4148 if ac_fn_c_try_compile "$LINENO"
4149 then :
4150 ac_cv_prog_cc_c89=$ac_arg
4151 fi
4152 rm -f core conftest.err conftest.$ac_objext conftest.beam
4153 test "x$ac_cv_prog_cc_c89" != "xno" && break
4154 done
4155 rm -f conftest.$ac_ext
4156 CC=$ac_save_CC
4157 fi
4158
4159 if test "x$ac_cv_prog_cc_c89" = xno
4160 then :
4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4162 printf "%s\n" "unsupported" >&6; }
4163 else $as_nop
4164 if test "x$ac_cv_prog_cc_c89" = x
4165 then :
4166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4167 printf "%s\n" "none needed" >&6; }
4168 else $as_nop
4169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4170 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4171 CC="$CC $ac_cv_prog_cc_c89"
4172 fi
4173 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4174 ac_prog_cc_stdc=c89
4175 fi
4176 fi
4177
4178 ac_ext=c
4179 ac_cpp='$CPP $CPPFLAGS'
4180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4183
4184
4185 ac_ext=c
4186 ac_cpp='$CPP $CPPFLAGS'
4187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4191 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4192 if test ${am_cv_prog_cc_c_o+y}
4193 then :
4194 printf %s "(cached) " >&6
4195 else $as_nop
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4198
4199 int
4200 main (void)
4201 {
4202
4203 ;
4204 return 0;
4205 }
4206 _ACEOF
4207 # Make sure it works both with $CC and with simple cc.
4208 # Following AC_PROG_CC_C_O, we do the test twice because some
4209 # compilers refuse to overwrite an existing .o file with -o,
4210 # though they will create one.
4211 am_cv_prog_cc_c_o=yes
4212 for am_i in 1 2; do
4213 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4214 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4215 ac_status=$?
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); } \
4218 && test -f conftest2.$ac_objext; then
4219 : OK
4220 else
4221 am_cv_prog_cc_c_o=no
4222 break
4223 fi
4224 done
4225 rm -f core conftest*
4226 unset am_i
4227 fi
4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4229 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4230 if test "$am_cv_prog_cc_c_o" != yes; then
4231 # Losing compiler, so override with the script.
4232 # FIXME: It is wrong to rewrite CC.
4233 # But if we don't then we get into trouble of one sort or another.
4234 # A longer-term fix would be to have automake use am__CC in this case,
4235 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4236 CC="$am_aux_dir/compile $CC"
4237 fi
4238 ac_ext=c
4239 ac_cpp='$CPP $CPPFLAGS'
4240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4243
4244
4245 depcc="$CC" am_compiler_list=
4246
4247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4248 printf %s "checking dependency style of $depcc... " >&6; }
4249 if test ${am_cv_CC_dependencies_compiler_type+y}
4250 then :
4251 printf %s "(cached) " >&6
4252 else $as_nop
4253 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4254 # We make a subdir and do the tests there. Otherwise we can end up
4255 # making bogus files that we don't know about and never remove. For
4256 # instance it was reported that on HP-UX the gcc test will end up
4257 # making a dummy file named 'D' -- because '-MD' means "put the output
4258 # in D".
4259 rm -rf conftest.dir
4260 mkdir conftest.dir
4261 # Copy depcomp to subdir because otherwise we won't find it if we're
4262 # using a relative directory.
4263 cp "$am_depcomp" conftest.dir
4264 cd conftest.dir
4265 # We will build objects and dependencies in a subdirectory because
4266 # it helps to detect inapplicable dependency modes. For instance
4267 # both Tru64's cc and ICC support -MD to output dependencies as a
4268 # side effect of compilation, but ICC will put the dependencies in
4269 # the current directory while Tru64 will put them in the object
4270 # directory.
4271 mkdir sub
4272
4273 am_cv_CC_dependencies_compiler_type=none
4274 if test "$am_compiler_list" = ""; then
4275 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4276 fi
4277 am__universal=false
4278 case " $depcc " in #(
4279 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4280 esac
4281
4282 for depmode in $am_compiler_list; do
4283 # Setup a source with many dependencies, because some compilers
4284 # like to wrap large dependency lists on column 80 (with \), and
4285 # we should not choose a depcomp mode which is confused by this.
4286 #
4287 # We need to recreate these files for each test, as the compiler may
4288 # overwrite some of them when testing with obscure command lines.
4289 # This happens at least with the AIX C compiler.
4290 : > sub/conftest.c
4291 for i in 1 2 3 4 5 6; do
4292 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4293 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4294 # Solaris 10 /bin/sh.
4295 echo '/* dummy */' > sub/conftst$i.h
4296 done
4297 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4298
4299 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4300 # mode. It turns out that the SunPro C++ compiler does not properly
4301 # handle '-M -o', and we need to detect this. Also, some Intel
4302 # versions had trouble with output in subdirs.
4303 am__obj=sub/conftest.${OBJEXT-o}
4304 am__minus_obj="-o $am__obj"
4305 case $depmode in
4306 gcc)
4307 # This depmode causes a compiler race in universal mode.
4308 test "$am__universal" = false || continue
4309 ;;
4310 nosideeffect)
4311 # After this tag, mechanisms are not by side-effect, so they'll
4312 # only be used when explicitly requested.
4313 if test "x$enable_dependency_tracking" = xyes; then
4314 continue
4315 else
4316 break
4317 fi
4318 ;;
4319 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4320 # This compiler won't grok '-c -o', but also, the minuso test has
4321 # not run yet. These depmodes are late enough in the game, and
4322 # so weak that their functioning should not be impacted.
4323 am__obj=conftest.${OBJEXT-o}
4324 am__minus_obj=
4325 ;;
4326 none) break ;;
4327 esac
4328 if depmode=$depmode \
4329 source=sub/conftest.c object=$am__obj \
4330 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4331 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4332 >/dev/null 2>conftest.err &&
4333 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4334 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4335 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4336 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4337 # icc doesn't choke on unknown options, it will just issue warnings
4338 # or remarks (even with -Werror). So we grep stderr for any message
4339 # that says an option was ignored or not supported.
4340 # When given -MP, icc 7.0 and 7.1 complain thusly:
4341 # icc: Command line warning: ignoring option '-M'; no argument required
4342 # The diagnosis changed in icc 8.0:
4343 # icc: Command line remark: option '-MP' not supported
4344 if (grep 'ignoring option' conftest.err ||
4345 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4346 am_cv_CC_dependencies_compiler_type=$depmode
4347 break
4348 fi
4349 fi
4350 done
4351
4352 cd ..
4353 rm -rf conftest.dir
4354 else
4355 am_cv_CC_dependencies_compiler_type=none
4356 fi
4357
4358 fi
4359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4360 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4361 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4362
4363 if
4364 test "x$enable_dependency_tracking" != xno \
4365 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4366 am__fastdepCC_TRUE=
4367 am__fastdepCC_FALSE='#'
4368 else
4369 am__fastdepCC_TRUE='#'
4370 am__fastdepCC_FALSE=
4371 fi
4372
4373
4374
4375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4376 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4377 if test ${ac_cv_c_undeclared_builtin_options+y}
4378 then :
4379 printf %s "(cached) " >&6
4380 else $as_nop
4381 ac_save_CFLAGS=$CFLAGS
4382 ac_cv_c_undeclared_builtin_options='cannot detect'
4383 for ac_arg in '' -fno-builtin; do
4384 CFLAGS="$ac_save_CFLAGS $ac_arg"
4385 # This test program should *not* compile successfully.
4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387 /* end confdefs.h. */
4388
4389 int
4390 main (void)
4391 {
4392 (void) strchr;
4393 ;
4394 return 0;
4395 }
4396 _ACEOF
4397 if ac_fn_c_try_compile "$LINENO"
4398 then :
4399
4400 else $as_nop
4401 # This test program should compile successfully.
4402 # No library function is consistently available on
4403 # freestanding implementations, so test against a dummy
4404 # declaration. Include always-available headers on the
4405 # off chance that they somehow elicit warnings.
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h. */
4408 #include <float.h>
4409 #include <limits.h>
4410 #include <stdarg.h>
4411 #include <stddef.h>
4412 extern void ac_decl (int, char *);
4413
4414 int
4415 main (void)
4416 {
4417 (void) ac_decl (0, (char *) 0);
4418 (void) ac_decl;
4419
4420 ;
4421 return 0;
4422 }
4423 _ACEOF
4424 if ac_fn_c_try_compile "$LINENO"
4425 then :
4426 if test x"$ac_arg" = x
4427 then :
4428 ac_cv_c_undeclared_builtin_options='none needed'
4429 else $as_nop
4430 ac_cv_c_undeclared_builtin_options=$ac_arg
4431 fi
4432 break
4433 fi
4434 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4435 fi
4436 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4437 done
4438 CFLAGS=$ac_save_CFLAGS
4439
4440 fi
4441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4442 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4443 case $ac_cv_c_undeclared_builtin_options in #(
4444 'cannot detect') :
4445 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4446 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4447 as_fn_error $? "cannot make $CC report undeclared builtins
4448 See \`config.log' for more details" "$LINENO" 5; } ;; #(
4449 'none needed') :
4450 ac_c_undeclared_builtin_options='' ;; #(
4451 *) :
4452 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4453 esac
4454
4455 ac_header= ac_cache=
4456 for ac_item in $ac_header_c_list
4457 do
4458 if test $ac_cache; then
4459 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4460 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4461 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4462 fi
4463 ac_header= ac_cache=
4464 elif test $ac_header; then
4465 ac_cache=$ac_item
4466 else
4467 ac_header=$ac_item
4468 fi
4469 done
4470
4471
4472
4473
4474
4475
4476
4477
4478 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4479 then :
4480
4481 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4482
4483 fi
4484
4485
4486
4487
4488 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4489 if test "x$ac_cv_have_decl___clang__" = xyes
4490 then :
4491 CLANGCC="yes"
4492 else $as_nop
4493 CLANGCC="no"
4494 fi
4495 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4496 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4497 then :
4498 INTELCC="yes"
4499 else $as_nop
4500 INTELCC="no"
4501 fi
4502 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4503 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4504 then :
4505 SUNCC="yes"
4506 else $as_nop
4507 SUNCC="no"
4508 fi
4509
4510
4511
4512
4513
4514
4515
4516
4517 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4518 if test -n "$ac_tool_prefix"; then
4519 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4520 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4522 printf %s "checking for $ac_word... " >&6; }
4523 if test ${ac_cv_path_PKG_CONFIG+y}
4524 then :
4525 printf %s "(cached) " >&6
4526 else $as_nop
4527 case $PKG_CONFIG in
4528 [\\/]* | ?:[\\/]*)
4529 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4530 ;;
4531 *)
4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 for as_dir in $PATH
4534 do
4535 IFS=$as_save_IFS
4536 case $as_dir in #(((
4537 '') as_dir=./ ;;
4538 */) ;;
4539 *) as_dir=$as_dir/ ;;
4540 esac
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4543 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4545 break 2
4546 fi
4547 done
4548 done
4549 IFS=$as_save_IFS
4550
4551 ;;
4552 esac
4553 fi
4554 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4555 if test -n "$PKG_CONFIG"; then
4556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4557 printf "%s\n" "$PKG_CONFIG" >&6; }
4558 else
4559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4560 printf "%s\n" "no" >&6; }
4561 fi
4562
4563
4564 fi
4565 if test -z "$ac_cv_path_PKG_CONFIG"; then
4566 ac_pt_PKG_CONFIG=$PKG_CONFIG
4567 # Extract the first word of "pkg-config", so it can be a program name with args.
4568 set dummy pkg-config; ac_word=$2
4569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4570 printf %s "checking for $ac_word... " >&6; }
4571 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4572 then :
4573 printf %s "(cached) " >&6
4574 else $as_nop
4575 case $ac_pt_PKG_CONFIG in
4576 [\\/]* | ?:[\\/]*)
4577 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4578 ;;
4579 *)
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH
4582 do
4583 IFS=$as_save_IFS
4584 case $as_dir in #(((
4585 '') as_dir=./ ;;
4586 */) ;;
4587 *) as_dir=$as_dir/ ;;
4588 esac
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4591 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4593 break 2
4594 fi
4595 done
4596 done
4597 IFS=$as_save_IFS
4598
4599 ;;
4600 esac
4601 fi
4602 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4603 if test -n "$ac_pt_PKG_CONFIG"; then
4604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4605 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4606 else
4607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4608 printf "%s\n" "no" >&6; }
4609 fi
4610
4611 if test "x$ac_pt_PKG_CONFIG" = x; then
4612 PKG_CONFIG=""
4613 else
4614 case $cross_compiling:$ac_tool_warned in
4615 yes:)
4616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4617 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4618 ac_tool_warned=yes ;;
4619 esac
4620 PKG_CONFIG=$ac_pt_PKG_CONFIG
4621 fi
4622 else
4623 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4624 fi
4625
4626 fi
4627 if test -n "$PKG_CONFIG"; then
4628 _pkg_min_version=0.9.0
4629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4630 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4631 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4633 printf "%s\n" "yes" >&6; }
4634 else
4635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4636 printf "%s\n" "no" >&6; }
4637 PKG_CONFIG=""
4638 fi
4639 fi
4640
4641
4642 # Make sure we can run config.sub.
4643 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4644 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4645
4646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4647 printf %s "checking build system type... " >&6; }
4648 if test ${ac_cv_build+y}
4649 then :
4650 printf %s "(cached) " >&6
4651 else $as_nop
4652 ac_build_alias=$build_alias
4653 test "x$ac_build_alias" = x &&
4654 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4655 test "x$ac_build_alias" = x &&
4656 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4657 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4658 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4659
4660 fi
4661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4662 printf "%s\n" "$ac_cv_build" >&6; }
4663 case $ac_cv_build in
4664 *-*-*) ;;
4665 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4666 esac
4667 build=$ac_cv_build
4668 ac_save_IFS=$IFS; IFS='-'
4669 set x $ac_cv_build
4670 shift
4671 build_cpu=$1
4672 build_vendor=$2
4673 shift; shift
4674 # Remember, the first character of IFS is used to create $*,
4675 # except with old shells:
4676 build_os=$*
4677 IFS=$ac_save_IFS
4678 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4679
4680
4681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4682 printf %s "checking host system type... " >&6; }
4683 if test ${ac_cv_host+y}
4684 then :
4685 printf %s "(cached) " >&6
4686 else $as_nop
4687 if test "x$host_alias" = x; then
4688 ac_cv_host=$ac_cv_build
4689 else
4690 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4691 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4692 fi
4693
4694 fi
4695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4696 printf "%s\n" "$ac_cv_host" >&6; }
4697 case $ac_cv_host in
4698 *-*-*) ;;
4699 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4700 esac
4701 host=$ac_cv_host
4702 ac_save_IFS=$IFS; IFS='-'
4703 set x $ac_cv_host
4704 shift
4705 host_cpu=$1
4706 host_vendor=$2
4707 shift; shift
4708 # Remember, the first character of IFS is used to create $*,
4709 # except with old shells:
4710 host_os=$*
4711 IFS=$ac_save_IFS
4712 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4713
4714
4715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4716 printf %s "checking for a sed that does not truncate output... " >&6; }
4717 if test ${ac_cv_path_SED+y}
4718 then :
4719 printf %s "(cached) " >&6
4720 else $as_nop
4721 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4722 for ac_i in 1 2 3 4 5 6 7; do
4723 ac_script="$ac_script$as_nl$ac_script"
4724 done
4725 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4726 { ac_script=; unset ac_script;}
4727 if test -z "$SED"; then
4728 ac_path_SED_found=false
4729 # Loop through the user's path and test for each of PROGNAME-LIST
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 for as_dir in $PATH
4732 do
4733 IFS=$as_save_IFS
4734 case $as_dir in #(((
4735 '') as_dir=./ ;;
4736 */) ;;
4737 *) as_dir=$as_dir/ ;;
4738 esac
4739 for ac_prog in sed gsed
4740 do
4741 for ac_exec_ext in '' $ac_executable_extensions; do
4742 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4743 as_fn_executable_p "$ac_path_SED" || continue
4744 # Check for GNU ac_path_SED and select it if it is found.
4745 # Check for GNU $ac_path_SED
4746 case `"$ac_path_SED" --version 2>&1` in
4747 *GNU*)
4748 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4749 *)
4750 ac_count=0
4751 printf %s 0123456789 >"conftest.in"
4752 while :
4753 do
4754 cat "conftest.in" "conftest.in" >"conftest.tmp"
4755 mv "conftest.tmp" "conftest.in"
4756 cp "conftest.in" "conftest.nl"
4757 printf "%s\n" '' >> "conftest.nl"
4758 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4759 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4760 as_fn_arith $ac_count + 1 && ac_count=$as_val
4761 if test $ac_count -gt ${ac_path_SED_max-0}; then
4762 # Best one so far, save it but keep looking for a better one
4763 ac_cv_path_SED="$ac_path_SED"
4764 ac_path_SED_max=$ac_count
4765 fi
4766 # 10*(2^10) chars as input seems more than enough
4767 test $ac_count -gt 10 && break
4768 done
4769 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4770 esac
4771
4772 $ac_path_SED_found && break 3
4773 done
4774 done
4775 done
4776 IFS=$as_save_IFS
4777 if test -z "$ac_cv_path_SED"; then
4778 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4779 fi
4780 else
4781 ac_cv_path_SED=$SED
4782 fi
4783
4784 fi
4785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4786 printf "%s\n" "$ac_cv_path_SED" >&6; }
4787 SED="$ac_cv_path_SED"
4788 rm -f conftest.sed
4789
4790
4791
4792
4793
4794
4795 # Check whether --enable-selective-werror was given.
4796 if test ${enable_selective_werror+y}
4797 then :
4798 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4799 else $as_nop
4800 SELECTIVE_WERROR=yes
4801 fi
4802
4803
4804
4805
4806
4807 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4808 if test "x$SUNCC" = "xyes"; then
4809 BASE_CFLAGS="-v"
4810 else
4811 BASE_CFLAGS=""
4812 fi
4813
4814 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828 xorg_testset_save_CFLAGS="$CFLAGS"
4829
4830 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4831 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4833 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4834 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4835 then :
4836 printf %s "(cached) " >&6
4837 else $as_nop
4838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839 /* end confdefs.h. */
4840 int i;
4841 _ACEOF
4842 if ac_fn_c_try_compile "$LINENO"
4843 then :
4844 xorg_cv_cc_flag_unknown_warning_option=yes
4845 else $as_nop
4846 xorg_cv_cc_flag_unknown_warning_option=no
4847 fi
4848 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4849 fi
4850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4851 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4852 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4853 CFLAGS="$xorg_testset_save_CFLAGS"
4854 fi
4855
4856 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4859 fi
4860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4862 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4863 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4864 then :
4865 printf %s "(cached) " >&6
4866 else $as_nop
4867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4868 /* end confdefs.h. */
4869 int i;
4870 _ACEOF
4871 if ac_fn_c_try_compile "$LINENO"
4872 then :
4873 xorg_cv_cc_flag_unused_command_line_argument=yes
4874 else $as_nop
4875 xorg_cv_cc_flag_unused_command_line_argument=no
4876 fi
4877 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4878 fi
4879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4880 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4881 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4882 CFLAGS="$xorg_testset_save_CFLAGS"
4883 fi
4884
4885 found="no"
4886
4887 if test $found = "no" ; then
4888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4889 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4890 fi
4891
4892 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4894 fi
4895
4896 CFLAGS="$CFLAGS -Wall"
4897
4898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4899 printf %s "checking if $CC supports -Wall... " >&6; }
4900 cacheid=xorg_cv_cc_flag__Wall
4901 if eval test \${$cacheid+y}
4902 then :
4903 printf %s "(cached) " >&6
4904 else $as_nop
4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906 /* end confdefs.h. */
4907 int i;
4908 int
4909 main (void)
4910 {
4911
4912 ;
4913 return 0;
4914 }
4915 _ACEOF
4916 if ac_fn_c_try_link "$LINENO"
4917 then :
4918 eval $cacheid=yes
4919 else $as_nop
4920 eval $cacheid=no
4921 fi
4922 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4923 conftest$ac_exeext conftest.$ac_ext
4924 fi
4925
4926
4927 CFLAGS="$xorg_testset_save_CFLAGS"
4928
4929 eval supported=\$$cacheid
4930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4931 printf "%s\n" "$supported" >&6; }
4932 if test "$supported" = "yes" ; then
4933 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4934 found="yes"
4935 fi
4936 fi
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952 xorg_testset_save_CFLAGS="$CFLAGS"
4953
4954 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4957 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4958 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4959 then :
4960 printf %s "(cached) " >&6
4961 else $as_nop
4962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963 /* end confdefs.h. */
4964 int i;
4965 _ACEOF
4966 if ac_fn_c_try_compile "$LINENO"
4967 then :
4968 xorg_cv_cc_flag_unknown_warning_option=yes
4969 else $as_nop
4970 xorg_cv_cc_flag_unknown_warning_option=no
4971 fi
4972 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4973 fi
4974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4975 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4976 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4977 CFLAGS="$xorg_testset_save_CFLAGS"
4978 fi
4979
4980 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4983 fi
4984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4986 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4987 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4988 then :
4989 printf %s "(cached) " >&6
4990 else $as_nop
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h. */
4993 int i;
4994 _ACEOF
4995 if ac_fn_c_try_compile "$LINENO"
4996 then :
4997 xorg_cv_cc_flag_unused_command_line_argument=yes
4998 else $as_nop
4999 xorg_cv_cc_flag_unused_command_line_argument=no
5000 fi
5001 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5002 fi
5003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5004 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5005 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5006 CFLAGS="$xorg_testset_save_CFLAGS"
5007 fi
5008
5009 found="no"
5010
5011 if test $found = "no" ; then
5012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5014 fi
5015
5016 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5018 fi
5019
5020 CFLAGS="$CFLAGS -Wpointer-arith"
5021
5022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5023 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5024 cacheid=xorg_cv_cc_flag__Wpointer_arith
5025 if eval test \${$cacheid+y}
5026 then :
5027 printf %s "(cached) " >&6
5028 else $as_nop
5029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5030 /* end confdefs.h. */
5031 int i;
5032 int
5033 main (void)
5034 {
5035
5036 ;
5037 return 0;
5038 }
5039 _ACEOF
5040 if ac_fn_c_try_link "$LINENO"
5041 then :
5042 eval $cacheid=yes
5043 else $as_nop
5044 eval $cacheid=no
5045 fi
5046 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5047 conftest$ac_exeext conftest.$ac_ext
5048 fi
5049
5050
5051 CFLAGS="$xorg_testset_save_CFLAGS"
5052
5053 eval supported=\$$cacheid
5054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5055 printf "%s\n" "$supported" >&6; }
5056 if test "$supported" = "yes" ; then
5057 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5058 found="yes"
5059 fi
5060 fi
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076 xorg_testset_save_CFLAGS="$CFLAGS"
5077
5078 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5081 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5082 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5083 then :
5084 printf %s "(cached) " >&6
5085 else $as_nop
5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087 /* end confdefs.h. */
5088 int i;
5089 _ACEOF
5090 if ac_fn_c_try_compile "$LINENO"
5091 then :
5092 xorg_cv_cc_flag_unknown_warning_option=yes
5093 else $as_nop
5094 xorg_cv_cc_flag_unknown_warning_option=no
5095 fi
5096 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5097 fi
5098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5099 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5100 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5101 CFLAGS="$xorg_testset_save_CFLAGS"
5102 fi
5103
5104 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5107 fi
5108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5110 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5111 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5112 then :
5113 printf %s "(cached) " >&6
5114 else $as_nop
5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116 /* end confdefs.h. */
5117 int i;
5118 _ACEOF
5119 if ac_fn_c_try_compile "$LINENO"
5120 then :
5121 xorg_cv_cc_flag_unused_command_line_argument=yes
5122 else $as_nop
5123 xorg_cv_cc_flag_unused_command_line_argument=no
5124 fi
5125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5126 fi
5127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5128 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5129 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5130 CFLAGS="$xorg_testset_save_CFLAGS"
5131 fi
5132
5133 found="no"
5134
5135 if test $found = "no" ; then
5136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5137 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5138 fi
5139
5140 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5142 fi
5143
5144 CFLAGS="$CFLAGS -Wmissing-declarations"
5145
5146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5147 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5148 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5149 if eval test \${$cacheid+y}
5150 then :
5151 printf %s "(cached) " >&6
5152 else $as_nop
5153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5154 /* end confdefs.h. */
5155 int i;
5156 int
5157 main (void)
5158 {
5159
5160 ;
5161 return 0;
5162 }
5163 _ACEOF
5164 if ac_fn_c_try_link "$LINENO"
5165 then :
5166 eval $cacheid=yes
5167 else $as_nop
5168 eval $cacheid=no
5169 fi
5170 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5171 conftest$ac_exeext conftest.$ac_ext
5172 fi
5173
5174
5175 CFLAGS="$xorg_testset_save_CFLAGS"
5176
5177 eval supported=\$$cacheid
5178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5179 printf "%s\n" "$supported" >&6; }
5180 if test "$supported" = "yes" ; then
5181 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5182 found="yes"
5183 fi
5184 fi
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200 xorg_testset_save_CFLAGS="$CFLAGS"
5201
5202 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5205 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5206 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5207 then :
5208 printf %s "(cached) " >&6
5209 else $as_nop
5210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211 /* end confdefs.h. */
5212 int i;
5213 _ACEOF
5214 if ac_fn_c_try_compile "$LINENO"
5215 then :
5216 xorg_cv_cc_flag_unknown_warning_option=yes
5217 else $as_nop
5218 xorg_cv_cc_flag_unknown_warning_option=no
5219 fi
5220 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5221 fi
5222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5223 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5224 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5225 CFLAGS="$xorg_testset_save_CFLAGS"
5226 fi
5227
5228 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5230 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5231 fi
5232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5234 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5235 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5236 then :
5237 printf %s "(cached) " >&6
5238 else $as_nop
5239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5240 /* end confdefs.h. */
5241 int i;
5242 _ACEOF
5243 if ac_fn_c_try_compile "$LINENO"
5244 then :
5245 xorg_cv_cc_flag_unused_command_line_argument=yes
5246 else $as_nop
5247 xorg_cv_cc_flag_unused_command_line_argument=no
5248 fi
5249 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5250 fi
5251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5252 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5253 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5254 CFLAGS="$xorg_testset_save_CFLAGS"
5255 fi
5256
5257 found="no"
5258
5259 if test $found = "no" ; then
5260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5261 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5262 fi
5263
5264 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5266 fi
5267
5268 CFLAGS="$CFLAGS -Wformat=2"
5269
5270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5271 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5272 cacheid=xorg_cv_cc_flag__Wformat_2
5273 if eval test \${$cacheid+y}
5274 then :
5275 printf %s "(cached) " >&6
5276 else $as_nop
5277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278 /* end confdefs.h. */
5279 int i;
5280 int
5281 main (void)
5282 {
5283
5284 ;
5285 return 0;
5286 }
5287 _ACEOF
5288 if ac_fn_c_try_link "$LINENO"
5289 then :
5290 eval $cacheid=yes
5291 else $as_nop
5292 eval $cacheid=no
5293 fi
5294 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5295 conftest$ac_exeext conftest.$ac_ext
5296 fi
5297
5298
5299 CFLAGS="$xorg_testset_save_CFLAGS"
5300
5301 eval supported=\$$cacheid
5302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5303 printf "%s\n" "$supported" >&6; }
5304 if test "$supported" = "yes" ; then
5305 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5306 found="yes"
5307 fi
5308 fi
5309
5310 if test $found = "no" ; then
5311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5313 fi
5314
5315 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5317 fi
5318
5319 CFLAGS="$CFLAGS -Wformat"
5320
5321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5322 printf %s "checking if $CC supports -Wformat... " >&6; }
5323 cacheid=xorg_cv_cc_flag__Wformat
5324 if eval test \${$cacheid+y}
5325 then :
5326 printf %s "(cached) " >&6
5327 else $as_nop
5328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329 /* end confdefs.h. */
5330 int i;
5331 int
5332 main (void)
5333 {
5334
5335 ;
5336 return 0;
5337 }
5338 _ACEOF
5339 if ac_fn_c_try_link "$LINENO"
5340 then :
5341 eval $cacheid=yes
5342 else $as_nop
5343 eval $cacheid=no
5344 fi
5345 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5346 conftest$ac_exeext conftest.$ac_ext
5347 fi
5348
5349
5350 CFLAGS="$xorg_testset_save_CFLAGS"
5351
5352 eval supported=\$$cacheid
5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5354 printf "%s\n" "$supported" >&6; }
5355 if test "$supported" = "yes" ; then
5356 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5357 found="yes"
5358 fi
5359 fi
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377 xorg_testset_save_CFLAGS="$CFLAGS"
5378
5379 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5382 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5383 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5384 then :
5385 printf %s "(cached) " >&6
5386 else $as_nop
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5389 int i;
5390 _ACEOF
5391 if ac_fn_c_try_compile "$LINENO"
5392 then :
5393 xorg_cv_cc_flag_unknown_warning_option=yes
5394 else $as_nop
5395 xorg_cv_cc_flag_unknown_warning_option=no
5396 fi
5397 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5398 fi
5399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5400 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5402 CFLAGS="$xorg_testset_save_CFLAGS"
5403 fi
5404
5405 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5408 fi
5409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5411 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5412 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5413 then :
5414 printf %s "(cached) " >&6
5415 else $as_nop
5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5417 /* end confdefs.h. */
5418 int i;
5419 _ACEOF
5420 if ac_fn_c_try_compile "$LINENO"
5421 then :
5422 xorg_cv_cc_flag_unused_command_line_argument=yes
5423 else $as_nop
5424 xorg_cv_cc_flag_unused_command_line_argument=no
5425 fi
5426 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5427 fi
5428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5429 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5430 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5431 CFLAGS="$xorg_testset_save_CFLAGS"
5432 fi
5433
5434 found="no"
5435
5436 if test $found = "no" ; then
5437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5439 fi
5440
5441 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5443 fi
5444
5445 CFLAGS="$CFLAGS -Wstrict-prototypes"
5446
5447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5448 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5449 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5450 if eval test \${$cacheid+y}
5451 then :
5452 printf %s "(cached) " >&6
5453 else $as_nop
5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455 /* end confdefs.h. */
5456 int i;
5457 int
5458 main (void)
5459 {
5460
5461 ;
5462 return 0;
5463 }
5464 _ACEOF
5465 if ac_fn_c_try_link "$LINENO"
5466 then :
5467 eval $cacheid=yes
5468 else $as_nop
5469 eval $cacheid=no
5470 fi
5471 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5472 conftest$ac_exeext conftest.$ac_ext
5473 fi
5474
5475
5476 CFLAGS="$xorg_testset_save_CFLAGS"
5477
5478 eval supported=\$$cacheid
5479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5480 printf "%s\n" "$supported" >&6; }
5481 if test "$supported" = "yes" ; then
5482 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5483 found="yes"
5484 fi
5485 fi
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501 xorg_testset_save_CFLAGS="$CFLAGS"
5502
5503 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5504 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5506 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5507 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5508 then :
5509 printf %s "(cached) " >&6
5510 else $as_nop
5511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512 /* end confdefs.h. */
5513 int i;
5514 _ACEOF
5515 if ac_fn_c_try_compile "$LINENO"
5516 then :
5517 xorg_cv_cc_flag_unknown_warning_option=yes
5518 else $as_nop
5519 xorg_cv_cc_flag_unknown_warning_option=no
5520 fi
5521 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5522 fi
5523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5524 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5526 CFLAGS="$xorg_testset_save_CFLAGS"
5527 fi
5528
5529 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5532 fi
5533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5535 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5536 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5537 then :
5538 printf %s "(cached) " >&6
5539 else $as_nop
5540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h. */
5542 int i;
5543 _ACEOF
5544 if ac_fn_c_try_compile "$LINENO"
5545 then :
5546 xorg_cv_cc_flag_unused_command_line_argument=yes
5547 else $as_nop
5548 xorg_cv_cc_flag_unused_command_line_argument=no
5549 fi
5550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5551 fi
5552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5553 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5554 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5555 CFLAGS="$xorg_testset_save_CFLAGS"
5556 fi
5557
5558 found="no"
5559
5560 if test $found = "no" ; then
5561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5563 fi
5564
5565 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5567 fi
5568
5569 CFLAGS="$CFLAGS -Wmissing-prototypes"
5570
5571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5572 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5573 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5574 if eval test \${$cacheid+y}
5575 then :
5576 printf %s "(cached) " >&6
5577 else $as_nop
5578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5579 /* end confdefs.h. */
5580 int i;
5581 int
5582 main (void)
5583 {
5584
5585 ;
5586 return 0;
5587 }
5588 _ACEOF
5589 if ac_fn_c_try_link "$LINENO"
5590 then :
5591 eval $cacheid=yes
5592 else $as_nop
5593 eval $cacheid=no
5594 fi
5595 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5596 conftest$ac_exeext conftest.$ac_ext
5597 fi
5598
5599
5600 CFLAGS="$xorg_testset_save_CFLAGS"
5601
5602 eval supported=\$$cacheid
5603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5604 printf "%s\n" "$supported" >&6; }
5605 if test "$supported" = "yes" ; then
5606 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5607 found="yes"
5608 fi
5609 fi
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625 xorg_testset_save_CFLAGS="$CFLAGS"
5626
5627 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5630 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5631 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5632 then :
5633 printf %s "(cached) " >&6
5634 else $as_nop
5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h. */
5637 int i;
5638 _ACEOF
5639 if ac_fn_c_try_compile "$LINENO"
5640 then :
5641 xorg_cv_cc_flag_unknown_warning_option=yes
5642 else $as_nop
5643 xorg_cv_cc_flag_unknown_warning_option=no
5644 fi
5645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5646 fi
5647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5648 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5650 CFLAGS="$xorg_testset_save_CFLAGS"
5651 fi
5652
5653 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5656 fi
5657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5659 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5660 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5661 then :
5662 printf %s "(cached) " >&6
5663 else $as_nop
5664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5665 /* end confdefs.h. */
5666 int i;
5667 _ACEOF
5668 if ac_fn_c_try_compile "$LINENO"
5669 then :
5670 xorg_cv_cc_flag_unused_command_line_argument=yes
5671 else $as_nop
5672 xorg_cv_cc_flag_unused_command_line_argument=no
5673 fi
5674 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5675 fi
5676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5677 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5679 CFLAGS="$xorg_testset_save_CFLAGS"
5680 fi
5681
5682 found="no"
5683
5684 if test $found = "no" ; then
5685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5687 fi
5688
5689 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5691 fi
5692
5693 CFLAGS="$CFLAGS -Wnested-externs"
5694
5695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5696 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5697 cacheid=xorg_cv_cc_flag__Wnested_externs
5698 if eval test \${$cacheid+y}
5699 then :
5700 printf %s "(cached) " >&6
5701 else $as_nop
5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703 /* end confdefs.h. */
5704 int i;
5705 int
5706 main (void)
5707 {
5708
5709 ;
5710 return 0;
5711 }
5712 _ACEOF
5713 if ac_fn_c_try_link "$LINENO"
5714 then :
5715 eval $cacheid=yes
5716 else $as_nop
5717 eval $cacheid=no
5718 fi
5719 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5720 conftest$ac_exeext conftest.$ac_ext
5721 fi
5722
5723
5724 CFLAGS="$xorg_testset_save_CFLAGS"
5725
5726 eval supported=\$$cacheid
5727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5728 printf "%s\n" "$supported" >&6; }
5729 if test "$supported" = "yes" ; then
5730 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5731 found="yes"
5732 fi
5733 fi
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749 xorg_testset_save_CFLAGS="$CFLAGS"
5750
5751 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5754 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5755 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5756 then :
5757 printf %s "(cached) " >&6
5758 else $as_nop
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5761 int i;
5762 _ACEOF
5763 if ac_fn_c_try_compile "$LINENO"
5764 then :
5765 xorg_cv_cc_flag_unknown_warning_option=yes
5766 else $as_nop
5767 xorg_cv_cc_flag_unknown_warning_option=no
5768 fi
5769 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5770 fi
5771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5772 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5773 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5774 CFLAGS="$xorg_testset_save_CFLAGS"
5775 fi
5776
5777 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5780 fi
5781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5783 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5784 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5785 then :
5786 printf %s "(cached) " >&6
5787 else $as_nop
5788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789 /* end confdefs.h. */
5790 int i;
5791 _ACEOF
5792 if ac_fn_c_try_compile "$LINENO"
5793 then :
5794 xorg_cv_cc_flag_unused_command_line_argument=yes
5795 else $as_nop
5796 xorg_cv_cc_flag_unused_command_line_argument=no
5797 fi
5798 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5799 fi
5800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5801 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5802 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5803 CFLAGS="$xorg_testset_save_CFLAGS"
5804 fi
5805
5806 found="no"
5807
5808 if test $found = "no" ; then
5809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5811 fi
5812
5813 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5815 fi
5816
5817 CFLAGS="$CFLAGS -Wbad-function-cast"
5818
5819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5820 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5821 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5822 if eval test \${$cacheid+y}
5823 then :
5824 printf %s "(cached) " >&6
5825 else $as_nop
5826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5827 /* end confdefs.h. */
5828 int i;
5829 int
5830 main (void)
5831 {
5832
5833 ;
5834 return 0;
5835 }
5836 _ACEOF
5837 if ac_fn_c_try_link "$LINENO"
5838 then :
5839 eval $cacheid=yes
5840 else $as_nop
5841 eval $cacheid=no
5842 fi
5843 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5844 conftest$ac_exeext conftest.$ac_ext
5845 fi
5846
5847
5848 CFLAGS="$xorg_testset_save_CFLAGS"
5849
5850 eval supported=\$$cacheid
5851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5852 printf "%s\n" "$supported" >&6; }
5853 if test "$supported" = "yes" ; then
5854 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5855 found="yes"
5856 fi
5857 fi
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873 xorg_testset_save_CFLAGS="$CFLAGS"
5874
5875 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5878 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5879 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5880 then :
5881 printf %s "(cached) " >&6
5882 else $as_nop
5883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5884 /* end confdefs.h. */
5885 int i;
5886 _ACEOF
5887 if ac_fn_c_try_compile "$LINENO"
5888 then :
5889 xorg_cv_cc_flag_unknown_warning_option=yes
5890 else $as_nop
5891 xorg_cv_cc_flag_unknown_warning_option=no
5892 fi
5893 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5894 fi
5895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5896 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5897 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5898 CFLAGS="$xorg_testset_save_CFLAGS"
5899 fi
5900
5901 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5903 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5904 fi
5905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5907 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5908 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5909 then :
5910 printf %s "(cached) " >&6
5911 else $as_nop
5912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h. */
5914 int i;
5915 _ACEOF
5916 if ac_fn_c_try_compile "$LINENO"
5917 then :
5918 xorg_cv_cc_flag_unused_command_line_argument=yes
5919 else $as_nop
5920 xorg_cv_cc_flag_unused_command_line_argument=no
5921 fi
5922 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5923 fi
5924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5925 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5926 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5927 CFLAGS="$xorg_testset_save_CFLAGS"
5928 fi
5929
5930 found="no"
5931
5932 if test $found = "no" ; then
5933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5935 fi
5936
5937 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5939 fi
5940
5941 CFLAGS="$CFLAGS -Wold-style-definition"
5942
5943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5944 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
5945 cacheid=xorg_cv_cc_flag__Wold_style_definition
5946 if eval test \${$cacheid+y}
5947 then :
5948 printf %s "(cached) " >&6
5949 else $as_nop
5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951 /* end confdefs.h. */
5952 int i;
5953 int
5954 main (void)
5955 {
5956
5957 ;
5958 return 0;
5959 }
5960 _ACEOF
5961 if ac_fn_c_try_link "$LINENO"
5962 then :
5963 eval $cacheid=yes
5964 else $as_nop
5965 eval $cacheid=no
5966 fi
5967 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5968 conftest$ac_exeext conftest.$ac_ext
5969 fi
5970
5971
5972 CFLAGS="$xorg_testset_save_CFLAGS"
5973
5974 eval supported=\$$cacheid
5975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5976 printf "%s\n" "$supported" >&6; }
5977 if test "$supported" = "yes" ; then
5978 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5979 found="yes"
5980 fi
5981 fi
5982
5983 if test $found = "no" ; then
5984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5986 fi
5987
5988 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5990 fi
5991
5992 CFLAGS="$CFLAGS -fd"
5993
5994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5995 printf %s "checking if $CC supports -fd... " >&6; }
5996 cacheid=xorg_cv_cc_flag__fd
5997 if eval test \${$cacheid+y}
5998 then :
5999 printf %s "(cached) " >&6
6000 else $as_nop
6001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002 /* end confdefs.h. */
6003 int i;
6004 int
6005 main (void)
6006 {
6007
6008 ;
6009 return 0;
6010 }
6011 _ACEOF
6012 if ac_fn_c_try_link "$LINENO"
6013 then :
6014 eval $cacheid=yes
6015 else $as_nop
6016 eval $cacheid=no
6017 fi
6018 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6019 conftest$ac_exeext conftest.$ac_ext
6020 fi
6021
6022
6023 CFLAGS="$xorg_testset_save_CFLAGS"
6024
6025 eval supported=\$$cacheid
6026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6027 printf "%s\n" "$supported" >&6; }
6028 if test "$supported" = "yes" ; then
6029 BASE_CFLAGS="$BASE_CFLAGS -fd"
6030 found="yes"
6031 fi
6032 fi
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048 xorg_testset_save_CFLAGS="$CFLAGS"
6049
6050 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6053 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6054 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6055 then :
6056 printf %s "(cached) " >&6
6057 else $as_nop
6058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6059 /* end confdefs.h. */
6060 int i;
6061 _ACEOF
6062 if ac_fn_c_try_compile "$LINENO"
6063 then :
6064 xorg_cv_cc_flag_unknown_warning_option=yes
6065 else $as_nop
6066 xorg_cv_cc_flag_unknown_warning_option=no
6067 fi
6068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6069 fi
6070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6071 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6072 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6073 CFLAGS="$xorg_testset_save_CFLAGS"
6074 fi
6075
6076 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6079 fi
6080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6082 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6083 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6084 then :
6085 printf %s "(cached) " >&6
6086 else $as_nop
6087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088 /* end confdefs.h. */
6089 int i;
6090 _ACEOF
6091 if ac_fn_c_try_compile "$LINENO"
6092 then :
6093 xorg_cv_cc_flag_unused_command_line_argument=yes
6094 else $as_nop
6095 xorg_cv_cc_flag_unused_command_line_argument=no
6096 fi
6097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6098 fi
6099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6100 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6101 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6102 CFLAGS="$xorg_testset_save_CFLAGS"
6103 fi
6104
6105 found="no"
6106
6107 if test $found = "no" ; then
6108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6110 fi
6111
6112 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6114 fi
6115
6116 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6117
6118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6119 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6120 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6121 if eval test \${$cacheid+y}
6122 then :
6123 printf %s "(cached) " >&6
6124 else $as_nop
6125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6126 /* end confdefs.h. */
6127 int i;
6128 int
6129 main (void)
6130 {
6131
6132 ;
6133 return 0;
6134 }
6135 _ACEOF
6136 if ac_fn_c_try_link "$LINENO"
6137 then :
6138 eval $cacheid=yes
6139 else $as_nop
6140 eval $cacheid=no
6141 fi
6142 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6143 conftest$ac_exeext conftest.$ac_ext
6144 fi
6145
6146
6147 CFLAGS="$xorg_testset_save_CFLAGS"
6148
6149 eval supported=\$$cacheid
6150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6151 printf "%s\n" "$supported" >&6; }
6152 if test "$supported" = "yes" ; then
6153 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6154 found="yes"
6155 fi
6156 fi
6157
6158
6159
6160
6161
6162 # This chunk adds additional warnings that could catch undesired effects.
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176 xorg_testset_save_CFLAGS="$CFLAGS"
6177
6178 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6179 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6181 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6182 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6183 then :
6184 printf %s "(cached) " >&6
6185 else $as_nop
6186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6187 /* end confdefs.h. */
6188 int i;
6189 _ACEOF
6190 if ac_fn_c_try_compile "$LINENO"
6191 then :
6192 xorg_cv_cc_flag_unknown_warning_option=yes
6193 else $as_nop
6194 xorg_cv_cc_flag_unknown_warning_option=no
6195 fi
6196 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6197 fi
6198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6199 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6200 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6201 CFLAGS="$xorg_testset_save_CFLAGS"
6202 fi
6203
6204 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6206 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6207 fi
6208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6210 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6211 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6212 then :
6213 printf %s "(cached) " >&6
6214 else $as_nop
6215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216 /* end confdefs.h. */
6217 int i;
6218 _ACEOF
6219 if ac_fn_c_try_compile "$LINENO"
6220 then :
6221 xorg_cv_cc_flag_unused_command_line_argument=yes
6222 else $as_nop
6223 xorg_cv_cc_flag_unused_command_line_argument=no
6224 fi
6225 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6226 fi
6227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6228 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6230 CFLAGS="$xorg_testset_save_CFLAGS"
6231 fi
6232
6233 found="no"
6234
6235 if test $found = "no" ; then
6236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6238 fi
6239
6240 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6242 fi
6243
6244 CFLAGS="$CFLAGS -Wunused"
6245
6246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6247 printf %s "checking if $CC supports -Wunused... " >&6; }
6248 cacheid=xorg_cv_cc_flag__Wunused
6249 if eval test \${$cacheid+y}
6250 then :
6251 printf %s "(cached) " >&6
6252 else $as_nop
6253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6254 /* end confdefs.h. */
6255 int i;
6256 int
6257 main (void)
6258 {
6259
6260 ;
6261 return 0;
6262 }
6263 _ACEOF
6264 if ac_fn_c_try_link "$LINENO"
6265 then :
6266 eval $cacheid=yes
6267 else $as_nop
6268 eval $cacheid=no
6269 fi
6270 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6271 conftest$ac_exeext conftest.$ac_ext
6272 fi
6273
6274
6275 CFLAGS="$xorg_testset_save_CFLAGS"
6276
6277 eval supported=\$$cacheid
6278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6279 printf "%s\n" "$supported" >&6; }
6280 if test "$supported" = "yes" ; then
6281 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6282 found="yes"
6283 fi
6284 fi
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300 xorg_testset_save_CFLAGS="$CFLAGS"
6301
6302 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6305 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6306 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6307 then :
6308 printf %s "(cached) " >&6
6309 else $as_nop
6310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6311 /* end confdefs.h. */
6312 int i;
6313 _ACEOF
6314 if ac_fn_c_try_compile "$LINENO"
6315 then :
6316 xorg_cv_cc_flag_unknown_warning_option=yes
6317 else $as_nop
6318 xorg_cv_cc_flag_unknown_warning_option=no
6319 fi
6320 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6321 fi
6322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6323 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6324 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6325 CFLAGS="$xorg_testset_save_CFLAGS"
6326 fi
6327
6328 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6330 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6331 fi
6332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6334 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6335 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6336 then :
6337 printf %s "(cached) " >&6
6338 else $as_nop
6339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6340 /* end confdefs.h. */
6341 int i;
6342 _ACEOF
6343 if ac_fn_c_try_compile "$LINENO"
6344 then :
6345 xorg_cv_cc_flag_unused_command_line_argument=yes
6346 else $as_nop
6347 xorg_cv_cc_flag_unused_command_line_argument=no
6348 fi
6349 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6350 fi
6351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6352 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6353 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6354 CFLAGS="$xorg_testset_save_CFLAGS"
6355 fi
6356
6357 found="no"
6358
6359 if test $found = "no" ; then
6360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6361 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6362 fi
6363
6364 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6366 fi
6367
6368 CFLAGS="$CFLAGS -Wuninitialized"
6369
6370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6371 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6372 cacheid=xorg_cv_cc_flag__Wuninitialized
6373 if eval test \${$cacheid+y}
6374 then :
6375 printf %s "(cached) " >&6
6376 else $as_nop
6377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6378 /* end confdefs.h. */
6379 int i;
6380 int
6381 main (void)
6382 {
6383
6384 ;
6385 return 0;
6386 }
6387 _ACEOF
6388 if ac_fn_c_try_link "$LINENO"
6389 then :
6390 eval $cacheid=yes
6391 else $as_nop
6392 eval $cacheid=no
6393 fi
6394 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6395 conftest$ac_exeext conftest.$ac_ext
6396 fi
6397
6398
6399 CFLAGS="$xorg_testset_save_CFLAGS"
6400
6401 eval supported=\$$cacheid
6402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6403 printf "%s\n" "$supported" >&6; }
6404 if test "$supported" = "yes" ; then
6405 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6406 found="yes"
6407 fi
6408 fi
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424 xorg_testset_save_CFLAGS="$CFLAGS"
6425
6426 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6429 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6430 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6431 then :
6432 printf %s "(cached) " >&6
6433 else $as_nop
6434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435 /* end confdefs.h. */
6436 int i;
6437 _ACEOF
6438 if ac_fn_c_try_compile "$LINENO"
6439 then :
6440 xorg_cv_cc_flag_unknown_warning_option=yes
6441 else $as_nop
6442 xorg_cv_cc_flag_unknown_warning_option=no
6443 fi
6444 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6445 fi
6446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6447 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6448 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6449 CFLAGS="$xorg_testset_save_CFLAGS"
6450 fi
6451
6452 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6455 fi
6456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6458 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6459 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6460 then :
6461 printf %s "(cached) " >&6
6462 else $as_nop
6463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6465 int i;
6466 _ACEOF
6467 if ac_fn_c_try_compile "$LINENO"
6468 then :
6469 xorg_cv_cc_flag_unused_command_line_argument=yes
6470 else $as_nop
6471 xorg_cv_cc_flag_unused_command_line_argument=no
6472 fi
6473 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6474 fi
6475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6476 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6477 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6478 CFLAGS="$xorg_testset_save_CFLAGS"
6479 fi
6480
6481 found="no"
6482
6483 if test $found = "no" ; then
6484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6485 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6486 fi
6487
6488 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6490 fi
6491
6492 CFLAGS="$CFLAGS -Wshadow"
6493
6494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6495 printf %s "checking if $CC supports -Wshadow... " >&6; }
6496 cacheid=xorg_cv_cc_flag__Wshadow
6497 if eval test \${$cacheid+y}
6498 then :
6499 printf %s "(cached) " >&6
6500 else $as_nop
6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h. */
6503 int i;
6504 int
6505 main (void)
6506 {
6507
6508 ;
6509 return 0;
6510 }
6511 _ACEOF
6512 if ac_fn_c_try_link "$LINENO"
6513 then :
6514 eval $cacheid=yes
6515 else $as_nop
6516 eval $cacheid=no
6517 fi
6518 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6519 conftest$ac_exeext conftest.$ac_ext
6520 fi
6521
6522
6523 CFLAGS="$xorg_testset_save_CFLAGS"
6524
6525 eval supported=\$$cacheid
6526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6527 printf "%s\n" "$supported" >&6; }
6528 if test "$supported" = "yes" ; then
6529 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6530 found="yes"
6531 fi
6532 fi
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548 xorg_testset_save_CFLAGS="$CFLAGS"
6549
6550 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6553 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6554 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6555 then :
6556 printf %s "(cached) " >&6
6557 else $as_nop
6558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6559 /* end confdefs.h. */
6560 int i;
6561 _ACEOF
6562 if ac_fn_c_try_compile "$LINENO"
6563 then :
6564 xorg_cv_cc_flag_unknown_warning_option=yes
6565 else $as_nop
6566 xorg_cv_cc_flag_unknown_warning_option=no
6567 fi
6568 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6569 fi
6570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6571 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6572 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6573 CFLAGS="$xorg_testset_save_CFLAGS"
6574 fi
6575
6576 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6578 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6579 fi
6580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6582 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6583 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6584 then :
6585 printf %s "(cached) " >&6
6586 else $as_nop
6587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6588 /* end confdefs.h. */
6589 int i;
6590 _ACEOF
6591 if ac_fn_c_try_compile "$LINENO"
6592 then :
6593 xorg_cv_cc_flag_unused_command_line_argument=yes
6594 else $as_nop
6595 xorg_cv_cc_flag_unused_command_line_argument=no
6596 fi
6597 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6598 fi
6599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6600 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6601 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6602 CFLAGS="$xorg_testset_save_CFLAGS"
6603 fi
6604
6605 found="no"
6606
6607 if test $found = "no" ; then
6608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6610 fi
6611
6612 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6614 fi
6615
6616 CFLAGS="$CFLAGS -Wmissing-noreturn"
6617
6618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6619 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6620 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6621 if eval test \${$cacheid+y}
6622 then :
6623 printf %s "(cached) " >&6
6624 else $as_nop
6625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6626 /* end confdefs.h. */
6627 int i;
6628 int
6629 main (void)
6630 {
6631
6632 ;
6633 return 0;
6634 }
6635 _ACEOF
6636 if ac_fn_c_try_link "$LINENO"
6637 then :
6638 eval $cacheid=yes
6639 else $as_nop
6640 eval $cacheid=no
6641 fi
6642 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6643 conftest$ac_exeext conftest.$ac_ext
6644 fi
6645
6646
6647 CFLAGS="$xorg_testset_save_CFLAGS"
6648
6649 eval supported=\$$cacheid
6650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6651 printf "%s\n" "$supported" >&6; }
6652 if test "$supported" = "yes" ; then
6653 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6654 found="yes"
6655 fi
6656 fi
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672 xorg_testset_save_CFLAGS="$CFLAGS"
6673
6674 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6677 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6678 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6679 then :
6680 printf %s "(cached) " >&6
6681 else $as_nop
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h. */
6684 int i;
6685 _ACEOF
6686 if ac_fn_c_try_compile "$LINENO"
6687 then :
6688 xorg_cv_cc_flag_unknown_warning_option=yes
6689 else $as_nop
6690 xorg_cv_cc_flag_unknown_warning_option=no
6691 fi
6692 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6693 fi
6694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6695 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6696 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6697 CFLAGS="$xorg_testset_save_CFLAGS"
6698 fi
6699
6700 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6703 fi
6704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6706 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6707 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6708 then :
6709 printf %s "(cached) " >&6
6710 else $as_nop
6711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6712 /* end confdefs.h. */
6713 int i;
6714 _ACEOF
6715 if ac_fn_c_try_compile "$LINENO"
6716 then :
6717 xorg_cv_cc_flag_unused_command_line_argument=yes
6718 else $as_nop
6719 xorg_cv_cc_flag_unused_command_line_argument=no
6720 fi
6721 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6722 fi
6723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6724 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6725 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6726 CFLAGS="$xorg_testset_save_CFLAGS"
6727 fi
6728
6729 found="no"
6730
6731 if test $found = "no" ; then
6732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6733 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6734 fi
6735
6736 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6738 fi
6739
6740 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6741
6742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6743 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6744 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6745 if eval test \${$cacheid+y}
6746 then :
6747 printf %s "(cached) " >&6
6748 else $as_nop
6749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h. */
6751 int i;
6752 int
6753 main (void)
6754 {
6755
6756 ;
6757 return 0;
6758 }
6759 _ACEOF
6760 if ac_fn_c_try_link "$LINENO"
6761 then :
6762 eval $cacheid=yes
6763 else $as_nop
6764 eval $cacheid=no
6765 fi
6766 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6767 conftest$ac_exeext conftest.$ac_ext
6768 fi
6769
6770
6771 CFLAGS="$xorg_testset_save_CFLAGS"
6772
6773 eval supported=\$$cacheid
6774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6775 printf "%s\n" "$supported" >&6; }
6776 if test "$supported" = "yes" ; then
6777 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6778 found="yes"
6779 fi
6780 fi
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796 xorg_testset_save_CFLAGS="$CFLAGS"
6797
6798 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6801 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6802 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6803 then :
6804 printf %s "(cached) " >&6
6805 else $as_nop
6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807 /* end confdefs.h. */
6808 int i;
6809 _ACEOF
6810 if ac_fn_c_try_compile "$LINENO"
6811 then :
6812 xorg_cv_cc_flag_unknown_warning_option=yes
6813 else $as_nop
6814 xorg_cv_cc_flag_unknown_warning_option=no
6815 fi
6816 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6817 fi
6818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6819 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6820 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6821 CFLAGS="$xorg_testset_save_CFLAGS"
6822 fi
6823
6824 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6826 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6827 fi
6828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6830 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6831 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6832 then :
6833 printf %s "(cached) " >&6
6834 else $as_nop
6835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836 /* end confdefs.h. */
6837 int i;
6838 _ACEOF
6839 if ac_fn_c_try_compile "$LINENO"
6840 then :
6841 xorg_cv_cc_flag_unused_command_line_argument=yes
6842 else $as_nop
6843 xorg_cv_cc_flag_unused_command_line_argument=no
6844 fi
6845 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6846 fi
6847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6848 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6849 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6850 CFLAGS="$xorg_testset_save_CFLAGS"
6851 fi
6852
6853 found="no"
6854
6855 if test $found = "no" ; then
6856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6858 fi
6859
6860 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6862 fi
6863
6864 CFLAGS="$CFLAGS -Wredundant-decls"
6865
6866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6867 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6868 cacheid=xorg_cv_cc_flag__Wredundant_decls
6869 if eval test \${$cacheid+y}
6870 then :
6871 printf %s "(cached) " >&6
6872 else $as_nop
6873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874 /* end confdefs.h. */
6875 int i;
6876 int
6877 main (void)
6878 {
6879
6880 ;
6881 return 0;
6882 }
6883 _ACEOF
6884 if ac_fn_c_try_link "$LINENO"
6885 then :
6886 eval $cacheid=yes
6887 else $as_nop
6888 eval $cacheid=no
6889 fi
6890 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6891 conftest$ac_exeext conftest.$ac_ext
6892 fi
6893
6894
6895 CFLAGS="$xorg_testset_save_CFLAGS"
6896
6897 eval supported=\$$cacheid
6898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6899 printf "%s\n" "$supported" >&6; }
6900 if test "$supported" = "yes" ; then
6901 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6902 found="yes"
6903 fi
6904 fi
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920 xorg_testset_save_CFLAGS="$CFLAGS"
6921
6922 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6925 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6926 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6927 then :
6928 printf %s "(cached) " >&6
6929 else $as_nop
6930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931 /* end confdefs.h. */
6932 int i;
6933 _ACEOF
6934 if ac_fn_c_try_compile "$LINENO"
6935 then :
6936 xorg_cv_cc_flag_unknown_warning_option=yes
6937 else $as_nop
6938 xorg_cv_cc_flag_unknown_warning_option=no
6939 fi
6940 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6941 fi
6942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6943 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6944 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6945 CFLAGS="$xorg_testset_save_CFLAGS"
6946 fi
6947
6948 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6951 fi
6952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6954 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6955 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6956 then :
6957 printf %s "(cached) " >&6
6958 else $as_nop
6959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6960 /* end confdefs.h. */
6961 int i;
6962 _ACEOF
6963 if ac_fn_c_try_compile "$LINENO"
6964 then :
6965 xorg_cv_cc_flag_unused_command_line_argument=yes
6966 else $as_nop
6967 xorg_cv_cc_flag_unused_command_line_argument=no
6968 fi
6969 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6970 fi
6971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6972 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6973 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6974 CFLAGS="$xorg_testset_save_CFLAGS"
6975 fi
6976
6977 found="no"
6978
6979 if test $found = "no" ; then
6980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6982 fi
6983
6984 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6986 fi
6987
6988 CFLAGS="$CFLAGS -Wlogical-op"
6989
6990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6991 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
6992 cacheid=xorg_cv_cc_flag__Wlogical_op
6993 if eval test \${$cacheid+y}
6994 then :
6995 printf %s "(cached) " >&6
6996 else $as_nop
6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h. */
6999 int i;
7000 int
7001 main (void)
7002 {
7003
7004 ;
7005 return 0;
7006 }
7007 _ACEOF
7008 if ac_fn_c_try_link "$LINENO"
7009 then :
7010 eval $cacheid=yes
7011 else $as_nop
7012 eval $cacheid=no
7013 fi
7014 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7015 conftest$ac_exeext conftest.$ac_ext
7016 fi
7017
7018
7019 CFLAGS="$xorg_testset_save_CFLAGS"
7020
7021 eval supported=\$$cacheid
7022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7023 printf "%s\n" "$supported" >&6; }
7024 if test "$supported" = "yes" ; then
7025 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7026 found="yes"
7027 fi
7028 fi
7029
7030
7031
7032 # These are currently disabled because they are noisy. They will be enabled
7033 # in the future once the codebase is sufficiently modernized to silence
7034 # them. For now, I don't want them to drown out the other warnings.
7035 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7036 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7037 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7038
7039 # Turn some warnings into errors, so we don't accidentally get successful builds
7040 # when there are problems that should be fixed.
7041
7042 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056 xorg_testset_save_CFLAGS="$CFLAGS"
7057
7058 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7061 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7062 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7063 then :
7064 printf %s "(cached) " >&6
7065 else $as_nop
7066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h. */
7068 int i;
7069 _ACEOF
7070 if ac_fn_c_try_compile "$LINENO"
7071 then :
7072 xorg_cv_cc_flag_unknown_warning_option=yes
7073 else $as_nop
7074 xorg_cv_cc_flag_unknown_warning_option=no
7075 fi
7076 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7077 fi
7078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7079 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7080 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7081 CFLAGS="$xorg_testset_save_CFLAGS"
7082 fi
7083
7084 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7087 fi
7088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7090 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7091 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7092 then :
7093 printf %s "(cached) " >&6
7094 else $as_nop
7095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h. */
7097 int i;
7098 _ACEOF
7099 if ac_fn_c_try_compile "$LINENO"
7100 then :
7101 xorg_cv_cc_flag_unused_command_line_argument=yes
7102 else $as_nop
7103 xorg_cv_cc_flag_unused_command_line_argument=no
7104 fi
7105 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7106 fi
7107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7108 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7109 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7110 CFLAGS="$xorg_testset_save_CFLAGS"
7111 fi
7112
7113 found="no"
7114
7115 if test $found = "no" ; then
7116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7118 fi
7119
7120 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7122 fi
7123
7124 CFLAGS="$CFLAGS -Werror=implicit"
7125
7126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7127 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7128 cacheid=xorg_cv_cc_flag__Werror_implicit
7129 if eval test \${$cacheid+y}
7130 then :
7131 printf %s "(cached) " >&6
7132 else $as_nop
7133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7134 /* end confdefs.h. */
7135 int i;
7136 int
7137 main (void)
7138 {
7139
7140 ;
7141 return 0;
7142 }
7143 _ACEOF
7144 if ac_fn_c_try_link "$LINENO"
7145 then :
7146 eval $cacheid=yes
7147 else $as_nop
7148 eval $cacheid=no
7149 fi
7150 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7151 conftest$ac_exeext conftest.$ac_ext
7152 fi
7153
7154
7155 CFLAGS="$xorg_testset_save_CFLAGS"
7156
7157 eval supported=\$$cacheid
7158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7159 printf "%s\n" "$supported" >&6; }
7160 if test "$supported" = "yes" ; then
7161 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7162 found="yes"
7163 fi
7164 fi
7165
7166 if test $found = "no" ; then
7167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7169 fi
7170
7171 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7173 fi
7174
7175 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7176
7177 { 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
7178 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7179 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7180 if eval test \${$cacheid+y}
7181 then :
7182 printf %s "(cached) " >&6
7183 else $as_nop
7184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7185 /* end confdefs.h. */
7186 int i;
7187 int
7188 main (void)
7189 {
7190
7191 ;
7192 return 0;
7193 }
7194 _ACEOF
7195 if ac_fn_c_try_link "$LINENO"
7196 then :
7197 eval $cacheid=yes
7198 else $as_nop
7199 eval $cacheid=no
7200 fi
7201 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7202 conftest$ac_exeext conftest.$ac_ext
7203 fi
7204
7205
7206 CFLAGS="$xorg_testset_save_CFLAGS"
7207
7208 eval supported=\$$cacheid
7209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7210 printf "%s\n" "$supported" >&6; }
7211 if test "$supported" = "yes" ; then
7212 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7213 found="yes"
7214 fi
7215 fi
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231 xorg_testset_save_CFLAGS="$CFLAGS"
7232
7233 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7236 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7237 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7238 then :
7239 printf %s "(cached) " >&6
7240 else $as_nop
7241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242 /* end confdefs.h. */
7243 int i;
7244 _ACEOF
7245 if ac_fn_c_try_compile "$LINENO"
7246 then :
7247 xorg_cv_cc_flag_unknown_warning_option=yes
7248 else $as_nop
7249 xorg_cv_cc_flag_unknown_warning_option=no
7250 fi
7251 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7252 fi
7253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7254 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7255 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7256 CFLAGS="$xorg_testset_save_CFLAGS"
7257 fi
7258
7259 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7261 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7262 fi
7263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7265 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7266 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7267 then :
7268 printf %s "(cached) " >&6
7269 else $as_nop
7270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271 /* end confdefs.h. */
7272 int i;
7273 _ACEOF
7274 if ac_fn_c_try_compile "$LINENO"
7275 then :
7276 xorg_cv_cc_flag_unused_command_line_argument=yes
7277 else $as_nop
7278 xorg_cv_cc_flag_unused_command_line_argument=no
7279 fi
7280 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7281 fi
7282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7283 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7284 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7285 CFLAGS="$xorg_testset_save_CFLAGS"
7286 fi
7287
7288 found="no"
7289
7290 if test $found = "no" ; then
7291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7292 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7293 fi
7294
7295 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7297 fi
7298
7299 CFLAGS="$CFLAGS -Werror=nonnull"
7300
7301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7302 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7303 cacheid=xorg_cv_cc_flag__Werror_nonnull
7304 if eval test \${$cacheid+y}
7305 then :
7306 printf %s "(cached) " >&6
7307 else $as_nop
7308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7309 /* end confdefs.h. */
7310 int i;
7311 int
7312 main (void)
7313 {
7314
7315 ;
7316 return 0;
7317 }
7318 _ACEOF
7319 if ac_fn_c_try_link "$LINENO"
7320 then :
7321 eval $cacheid=yes
7322 else $as_nop
7323 eval $cacheid=no
7324 fi
7325 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7326 conftest$ac_exeext conftest.$ac_ext
7327 fi
7328
7329
7330 CFLAGS="$xorg_testset_save_CFLAGS"
7331
7332 eval supported=\$$cacheid
7333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7334 printf "%s\n" "$supported" >&6; }
7335 if test "$supported" = "yes" ; then
7336 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7337 found="yes"
7338 fi
7339 fi
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355 xorg_testset_save_CFLAGS="$CFLAGS"
7356
7357 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7360 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7361 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7362 then :
7363 printf %s "(cached) " >&6
7364 else $as_nop
7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366 /* end confdefs.h. */
7367 int i;
7368 _ACEOF
7369 if ac_fn_c_try_compile "$LINENO"
7370 then :
7371 xorg_cv_cc_flag_unknown_warning_option=yes
7372 else $as_nop
7373 xorg_cv_cc_flag_unknown_warning_option=no
7374 fi
7375 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7376 fi
7377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7378 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7379 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7380 CFLAGS="$xorg_testset_save_CFLAGS"
7381 fi
7382
7383 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7386 fi
7387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7389 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7390 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7391 then :
7392 printf %s "(cached) " >&6
7393 else $as_nop
7394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7395 /* end confdefs.h. */
7396 int i;
7397 _ACEOF
7398 if ac_fn_c_try_compile "$LINENO"
7399 then :
7400 xorg_cv_cc_flag_unused_command_line_argument=yes
7401 else $as_nop
7402 xorg_cv_cc_flag_unused_command_line_argument=no
7403 fi
7404 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7405 fi
7406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7407 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7408 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7409 CFLAGS="$xorg_testset_save_CFLAGS"
7410 fi
7411
7412 found="no"
7413
7414 if test $found = "no" ; then
7415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7417 fi
7418
7419 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7421 fi
7422
7423 CFLAGS="$CFLAGS -Werror=init-self"
7424
7425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7426 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7427 cacheid=xorg_cv_cc_flag__Werror_init_self
7428 if eval test \${$cacheid+y}
7429 then :
7430 printf %s "(cached) " >&6
7431 else $as_nop
7432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433 /* end confdefs.h. */
7434 int i;
7435 int
7436 main (void)
7437 {
7438
7439 ;
7440 return 0;
7441 }
7442 _ACEOF
7443 if ac_fn_c_try_link "$LINENO"
7444 then :
7445 eval $cacheid=yes
7446 else $as_nop
7447 eval $cacheid=no
7448 fi
7449 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7450 conftest$ac_exeext conftest.$ac_ext
7451 fi
7452
7453
7454 CFLAGS="$xorg_testset_save_CFLAGS"
7455
7456 eval supported=\$$cacheid
7457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7458 printf "%s\n" "$supported" >&6; }
7459 if test "$supported" = "yes" ; then
7460 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7461 found="yes"
7462 fi
7463 fi
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479 xorg_testset_save_CFLAGS="$CFLAGS"
7480
7481 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7482 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7484 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7485 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7486 then :
7487 printf %s "(cached) " >&6
7488 else $as_nop
7489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7490 /* end confdefs.h. */
7491 int i;
7492 _ACEOF
7493 if ac_fn_c_try_compile "$LINENO"
7494 then :
7495 xorg_cv_cc_flag_unknown_warning_option=yes
7496 else $as_nop
7497 xorg_cv_cc_flag_unknown_warning_option=no
7498 fi
7499 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7500 fi
7501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7502 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7503 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7504 CFLAGS="$xorg_testset_save_CFLAGS"
7505 fi
7506
7507 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7510 fi
7511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7513 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7514 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7515 then :
7516 printf %s "(cached) " >&6
7517 else $as_nop
7518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519 /* end confdefs.h. */
7520 int i;
7521 _ACEOF
7522 if ac_fn_c_try_compile "$LINENO"
7523 then :
7524 xorg_cv_cc_flag_unused_command_line_argument=yes
7525 else $as_nop
7526 xorg_cv_cc_flag_unused_command_line_argument=no
7527 fi
7528 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7529 fi
7530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7531 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7532 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7533 CFLAGS="$xorg_testset_save_CFLAGS"
7534 fi
7535
7536 found="no"
7537
7538 if test $found = "no" ; then
7539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7540 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7541 fi
7542
7543 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7545 fi
7546
7547 CFLAGS="$CFLAGS -Werror=main"
7548
7549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7550 printf %s "checking if $CC supports -Werror=main... " >&6; }
7551 cacheid=xorg_cv_cc_flag__Werror_main
7552 if eval test \${$cacheid+y}
7553 then :
7554 printf %s "(cached) " >&6
7555 else $as_nop
7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557 /* end confdefs.h. */
7558 int i;
7559 int
7560 main (void)
7561 {
7562
7563 ;
7564 return 0;
7565 }
7566 _ACEOF
7567 if ac_fn_c_try_link "$LINENO"
7568 then :
7569 eval $cacheid=yes
7570 else $as_nop
7571 eval $cacheid=no
7572 fi
7573 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7574 conftest$ac_exeext conftest.$ac_ext
7575 fi
7576
7577
7578 CFLAGS="$xorg_testset_save_CFLAGS"
7579
7580 eval supported=\$$cacheid
7581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7582 printf "%s\n" "$supported" >&6; }
7583 if test "$supported" = "yes" ; then
7584 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7585 found="yes"
7586 fi
7587 fi
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603 xorg_testset_save_CFLAGS="$CFLAGS"
7604
7605 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7608 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7609 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7610 then :
7611 printf %s "(cached) " >&6
7612 else $as_nop
7613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7614 /* end confdefs.h. */
7615 int i;
7616 _ACEOF
7617 if ac_fn_c_try_compile "$LINENO"
7618 then :
7619 xorg_cv_cc_flag_unknown_warning_option=yes
7620 else $as_nop
7621 xorg_cv_cc_flag_unknown_warning_option=no
7622 fi
7623 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7624 fi
7625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7626 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7627 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7628 CFLAGS="$xorg_testset_save_CFLAGS"
7629 fi
7630
7631 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7634 fi
7635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7637 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7638 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7639 then :
7640 printf %s "(cached) " >&6
7641 else $as_nop
7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643 /* end confdefs.h. */
7644 int i;
7645 _ACEOF
7646 if ac_fn_c_try_compile "$LINENO"
7647 then :
7648 xorg_cv_cc_flag_unused_command_line_argument=yes
7649 else $as_nop
7650 xorg_cv_cc_flag_unused_command_line_argument=no
7651 fi
7652 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7653 fi
7654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7655 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7656 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7657 CFLAGS="$xorg_testset_save_CFLAGS"
7658 fi
7659
7660 found="no"
7661
7662 if test $found = "no" ; then
7663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7665 fi
7666
7667 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7669 fi
7670
7671 CFLAGS="$CFLAGS -Werror=missing-braces"
7672
7673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7674 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7675 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7676 if eval test \${$cacheid+y}
7677 then :
7678 printf %s "(cached) " >&6
7679 else $as_nop
7680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7681 /* end confdefs.h. */
7682 int i;
7683 int
7684 main (void)
7685 {
7686
7687 ;
7688 return 0;
7689 }
7690 _ACEOF
7691 if ac_fn_c_try_link "$LINENO"
7692 then :
7693 eval $cacheid=yes
7694 else $as_nop
7695 eval $cacheid=no
7696 fi
7697 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7698 conftest$ac_exeext conftest.$ac_ext
7699 fi
7700
7701
7702 CFLAGS="$xorg_testset_save_CFLAGS"
7703
7704 eval supported=\$$cacheid
7705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7706 printf "%s\n" "$supported" >&6; }
7707 if test "$supported" = "yes" ; then
7708 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7709 found="yes"
7710 fi
7711 fi
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727 xorg_testset_save_CFLAGS="$CFLAGS"
7728
7729 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7732 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7733 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7734 then :
7735 printf %s "(cached) " >&6
7736 else $as_nop
7737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7738 /* end confdefs.h. */
7739 int i;
7740 _ACEOF
7741 if ac_fn_c_try_compile "$LINENO"
7742 then :
7743 xorg_cv_cc_flag_unknown_warning_option=yes
7744 else $as_nop
7745 xorg_cv_cc_flag_unknown_warning_option=no
7746 fi
7747 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7748 fi
7749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7750 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7751 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7752 CFLAGS="$xorg_testset_save_CFLAGS"
7753 fi
7754
7755 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7758 fi
7759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7761 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7762 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7763 then :
7764 printf %s "(cached) " >&6
7765 else $as_nop
7766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7767 /* end confdefs.h. */
7768 int i;
7769 _ACEOF
7770 if ac_fn_c_try_compile "$LINENO"
7771 then :
7772 xorg_cv_cc_flag_unused_command_line_argument=yes
7773 else $as_nop
7774 xorg_cv_cc_flag_unused_command_line_argument=no
7775 fi
7776 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7777 fi
7778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7779 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7780 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7781 CFLAGS="$xorg_testset_save_CFLAGS"
7782 fi
7783
7784 found="no"
7785
7786 if test $found = "no" ; then
7787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7788 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7789 fi
7790
7791 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7793 fi
7794
7795 CFLAGS="$CFLAGS -Werror=sequence-point"
7796
7797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7798 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7799 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7800 if eval test \${$cacheid+y}
7801 then :
7802 printf %s "(cached) " >&6
7803 else $as_nop
7804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7805 /* end confdefs.h. */
7806 int i;
7807 int
7808 main (void)
7809 {
7810
7811 ;
7812 return 0;
7813 }
7814 _ACEOF
7815 if ac_fn_c_try_link "$LINENO"
7816 then :
7817 eval $cacheid=yes
7818 else $as_nop
7819 eval $cacheid=no
7820 fi
7821 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7822 conftest$ac_exeext conftest.$ac_ext
7823 fi
7824
7825
7826 CFLAGS="$xorg_testset_save_CFLAGS"
7827
7828 eval supported=\$$cacheid
7829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7830 printf "%s\n" "$supported" >&6; }
7831 if test "$supported" = "yes" ; then
7832 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7833 found="yes"
7834 fi
7835 fi
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851 xorg_testset_save_CFLAGS="$CFLAGS"
7852
7853 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7856 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7857 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7858 then :
7859 printf %s "(cached) " >&6
7860 else $as_nop
7861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7862 /* end confdefs.h. */
7863 int i;
7864 _ACEOF
7865 if ac_fn_c_try_compile "$LINENO"
7866 then :
7867 xorg_cv_cc_flag_unknown_warning_option=yes
7868 else $as_nop
7869 xorg_cv_cc_flag_unknown_warning_option=no
7870 fi
7871 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7872 fi
7873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7874 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7875 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7876 CFLAGS="$xorg_testset_save_CFLAGS"
7877 fi
7878
7879 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7882 fi
7883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7885 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7886 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7887 then :
7888 printf %s "(cached) " >&6
7889 else $as_nop
7890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7891 /* end confdefs.h. */
7892 int i;
7893 _ACEOF
7894 if ac_fn_c_try_compile "$LINENO"
7895 then :
7896 xorg_cv_cc_flag_unused_command_line_argument=yes
7897 else $as_nop
7898 xorg_cv_cc_flag_unused_command_line_argument=no
7899 fi
7900 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7901 fi
7902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7903 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7904 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7905 CFLAGS="$xorg_testset_save_CFLAGS"
7906 fi
7907
7908 found="no"
7909
7910 if test $found = "no" ; then
7911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7912 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7913 fi
7914
7915 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7917 fi
7918
7919 CFLAGS="$CFLAGS -Werror=return-type"
7920
7921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7922 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
7923 cacheid=xorg_cv_cc_flag__Werror_return_type
7924 if eval test \${$cacheid+y}
7925 then :
7926 printf %s "(cached) " >&6
7927 else $as_nop
7928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929 /* end confdefs.h. */
7930 int i;
7931 int
7932 main (void)
7933 {
7934
7935 ;
7936 return 0;
7937 }
7938 _ACEOF
7939 if ac_fn_c_try_link "$LINENO"
7940 then :
7941 eval $cacheid=yes
7942 else $as_nop
7943 eval $cacheid=no
7944 fi
7945 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7946 conftest$ac_exeext conftest.$ac_ext
7947 fi
7948
7949
7950 CFLAGS="$xorg_testset_save_CFLAGS"
7951
7952 eval supported=\$$cacheid
7953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7954 printf "%s\n" "$supported" >&6; }
7955 if test "$supported" = "yes" ; then
7956 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7957 found="yes"
7958 fi
7959 fi
7960
7961 if test $found = "no" ; then
7962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7964 fi
7965
7966 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7968 fi
7969
7970 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7971
7972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7973 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7974 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7975 if eval test \${$cacheid+y}
7976 then :
7977 printf %s "(cached) " >&6
7978 else $as_nop
7979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980 /* end confdefs.h. */
7981 int i;
7982 int
7983 main (void)
7984 {
7985
7986 ;
7987 return 0;
7988 }
7989 _ACEOF
7990 if ac_fn_c_try_link "$LINENO"
7991 then :
7992 eval $cacheid=yes
7993 else $as_nop
7994 eval $cacheid=no
7995 fi
7996 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7997 conftest$ac_exeext conftest.$ac_ext
7998 fi
7999
8000
8001 CFLAGS="$xorg_testset_save_CFLAGS"
8002
8003 eval supported=\$$cacheid
8004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8005 printf "%s\n" "$supported" >&6; }
8006 if test "$supported" = "yes" ; then
8007 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8008 found="yes"
8009 fi
8010 fi
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026 xorg_testset_save_CFLAGS="$CFLAGS"
8027
8028 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8029 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8031 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8032 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8033 then :
8034 printf %s "(cached) " >&6
8035 else $as_nop
8036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8037 /* end confdefs.h. */
8038 int i;
8039 _ACEOF
8040 if ac_fn_c_try_compile "$LINENO"
8041 then :
8042 xorg_cv_cc_flag_unknown_warning_option=yes
8043 else $as_nop
8044 xorg_cv_cc_flag_unknown_warning_option=no
8045 fi
8046 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8047 fi
8048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8049 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8050 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8051 CFLAGS="$xorg_testset_save_CFLAGS"
8052 fi
8053
8054 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8057 fi
8058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8060 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8061 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8062 then :
8063 printf %s "(cached) " >&6
8064 else $as_nop
8065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8066 /* end confdefs.h. */
8067 int i;
8068 _ACEOF
8069 if ac_fn_c_try_compile "$LINENO"
8070 then :
8071 xorg_cv_cc_flag_unused_command_line_argument=yes
8072 else $as_nop
8073 xorg_cv_cc_flag_unused_command_line_argument=no
8074 fi
8075 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8076 fi
8077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8078 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8079 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8080 CFLAGS="$xorg_testset_save_CFLAGS"
8081 fi
8082
8083 found="no"
8084
8085 if test $found = "no" ; then
8086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8087 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8088 fi
8089
8090 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8092 fi
8093
8094 CFLAGS="$CFLAGS -Werror=trigraphs"
8095
8096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8097 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8098 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8099 if eval test \${$cacheid+y}
8100 then :
8101 printf %s "(cached) " >&6
8102 else $as_nop
8103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h. */
8105 int i;
8106 int
8107 main (void)
8108 {
8109
8110 ;
8111 return 0;
8112 }
8113 _ACEOF
8114 if ac_fn_c_try_link "$LINENO"
8115 then :
8116 eval $cacheid=yes
8117 else $as_nop
8118 eval $cacheid=no
8119 fi
8120 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8121 conftest$ac_exeext conftest.$ac_ext
8122 fi
8123
8124
8125 CFLAGS="$xorg_testset_save_CFLAGS"
8126
8127 eval supported=\$$cacheid
8128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8129 printf "%s\n" "$supported" >&6; }
8130 if test "$supported" = "yes" ; then
8131 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8132 found="yes"
8133 fi
8134 fi
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150 xorg_testset_save_CFLAGS="$CFLAGS"
8151
8152 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8155 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8156 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8157 then :
8158 printf %s "(cached) " >&6
8159 else $as_nop
8160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8161 /* end confdefs.h. */
8162 int i;
8163 _ACEOF
8164 if ac_fn_c_try_compile "$LINENO"
8165 then :
8166 xorg_cv_cc_flag_unknown_warning_option=yes
8167 else $as_nop
8168 xorg_cv_cc_flag_unknown_warning_option=no
8169 fi
8170 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8171 fi
8172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8173 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8174 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8175 CFLAGS="$xorg_testset_save_CFLAGS"
8176 fi
8177
8178 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8181 fi
8182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8184 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8185 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8186 then :
8187 printf %s "(cached) " >&6
8188 else $as_nop
8189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190 /* end confdefs.h. */
8191 int i;
8192 _ACEOF
8193 if ac_fn_c_try_compile "$LINENO"
8194 then :
8195 xorg_cv_cc_flag_unused_command_line_argument=yes
8196 else $as_nop
8197 xorg_cv_cc_flag_unused_command_line_argument=no
8198 fi
8199 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8200 fi
8201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8202 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8203 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8204 CFLAGS="$xorg_testset_save_CFLAGS"
8205 fi
8206
8207 found="no"
8208
8209 if test $found = "no" ; then
8210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8212 fi
8213
8214 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8216 fi
8217
8218 CFLAGS="$CFLAGS -Werror=array-bounds"
8219
8220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8221 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8222 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8223 if eval test \${$cacheid+y}
8224 then :
8225 printf %s "(cached) " >&6
8226 else $as_nop
8227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8228 /* end confdefs.h. */
8229 int i;
8230 int
8231 main (void)
8232 {
8233
8234 ;
8235 return 0;
8236 }
8237 _ACEOF
8238 if ac_fn_c_try_link "$LINENO"
8239 then :
8240 eval $cacheid=yes
8241 else $as_nop
8242 eval $cacheid=no
8243 fi
8244 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8245 conftest$ac_exeext conftest.$ac_ext
8246 fi
8247
8248
8249 CFLAGS="$xorg_testset_save_CFLAGS"
8250
8251 eval supported=\$$cacheid
8252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8253 printf "%s\n" "$supported" >&6; }
8254 if test "$supported" = "yes" ; then
8255 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8256 found="yes"
8257 fi
8258 fi
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274 xorg_testset_save_CFLAGS="$CFLAGS"
8275
8276 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8277 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8279 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8280 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8281 then :
8282 printf %s "(cached) " >&6
8283 else $as_nop
8284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8285 /* end confdefs.h. */
8286 int i;
8287 _ACEOF
8288 if ac_fn_c_try_compile "$LINENO"
8289 then :
8290 xorg_cv_cc_flag_unknown_warning_option=yes
8291 else $as_nop
8292 xorg_cv_cc_flag_unknown_warning_option=no
8293 fi
8294 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8295 fi
8296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8297 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8298 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8299 CFLAGS="$xorg_testset_save_CFLAGS"
8300 fi
8301
8302 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8305 fi
8306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8308 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8309 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8310 then :
8311 printf %s "(cached) " >&6
8312 else $as_nop
8313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8314 /* end confdefs.h. */
8315 int i;
8316 _ACEOF
8317 if ac_fn_c_try_compile "$LINENO"
8318 then :
8319 xorg_cv_cc_flag_unused_command_line_argument=yes
8320 else $as_nop
8321 xorg_cv_cc_flag_unused_command_line_argument=no
8322 fi
8323 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8324 fi
8325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8326 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8327 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8328 CFLAGS="$xorg_testset_save_CFLAGS"
8329 fi
8330
8331 found="no"
8332
8333 if test $found = "no" ; then
8334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8336 fi
8337
8338 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8340 fi
8341
8342 CFLAGS="$CFLAGS -Werror=write-strings"
8343
8344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8345 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8346 cacheid=xorg_cv_cc_flag__Werror_write_strings
8347 if eval test \${$cacheid+y}
8348 then :
8349 printf %s "(cached) " >&6
8350 else $as_nop
8351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8352 /* end confdefs.h. */
8353 int i;
8354 int
8355 main (void)
8356 {
8357
8358 ;
8359 return 0;
8360 }
8361 _ACEOF
8362 if ac_fn_c_try_link "$LINENO"
8363 then :
8364 eval $cacheid=yes
8365 else $as_nop
8366 eval $cacheid=no
8367 fi
8368 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8369 conftest$ac_exeext conftest.$ac_ext
8370 fi
8371
8372
8373 CFLAGS="$xorg_testset_save_CFLAGS"
8374
8375 eval supported=\$$cacheid
8376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8377 printf "%s\n" "$supported" >&6; }
8378 if test "$supported" = "yes" ; then
8379 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8380 found="yes"
8381 fi
8382 fi
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398 xorg_testset_save_CFLAGS="$CFLAGS"
8399
8400 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8401 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8403 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8404 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8405 then :
8406 printf %s "(cached) " >&6
8407 else $as_nop
8408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8409 /* end confdefs.h. */
8410 int i;
8411 _ACEOF
8412 if ac_fn_c_try_compile "$LINENO"
8413 then :
8414 xorg_cv_cc_flag_unknown_warning_option=yes
8415 else $as_nop
8416 xorg_cv_cc_flag_unknown_warning_option=no
8417 fi
8418 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8419 fi
8420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8421 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8422 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8423 CFLAGS="$xorg_testset_save_CFLAGS"
8424 fi
8425
8426 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8428 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8429 fi
8430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8432 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8433 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8434 then :
8435 printf %s "(cached) " >&6
8436 else $as_nop
8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8438 /* end confdefs.h. */
8439 int i;
8440 _ACEOF
8441 if ac_fn_c_try_compile "$LINENO"
8442 then :
8443 xorg_cv_cc_flag_unused_command_line_argument=yes
8444 else $as_nop
8445 xorg_cv_cc_flag_unused_command_line_argument=no
8446 fi
8447 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8448 fi
8449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8450 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8451 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8452 CFLAGS="$xorg_testset_save_CFLAGS"
8453 fi
8454
8455 found="no"
8456
8457 if test $found = "no" ; then
8458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8460 fi
8461
8462 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8464 fi
8465
8466 CFLAGS="$CFLAGS -Werror=address"
8467
8468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8469 printf %s "checking if $CC supports -Werror=address... " >&6; }
8470 cacheid=xorg_cv_cc_flag__Werror_address
8471 if eval test \${$cacheid+y}
8472 then :
8473 printf %s "(cached) " >&6
8474 else $as_nop
8475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8476 /* end confdefs.h. */
8477 int i;
8478 int
8479 main (void)
8480 {
8481
8482 ;
8483 return 0;
8484 }
8485 _ACEOF
8486 if ac_fn_c_try_link "$LINENO"
8487 then :
8488 eval $cacheid=yes
8489 else $as_nop
8490 eval $cacheid=no
8491 fi
8492 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8493 conftest$ac_exeext conftest.$ac_ext
8494 fi
8495
8496
8497 CFLAGS="$xorg_testset_save_CFLAGS"
8498
8499 eval supported=\$$cacheid
8500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8501 printf "%s\n" "$supported" >&6; }
8502 if test "$supported" = "yes" ; then
8503 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8504 found="yes"
8505 fi
8506 fi
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522 xorg_testset_save_CFLAGS="$CFLAGS"
8523
8524 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8525 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8527 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8528 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8529 then :
8530 printf %s "(cached) " >&6
8531 else $as_nop
8532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8533 /* end confdefs.h. */
8534 int i;
8535 _ACEOF
8536 if ac_fn_c_try_compile "$LINENO"
8537 then :
8538 xorg_cv_cc_flag_unknown_warning_option=yes
8539 else $as_nop
8540 xorg_cv_cc_flag_unknown_warning_option=no
8541 fi
8542 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8543 fi
8544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8545 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8546 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8547 CFLAGS="$xorg_testset_save_CFLAGS"
8548 fi
8549
8550 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8551 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8552 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8553 fi
8554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8556 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8557 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8558 then :
8559 printf %s "(cached) " >&6
8560 else $as_nop
8561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8562 /* end confdefs.h. */
8563 int i;
8564 _ACEOF
8565 if ac_fn_c_try_compile "$LINENO"
8566 then :
8567 xorg_cv_cc_flag_unused_command_line_argument=yes
8568 else $as_nop
8569 xorg_cv_cc_flag_unused_command_line_argument=no
8570 fi
8571 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8572 fi
8573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8574 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8575 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8576 CFLAGS="$xorg_testset_save_CFLAGS"
8577 fi
8578
8579 found="no"
8580
8581 if test $found = "no" ; then
8582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8583 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8584 fi
8585
8586 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8588 fi
8589
8590 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8591
8592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8593 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8594 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8595 if eval test \${$cacheid+y}
8596 then :
8597 printf %s "(cached) " >&6
8598 else $as_nop
8599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8600 /* end confdefs.h. */
8601 int i;
8602 int
8603 main (void)
8604 {
8605
8606 ;
8607 return 0;
8608 }
8609 _ACEOF
8610 if ac_fn_c_try_link "$LINENO"
8611 then :
8612 eval $cacheid=yes
8613 else $as_nop
8614 eval $cacheid=no
8615 fi
8616 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8617 conftest$ac_exeext conftest.$ac_ext
8618 fi
8619
8620
8621 CFLAGS="$xorg_testset_save_CFLAGS"
8622
8623 eval supported=\$$cacheid
8624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8625 printf "%s\n" "$supported" >&6; }
8626 if test "$supported" = "yes" ; then
8627 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8628 found="yes"
8629 fi
8630 fi
8631
8632 if test $found = "no" ; then
8633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8635 fi
8636
8637 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8639 fi
8640
8641 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8642
8643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8644 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8645 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8646 if eval test \${$cacheid+y}
8647 then :
8648 printf %s "(cached) " >&6
8649 else $as_nop
8650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8651 /* end confdefs.h. */
8652 int i;
8653 int
8654 main (void)
8655 {
8656
8657 ;
8658 return 0;
8659 }
8660 _ACEOF
8661 if ac_fn_c_try_link "$LINENO"
8662 then :
8663 eval $cacheid=yes
8664 else $as_nop
8665 eval $cacheid=no
8666 fi
8667 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8668 conftest$ac_exeext conftest.$ac_ext
8669 fi
8670
8671
8672 CFLAGS="$xorg_testset_save_CFLAGS"
8673
8674 eval supported=\$$cacheid
8675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8676 printf "%s\n" "$supported" >&6; }
8677 if test "$supported" = "yes" ; then
8678 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8679 found="yes"
8680 fi
8681 fi
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697 xorg_testset_save_CFLAGS="$CFLAGS"
8698
8699 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8702 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8703 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8704 then :
8705 printf %s "(cached) " >&6
8706 else $as_nop
8707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8708 /* end confdefs.h. */
8709 int i;
8710 _ACEOF
8711 if ac_fn_c_try_compile "$LINENO"
8712 then :
8713 xorg_cv_cc_flag_unknown_warning_option=yes
8714 else $as_nop
8715 xorg_cv_cc_flag_unknown_warning_option=no
8716 fi
8717 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8718 fi
8719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8720 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8722 CFLAGS="$xorg_testset_save_CFLAGS"
8723 fi
8724
8725 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8728 fi
8729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8731 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8732 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8733 then :
8734 printf %s "(cached) " >&6
8735 else $as_nop
8736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8737 /* end confdefs.h. */
8738 int i;
8739 _ACEOF
8740 if ac_fn_c_try_compile "$LINENO"
8741 then :
8742 xorg_cv_cc_flag_unused_command_line_argument=yes
8743 else $as_nop
8744 xorg_cv_cc_flag_unused_command_line_argument=no
8745 fi
8746 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8747 fi
8748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8749 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8750 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8751 CFLAGS="$xorg_testset_save_CFLAGS"
8752 fi
8753
8754 found="no"
8755
8756 if test $found = "no" ; then
8757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8758 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8759 fi
8760
8761 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8763 fi
8764
8765 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8766
8767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8768 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8769 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8770 if eval test \${$cacheid+y}
8771 then :
8772 printf %s "(cached) " >&6
8773 else $as_nop
8774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8775 /* end confdefs.h. */
8776 int i;
8777 int
8778 main (void)
8779 {
8780
8781 ;
8782 return 0;
8783 }
8784 _ACEOF
8785 if ac_fn_c_try_link "$LINENO"
8786 then :
8787 eval $cacheid=yes
8788 else $as_nop
8789 eval $cacheid=no
8790 fi
8791 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8792 conftest$ac_exeext conftest.$ac_ext
8793 fi
8794
8795
8796 CFLAGS="$xorg_testset_save_CFLAGS"
8797
8798 eval supported=\$$cacheid
8799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8800 printf "%s\n" "$supported" >&6; }
8801 if test "$supported" = "yes" ; then
8802 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8803 found="yes"
8804 fi
8805 fi
8806
8807 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8808 else
8809 { 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
8810 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;}
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824 xorg_testset_save_CFLAGS="$CFLAGS"
8825
8826 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8829 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8830 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8831 then :
8832 printf %s "(cached) " >&6
8833 else $as_nop
8834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8835 /* end confdefs.h. */
8836 int i;
8837 _ACEOF
8838 if ac_fn_c_try_compile "$LINENO"
8839 then :
8840 xorg_cv_cc_flag_unknown_warning_option=yes
8841 else $as_nop
8842 xorg_cv_cc_flag_unknown_warning_option=no
8843 fi
8844 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8845 fi
8846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8847 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8848 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8849 CFLAGS="$xorg_testset_save_CFLAGS"
8850 fi
8851
8852 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8855 fi
8856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8858 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8859 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8860 then :
8861 printf %s "(cached) " >&6
8862 else $as_nop
8863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8864 /* end confdefs.h. */
8865 int i;
8866 _ACEOF
8867 if ac_fn_c_try_compile "$LINENO"
8868 then :
8869 xorg_cv_cc_flag_unused_command_line_argument=yes
8870 else $as_nop
8871 xorg_cv_cc_flag_unused_command_line_argument=no
8872 fi
8873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8874 fi
8875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8876 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8877 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8878 CFLAGS="$xorg_testset_save_CFLAGS"
8879 fi
8880
8881 found="no"
8882
8883 if test $found = "no" ; then
8884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8886 fi
8887
8888 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8890 fi
8891
8892 CFLAGS="$CFLAGS -Wimplicit"
8893
8894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8895 printf %s "checking if $CC supports -Wimplicit... " >&6; }
8896 cacheid=xorg_cv_cc_flag__Wimplicit
8897 if eval test \${$cacheid+y}
8898 then :
8899 printf %s "(cached) " >&6
8900 else $as_nop
8901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8902 /* end confdefs.h. */
8903 int i;
8904 int
8905 main (void)
8906 {
8907
8908 ;
8909 return 0;
8910 }
8911 _ACEOF
8912 if ac_fn_c_try_link "$LINENO"
8913 then :
8914 eval $cacheid=yes
8915 else $as_nop
8916 eval $cacheid=no
8917 fi
8918 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8919 conftest$ac_exeext conftest.$ac_ext
8920 fi
8921
8922
8923 CFLAGS="$xorg_testset_save_CFLAGS"
8924
8925 eval supported=\$$cacheid
8926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8927 printf "%s\n" "$supported" >&6; }
8928 if test "$supported" = "yes" ; then
8929 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8930 found="yes"
8931 fi
8932 fi
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948 xorg_testset_save_CFLAGS="$CFLAGS"
8949
8950 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8951 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8953 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8954 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8955 then :
8956 printf %s "(cached) " >&6
8957 else $as_nop
8958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959 /* end confdefs.h. */
8960 int i;
8961 _ACEOF
8962 if ac_fn_c_try_compile "$LINENO"
8963 then :
8964 xorg_cv_cc_flag_unknown_warning_option=yes
8965 else $as_nop
8966 xorg_cv_cc_flag_unknown_warning_option=no
8967 fi
8968 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8969 fi
8970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8971 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8972 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8973 CFLAGS="$xorg_testset_save_CFLAGS"
8974 fi
8975
8976 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8979 fi
8980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8982 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8983 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8984 then :
8985 printf %s "(cached) " >&6
8986 else $as_nop
8987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8988 /* end confdefs.h. */
8989 int i;
8990 _ACEOF
8991 if ac_fn_c_try_compile "$LINENO"
8992 then :
8993 xorg_cv_cc_flag_unused_command_line_argument=yes
8994 else $as_nop
8995 xorg_cv_cc_flag_unused_command_line_argument=no
8996 fi
8997 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8998 fi
8999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9000 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9001 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9002 CFLAGS="$xorg_testset_save_CFLAGS"
9003 fi
9004
9005 found="no"
9006
9007 if test $found = "no" ; then
9008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9010 fi
9011
9012 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9014 fi
9015
9016 CFLAGS="$CFLAGS -Wnonnull"
9017
9018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9019 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9020 cacheid=xorg_cv_cc_flag__Wnonnull
9021 if eval test \${$cacheid+y}
9022 then :
9023 printf %s "(cached) " >&6
9024 else $as_nop
9025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9026 /* end confdefs.h. */
9027 int i;
9028 int
9029 main (void)
9030 {
9031
9032 ;
9033 return 0;
9034 }
9035 _ACEOF
9036 if ac_fn_c_try_link "$LINENO"
9037 then :
9038 eval $cacheid=yes
9039 else $as_nop
9040 eval $cacheid=no
9041 fi
9042 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9043 conftest$ac_exeext conftest.$ac_ext
9044 fi
9045
9046
9047 CFLAGS="$xorg_testset_save_CFLAGS"
9048
9049 eval supported=\$$cacheid
9050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9051 printf "%s\n" "$supported" >&6; }
9052 if test "$supported" = "yes" ; then
9053 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9054 found="yes"
9055 fi
9056 fi
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072 xorg_testset_save_CFLAGS="$CFLAGS"
9073
9074 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9077 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9078 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9079 then :
9080 printf %s "(cached) " >&6
9081 else $as_nop
9082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083 /* end confdefs.h. */
9084 int i;
9085 _ACEOF
9086 if ac_fn_c_try_compile "$LINENO"
9087 then :
9088 xorg_cv_cc_flag_unknown_warning_option=yes
9089 else $as_nop
9090 xorg_cv_cc_flag_unknown_warning_option=no
9091 fi
9092 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9093 fi
9094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9095 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9096 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9097 CFLAGS="$xorg_testset_save_CFLAGS"
9098 fi
9099
9100 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9103 fi
9104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9106 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9107 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9108 then :
9109 printf %s "(cached) " >&6
9110 else $as_nop
9111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9112 /* end confdefs.h. */
9113 int i;
9114 _ACEOF
9115 if ac_fn_c_try_compile "$LINENO"
9116 then :
9117 xorg_cv_cc_flag_unused_command_line_argument=yes
9118 else $as_nop
9119 xorg_cv_cc_flag_unused_command_line_argument=no
9120 fi
9121 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9122 fi
9123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9124 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9125 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9126 CFLAGS="$xorg_testset_save_CFLAGS"
9127 fi
9128
9129 found="no"
9130
9131 if test $found = "no" ; then
9132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9134 fi
9135
9136 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9138 fi
9139
9140 CFLAGS="$CFLAGS -Winit-self"
9141
9142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9143 printf %s "checking if $CC supports -Winit-self... " >&6; }
9144 cacheid=xorg_cv_cc_flag__Winit_self
9145 if eval test \${$cacheid+y}
9146 then :
9147 printf %s "(cached) " >&6
9148 else $as_nop
9149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9150 /* end confdefs.h. */
9151 int i;
9152 int
9153 main (void)
9154 {
9155
9156 ;
9157 return 0;
9158 }
9159 _ACEOF
9160 if ac_fn_c_try_link "$LINENO"
9161 then :
9162 eval $cacheid=yes
9163 else $as_nop
9164 eval $cacheid=no
9165 fi
9166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9167 conftest$ac_exeext conftest.$ac_ext
9168 fi
9169
9170
9171 CFLAGS="$xorg_testset_save_CFLAGS"
9172
9173 eval supported=\$$cacheid
9174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9175 printf "%s\n" "$supported" >&6; }
9176 if test "$supported" = "yes" ; then
9177 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9178 found="yes"
9179 fi
9180 fi
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196 xorg_testset_save_CFLAGS="$CFLAGS"
9197
9198 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9201 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9202 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9203 then :
9204 printf %s "(cached) " >&6
9205 else $as_nop
9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207 /* end confdefs.h. */
9208 int i;
9209 _ACEOF
9210 if ac_fn_c_try_compile "$LINENO"
9211 then :
9212 xorg_cv_cc_flag_unknown_warning_option=yes
9213 else $as_nop
9214 xorg_cv_cc_flag_unknown_warning_option=no
9215 fi
9216 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9217 fi
9218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9219 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9220 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9221 CFLAGS="$xorg_testset_save_CFLAGS"
9222 fi
9223
9224 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9227 fi
9228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9230 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9231 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9232 then :
9233 printf %s "(cached) " >&6
9234 else $as_nop
9235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9236 /* end confdefs.h. */
9237 int i;
9238 _ACEOF
9239 if ac_fn_c_try_compile "$LINENO"
9240 then :
9241 xorg_cv_cc_flag_unused_command_line_argument=yes
9242 else $as_nop
9243 xorg_cv_cc_flag_unused_command_line_argument=no
9244 fi
9245 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9246 fi
9247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9248 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9250 CFLAGS="$xorg_testset_save_CFLAGS"
9251 fi
9252
9253 found="no"
9254
9255 if test $found = "no" ; then
9256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9258 fi
9259
9260 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9262 fi
9263
9264 CFLAGS="$CFLAGS -Wmain"
9265
9266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9267 printf %s "checking if $CC supports -Wmain... " >&6; }
9268 cacheid=xorg_cv_cc_flag__Wmain
9269 if eval test \${$cacheid+y}
9270 then :
9271 printf %s "(cached) " >&6
9272 else $as_nop
9273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9274 /* end confdefs.h. */
9275 int i;
9276 int
9277 main (void)
9278 {
9279
9280 ;
9281 return 0;
9282 }
9283 _ACEOF
9284 if ac_fn_c_try_link "$LINENO"
9285 then :
9286 eval $cacheid=yes
9287 else $as_nop
9288 eval $cacheid=no
9289 fi
9290 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9291 conftest$ac_exeext conftest.$ac_ext
9292 fi
9293
9294
9295 CFLAGS="$xorg_testset_save_CFLAGS"
9296
9297 eval supported=\$$cacheid
9298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9299 printf "%s\n" "$supported" >&6; }
9300 if test "$supported" = "yes" ; then
9301 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9302 found="yes"
9303 fi
9304 fi
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320 xorg_testset_save_CFLAGS="$CFLAGS"
9321
9322 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9325 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9326 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9327 then :
9328 printf %s "(cached) " >&6
9329 else $as_nop
9330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9331 /* end confdefs.h. */
9332 int i;
9333 _ACEOF
9334 if ac_fn_c_try_compile "$LINENO"
9335 then :
9336 xorg_cv_cc_flag_unknown_warning_option=yes
9337 else $as_nop
9338 xorg_cv_cc_flag_unknown_warning_option=no
9339 fi
9340 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9341 fi
9342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9343 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9344 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9345 CFLAGS="$xorg_testset_save_CFLAGS"
9346 fi
9347
9348 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9350 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9351 fi
9352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9354 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9355 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9356 then :
9357 printf %s "(cached) " >&6
9358 else $as_nop
9359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9360 /* end confdefs.h. */
9361 int i;
9362 _ACEOF
9363 if ac_fn_c_try_compile "$LINENO"
9364 then :
9365 xorg_cv_cc_flag_unused_command_line_argument=yes
9366 else $as_nop
9367 xorg_cv_cc_flag_unused_command_line_argument=no
9368 fi
9369 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9370 fi
9371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9372 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9374 CFLAGS="$xorg_testset_save_CFLAGS"
9375 fi
9376
9377 found="no"
9378
9379 if test $found = "no" ; then
9380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9382 fi
9383
9384 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9386 fi
9387
9388 CFLAGS="$CFLAGS -Wmissing-braces"
9389
9390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9391 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9392 cacheid=xorg_cv_cc_flag__Wmissing_braces
9393 if eval test \${$cacheid+y}
9394 then :
9395 printf %s "(cached) " >&6
9396 else $as_nop
9397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398 /* end confdefs.h. */
9399 int i;
9400 int
9401 main (void)
9402 {
9403
9404 ;
9405 return 0;
9406 }
9407 _ACEOF
9408 if ac_fn_c_try_link "$LINENO"
9409 then :
9410 eval $cacheid=yes
9411 else $as_nop
9412 eval $cacheid=no
9413 fi
9414 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9415 conftest$ac_exeext conftest.$ac_ext
9416 fi
9417
9418
9419 CFLAGS="$xorg_testset_save_CFLAGS"
9420
9421 eval supported=\$$cacheid
9422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9423 printf "%s\n" "$supported" >&6; }
9424 if test "$supported" = "yes" ; then
9425 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9426 found="yes"
9427 fi
9428 fi
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444 xorg_testset_save_CFLAGS="$CFLAGS"
9445
9446 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9449 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9450 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9451 then :
9452 printf %s "(cached) " >&6
9453 else $as_nop
9454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455 /* end confdefs.h. */
9456 int i;
9457 _ACEOF
9458 if ac_fn_c_try_compile "$LINENO"
9459 then :
9460 xorg_cv_cc_flag_unknown_warning_option=yes
9461 else $as_nop
9462 xorg_cv_cc_flag_unknown_warning_option=no
9463 fi
9464 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9465 fi
9466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9467 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9468 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9469 CFLAGS="$xorg_testset_save_CFLAGS"
9470 fi
9471
9472 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9474 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9475 fi
9476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9478 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9479 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9480 then :
9481 printf %s "(cached) " >&6
9482 else $as_nop
9483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9484 /* end confdefs.h. */
9485 int i;
9486 _ACEOF
9487 if ac_fn_c_try_compile "$LINENO"
9488 then :
9489 xorg_cv_cc_flag_unused_command_line_argument=yes
9490 else $as_nop
9491 xorg_cv_cc_flag_unused_command_line_argument=no
9492 fi
9493 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9494 fi
9495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9496 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9497 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9498 CFLAGS="$xorg_testset_save_CFLAGS"
9499 fi
9500
9501 found="no"
9502
9503 if test $found = "no" ; then
9504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9506 fi
9507
9508 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9510 fi
9511
9512 CFLAGS="$CFLAGS -Wsequence-point"
9513
9514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9515 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9516 cacheid=xorg_cv_cc_flag__Wsequence_point
9517 if eval test \${$cacheid+y}
9518 then :
9519 printf %s "(cached) " >&6
9520 else $as_nop
9521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9522 /* end confdefs.h. */
9523 int i;
9524 int
9525 main (void)
9526 {
9527
9528 ;
9529 return 0;
9530 }
9531 _ACEOF
9532 if ac_fn_c_try_link "$LINENO"
9533 then :
9534 eval $cacheid=yes
9535 else $as_nop
9536 eval $cacheid=no
9537 fi
9538 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9539 conftest$ac_exeext conftest.$ac_ext
9540 fi
9541
9542
9543 CFLAGS="$xorg_testset_save_CFLAGS"
9544
9545 eval supported=\$$cacheid
9546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9547 printf "%s\n" "$supported" >&6; }
9548 if test "$supported" = "yes" ; then
9549 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9550 found="yes"
9551 fi
9552 fi
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568 xorg_testset_save_CFLAGS="$CFLAGS"
9569
9570 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9573 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9574 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9575 then :
9576 printf %s "(cached) " >&6
9577 else $as_nop
9578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9579 /* end confdefs.h. */
9580 int i;
9581 _ACEOF
9582 if ac_fn_c_try_compile "$LINENO"
9583 then :
9584 xorg_cv_cc_flag_unknown_warning_option=yes
9585 else $as_nop
9586 xorg_cv_cc_flag_unknown_warning_option=no
9587 fi
9588 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9589 fi
9590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9591 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9593 CFLAGS="$xorg_testset_save_CFLAGS"
9594 fi
9595
9596 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9599 fi
9600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9602 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9603 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9604 then :
9605 printf %s "(cached) " >&6
9606 else $as_nop
9607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9608 /* end confdefs.h. */
9609 int i;
9610 _ACEOF
9611 if ac_fn_c_try_compile "$LINENO"
9612 then :
9613 xorg_cv_cc_flag_unused_command_line_argument=yes
9614 else $as_nop
9615 xorg_cv_cc_flag_unused_command_line_argument=no
9616 fi
9617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9618 fi
9619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9620 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9621 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9622 CFLAGS="$xorg_testset_save_CFLAGS"
9623 fi
9624
9625 found="no"
9626
9627 if test $found = "no" ; then
9628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9630 fi
9631
9632 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9634 fi
9635
9636 CFLAGS="$CFLAGS -Wreturn-type"
9637
9638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9639 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9640 cacheid=xorg_cv_cc_flag__Wreturn_type
9641 if eval test \${$cacheid+y}
9642 then :
9643 printf %s "(cached) " >&6
9644 else $as_nop
9645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9646 /* end confdefs.h. */
9647 int i;
9648 int
9649 main (void)
9650 {
9651
9652 ;
9653 return 0;
9654 }
9655 _ACEOF
9656 if ac_fn_c_try_link "$LINENO"
9657 then :
9658 eval $cacheid=yes
9659 else $as_nop
9660 eval $cacheid=no
9661 fi
9662 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9663 conftest$ac_exeext conftest.$ac_ext
9664 fi
9665
9666
9667 CFLAGS="$xorg_testset_save_CFLAGS"
9668
9669 eval supported=\$$cacheid
9670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9671 printf "%s\n" "$supported" >&6; }
9672 if test "$supported" = "yes" ; then
9673 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9674 found="yes"
9675 fi
9676 fi
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692 xorg_testset_save_CFLAGS="$CFLAGS"
9693
9694 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9697 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9698 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9699 then :
9700 printf %s "(cached) " >&6
9701 else $as_nop
9702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9703 /* end confdefs.h. */
9704 int i;
9705 _ACEOF
9706 if ac_fn_c_try_compile "$LINENO"
9707 then :
9708 xorg_cv_cc_flag_unknown_warning_option=yes
9709 else $as_nop
9710 xorg_cv_cc_flag_unknown_warning_option=no
9711 fi
9712 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9713 fi
9714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9715 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9716 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9717 CFLAGS="$xorg_testset_save_CFLAGS"
9718 fi
9719
9720 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9723 fi
9724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9726 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9727 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9728 then :
9729 printf %s "(cached) " >&6
9730 else $as_nop
9731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9732 /* end confdefs.h. */
9733 int i;
9734 _ACEOF
9735 if ac_fn_c_try_compile "$LINENO"
9736 then :
9737 xorg_cv_cc_flag_unused_command_line_argument=yes
9738 else $as_nop
9739 xorg_cv_cc_flag_unused_command_line_argument=no
9740 fi
9741 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9742 fi
9743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9744 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9745 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9746 CFLAGS="$xorg_testset_save_CFLAGS"
9747 fi
9748
9749 found="no"
9750
9751 if test $found = "no" ; then
9752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9754 fi
9755
9756 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9758 fi
9759
9760 CFLAGS="$CFLAGS -Wtrigraphs"
9761
9762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9763 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9764 cacheid=xorg_cv_cc_flag__Wtrigraphs
9765 if eval test \${$cacheid+y}
9766 then :
9767 printf %s "(cached) " >&6
9768 else $as_nop
9769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9770 /* end confdefs.h. */
9771 int i;
9772 int
9773 main (void)
9774 {
9775
9776 ;
9777 return 0;
9778 }
9779 _ACEOF
9780 if ac_fn_c_try_link "$LINENO"
9781 then :
9782 eval $cacheid=yes
9783 else $as_nop
9784 eval $cacheid=no
9785 fi
9786 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9787 conftest$ac_exeext conftest.$ac_ext
9788 fi
9789
9790
9791 CFLAGS="$xorg_testset_save_CFLAGS"
9792
9793 eval supported=\$$cacheid
9794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9795 printf "%s\n" "$supported" >&6; }
9796 if test "$supported" = "yes" ; then
9797 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9798 found="yes"
9799 fi
9800 fi
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816 xorg_testset_save_CFLAGS="$CFLAGS"
9817
9818 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9819 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9821 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9822 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9823 then :
9824 printf %s "(cached) " >&6
9825 else $as_nop
9826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9827 /* end confdefs.h. */
9828 int i;
9829 _ACEOF
9830 if ac_fn_c_try_compile "$LINENO"
9831 then :
9832 xorg_cv_cc_flag_unknown_warning_option=yes
9833 else $as_nop
9834 xorg_cv_cc_flag_unknown_warning_option=no
9835 fi
9836 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9837 fi
9838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9839 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9840 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9841 CFLAGS="$xorg_testset_save_CFLAGS"
9842 fi
9843
9844 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9847 fi
9848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9850 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9851 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9852 then :
9853 printf %s "(cached) " >&6
9854 else $as_nop
9855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9856 /* end confdefs.h. */
9857 int i;
9858 _ACEOF
9859 if ac_fn_c_try_compile "$LINENO"
9860 then :
9861 xorg_cv_cc_flag_unused_command_line_argument=yes
9862 else $as_nop
9863 xorg_cv_cc_flag_unused_command_line_argument=no
9864 fi
9865 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9866 fi
9867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9868 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9869 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9870 CFLAGS="$xorg_testset_save_CFLAGS"
9871 fi
9872
9873 found="no"
9874
9875 if test $found = "no" ; then
9876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9878 fi
9879
9880 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9882 fi
9883
9884 CFLAGS="$CFLAGS -Warray-bounds"
9885
9886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9887 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
9888 cacheid=xorg_cv_cc_flag__Warray_bounds
9889 if eval test \${$cacheid+y}
9890 then :
9891 printf %s "(cached) " >&6
9892 else $as_nop
9893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9894 /* end confdefs.h. */
9895 int i;
9896 int
9897 main (void)
9898 {
9899
9900 ;
9901 return 0;
9902 }
9903 _ACEOF
9904 if ac_fn_c_try_link "$LINENO"
9905 then :
9906 eval $cacheid=yes
9907 else $as_nop
9908 eval $cacheid=no
9909 fi
9910 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9911 conftest$ac_exeext conftest.$ac_ext
9912 fi
9913
9914
9915 CFLAGS="$xorg_testset_save_CFLAGS"
9916
9917 eval supported=\$$cacheid
9918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9919 printf "%s\n" "$supported" >&6; }
9920 if test "$supported" = "yes" ; then
9921 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9922 found="yes"
9923 fi
9924 fi
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940 xorg_testset_save_CFLAGS="$CFLAGS"
9941
9942 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9945 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9946 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9947 then :
9948 printf %s "(cached) " >&6
9949 else $as_nop
9950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9951 /* end confdefs.h. */
9952 int i;
9953 _ACEOF
9954 if ac_fn_c_try_compile "$LINENO"
9955 then :
9956 xorg_cv_cc_flag_unknown_warning_option=yes
9957 else $as_nop
9958 xorg_cv_cc_flag_unknown_warning_option=no
9959 fi
9960 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9961 fi
9962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9963 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9964 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9965 CFLAGS="$xorg_testset_save_CFLAGS"
9966 fi
9967
9968 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9971 fi
9972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9974 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9975 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9976 then :
9977 printf %s "(cached) " >&6
9978 else $as_nop
9979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9980 /* end confdefs.h. */
9981 int i;
9982 _ACEOF
9983 if ac_fn_c_try_compile "$LINENO"
9984 then :
9985 xorg_cv_cc_flag_unused_command_line_argument=yes
9986 else $as_nop
9987 xorg_cv_cc_flag_unused_command_line_argument=no
9988 fi
9989 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9990 fi
9991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9992 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9993 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9994 CFLAGS="$xorg_testset_save_CFLAGS"
9995 fi
9996
9997 found="no"
9998
9999 if test $found = "no" ; then
10000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10002 fi
10003
10004 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10006 fi
10007
10008 CFLAGS="$CFLAGS -Wwrite-strings"
10009
10010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10011 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10012 cacheid=xorg_cv_cc_flag__Wwrite_strings
10013 if eval test \${$cacheid+y}
10014 then :
10015 printf %s "(cached) " >&6
10016 else $as_nop
10017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10018 /* end confdefs.h. */
10019 int i;
10020 int
10021 main (void)
10022 {
10023
10024 ;
10025 return 0;
10026 }
10027 _ACEOF
10028 if ac_fn_c_try_link "$LINENO"
10029 then :
10030 eval $cacheid=yes
10031 else $as_nop
10032 eval $cacheid=no
10033 fi
10034 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10035 conftest$ac_exeext conftest.$ac_ext
10036 fi
10037
10038
10039 CFLAGS="$xorg_testset_save_CFLAGS"
10040
10041 eval supported=\$$cacheid
10042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10043 printf "%s\n" "$supported" >&6; }
10044 if test "$supported" = "yes" ; then
10045 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10046 found="yes"
10047 fi
10048 fi
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064 xorg_testset_save_CFLAGS="$CFLAGS"
10065
10066 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10067 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10069 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10070 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10071 then :
10072 printf %s "(cached) " >&6
10073 else $as_nop
10074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10075 /* end confdefs.h. */
10076 int i;
10077 _ACEOF
10078 if ac_fn_c_try_compile "$LINENO"
10079 then :
10080 xorg_cv_cc_flag_unknown_warning_option=yes
10081 else $as_nop
10082 xorg_cv_cc_flag_unknown_warning_option=no
10083 fi
10084 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10085 fi
10086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10087 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10088 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10089 CFLAGS="$xorg_testset_save_CFLAGS"
10090 fi
10091
10092 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10094 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10095 fi
10096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10098 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10099 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10100 then :
10101 printf %s "(cached) " >&6
10102 else $as_nop
10103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10104 /* end confdefs.h. */
10105 int i;
10106 _ACEOF
10107 if ac_fn_c_try_compile "$LINENO"
10108 then :
10109 xorg_cv_cc_flag_unused_command_line_argument=yes
10110 else $as_nop
10111 xorg_cv_cc_flag_unused_command_line_argument=no
10112 fi
10113 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10114 fi
10115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10116 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10117 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10118 CFLAGS="$xorg_testset_save_CFLAGS"
10119 fi
10120
10121 found="no"
10122
10123 if test $found = "no" ; then
10124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10125 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10126 fi
10127
10128 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10130 fi
10131
10132 CFLAGS="$CFLAGS -Waddress"
10133
10134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10135 printf %s "checking if $CC supports -Waddress... " >&6; }
10136 cacheid=xorg_cv_cc_flag__Waddress
10137 if eval test \${$cacheid+y}
10138 then :
10139 printf %s "(cached) " >&6
10140 else $as_nop
10141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10142 /* end confdefs.h. */
10143 int i;
10144 int
10145 main (void)
10146 {
10147
10148 ;
10149 return 0;
10150 }
10151 _ACEOF
10152 if ac_fn_c_try_link "$LINENO"
10153 then :
10154 eval $cacheid=yes
10155 else $as_nop
10156 eval $cacheid=no
10157 fi
10158 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10159 conftest$ac_exeext conftest.$ac_ext
10160 fi
10161
10162
10163 CFLAGS="$xorg_testset_save_CFLAGS"
10164
10165 eval supported=\$$cacheid
10166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10167 printf "%s\n" "$supported" >&6; }
10168 if test "$supported" = "yes" ; then
10169 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10170 found="yes"
10171 fi
10172 fi
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188 xorg_testset_save_CFLAGS="$CFLAGS"
10189
10190 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10191 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10193 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10194 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10195 then :
10196 printf %s "(cached) " >&6
10197 else $as_nop
10198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10199 /* end confdefs.h. */
10200 int i;
10201 _ACEOF
10202 if ac_fn_c_try_compile "$LINENO"
10203 then :
10204 xorg_cv_cc_flag_unknown_warning_option=yes
10205 else $as_nop
10206 xorg_cv_cc_flag_unknown_warning_option=no
10207 fi
10208 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10209 fi
10210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10211 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10212 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10213 CFLAGS="$xorg_testset_save_CFLAGS"
10214 fi
10215
10216 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10219 fi
10220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10222 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10223 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10224 then :
10225 printf %s "(cached) " >&6
10226 else $as_nop
10227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10228 /* end confdefs.h. */
10229 int i;
10230 _ACEOF
10231 if ac_fn_c_try_compile "$LINENO"
10232 then :
10233 xorg_cv_cc_flag_unused_command_line_argument=yes
10234 else $as_nop
10235 xorg_cv_cc_flag_unused_command_line_argument=no
10236 fi
10237 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10238 fi
10239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10240 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10241 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10242 CFLAGS="$xorg_testset_save_CFLAGS"
10243 fi
10244
10245 found="no"
10246
10247 if test $found = "no" ; then
10248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10249 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10250 fi
10251
10252 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10254 fi
10255
10256 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10257
10258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10259 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10260 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10261 if eval test \${$cacheid+y}
10262 then :
10263 printf %s "(cached) " >&6
10264 else $as_nop
10265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10266 /* end confdefs.h. */
10267 int i;
10268 int
10269 main (void)
10270 {
10271
10272 ;
10273 return 0;
10274 }
10275 _ACEOF
10276 if ac_fn_c_try_link "$LINENO"
10277 then :
10278 eval $cacheid=yes
10279 else $as_nop
10280 eval $cacheid=no
10281 fi
10282 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10283 conftest$ac_exeext conftest.$ac_ext
10284 fi
10285
10286
10287 CFLAGS="$xorg_testset_save_CFLAGS"
10288
10289 eval supported=\$$cacheid
10290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10291 printf "%s\n" "$supported" >&6; }
10292 if test "$supported" = "yes" ; then
10293 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10294 found="yes"
10295 fi
10296 fi
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312 xorg_testset_save_CFLAGS="$CFLAGS"
10313
10314 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10315 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10317 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10318 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10319 then :
10320 printf %s "(cached) " >&6
10321 else $as_nop
10322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10323 /* end confdefs.h. */
10324 int i;
10325 _ACEOF
10326 if ac_fn_c_try_compile "$LINENO"
10327 then :
10328 xorg_cv_cc_flag_unknown_warning_option=yes
10329 else $as_nop
10330 xorg_cv_cc_flag_unknown_warning_option=no
10331 fi
10332 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10333 fi
10334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10335 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10336 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10337 CFLAGS="$xorg_testset_save_CFLAGS"
10338 fi
10339
10340 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10343 fi
10344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10346 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10347 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10348 then :
10349 printf %s "(cached) " >&6
10350 else $as_nop
10351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10352 /* end confdefs.h. */
10353 int i;
10354 _ACEOF
10355 if ac_fn_c_try_compile "$LINENO"
10356 then :
10357 xorg_cv_cc_flag_unused_command_line_argument=yes
10358 else $as_nop
10359 xorg_cv_cc_flag_unused_command_line_argument=no
10360 fi
10361 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10362 fi
10363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10364 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10365 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10366 CFLAGS="$xorg_testset_save_CFLAGS"
10367 fi
10368
10369 found="no"
10370
10371 if test $found = "no" ; then
10372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10373 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10374 fi
10375
10376 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10378 fi
10379
10380 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10381
10382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10383 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10384 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10385 if eval test \${$cacheid+y}
10386 then :
10387 printf %s "(cached) " >&6
10388 else $as_nop
10389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10390 /* end confdefs.h. */
10391 int i;
10392 int
10393 main (void)
10394 {
10395
10396 ;
10397 return 0;
10398 }
10399 _ACEOF
10400 if ac_fn_c_try_link "$LINENO"
10401 then :
10402 eval $cacheid=yes
10403 else $as_nop
10404 eval $cacheid=no
10405 fi
10406 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10407 conftest$ac_exeext conftest.$ac_ext
10408 fi
10409
10410
10411 CFLAGS="$xorg_testset_save_CFLAGS"
10412
10413 eval supported=\$$cacheid
10414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10415 printf "%s\n" "$supported" >&6; }
10416 if test "$supported" = "yes" ; then
10417 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10418 found="yes"
10419 fi
10420 fi
10421
10422
10423 fi
10424
10425
10426
10427
10428
10429
10430
10431 CWARNFLAGS="$BASE_CFLAGS"
10432 if test "x$GCC" = xyes ; then
10433 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10434 fi
10435
10436
10437
10438
10439
10440
10441
10442
10443 # Check whether --enable-strict-compilation was given.
10444 if test ${enable_strict_compilation+y}
10445 then :
10446 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10447 else $as_nop
10448 STRICT_COMPILE=no
10449 fi
10450
10451
10452
10453
10454
10455
10456 STRICT_CFLAGS=""
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470 xorg_testset_save_CFLAGS="$CFLAGS"
10471
10472 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10475 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10476 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10477 then :
10478 printf %s "(cached) " >&6
10479 else $as_nop
10480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10481 /* end confdefs.h. */
10482 int i;
10483 _ACEOF
10484 if ac_fn_c_try_compile "$LINENO"
10485 then :
10486 xorg_cv_cc_flag_unknown_warning_option=yes
10487 else $as_nop
10488 xorg_cv_cc_flag_unknown_warning_option=no
10489 fi
10490 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10491 fi
10492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10493 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10494 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10495 CFLAGS="$xorg_testset_save_CFLAGS"
10496 fi
10497
10498 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10501 fi
10502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10504 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10505 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10506 then :
10507 printf %s "(cached) " >&6
10508 else $as_nop
10509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10510 /* end confdefs.h. */
10511 int i;
10512 _ACEOF
10513 if ac_fn_c_try_compile "$LINENO"
10514 then :
10515 xorg_cv_cc_flag_unused_command_line_argument=yes
10516 else $as_nop
10517 xorg_cv_cc_flag_unused_command_line_argument=no
10518 fi
10519 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10520 fi
10521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10522 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10523 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10524 CFLAGS="$xorg_testset_save_CFLAGS"
10525 fi
10526
10527 found="no"
10528
10529 if test $found = "no" ; then
10530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10532 fi
10533
10534 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10536 fi
10537
10538 CFLAGS="$CFLAGS -pedantic"
10539
10540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10541 printf %s "checking if $CC supports -pedantic... " >&6; }
10542 cacheid=xorg_cv_cc_flag__pedantic
10543 if eval test \${$cacheid+y}
10544 then :
10545 printf %s "(cached) " >&6
10546 else $as_nop
10547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10548 /* end confdefs.h. */
10549 int i;
10550 int
10551 main (void)
10552 {
10553
10554 ;
10555 return 0;
10556 }
10557 _ACEOF
10558 if ac_fn_c_try_link "$LINENO"
10559 then :
10560 eval $cacheid=yes
10561 else $as_nop
10562 eval $cacheid=no
10563 fi
10564 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10565 conftest$ac_exeext conftest.$ac_ext
10566 fi
10567
10568
10569 CFLAGS="$xorg_testset_save_CFLAGS"
10570
10571 eval supported=\$$cacheid
10572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10573 printf "%s\n" "$supported" >&6; }
10574 if test "$supported" = "yes" ; then
10575 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10576 found="yes"
10577 fi
10578 fi
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594 xorg_testset_save_CFLAGS="$CFLAGS"
10595
10596 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10597 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10599 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10600 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10601 then :
10602 printf %s "(cached) " >&6
10603 else $as_nop
10604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10605 /* end confdefs.h. */
10606 int i;
10607 _ACEOF
10608 if ac_fn_c_try_compile "$LINENO"
10609 then :
10610 xorg_cv_cc_flag_unknown_warning_option=yes
10611 else $as_nop
10612 xorg_cv_cc_flag_unknown_warning_option=no
10613 fi
10614 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10615 fi
10616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10617 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10618 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10619 CFLAGS="$xorg_testset_save_CFLAGS"
10620 fi
10621
10622 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10624 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10625 fi
10626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10628 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10629 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10630 then :
10631 printf %s "(cached) " >&6
10632 else $as_nop
10633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10634 /* end confdefs.h. */
10635 int i;
10636 _ACEOF
10637 if ac_fn_c_try_compile "$LINENO"
10638 then :
10639 xorg_cv_cc_flag_unused_command_line_argument=yes
10640 else $as_nop
10641 xorg_cv_cc_flag_unused_command_line_argument=no
10642 fi
10643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10644 fi
10645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10646 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10647 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10648 CFLAGS="$xorg_testset_save_CFLAGS"
10649 fi
10650
10651 found="no"
10652
10653 if test $found = "no" ; then
10654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10656 fi
10657
10658 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10660 fi
10661
10662 CFLAGS="$CFLAGS -Werror"
10663
10664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10665 printf %s "checking if $CC supports -Werror... " >&6; }
10666 cacheid=xorg_cv_cc_flag__Werror
10667 if eval test \${$cacheid+y}
10668 then :
10669 printf %s "(cached) " >&6
10670 else $as_nop
10671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10672 /* end confdefs.h. */
10673 int i;
10674 int
10675 main (void)
10676 {
10677
10678 ;
10679 return 0;
10680 }
10681 _ACEOF
10682 if ac_fn_c_try_link "$LINENO"
10683 then :
10684 eval $cacheid=yes
10685 else $as_nop
10686 eval $cacheid=no
10687 fi
10688 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10689 conftest$ac_exeext conftest.$ac_ext
10690 fi
10691
10692
10693 CFLAGS="$xorg_testset_save_CFLAGS"
10694
10695 eval supported=\$$cacheid
10696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10697 printf "%s\n" "$supported" >&6; }
10698 if test "$supported" = "yes" ; then
10699 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10700 found="yes"
10701 fi
10702 fi
10703
10704 if test $found = "no" ; then
10705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10707 fi
10708
10709 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10711 fi
10712
10713 CFLAGS="$CFLAGS -errwarn"
10714
10715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10716 printf %s "checking if $CC supports -errwarn... " >&6; }
10717 cacheid=xorg_cv_cc_flag__errwarn
10718 if eval test \${$cacheid+y}
10719 then :
10720 printf %s "(cached) " >&6
10721 else $as_nop
10722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10723 /* end confdefs.h. */
10724 int i;
10725 int
10726 main (void)
10727 {
10728
10729 ;
10730 return 0;
10731 }
10732 _ACEOF
10733 if ac_fn_c_try_link "$LINENO"
10734 then :
10735 eval $cacheid=yes
10736 else $as_nop
10737 eval $cacheid=no
10738 fi
10739 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10740 conftest$ac_exeext conftest.$ac_ext
10741 fi
10742
10743
10744 CFLAGS="$xorg_testset_save_CFLAGS"
10745
10746 eval supported=\$$cacheid
10747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10748 printf "%s\n" "$supported" >&6; }
10749 if test "$supported" = "yes" ; then
10750 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10751 found="yes"
10752 fi
10753 fi
10754
10755
10756
10757 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10758 # activate it with -Werror, so we add it here explicitly.
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772 xorg_testset_save_CFLAGS="$CFLAGS"
10773
10774 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10775 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10777 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10778 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10779 then :
10780 printf %s "(cached) " >&6
10781 else $as_nop
10782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10783 /* end confdefs.h. */
10784 int i;
10785 _ACEOF
10786 if ac_fn_c_try_compile "$LINENO"
10787 then :
10788 xorg_cv_cc_flag_unknown_warning_option=yes
10789 else $as_nop
10790 xorg_cv_cc_flag_unknown_warning_option=no
10791 fi
10792 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10793 fi
10794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10795 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10796 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10797 CFLAGS="$xorg_testset_save_CFLAGS"
10798 fi
10799
10800 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10802 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10803 fi
10804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10806 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10807 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10808 then :
10809 printf %s "(cached) " >&6
10810 else $as_nop
10811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10812 /* end confdefs.h. */
10813 int i;
10814 _ACEOF
10815 if ac_fn_c_try_compile "$LINENO"
10816 then :
10817 xorg_cv_cc_flag_unused_command_line_argument=yes
10818 else $as_nop
10819 xorg_cv_cc_flag_unused_command_line_argument=no
10820 fi
10821 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10822 fi
10823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10824 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10825 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10826 CFLAGS="$xorg_testset_save_CFLAGS"
10827 fi
10828
10829 found="no"
10830
10831 if test $found = "no" ; then
10832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10833 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10834 fi
10835
10836 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10838 fi
10839
10840 CFLAGS="$CFLAGS -Werror=attributes"
10841
10842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10843 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10844 cacheid=xorg_cv_cc_flag__Werror_attributes
10845 if eval test \${$cacheid+y}
10846 then :
10847 printf %s "(cached) " >&6
10848 else $as_nop
10849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10850 /* end confdefs.h. */
10851 int i;
10852 int
10853 main (void)
10854 {
10855
10856 ;
10857 return 0;
10858 }
10859 _ACEOF
10860 if ac_fn_c_try_link "$LINENO"
10861 then :
10862 eval $cacheid=yes
10863 else $as_nop
10864 eval $cacheid=no
10865 fi
10866 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10867 conftest$ac_exeext conftest.$ac_ext
10868 fi
10869
10870
10871 CFLAGS="$xorg_testset_save_CFLAGS"
10872
10873 eval supported=\$$cacheid
10874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10875 printf "%s\n" "$supported" >&6; }
10876 if test "$supported" = "yes" ; then
10877 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10878 found="yes"
10879 fi
10880 fi
10881
10882
10883
10884 if test "x$STRICT_COMPILE" = "xyes"; then
10885 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10886 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10887 fi
10888
10889
10890
10891
10892
10893
10894
10895
10896 cat >>confdefs.h <<_ACEOF
10897 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10898 _ACEOF
10899
10900 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10901 if test "x$PVM" = "x"; then
10902 PVM="0"
10903 fi
10904
10905 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10906
10907 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10908 if test "x$PVP" = "x"; then
10909 PVP="0"
10910 fi
10911
10912 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10913
10914
10915
10916 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10917 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10918 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10919 touch \$(top_srcdir)/ChangeLog; \
10920 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10921
10922
10923
10924
10925 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10926 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10927 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10928 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10929 touch \$(top_srcdir)/INSTALL; \
10930 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10931
10932
10933
10934
10935
10936
10937 case $host_os in
10938 solaris*)
10939 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10940 # check for a man page file found in later versions that use
10941 # traditional section numbers instead
10942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10943 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
10944 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
10945 then :
10946 printf %s "(cached) " >&6
10947 else $as_nop
10948 test "$cross_compiling" = yes &&
10949 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10950 if test -r "/usr/share/man/man7/attributes.7"; then
10951 ac_cv_file__usr_share_man_man7_attributes_7=yes
10952 else
10953 ac_cv_file__usr_share_man_man7_attributes_7=no
10954 fi
10955 fi
10956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10957 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10958 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
10959 then :
10960 SYSV_MAN_SECTIONS=false
10961 else $as_nop
10962 SYSV_MAN_SECTIONS=true
10963 fi
10964
10965 ;;
10966 *) SYSV_MAN_SECTIONS=false ;;
10967 esac
10968
10969 if test x$APP_MAN_SUFFIX = x ; then
10970 APP_MAN_SUFFIX=1
10971 fi
10972 if test x$APP_MAN_DIR = x ; then
10973 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10974 fi
10975
10976 if test x$LIB_MAN_SUFFIX = x ; then
10977 LIB_MAN_SUFFIX=3
10978 fi
10979 if test x$LIB_MAN_DIR = x ; then
10980 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10981 fi
10982
10983 if test x$FILE_MAN_SUFFIX = x ; then
10984 case $SYSV_MAN_SECTIONS in
10985 true) FILE_MAN_SUFFIX=4 ;;
10986 *) FILE_MAN_SUFFIX=5 ;;
10987 esac
10988 fi
10989 if test x$FILE_MAN_DIR = x ; then
10990 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10991 fi
10992
10993 if test x$MISC_MAN_SUFFIX = x ; then
10994 case $SYSV_MAN_SECTIONS in
10995 true) MISC_MAN_SUFFIX=5 ;;
10996 *) MISC_MAN_SUFFIX=7 ;;
10997 esac
10998 fi
10999 if test x$MISC_MAN_DIR = x ; then
11000 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11001 fi
11002
11003 if test x$DRIVER_MAN_SUFFIX = x ; then
11004 case $SYSV_MAN_SECTIONS in
11005 true) DRIVER_MAN_SUFFIX=7 ;;
11006 *) DRIVER_MAN_SUFFIX=4 ;;
11007 esac
11008 fi
11009 if test x$DRIVER_MAN_DIR = x ; then
11010 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11011 fi
11012
11013 if test x$ADMIN_MAN_SUFFIX = x ; then
11014 case $SYSV_MAN_SECTIONS in
11015 true) ADMIN_MAN_SUFFIX=1m ;;
11016 *) ADMIN_MAN_SUFFIX=8 ;;
11017 esac
11018 fi
11019 if test x$ADMIN_MAN_DIR = x ; then
11020 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11021 fi
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037 XORG_MAN_PAGE="X Version 11"
11038
11039 MAN_SUBSTS="\
11040 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11041 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11042 -e 's|__xservername__|Xorg|g' \
11043 -e 's|__xconfigfile__|xorg.conf|g' \
11044 -e 's|__projectroot__|\$(prefix)|g' \
11045 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11046 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11047 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11048 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11049 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11050 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11051 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11052
11053
11054
11055 # Check whether --enable-silent-rules was given.
11056 if test ${enable_silent_rules+y}
11057 then :
11058 enableval=$enable_silent_rules;
11059 fi
11060
11061 case $enable_silent_rules in # (((
11062 yes) AM_DEFAULT_VERBOSITY=0;;
11063 no) AM_DEFAULT_VERBOSITY=1;;
11064 *) AM_DEFAULT_VERBOSITY=0;;
11065 esac
11066 am_make=${MAKE-make}
11067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11068 printf %s "checking whether $am_make supports nested variables... " >&6; }
11069 if test ${am_cv_make_support_nested_variables+y}
11070 then :
11071 printf %s "(cached) " >&6
11072 else $as_nop
11073 if printf "%s\n" 'TRUE=$(BAR$(V))
11074 BAR0=false
11075 BAR1=true
11076 V=1
11077 am__doit:
11078 @$(TRUE)
11079 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11080 am_cv_make_support_nested_variables=yes
11081 else
11082 am_cv_make_support_nested_variables=no
11083 fi
11084 fi
11085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11086 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11087 if test $am_cv_make_support_nested_variables = yes; then
11088 AM_V='$(V)'
11089 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11090 else
11091 AM_V=$AM_DEFAULT_VERBOSITY
11092 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11093 fi
11094 AM_BACKSLASH='\'
11095
11096
11097
11098
11099 # Optional dependencies
11100
11101 # Check whether --with-xkb was given.
11102 if test ${with_xkb+y}
11103 then :
11104 withval=$with_xkb; use_xkb="$withval"
11105 else $as_nop
11106 use_xkb="yes"
11107 fi
11108
11109 if test x$use_xkb != xno ; then
11110 XKBMODULE="xkbfile"
11111
11112 printf "%s\n" "#define XKB 1" >>confdefs.h
11113
11114 fi
11115
11116 # Checks for pkg-config packages
11117
11118 pkg_failed=no
11119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XWD" >&5
11120 printf %s "checking for XWD... " >&6; }
11121
11122 if test -n "$XWD_CFLAGS"; then
11123 pkg_cv_XWD_CFLAGS="$XWD_CFLAGS"
11124 elif test -n "$PKG_CONFIG"; then
11125 if test -n "$PKG_CONFIG" && \
11126 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25 \${XKBMODULE}\""; } >&5
11127 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25 ${XKBMODULE}") 2>&5
11128 ac_status=$?
11129 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11130 test $ac_status = 0; }; then
11131 pkg_cv_XWD_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.25 ${XKBMODULE}" 2>/dev/null`
11132 test "x$?" != "x0" && pkg_failed=yes
11133 else
11134 pkg_failed=yes
11135 fi
11136 else
11137 pkg_failed=untried
11138 fi
11139 if test -n "$XWD_LIBS"; then
11140 pkg_cv_XWD_LIBS="$XWD_LIBS"
11141 elif test -n "$PKG_CONFIG"; then
11142 if test -n "$PKG_CONFIG" && \
11143 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25 \${XKBMODULE}\""; } >&5
11144 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25 ${XKBMODULE}") 2>&5
11145 ac_status=$?
11146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11147 test $ac_status = 0; }; then
11148 pkg_cv_XWD_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.25 ${XKBMODULE}" 2>/dev/null`
11149 test "x$?" != "x0" && pkg_failed=yes
11150 else
11151 pkg_failed=yes
11152 fi
11153 else
11154 pkg_failed=untried
11155 fi
11156
11157
11158
11159 if test $pkg_failed = yes; then
11160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11161 printf "%s\n" "no" >&6; }
11162
11163 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11164 _pkg_short_errors_supported=yes
11165 else
11166 _pkg_short_errors_supported=no
11167 fi
11168 if test $_pkg_short_errors_supported = yes; then
11169 XWD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.25 ${XKBMODULE}" 2>&1`
11170 else
11171 XWD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.25 ${XKBMODULE}" 2>&1`
11172 fi
11173 # Put the nasty error message in config.log where it belongs
11174 echo "$XWD_PKG_ERRORS" >&5
11175
11176 as_fn_error $? "Package requirements (x11 xproto >= 7.0.25 ${XKBMODULE}) were not met:
11177
11178 $XWD_PKG_ERRORS
11179
11180 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11181 installed software in a non-standard prefix.
11182
11183 Alternatively, you may set the environment variables XWD_CFLAGS
11184 and XWD_LIBS to avoid the need to call pkg-config.
11185 See the pkg-config man page for more details." "$LINENO" 5
11186 elif test $pkg_failed = untried; then
11187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11188 printf "%s\n" "no" >&6; }
11189 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11190 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11191 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11192 is in your PATH or set the PKG_CONFIG environment variable to the full
11193 path to pkg-config.
11194
11195 Alternatively, you may set the environment variables XWD_CFLAGS
11196 and XWD_LIBS to avoid the need to call pkg-config.
11197 See the pkg-config man page for more details.
11198
11199 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11200 See \`config.log' for more details" "$LINENO" 5; }
11201 else
11202 XWD_CFLAGS=$pkg_cv_XWD_CFLAGS
11203 XWD_LIBS=$pkg_cv_XWD_LIBS
11204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11205 printf "%s\n" "yes" >&6; }
11206
11207 fi
11208
11209 ac_config_files="$ac_config_files Makefile man/Makefile"
11210
11211 cat >confcache <<\_ACEOF
11212 # This file is a shell script that caches the results of configure
11213 # tests run on this system so they can be shared between configure
11214 # scripts and configure runs, see configure's option --config-cache.
11215 # It is not useful on other systems. If it contains results you don't
11216 # want to keep, you may remove or edit it.
11217 #
11218 # config.status only pays attention to the cache file if you give it
11219 # the --recheck option to rerun configure.
11220 #
11221 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11222 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11223 # following values.
11224
11225 _ACEOF
11226
11227 # The following way of writing the cache mishandles newlines in values,
11228 # but we know of no workaround that is simple, portable, and efficient.
11229 # So, we kill variables containing newlines.
11230 # Ultrix sh set writes to stderr and can't be redirected directly,
11231 # and sets the high bit in the cache file unless we assign to the vars.
11232 (
11233 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11234 eval ac_val=\$$ac_var
11235 case $ac_val in #(
11236 *${as_nl}*)
11237 case $ac_var in #(
11238 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11239 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11240 esac
11241 case $ac_var in #(
11242 _ | IFS | as_nl) ;; #(
11243 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11244 *) { eval $ac_var=; unset $ac_var;} ;;
11245 esac ;;
11246 esac
11247 done
11248
11249 (set) 2>&1 |
11250 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11251 *${as_nl}ac_space=\ *)
11252 # `set' does not quote correctly, so add quotes: double-quote
11253 # substitution turns \\\\ into \\, and sed turns \\ into \.
11254 sed -n \
11255 "s/'/'\\\\''/g;
11256 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11257 ;; #(
11258 *)
11259 # `set' quotes correctly as required by POSIX, so do not add quotes.
11260 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11261 ;;
11262 esac |
11263 sort
11264 ) |
11265 sed '
11266 /^ac_cv_env_/b end
11267 t clear
11268 :clear
11269 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11270 t end
11271 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11272 :end' >>confcache
11273 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11274 if test -w "$cache_file"; then
11275 if test "x$cache_file" != "x/dev/null"; then
11276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11277 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11278 if test ! -f "$cache_file" || test -h "$cache_file"; then
11279 cat confcache >"$cache_file"
11280 else
11281 case $cache_file in #(
11282 */* | ?:*)
11283 mv -f confcache "$cache_file"$$ &&
11284 mv -f "$cache_file"$$ "$cache_file" ;; #(
11285 *)
11286 mv -f confcache "$cache_file" ;;
11287 esac
11288 fi
11289 fi
11290 else
11291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11292 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11293 fi
11294 fi
11295 rm -f confcache
11296
11297 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11298 # Let make expand exec_prefix.
11299 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11300
11301 DEFS=-DHAVE_CONFIG_H
11302
11303 ac_libobjs=
11304 ac_ltlibobjs=
11305 U=
11306 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11307 # 1. Remove the extension, and $U if already installed.
11308 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11309 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11310 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11311 # will be set to the directory where LIBOBJS objects are built.
11312 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11313 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11314 done
11315 LIBOBJS=$ac_libobjs
11316
11317 LTLIBOBJS=$ac_ltlibobjs
11318
11319
11320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11321 printf %s "checking that generated files are newer than configure... " >&6; }
11322 if test -n "$am_sleep_pid"; then
11323 # Hide warnings about reused PIDs.
11324 wait $am_sleep_pid 2>/dev/null
11325 fi
11326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11327 printf "%s\n" "done" >&6; }
11328 if test -n "$EXEEXT"; then
11329 am__EXEEXT_TRUE=
11330 am__EXEEXT_FALSE='#'
11331 else
11332 am__EXEEXT_TRUE='#'
11333 am__EXEEXT_FALSE=
11334 fi
11335
11336 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11337 as_fn_error $? "conditional \"AMDEP\" was never defined.
11338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11339 fi
11340 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11341 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11343 fi
11344
11345 : "${CONFIG_STATUS=./config.status}"
11346 ac_write_fail=0
11347 ac_clean_files_save=$ac_clean_files
11348 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11350 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11351 as_write_fail=0
11352 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11353 #! $SHELL
11354 # Generated by $as_me.
11355 # Run this file to recreate the current configuration.
11356 # Compiler output produced by configure, useful for debugging
11357 # configure, is in config.log if it exists.
11358
11359 debug=false
11360 ac_cs_recheck=false
11361 ac_cs_silent=false
11362
11363 SHELL=\${CONFIG_SHELL-$SHELL}
11364 export SHELL
11365 _ASEOF
11366 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11367 ## -------------------- ##
11368 ## M4sh Initialization. ##
11369 ## -------------------- ##
11370
11371 # Be more Bourne compatible
11372 DUALCASE=1; export DUALCASE # for MKS sh
11373 as_nop=:
11374 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11375 then :
11376 emulate sh
11377 NULLCMD=:
11378 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11379 # is contrary to our usage. Disable this feature.
11380 alias -g '${1+"$@"}'='"$@"'
11381 setopt NO_GLOB_SUBST
11382 else $as_nop
11383 case `(set -o) 2>/dev/null` in #(
11384 *posix*) :
11385 set -o posix ;; #(
11386 *) :
11387 ;;
11388 esac
11389 fi
11390
11391
11392
11393 # Reset variables that may have inherited troublesome values from
11394 # the environment.
11395
11396 # IFS needs to be set, to space, tab, and newline, in precisely that order.
11397 # (If _AS_PATH_WALK were called with IFS unset, it would have the
11398 # side effect of setting IFS to empty, thus disabling word splitting.)
11399 # Quoting is to prevent editors from complaining about space-tab.
11400 as_nl='
11401 '
11402 export as_nl
11403 IFS=" "" $as_nl"
11404
11405 PS1='$ '
11406 PS2='> '
11407 PS4='+ '
11408
11409 # Ensure predictable behavior from utilities with locale-dependent output.
11410 LC_ALL=C
11411 export LC_ALL
11412 LANGUAGE=C
11413 export LANGUAGE
11414
11415 # We cannot yet rely on "unset" to work, but we need these variables
11416 # to be unset--not just set to an empty or harmless value--now, to
11417 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
11418 # also avoids known problems related to "unset" and subshell syntax
11419 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11420 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11421 do eval test \${$as_var+y} \
11422 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11423 done
11424
11425 # Ensure that fds 0, 1, and 2 are open.
11426 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11427 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11428 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
11429
11430 # The user is always right.
11431 if ${PATH_SEPARATOR+false} :; then
11432 PATH_SEPARATOR=:
11433 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11434 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11435 PATH_SEPARATOR=';'
11436 }
11437 fi
11438
11439
11440 # Find who we are. Look in the path if we contain no directory separator.
11441 as_myself=
11442 case $0 in #((
11443 *[\\/]* ) as_myself=$0 ;;
11444 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11445 for as_dir in $PATH
11446 do
11447 IFS=$as_save_IFS
11448 case $as_dir in #(((
11449 '') as_dir=./ ;;
11450 */) ;;
11451 *) as_dir=$as_dir/ ;;
11452 esac
11453 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11454 done
11455 IFS=$as_save_IFS
11456
11457 ;;
11458 esac
11459 # We did not find ourselves, most probably we were run as `sh COMMAND'
11460 # in which case we are not to be found in the path.
11461 if test "x$as_myself" = x; then
11462 as_myself=$0
11463 fi
11464 if test ! -f "$as_myself"; then
11465 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11466 exit 1
11467 fi
11468
11469
11470
11471 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11472 # ----------------------------------------
11473 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11474 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11475 # script with STATUS, using 1 if that was 0.
11476 as_fn_error ()
11477 {
11478 as_status=$1; test $as_status -eq 0 && as_status=1
11479 if test "$4"; then
11480 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11482 fi
11483 printf "%s\n" "$as_me: error: $2" >&2
11484 as_fn_exit $as_status
11485 } # as_fn_error
11486
11487
11488
11489 # as_fn_set_status STATUS
11490 # -----------------------
11491 # Set $? to STATUS, without forking.
11492 as_fn_set_status ()
11493 {
11494 return $1
11495 } # as_fn_set_status
11496
11497 # as_fn_exit STATUS
11498 # -----------------
11499 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11500 as_fn_exit ()
11501 {
11502 set +e
11503 as_fn_set_status $1
11504 exit $1
11505 } # as_fn_exit
11506
11507 # as_fn_unset VAR
11508 # ---------------
11509 # Portably unset VAR.
11510 as_fn_unset ()
11511 {
11512 { eval $1=; unset $1;}
11513 }
11514 as_unset=as_fn_unset
11515
11516 # as_fn_append VAR VALUE
11517 # ----------------------
11518 # Append the text in VALUE to the end of the definition contained in VAR. Take
11519 # advantage of any shell optimizations that allow amortized linear growth over
11520 # repeated appends, instead of the typical quadratic growth present in naive
11521 # implementations.
11522 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11523 then :
11524 eval 'as_fn_append ()
11525 {
11526 eval $1+=\$2
11527 }'
11528 else $as_nop
11529 as_fn_append ()
11530 {
11531 eval $1=\$$1\$2
11532 }
11533 fi # as_fn_append
11534
11535 # as_fn_arith ARG...
11536 # ------------------
11537 # Perform arithmetic evaluation on the ARGs, and store the result in the
11538 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11539 # must be portable across $(()) and expr.
11540 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11541 then :
11542 eval 'as_fn_arith ()
11543 {
11544 as_val=$(( $* ))
11545 }'
11546 else $as_nop
11547 as_fn_arith ()
11548 {
11549 as_val=`expr "$@" || test $? -eq 1`
11550 }
11551 fi # as_fn_arith
11552
11553
11554 if expr a : '\(a\)' >/dev/null 2>&1 &&
11555 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11556 as_expr=expr
11557 else
11558 as_expr=false
11559 fi
11560
11561 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11562 as_basename=basename
11563 else
11564 as_basename=false
11565 fi
11566
11567 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11568 as_dirname=dirname
11569 else
11570 as_dirname=false
11571 fi
11572
11573 as_me=`$as_basename -- "$0" ||
11574 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11575 X"$0" : 'X\(//\)$' \| \
11576 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11577 printf "%s\n" X/"$0" |
11578 sed '/^.*\/\([^/][^/]*\)\/*$/{
11579 s//\1/
11580 q
11581 }
11582 /^X\/\(\/\/\)$/{
11583 s//\1/
11584 q
11585 }
11586 /^X\/\(\/\).*/{
11587 s//\1/
11588 q
11589 }
11590 s/.*/./; q'`
11591
11592 # Avoid depending upon Character Ranges.
11593 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11594 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11595 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11596 as_cr_digits='0123456789'
11597 as_cr_alnum=$as_cr_Letters$as_cr_digits
11598
11599
11600 # Determine whether it's possible to make 'echo' print without a newline.
11601 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11602 # for compatibility with existing Makefiles.
11603 ECHO_C= ECHO_N= ECHO_T=
11604 case `echo -n x` in #(((((
11605 -n*)
11606 case `echo 'xy\c'` in
11607 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11608 xy) ECHO_C='\c';;
11609 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11610 ECHO_T=' ';;
11611 esac;;
11612 *)
11613 ECHO_N='-n';;
11614 esac
11615
11616 # For backward compatibility with old third-party macros, we provide
11617 # the shell variables $as_echo and $as_echo_n. New code should use
11618 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11619 as_echo='printf %s\n'
11620 as_echo_n='printf %s'
11621
11622 rm -f conf$$ conf$$.exe conf$$.file
11623 if test -d conf$$.dir; then
11624 rm -f conf$$.dir/conf$$.file
11625 else
11626 rm -f conf$$.dir
11627 mkdir conf$$.dir 2>/dev/null
11628 fi
11629 if (echo >conf$$.file) 2>/dev/null; then
11630 if ln -s conf$$.file conf$$ 2>/dev/null; then
11631 as_ln_s='ln -s'
11632 # ... but there are two gotchas:
11633 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11634 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11635 # In both cases, we have to default to `cp -pR'.
11636 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11637 as_ln_s='cp -pR'
11638 elif ln conf$$.file conf$$ 2>/dev/null; then
11639 as_ln_s=ln
11640 else
11641 as_ln_s='cp -pR'
11642 fi
11643 else
11644 as_ln_s='cp -pR'
11645 fi
11646 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11647 rmdir conf$$.dir 2>/dev/null
11648
11649
11650 # as_fn_mkdir_p
11651 # -------------
11652 # Create "$as_dir" as a directory, including parents if necessary.
11653 as_fn_mkdir_p ()
11654 {
11655
11656 case $as_dir in #(
11657 -*) as_dir=./$as_dir;;
11658 esac
11659 test -d "$as_dir" || eval $as_mkdir_p || {
11660 as_dirs=
11661 while :; do
11662 case $as_dir in #(
11663 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11664 *) as_qdir=$as_dir;;
11665 esac
11666 as_dirs="'$as_qdir' $as_dirs"
11667 as_dir=`$as_dirname -- "$as_dir" ||
11668 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11669 X"$as_dir" : 'X\(//\)[^/]' \| \
11670 X"$as_dir" : 'X\(//\)$' \| \
11671 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11672 printf "%s\n" X"$as_dir" |
11673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11674 s//\1/
11675 q
11676 }
11677 /^X\(\/\/\)[^/].*/{
11678 s//\1/
11679 q
11680 }
11681 /^X\(\/\/\)$/{
11682 s//\1/
11683 q
11684 }
11685 /^X\(\/\).*/{
11686 s//\1/
11687 q
11688 }
11689 s/.*/./; q'`
11690 test -d "$as_dir" && break
11691 done
11692 test -z "$as_dirs" || eval "mkdir $as_dirs"
11693 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11694
11695
11696 } # as_fn_mkdir_p
11697 if mkdir -p . 2>/dev/null; then
11698 as_mkdir_p='mkdir -p "$as_dir"'
11699 else
11700 test -d ./-p && rmdir ./-p
11701 as_mkdir_p=false
11702 fi
11703
11704
11705 # as_fn_executable_p FILE
11706 # -----------------------
11707 # Test if FILE is an executable regular file.
11708 as_fn_executable_p ()
11709 {
11710 test -f "$1" && test -x "$1"
11711 } # as_fn_executable_p
11712 as_test_x='test -x'
11713 as_executable_p=as_fn_executable_p
11714
11715 # Sed expression to map a string onto a valid CPP name.
11716 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11717
11718 # Sed expression to map a string onto a valid variable name.
11719 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11720
11721
11722 exec 6>&1
11723 ## ----------------------------------- ##
11724 ## Main body of $CONFIG_STATUS script. ##
11725 ## ----------------------------------- ##
11726 _ASEOF
11727 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11728
11729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11730 # Save the log message, to keep $0 and so on meaningful, and to
11731 # report actual input values of CONFIG_FILES etc. instead of their
11732 # values after options handling.
11733 ac_log="
11734 This file was extended by xwd $as_me 1.0.9, which was
11735 generated by GNU Autoconf 2.71. Invocation command line was
11736
11737 CONFIG_FILES = $CONFIG_FILES
11738 CONFIG_HEADERS = $CONFIG_HEADERS
11739 CONFIG_LINKS = $CONFIG_LINKS
11740 CONFIG_COMMANDS = $CONFIG_COMMANDS
11741 $ $0 $@
11742
11743 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11744 "
11745
11746 _ACEOF
11747
11748 case $ac_config_files in *"
11749 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11750 esac
11751
11752 case $ac_config_headers in *"
11753 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11754 esac
11755
11756
11757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11758 # Files that config.status was made for.
11759 config_files="$ac_config_files"
11760 config_headers="$ac_config_headers"
11761 config_commands="$ac_config_commands"
11762
11763 _ACEOF
11764
11765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11766 ac_cs_usage="\
11767 \`$as_me' instantiates files and other configuration actions
11768 from templates according to the current configuration. Unless the files
11769 and actions are specified as TAGs, all are instantiated by default.
11770
11771 Usage: $0 [OPTION]... [TAG]...
11772
11773 -h, --help print this help, then exit
11774 -V, --version print version number and configuration settings, then exit
11775 --config print configuration, then exit
11776 -q, --quiet, --silent
11777 do not print progress messages
11778 -d, --debug don't remove temporary files
11779 --recheck update $as_me by reconfiguring in the same conditions
11780 --file=FILE[:TEMPLATE]
11781 instantiate the configuration file FILE
11782 --header=FILE[:TEMPLATE]
11783 instantiate the configuration header FILE
11784
11785 Configuration files:
11786 $config_files
11787
11788 Configuration headers:
11789 $config_headers
11790
11791 Configuration commands:
11792 $config_commands
11793
11794 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xwd/issues>."
11795
11796 _ACEOF
11797 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
11798 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
11799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11800 ac_cs_config='$ac_cs_config_escaped'
11801 ac_cs_version="\\
11802 xwd config.status 1.0.9
11803 configured by $0, generated by GNU Autoconf 2.71,
11804 with options \\"\$ac_cs_config\\"
11805
11806 Copyright (C) 2021 Free Software Foundation, Inc.
11807 This config.status script is free software; the Free Software Foundation
11808 gives unlimited permission to copy, distribute and modify it."
11809
11810 ac_pwd='$ac_pwd'
11811 srcdir='$srcdir'
11812 INSTALL='$INSTALL'
11813 MKDIR_P='$MKDIR_P'
11814 AWK='$AWK'
11815 test -n "\$AWK" || AWK=awk
11816 _ACEOF
11817
11818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11819 # The default lists apply if the user does not specify any file.
11820 ac_need_defaults=:
11821 while test $# != 0
11822 do
11823 case $1 in
11824 --*=?*)
11825 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11826 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11827 ac_shift=:
11828 ;;
11829 --*=)
11830 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11831 ac_optarg=
11832 ac_shift=:
11833 ;;
11834 *)
11835 ac_option=$1
11836 ac_optarg=$2
11837 ac_shift=shift
11838 ;;
11839 esac
11840
11841 case $ac_option in
11842 # Handling of the options.
11843 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11844 ac_cs_recheck=: ;;
11845 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11846 printf "%s\n" "$ac_cs_version"; exit ;;
11847 --config | --confi | --conf | --con | --co | --c )
11848 printf "%s\n" "$ac_cs_config"; exit ;;
11849 --debug | --debu | --deb | --de | --d | -d )
11850 debug=: ;;
11851 --file | --fil | --fi | --f )
11852 $ac_shift
11853 case $ac_optarg in
11854 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11855 '') as_fn_error $? "missing file argument" ;;
11856 esac
11857 as_fn_append CONFIG_FILES " '$ac_optarg'"
11858 ac_need_defaults=false;;
11859 --header | --heade | --head | --hea )
11860 $ac_shift
11861 case $ac_optarg in
11862 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11863 esac
11864 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11865 ac_need_defaults=false;;
11866 --he | --h)
11867 # Conflict between --help and --header
11868 as_fn_error $? "ambiguous option: \`$1'
11869 Try \`$0 --help' for more information.";;
11870 --help | --hel | -h )
11871 printf "%s\n" "$ac_cs_usage"; exit ;;
11872 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11873 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11874 ac_cs_silent=: ;;
11875
11876 # This is an error.
11877 -*) as_fn_error $? "unrecognized option: \`$1'
11878 Try \`$0 --help' for more information." ;;
11879
11880 *) as_fn_append ac_config_targets " $1"
11881 ac_need_defaults=false ;;
11882
11883 esac
11884 shift
11885 done
11886
11887 ac_configure_extra_args=
11888
11889 if $ac_cs_silent; then
11890 exec 6>/dev/null
11891 ac_configure_extra_args="$ac_configure_extra_args --silent"
11892 fi
11893
11894 _ACEOF
11895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11896 if \$ac_cs_recheck; then
11897 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11898 shift
11899 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
11900 CONFIG_SHELL='$SHELL'
11901 export CONFIG_SHELL
11902 exec "\$@"
11903 fi
11904
11905 _ACEOF
11906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11907 exec 5>>config.log
11908 {
11909 echo
11910 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11911 ## Running $as_me. ##
11912 _ASBOX
11913 printf "%s\n" "$ac_log"
11914 } >&5
11915
11916 _ACEOF
11917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11918 #
11919 # INIT-COMMANDS
11920 #
11921 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
11922
11923 _ACEOF
11924
11925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11926
11927 # Handling of arguments.
11928 for ac_config_target in $ac_config_targets
11929 do
11930 case $ac_config_target in
11931 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11932 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11933 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11934 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11935
11936 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11937 esac
11938 done
11939
11940
11941 # If the user did not use the arguments to specify the items to instantiate,
11942 # then the envvar interface is used. Set only those that are not.
11943 # We use the long form for the default assignment because of an extremely
11944 # bizarre bug on SunOS 4.1.3.
11945 if $ac_need_defaults; then
11946 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
11947 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
11948 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
11949 fi
11950
11951 # Have a temporary directory for convenience. Make it in the build tree
11952 # simply because there is no reason against having it here, and in addition,
11953 # creating and moving files from /tmp can sometimes cause problems.
11954 # Hook for its removal unless debugging.
11955 # Note that there is a small window in which the directory will not be cleaned:
11956 # after its creation but before its name has been assigned to `$tmp'.
11957 $debug ||
11958 {
11959 tmp= ac_tmp=
11960 trap 'exit_status=$?
11961 : "${ac_tmp:=$tmp}"
11962 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11963 ' 0
11964 trap 'as_fn_exit 1' 1 2 13 15
11965 }
11966 # Create a (secure) tmp directory for tmp files.
11967
11968 {
11969 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11970 test -d "$tmp"
11971 } ||
11972 {
11973 tmp=./conf$$-$RANDOM
11974 (umask 077 && mkdir "$tmp")
11975 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11976 ac_tmp=$tmp
11977
11978 # Set up the scripts for CONFIG_FILES section.
11979 # No need to generate them if there are no CONFIG_FILES.
11980 # This happens for instance with `./config.status config.h'.
11981 if test -n "$CONFIG_FILES"; then
11982
11983
11984 ac_cr=`echo X | tr X '\015'`
11985 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11986 # But we know of no other shell where ac_cr would be empty at this
11987 # point, so we can use a bashism as a fallback.
11988 if test "x$ac_cr" = x; then
11989 eval ac_cr=\$\'\\r\'
11990 fi
11991 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11992 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11993 ac_cs_awk_cr='\\r'
11994 else
11995 ac_cs_awk_cr=$ac_cr
11996 fi
11997
11998 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11999 _ACEOF
12000
12001
12002 {
12003 echo "cat >conf$$subs.awk <<_ACEOF" &&
12004 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12005 echo "_ACEOF"
12006 } >conf$$subs.sh ||
12007 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12008 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12009 ac_delim='%!_!# '
12010 for ac_last_try in false false false false false :; do
12011 . ./conf$$subs.sh ||
12012 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12013
12014 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12015 if test $ac_delim_n = $ac_delim_num; then
12016 break
12017 elif $ac_last_try; then
12018 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12019 else
12020 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12021 fi
12022 done
12023 rm -f conf$$subs.sh
12024
12025 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12026 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12027 _ACEOF
12028 sed -n '
12029 h
12030 s/^/S["/; s/!.*/"]=/
12031 p
12032 g
12033 s/^[^!]*!//
12034 :repl
12035 t repl
12036 s/'"$ac_delim"'$//
12037 t delim
12038 :nl
12039 h
12040 s/\(.\{148\}\)..*/\1/
12041 t more1
12042 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12043 p
12044 n
12045 b repl
12046 :more1
12047 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12048 p
12049 g
12050 s/.\{148\}//
12051 t nl
12052 :delim
12053 h
12054 s/\(.\{148\}\)..*/\1/
12055 t more2
12056 s/["\\]/\\&/g; s/^/"/; s/$/"/
12057 p
12058 b
12059 :more2
12060 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12061 p
12062 g
12063 s/.\{148\}//
12064 t delim
12065 ' <conf$$subs.awk | sed '
12066 /^[^""]/{
12067 N
12068 s/\n//
12069 }
12070 ' >>$CONFIG_STATUS || ac_write_fail=1
12071 rm -f conf$$subs.awk
12072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12073 _ACAWK
12074 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12075 for (key in S) S_is_set[key] = 1
12076 FS = ""
12077
12078 }
12079 {
12080 line = $ 0
12081 nfields = split(line, field, "@")
12082 substed = 0
12083 len = length(field[1])
12084 for (i = 2; i < nfields; i++) {
12085 key = field[i]
12086 keylen = length(key)
12087 if (S_is_set[key]) {
12088 value = S[key]
12089 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12090 len += length(value) + length(field[++i])
12091 substed = 1
12092 } else
12093 len += 1 + keylen
12094 }
12095
12096 print line
12097 }
12098
12099 _ACAWK
12100 _ACEOF
12101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12102 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12103 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12104 else
12105 cat
12106 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12107 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12108 _ACEOF
12109
12110 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12111 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12112 # trailing colons and then remove the whole line if VPATH becomes empty
12113 # (actually we leave an empty line to preserve line numbers).
12114 if test "x$srcdir" = x.; then
12115 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12116 h
12117 s///
12118 s/^/:/
12119 s/[ ]*$/:/
12120 s/:\$(srcdir):/:/g
12121 s/:\${srcdir}:/:/g
12122 s/:@srcdir@:/:/g
12123 s/^:*//
12124 s/:*$//
12125 x
12126 s/\(=[ ]*\).*/\1/
12127 G
12128 s/\n//
12129 s/^[^=]*=[ ]*$//
12130 }'
12131 fi
12132
12133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12134 fi # test -n "$CONFIG_FILES"
12135
12136 # Set up the scripts for CONFIG_HEADERS section.
12137 # No need to generate them if there are no CONFIG_HEADERS.
12138 # This happens for instance with `./config.status Makefile'.
12139 if test -n "$CONFIG_HEADERS"; then
12140 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12141 BEGIN {
12142 _ACEOF
12143
12144 # Transform confdefs.h into an awk script `defines.awk', embedded as
12145 # here-document in config.status, that substitutes the proper values into
12146 # config.h.in to produce config.h.
12147
12148 # Create a delimiter string that does not exist in confdefs.h, to ease
12149 # handling of long lines.
12150 ac_delim='%!_!# '
12151 for ac_last_try in false false :; do
12152 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12153 if test -z "$ac_tt"; then
12154 break
12155 elif $ac_last_try; then
12156 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12157 else
12158 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12159 fi
12160 done
12161
12162 # For the awk script, D is an array of macro values keyed by name,
12163 # likewise P contains macro parameters if any. Preserve backslash
12164 # newline sequences.
12165
12166 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12167 sed -n '
12168 s/.\{148\}/&'"$ac_delim"'/g
12169 t rset
12170 :rset
12171 s/^[ ]*#[ ]*define[ ][ ]*/ /
12172 t def
12173 d
12174 :def
12175 s/\\$//
12176 t bsnl
12177 s/["\\]/\\&/g
12178 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12179 D["\1"]=" \3"/p
12180 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12181 d
12182 :bsnl
12183 s/["\\]/\\&/g
12184 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12185 D["\1"]=" \3\\\\\\n"\\/p
12186 t cont
12187 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12188 t cont
12189 d
12190 :cont
12191 n
12192 s/.\{148\}/&'"$ac_delim"'/g
12193 t clear
12194 :clear
12195 s/\\$//
12196 t bsnlc
12197 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12198 d
12199 :bsnlc
12200 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12201 b cont
12202 ' <confdefs.h | sed '
12203 s/'"$ac_delim"'/"\\\
12204 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12205
12206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12207 for (key in D) D_is_set[key] = 1
12208 FS = ""
12209 }
12210 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12211 line = \$ 0
12212 split(line, arg, " ")
12213 if (arg[1] == "#") {
12214 defundef = arg[2]
12215 mac1 = arg[3]
12216 } else {
12217 defundef = substr(arg[1], 2)
12218 mac1 = arg[2]
12219 }
12220 split(mac1, mac2, "(") #)
12221 macro = mac2[1]
12222 prefix = substr(line, 1, index(line, defundef) - 1)
12223 if (D_is_set[macro]) {
12224 # Preserve the white space surrounding the "#".
12225 print prefix "define", macro P[macro] D[macro]
12226 next
12227 } else {
12228 # Replace #undef with comments. This is necessary, for example,
12229 # in the case of _POSIX_SOURCE, which is predefined and required
12230 # on some systems where configure will not decide to define it.
12231 if (defundef == "undef") {
12232 print "/*", prefix defundef, macro, "*/"
12233 next
12234 }
12235 }
12236 }
12237 { print }
12238 _ACAWK
12239 _ACEOF
12240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12241 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12242 fi # test -n "$CONFIG_HEADERS"
12243
12244
12245 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12246 shift
12247 for ac_tag
12248 do
12249 case $ac_tag in
12250 :[FHLC]) ac_mode=$ac_tag; continue;;
12251 esac
12252 case $ac_mode$ac_tag in
12253 :[FHL]*:*);;
12254 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12255 :[FH]-) ac_tag=-:-;;
12256 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12257 esac
12258 ac_save_IFS=$IFS
12259 IFS=:
12260 set x $ac_tag
12261 IFS=$ac_save_IFS
12262 shift
12263 ac_file=$1
12264 shift
12265
12266 case $ac_mode in
12267 :L) ac_source=$1;;
12268 :[FH])
12269 ac_file_inputs=
12270 for ac_f
12271 do
12272 case $ac_f in
12273 -) ac_f="$ac_tmp/stdin";;
12274 *) # Look for the file first in the build tree, then in the source tree
12275 # (if the path is not absolute). The absolute path cannot be DOS-style,
12276 # because $ac_f cannot contain `:'.
12277 test -f "$ac_f" ||
12278 case $ac_f in
12279 [\\/$]*) false;;
12280 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12281 esac ||
12282 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12283 esac
12284 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12285 as_fn_append ac_file_inputs " '$ac_f'"
12286 done
12287
12288 # Let's still pretend it is `configure' which instantiates (i.e., don't
12289 # use $as_me), people would be surprised to read:
12290 # /* config.h. Generated by config.status. */
12291 configure_input='Generated from '`
12292 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12293 `' by configure.'
12294 if test x"$ac_file" != x-; then
12295 configure_input="$ac_file. $configure_input"
12296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12297 printf "%s\n" "$as_me: creating $ac_file" >&6;}
12298 fi
12299 # Neutralize special characters interpreted by sed in replacement strings.
12300 case $configure_input in #(
12301 *\&* | *\|* | *\\* )
12302 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12303 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12304 *) ac_sed_conf_input=$configure_input;;
12305 esac
12306
12307 case $ac_tag in
12308 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12309 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12310 esac
12311 ;;
12312 esac
12313
12314 ac_dir=`$as_dirname -- "$ac_file" ||
12315 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12316 X"$ac_file" : 'X\(//\)[^/]' \| \
12317 X"$ac_file" : 'X\(//\)$' \| \
12318 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12319 printf "%s\n" X"$ac_file" |
12320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12321 s//\1/
12322 q
12323 }
12324 /^X\(\/\/\)[^/].*/{
12325 s//\1/
12326 q
12327 }
12328 /^X\(\/\/\)$/{
12329 s//\1/
12330 q
12331 }
12332 /^X\(\/\).*/{
12333 s//\1/
12334 q
12335 }
12336 s/.*/./; q'`
12337 as_dir="$ac_dir"; as_fn_mkdir_p
12338 ac_builddir=.
12339
12340 case "$ac_dir" in
12341 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12342 *)
12343 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12344 # A ".." for each directory in $ac_dir_suffix.
12345 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12346 case $ac_top_builddir_sub in
12347 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12348 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12349 esac ;;
12350 esac
12351 ac_abs_top_builddir=$ac_pwd
12352 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12353 # for backward compatibility:
12354 ac_top_builddir=$ac_top_build_prefix
12355
12356 case $srcdir in
12357 .) # We are building in place.
12358 ac_srcdir=.
12359 ac_top_srcdir=$ac_top_builddir_sub
12360 ac_abs_top_srcdir=$ac_pwd ;;
12361 [\\/]* | ?:[\\/]* ) # Absolute name.
12362 ac_srcdir=$srcdir$ac_dir_suffix;
12363 ac_top_srcdir=$srcdir
12364 ac_abs_top_srcdir=$srcdir ;;
12365 *) # Relative name.
12366 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12367 ac_top_srcdir=$ac_top_build_prefix$srcdir
12368 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12369 esac
12370 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12371
12372
12373 case $ac_mode in
12374 :F)
12375 #
12376 # CONFIG_FILE
12377 #
12378
12379 case $INSTALL in
12380 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12381 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12382 esac
12383 ac_MKDIR_P=$MKDIR_P
12384 case $MKDIR_P in
12385 [\\/$]* | ?:[\\/]* ) ;;
12386 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12387 esac
12388 _ACEOF
12389
12390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12391 # If the template does not know about datarootdir, expand it.
12392 # FIXME: This hack should be removed a few years after 2.60.
12393 ac_datarootdir_hack=; ac_datarootdir_seen=
12394 ac_sed_dataroot='
12395 /datarootdir/ {
12396 p
12397 q
12398 }
12399 /@datadir@/p
12400 /@docdir@/p
12401 /@infodir@/p
12402 /@localedir@/p
12403 /@mandir@/p'
12404 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12405 *datarootdir*) ac_datarootdir_seen=yes;;
12406 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12408 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12409 _ACEOF
12410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12411 ac_datarootdir_hack='
12412 s&@datadir@&$datadir&g
12413 s&@docdir@&$docdir&g
12414 s&@infodir@&$infodir&g
12415 s&@localedir@&$localedir&g
12416 s&@mandir@&$mandir&g
12417 s&\\\${datarootdir}&$datarootdir&g' ;;
12418 esac
12419 _ACEOF
12420
12421 # Neutralize VPATH when `$srcdir' = `.'.
12422 # Shell code in configure.ac might set extrasub.
12423 # FIXME: do we really want to maintain this feature?
12424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12425 ac_sed_extra="$ac_vpsub
12426 $extrasub
12427 _ACEOF
12428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12429 :t
12430 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12431 s|@configure_input@|$ac_sed_conf_input|;t t
12432 s&@top_builddir@&$ac_top_builddir_sub&;t t
12433 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12434 s&@srcdir@&$ac_srcdir&;t t
12435 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12436 s&@top_srcdir@&$ac_top_srcdir&;t t
12437 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12438 s&@builddir@&$ac_builddir&;t t
12439 s&@abs_builddir@&$ac_abs_builddir&;t t
12440 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12441 s&@INSTALL@&$ac_INSTALL&;t t
12442 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12443 $ac_datarootdir_hack
12444 "
12445 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12446 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12447
12448 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12449 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12450 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12451 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12453 which seems to be undefined. Please make sure it is defined" >&5
12454 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12455 which seems to be undefined. Please make sure it is defined" >&2;}
12456
12457 rm -f "$ac_tmp/stdin"
12458 case $ac_file in
12459 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12460 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12461 esac \
12462 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12463 ;;
12464 :H)
12465 #
12466 # CONFIG_HEADER
12467 #
12468 if test x"$ac_file" != x-; then
12469 {
12470 printf "%s\n" "/* $configure_input */" >&1 \
12471 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12472 } >"$ac_tmp/config.h" \
12473 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12474 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12476 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12477 else
12478 rm -f "$ac_file"
12479 mv "$ac_tmp/config.h" "$ac_file" \
12480 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12481 fi
12482 else
12483 printf "%s\n" "/* $configure_input */" >&1 \
12484 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12485 || as_fn_error $? "could not create -" "$LINENO" 5
12486 fi
12487 # Compute "$ac_file"'s index in $config_headers.
12488 _am_arg="$ac_file"
12489 _am_stamp_count=1
12490 for _am_header in $config_headers :; do
12491 case $_am_header in
12492 $_am_arg | $_am_arg:* )
12493 break ;;
12494 * )
12495 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12496 esac
12497 done
12498 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12499 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12500 X"$_am_arg" : 'X\(//\)[^/]' \| \
12501 X"$_am_arg" : 'X\(//\)$' \| \
12502 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12503 printf "%s\n" X"$_am_arg" |
12504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12505 s//\1/
12506 q
12507 }
12508 /^X\(\/\/\)[^/].*/{
12509 s//\1/
12510 q
12511 }
12512 /^X\(\/\/\)$/{
12513 s//\1/
12514 q
12515 }
12516 /^X\(\/\).*/{
12517 s//\1/
12518 q
12519 }
12520 s/.*/./; q'`/stamp-h$_am_stamp_count
12521 ;;
12522
12523 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12524 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12525 ;;
12526 esac
12527
12528
12529 case $ac_file$ac_mode in
12530 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12531 # Older Autoconf quotes --file arguments for eval, but not when files
12532 # are listed without --file. Let's play safe and only enable the eval
12533 # if we detect the quoting.
12534 # TODO: see whether this extra hack can be removed once we start
12535 # requiring Autoconf 2.70 or later.
12536 case $CONFIG_FILES in #(
12537 *\'*) :
12538 eval set x "$CONFIG_FILES" ;; #(
12539 *) :
12540 set x $CONFIG_FILES ;; #(
12541 *) :
12542 ;;
12543 esac
12544 shift
12545 # Used to flag and report bootstrapping failures.
12546 am_rc=0
12547 for am_mf
12548 do
12549 # Strip MF so we end up with the name of the file.
12550 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12551 # Check whether this is an Automake generated Makefile which includes
12552 # dependency-tracking related rules and includes.
12553 # Grep'ing the whole file directly is not great: AIX grep has a line
12554 # limit of 2048, but all sed's we know have understand at least 4000.
12555 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12556 || continue
12557 am_dirpart=`$as_dirname -- "$am_mf" ||
12558 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12559 X"$am_mf" : 'X\(//\)[^/]' \| \
12560 X"$am_mf" : 'X\(//\)$' \| \
12561 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12562 printf "%s\n" X"$am_mf" |
12563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12564 s//\1/
12565 q
12566 }
12567 /^X\(\/\/\)[^/].*/{
12568 s//\1/
12569 q
12570 }
12571 /^X\(\/\/\)$/{
12572 s//\1/
12573 q
12574 }
12575 /^X\(\/\).*/{
12576 s//\1/
12577 q
12578 }
12579 s/.*/./; q'`
12580 am_filepart=`$as_basename -- "$am_mf" ||
12581 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12582 X"$am_mf" : 'X\(//\)$' \| \
12583 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12584 printf "%s\n" X/"$am_mf" |
12585 sed '/^.*\/\([^/][^/]*\)\/*$/{
12586 s//\1/
12587 q
12588 }
12589 /^X\/\(\/\/\)$/{
12590 s//\1/
12591 q
12592 }
12593 /^X\/\(\/\).*/{
12594 s//\1/
12595 q
12596 }
12597 s/.*/./; q'`
12598 { echo "$as_me:$LINENO: cd "$am_dirpart" \
12599 && sed -e '/# am--include-marker/d' "$am_filepart" \
12600 | $MAKE -f - am--depfiles" >&5
12601 (cd "$am_dirpart" \
12602 && sed -e '/# am--include-marker/d' "$am_filepart" \
12603 | $MAKE -f - am--depfiles) >&5 2>&5
12604 ac_status=$?
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); } || am_rc=$?
12607 done
12608 if test $am_rc -ne 0; then
12609 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12610 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12611 as_fn_error $? "Something went wrong bootstrapping makefile fragments
12612 for automatic dependency tracking. If GNU make was not used, consider
12613 re-running the configure script with MAKE=\"gmake\" (or whatever is
12614 necessary). You can also try re-running configure with the
12615 '--disable-dependency-tracking' option to at least be able to build
12616 the package (albeit without support for automatic dependency tracking).
12617 See \`config.log' for more details" "$LINENO" 5; }
12618 fi
12619 { am_dirpart=; unset am_dirpart;}
12620 { am_filepart=; unset am_filepart;}
12621 { am_mf=; unset am_mf;}
12622 { am_rc=; unset am_rc;}
12623 rm -f conftest-deps.mk
12624 }
12625 ;;
12626
12627 esac
12628 done # for ac_tag
12629
12630
12631 as_fn_exit 0
12632 _ACEOF
12633 ac_clean_files=$ac_clean_files_save
12634
12635 test $ac_write_fail = 0 ||
12636 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12637
12638
12639 # configure is writing to config.log, and then calls config.status.
12640 # config.status does its own redirection, appending to config.log.
12641 # Unfortunately, on DOS this fails, as config.log is still kept open
12642 # by configure, so config.status won't be able to write to it; its
12643 # output is simply discarded. So we exec the FD to /dev/null,
12644 # effectively closing config.log, so it can be properly (re)opened and
12645 # appended to by config.status. When coming back to configure, we
12646 # need to make the FD available again.
12647 if test "$no_create" != yes; then
12648 ac_cs_success=:
12649 ac_config_status_args=
12650 test "$silent" = yes &&
12651 ac_config_status_args="$ac_config_status_args --quiet"
12652 exec 5>/dev/null
12653 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12654 exec 5>>config.log
12655 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12656 # would make configure fail if this is the last instruction.
12657 $ac_cs_success || as_fn_exit 1
12658 fi
12659 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12661 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12662 fi
12663
12664