configure revision 1.1.1.9 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for xwininfo 1.1.6.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xwininfo/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev/null
188 then :
189 as_have_required=yes
190 else $as_nop
191 as_have_required=no
192 fi
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
195
196 else $as_nop
197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 as_found=false
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 do
201 IFS=$as_save_IFS
202 case $as_dir in #(((
203 '') as_dir=./ ;;
204 */) ;;
205 *) as_dir=$as_dir/ ;;
206 esac
207 as_found=:
208 case $as_dir in #(
209 /*)
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
212 as_shell=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215 then :
216 CONFIG_SHELL=$as_shell as_have_required=yes
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218 then :
219 break 2
220 fi
221 fi
222 done;;
223 esac
224 as_found=false
225 done
226 IFS=$as_save_IFS
227 if $as_found
228 then :
229
230 else $as_nop
231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi
236 fi
237
238
239 if test "x$CONFIG_SHELL" != x
240 then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno
263 then :
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
271 $0: https://gitlab.freedesktop.org/xorg/app/xwininfo/-/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='xwininfo'
614 PACKAGE_TARNAME='xwininfo'
615 PACKAGE_VERSION='1.1.6'
616 PACKAGE_STRING='xwininfo 1.1.6'
617 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xwininfo/-/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 XLIB_LIBS
657 XLIB_CFLAGS
658 XWININFO_LIBS
659 XWININFO_CFLAGS
660 LIBOBJS
661 MAN_SUBSTS
662 XORG_MAN_PAGE
663 ADMIN_MAN_DIR
664 DRIVER_MAN_DIR
665 MISC_MAN_DIR
666 FILE_MAN_DIR
667 LIB_MAN_DIR
668 APP_MAN_DIR
669 ADMIN_MAN_SUFFIX
670 DRIVER_MAN_SUFFIX
671 MISC_MAN_SUFFIX
672 FILE_MAN_SUFFIX
673 LIB_MAN_SUFFIX
674 APP_MAN_SUFFIX
675 SED
676 INSTALL_CMD
677 PKG_CONFIG_LIBDIR
678 PKG_CONFIG_PATH
679 PKG_CONFIG
680 CHANGELOG_CMD
681 STRICT_CFLAGS
682 CWARNFLAGS
683 BASE_CFLAGS
684 LTLIBICONV
685 LIBICONV
686 EGREP
687 GREP
688 CPP
689 host_os
690 host_vendor
691 host_cpu
692 host
693 build_os
694 build_vendor
695 build_cpu
696 build
697 AM_BACKSLASH
698 AM_DEFAULT_VERBOSITY
699 AM_DEFAULT_V
700 AM_V
701 CSCOPE
702 ETAGS
703 CTAGS
704 am__fastdepCC_FALSE
705 am__fastdepCC_TRUE
706 CCDEPMODE
707 am__nodep
708 AMDEPBACKSLASH
709 AMDEP_FALSE
710 AMDEP_TRUE
711 am__include
712 DEPDIR
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 OBJEXT
737 EXEEXT
738 ac_ct_CC
739 CPPFLAGS
740 LDFLAGS
741 CFLAGS
742 CC
743 target_alias
744 host_alias
745 build_alias
746 LIBS
747 ECHO_T
748 ECHO_N
749 ECHO_C
750 DEFS
751 mandir
752 localedir
753 libdir
754 psdir
755 pdfdir
756 dvidir
757 htmldir
758 infodir
759 docdir
760 oldincludedir
761 includedir
762 runstatedir
763 localstatedir
764 sharedstatedir
765 sysconfdir
766 datadir
767 datarootdir
768 libexecdir
769 sbindir
770 bindir
771 program_transform_name
772 prefix
773 exec_prefix
774 PACKAGE_URL
775 PACKAGE_BUGREPORT
776 PACKAGE_STRING
777 PACKAGE_VERSION
778 PACKAGE_TARNAME
779 PACKAGE_NAME
780 PATH_SEPARATOR
781 SHELL
782 am__quote'
783 ac_subst_files=''
784 ac_user_opts='
785 enable_option_checking
786 enable_dependency_tracking
787 enable_silent_rules
788 with_gnu_ld
789 enable_rpath
790 with_libiconv_prefix
791 enable_selective_werror
792 enable_strict_compilation
793 with_xcb_icccm
794 with_xcb_errors
795 '
796 ac_precious_vars='build_alias
797 host_alias
798 target_alias
799 CC
800 CFLAGS
801 LDFLAGS
802 LIBS
803 CPPFLAGS
804 CPP
805 PKG_CONFIG
806 PKG_CONFIG_PATH
807 PKG_CONFIG_LIBDIR
808 XWININFO_CFLAGS
809 XWININFO_LIBS
810 XLIB_CFLAGS
811 XLIB_LIBS'
812
813
814 # Initialize some variables set by options.
815 ac_init_help=
816 ac_init_version=false
817 ac_unrecognized_opts=
818 ac_unrecognized_sep=
819 # The variables have the same names as the options, with
820 # dashes changed to underlines.
821 cache_file=/dev/null
822 exec_prefix=NONE
823 no_create=
824 no_recursion=
825 prefix=NONE
826 program_prefix=NONE
827 program_suffix=NONE
828 program_transform_name=s,x,x,
829 silent=
830 site=
831 srcdir=
832 verbose=
833 x_includes=NONE
834 x_libraries=NONE
835
836 # Installation directory options.
837 # These are left unexpanded so users can "make install exec_prefix=/foo"
838 # and all the variables that are supposed to be based on exec_prefix
839 # by default will actually change.
840 # Use braces instead of parens because sh, perl, etc. also accept them.
841 # (The list follows the same order as the GNU Coding Standards.)
842 bindir='${exec_prefix}/bin'
843 sbindir='${exec_prefix}/sbin'
844 libexecdir='${exec_prefix}/libexec'
845 datarootdir='${prefix}/share'
846 datadir='${datarootdir}'
847 sysconfdir='${prefix}/etc'
848 sharedstatedir='${prefix}/com'
849 localstatedir='${prefix}/var'
850 runstatedir='${localstatedir}/run'
851 includedir='${prefix}/include'
852 oldincludedir='/usr/include'
853 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
854 infodir='${datarootdir}/info'
855 htmldir='${docdir}'
856 dvidir='${docdir}'
857 pdfdir='${docdir}'
858 psdir='${docdir}'
859 libdir='${exec_prefix}/lib'
860 localedir='${datarootdir}/locale'
861 mandir='${datarootdir}/man'
862
863 ac_prev=
864 ac_dashdash=
865 for ac_option
866 do
867 # If the previous option needs an argument, assign it.
868 if test -n "$ac_prev"; then
869 eval $ac_prev=\$ac_option
870 ac_prev=
871 continue
872 fi
873
874 case $ac_option in
875 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876 *=) ac_optarg= ;;
877 *) ac_optarg=yes ;;
878 esac
879
880 case $ac_dashdash$ac_option in
881 --)
882 ac_dashdash=yes ;;
883
884 -bindir | --bindir | --bindi | --bind | --bin | --bi)
885 ac_prev=bindir ;;
886 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
887 bindir=$ac_optarg ;;
888
889 -build | --build | --buil | --bui | --bu)
890 ac_prev=build_alias ;;
891 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
892 build_alias=$ac_optarg ;;
893
894 -cache-file | --cache-file | --cache-fil | --cache-fi \
895 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
896 ac_prev=cache_file ;;
897 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
898 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
899 cache_file=$ac_optarg ;;
900
901 --config-cache | -C)
902 cache_file=config.cache ;;
903
904 -datadir | --datadir | --datadi | --datad)
905 ac_prev=datadir ;;
906 -datadir=* | --datadir=* | --datadi=* | --datad=*)
907 datadir=$ac_optarg ;;
908
909 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
910 | --dataroo | --dataro | --datar)
911 ac_prev=datarootdir ;;
912 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
913 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
914 datarootdir=$ac_optarg ;;
915
916 -disable-* | --disable-*)
917 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920 as_fn_error $? "invalid feature name: \`$ac_useropt'"
921 ac_useropt_orig=$ac_useropt
922 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
923 case $ac_user_opts in
924 *"
925 "enable_$ac_useropt"
926 "*) ;;
927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
928 ac_unrecognized_sep=', ';;
929 esac
930 eval enable_$ac_useropt=no ;;
931
932 -docdir | --docdir | --docdi | --doc | --do)
933 ac_prev=docdir ;;
934 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935 docdir=$ac_optarg ;;
936
937 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938 ac_prev=dvidir ;;
939 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940 dvidir=$ac_optarg ;;
941
942 -enable-* | --enable-*)
943 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error $? "invalid feature name: \`$ac_useropt'"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
950 *"
951 "enable_$ac_useropt"
952 "*) ;;
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
955 esac
956 eval enable_$ac_useropt=\$ac_optarg ;;
957
958 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
959 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
960 | --exec | --exe | --ex)
961 ac_prev=exec_prefix ;;
962 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
963 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
964 | --exec=* | --exe=* | --ex=*)
965 exec_prefix=$ac_optarg ;;
966
967 -gas | --gas | --ga | --g)
968 # Obsolete; use --with-gas.
969 with_gas=yes ;;
970
971 -help | --help | --hel | --he | -h)
972 ac_init_help=long ;;
973 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
974 ac_init_help=recursive ;;
975 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
976 ac_init_help=short ;;
977
978 -host | --host | --hos | --ho)
979 ac_prev=host_alias ;;
980 -host=* | --host=* | --hos=* | --ho=*)
981 host_alias=$ac_optarg ;;
982
983 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
984 ac_prev=htmldir ;;
985 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
986 | --ht=*)
987 htmldir=$ac_optarg ;;
988
989 -includedir | --includedir | --includedi | --included | --include \
990 | --includ | --inclu | --incl | --inc)
991 ac_prev=includedir ;;
992 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
993 | --includ=* | --inclu=* | --incl=* | --inc=*)
994 includedir=$ac_optarg ;;
995
996 -infodir | --infodir | --infodi | --infod | --info | --inf)
997 ac_prev=infodir ;;
998 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
999 infodir=$ac_optarg ;;
1000
1001 -libdir | --libdir | --libdi | --libd)
1002 ac_prev=libdir ;;
1003 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1004 libdir=$ac_optarg ;;
1005
1006 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1007 | --libexe | --libex | --libe)
1008 ac_prev=libexecdir ;;
1009 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1010 | --libexe=* | --libex=* | --libe=*)
1011 libexecdir=$ac_optarg ;;
1012
1013 -localedir | --localedir | --localedi | --localed | --locale)
1014 ac_prev=localedir ;;
1015 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1016 localedir=$ac_optarg ;;
1017
1018 -localstatedir | --localstatedir | --localstatedi | --localstated \
1019 | --localstate | --localstat | --localsta | --localst | --locals)
1020 ac_prev=localstatedir ;;
1021 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1022 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1023 localstatedir=$ac_optarg ;;
1024
1025 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1026 ac_prev=mandir ;;
1027 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1028 mandir=$ac_optarg ;;
1029
1030 -nfp | --nfp | --nf)
1031 # Obsolete; use --without-fp.
1032 with_fp=no ;;
1033
1034 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035 | --no-cr | --no-c | -n)
1036 no_create=yes ;;
1037
1038 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1039 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1040 no_recursion=yes ;;
1041
1042 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1043 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1044 | --oldin | --oldi | --old | --ol | --o)
1045 ac_prev=oldincludedir ;;
1046 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1047 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1048 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1049 oldincludedir=$ac_optarg ;;
1050
1051 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1052 ac_prev=prefix ;;
1053 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1054 prefix=$ac_optarg ;;
1055
1056 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1057 | --program-pre | --program-pr | --program-p)
1058 ac_prev=program_prefix ;;
1059 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1060 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1061 program_prefix=$ac_optarg ;;
1062
1063 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1064 | --program-suf | --program-su | --program-s)
1065 ac_prev=program_suffix ;;
1066 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1067 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1068 program_suffix=$ac_optarg ;;
1069
1070 -program-transform-name | --program-transform-name \
1071 | --program-transform-nam | --program-transform-na \
1072 | --program-transform-n | --program-transform- \
1073 | --program-transform | --program-transfor \
1074 | --program-transfo | --program-transf \
1075 | --program-trans | --program-tran \
1076 | --progr-tra | --program-tr | --program-t)
1077 ac_prev=program_transform_name ;;
1078 -program-transform-name=* | --program-transform-name=* \
1079 | --program-transform-nam=* | --program-transform-na=* \
1080 | --program-transform-n=* | --program-transform-=* \
1081 | --program-transform=* | --program-transfor=* \
1082 | --program-transfo=* | --program-transf=* \
1083 | --program-trans=* | --program-tran=* \
1084 | --progr-tra=* | --program-tr=* | --program-t=*)
1085 program_transform_name=$ac_optarg ;;
1086
1087 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1088 ac_prev=pdfdir ;;
1089 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1090 pdfdir=$ac_optarg ;;
1091
1092 -psdir | --psdir | --psdi | --psd | --ps)
1093 ac_prev=psdir ;;
1094 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1095 psdir=$ac_optarg ;;
1096
1097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1098 | -silent | --silent | --silen | --sile | --sil)
1099 silent=yes ;;
1100
1101 -runstatedir | --runstatedir | --runstatedi | --runstated \
1102 | --runstate | --runstat | --runsta | --runst | --runs \
1103 | --run | --ru | --r)
1104 ac_prev=runstatedir ;;
1105 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1106 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1107 | --run=* | --ru=* | --r=*)
1108 runstatedir=$ac_optarg ;;
1109
1110 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1111 ac_prev=sbindir ;;
1112 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1113 | --sbi=* | --sb=*)
1114 sbindir=$ac_optarg ;;
1115
1116 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118 | --sharedst | --shareds | --shared | --share | --shar \
1119 | --sha | --sh)
1120 ac_prev=sharedstatedir ;;
1121 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1124 | --sha=* | --sh=*)
1125 sharedstatedir=$ac_optarg ;;
1126
1127 -site | --site | --sit)
1128 ac_prev=site ;;
1129 -site=* | --site=* | --sit=*)
1130 site=$ac_optarg ;;
1131
1132 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1133 ac_prev=srcdir ;;
1134 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135 srcdir=$ac_optarg ;;
1136
1137 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138 | --syscon | --sysco | --sysc | --sys | --sy)
1139 ac_prev=sysconfdir ;;
1140 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142 sysconfdir=$ac_optarg ;;
1143
1144 -target | --target | --targe | --targ | --tar | --ta | --t)
1145 ac_prev=target_alias ;;
1146 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147 target_alias=$ac_optarg ;;
1148
1149 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150 verbose=yes ;;
1151
1152 -version | --version | --versio | --versi | --vers | -V)
1153 ac_init_version=: ;;
1154
1155 -with-* | --with-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid package name: \`$ac_useropt'"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1163 *"
1164 "with_$ac_useropt"
1165 "*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval with_$ac_useropt=\$ac_optarg ;;
1170
1171 -without-* | --without-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error $? "invalid package name: \`$ac_useropt'"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1179 *"
1180 "with_$ac_useropt"
1181 "*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=no ;;
1186
1187 --x)
1188 # Obsolete; use --with-x.
1189 with_x=yes ;;
1190
1191 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192 | --x-incl | --x-inc | --x-in | --x-i)
1193 ac_prev=x_includes ;;
1194 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196 x_includes=$ac_optarg ;;
1197
1198 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200 ac_prev=x_libraries ;;
1201 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203 x_libraries=$ac_optarg ;;
1204
1205 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1206 Try \`$0 --help' for more information"
1207 ;;
1208
1209 *=*)
1210 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211 # Reject names that are not valid shell variable names.
1212 case $ac_envvar in #(
1213 '' | [0-9]* | *[!_$as_cr_alnum]* )
1214 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1215 esac
1216 eval $ac_envvar=\$ac_optarg
1217 export $ac_envvar ;;
1218
1219 *)
1220 # FIXME: should be removed in autoconf 3.0.
1221 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1222 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1224 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1225 ;;
1226
1227 esac
1228 done
1229
1230 if test -n "$ac_prev"; then
1231 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232 as_fn_error $? "missing argument to $ac_option"
1233 fi
1234
1235 if test -n "$ac_unrecognized_opts"; then
1236 case $enable_option_checking in
1237 no) ;;
1238 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1239 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1240 esac
1241 fi
1242
1243 # Check all directory arguments for consistency.
1244 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1245 datadir sysconfdir sharedstatedir localstatedir includedir \
1246 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1247 libdir localedir mandir runstatedir
1248 do
1249 eval ac_val=\$$ac_var
1250 # Remove trailing slashes.
1251 case $ac_val in
1252 */ )
1253 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1254 eval $ac_var=\$ac_val;;
1255 esac
1256 # Be sure to have absolute directory names.
1257 case $ac_val in
1258 [\\/$]* | ?:[\\/]* ) continue;;
1259 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1260 esac
1261 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1262 done
1263
1264 # There might be people who depend on the old broken behavior: `$host'
1265 # used to hold the argument of --host etc.
1266 # FIXME: To remove some day.
1267 build=$build_alias
1268 host=$host_alias
1269 target=$target_alias
1270
1271 # FIXME: To remove some day.
1272 if test "x$host_alias" != x; then
1273 if test "x$build_alias" = x; then
1274 cross_compiling=maybe
1275 elif test "x$build_alias" != "x$host_alias"; then
1276 cross_compiling=yes
1277 fi
1278 fi
1279
1280 ac_tool_prefix=
1281 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282
1283 test "$silent" = yes && exec 6>/dev/null
1284
1285
1286 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287 ac_ls_di=`ls -di .` &&
1288 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289 as_fn_error $? "working directory cannot be determined"
1290 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291 as_fn_error $? "pwd does not report name of working directory"
1292
1293
1294 # Find the source files, if location was not specified.
1295 if test -z "$srcdir"; then
1296 ac_srcdir_defaulted=yes
1297 # Try the directory containing this script, then the parent directory.
1298 ac_confdir=`$as_dirname -- "$as_myself" ||
1299 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300 X"$as_myself" : 'X\(//\)[^/]' \| \
1301 X"$as_myself" : 'X\(//\)$' \| \
1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303 printf "%s\n" X"$as_myself" |
1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\/\)[^/].*/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\/\)$/{
1313 s//\1/
1314 q
1315 }
1316 /^X\(\/\).*/{
1317 s//\1/
1318 q
1319 }
1320 s/.*/./; q'`
1321 srcdir=$ac_confdir
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 srcdir=..
1324 fi
1325 else
1326 ac_srcdir_defaulted=no
1327 fi
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1331 fi
1332 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333 ac_abs_confdir=`(
1334 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1335 pwd)`
1336 # When building in place, set srcdir=.
1337 if test "$ac_abs_confdir" = "$ac_pwd"; then
1338 srcdir=.
1339 fi
1340 # Remove unnecessary trailing slashes from srcdir.
1341 # Double slashes in file names in object file debugging info
1342 # mess up M-x gdb in Emacs.
1343 case $srcdir in
1344 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345 esac
1346 for ac_var in $ac_precious_vars; do
1347 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_env_${ac_var}_value=\$${ac_var}
1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351 done
1352
1353 #
1354 # Report the --help message.
1355 #
1356 if test "$ac_init_help" = "long"; then
1357 # Omit some internal or obsolete options to make the list less imposing.
1358 # This message is too long to be a string in the A/UX 3.1 sh.
1359 cat <<_ACEOF
1360 \`configure' configures xwininfo 1.1.6 to adapt to many kinds of systems.
1361
1362 Usage: $0 [OPTION]... [VAR=VALUE]...
1363
1364 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365 VAR=VALUE. See below for descriptions of some of the useful variables.
1366
1367 Defaults for the options are specified in brackets.
1368
1369 Configuration:
1370 -h, --help display this help and exit
1371 --help=short display options specific to this package
1372 --help=recursive display the short help of all the included packages
1373 -V, --version display version information and exit
1374 -q, --quiet, --silent do not print \`checking ...' messages
1375 --cache-file=FILE cache test results in FILE [disabled]
1376 -C, --config-cache alias for \`--cache-file=config.cache'
1377 -n, --no-create do not create output files
1378 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1379
1380 Installation directories:
1381 --prefix=PREFIX install architecture-independent files in PREFIX
1382 [$ac_default_prefix]
1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1384 [PREFIX]
1385
1386 By default, \`make install' will install all the files in
1387 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1388 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389 for instance \`--prefix=\$HOME'.
1390
1391 For better control, use the options below.
1392
1393 Fine tuning of the installation directories:
1394 --bindir=DIR user executables [EPREFIX/bin]
1395 --sbindir=DIR system admin executables [EPREFIX/sbin]
1396 --libexecdir=DIR program executables [EPREFIX/libexec]
1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1400 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1401 --libdir=DIR object code libraries [EPREFIX/lib]
1402 --includedir=DIR C header files [PREFIX/include]
1403 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1404 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1405 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1406 --infodir=DIR info documentation [DATAROOTDIR/info]
1407 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1408 --mandir=DIR man documentation [DATAROOTDIR/man]
1409 --docdir=DIR documentation root [DATAROOTDIR/doc/xwininfo]
1410 --htmldir=DIR html documentation [DOCDIR]
1411 --dvidir=DIR dvi documentation [DOCDIR]
1412 --pdfdir=DIR pdf documentation [DOCDIR]
1413 --psdir=DIR ps documentation [DOCDIR]
1414 _ACEOF
1415
1416 cat <<\_ACEOF
1417
1418 Program names:
1419 --program-prefix=PREFIX prepend PREFIX to installed program names
1420 --program-suffix=SUFFIX append SUFFIX to installed program names
1421 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1422
1423 System types:
1424 --build=BUILD configure for building on BUILD [guessed]
1425 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1426 _ACEOF
1427 fi
1428
1429 if test -n "$ac_init_help"; then
1430 case $ac_init_help in
1431 short | recursive ) echo "Configuration of xwininfo 1.1.6:";;
1432 esac
1433 cat <<\_ACEOF
1434
1435 Optional Features:
1436 --disable-option-checking ignore unrecognized --enable/--with options
1437 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1438 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1439 --enable-dependency-tracking
1440 do not reject slow dependency extractors
1441 --disable-dependency-tracking
1442 speeds up one-time build
1443 --enable-silent-rules less verbose build output (undo: "make V=1")
1444 --disable-silent-rules verbose build output (undo: "make V=0")
1445 --disable-rpath do not hardcode runtime library paths
1446 --disable-selective-werror
1447 Turn off selective compiler errors. (default:
1448 enabled)
1449 --enable-strict-compilation
1450 Enable all warnings from compiler and make them
1451 errors (default: disabled)
1452
1453 Optional Packages:
1454 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1455 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1456 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1457 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1458 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1459 --with-xcb-icccm use xcb-icccm (default: no)
1460 --with-xcb-errors use xcb-errors (default: no)
1461
1462 Some influential environment variables:
1463 CC C compiler command
1464 CFLAGS C compiler flags
1465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1466 nonstandard directory <lib dir>
1467 LIBS libraries to pass to the linker, e.g. -l<library>
1468 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1469 you have headers in a nonstandard directory <include dir>
1470 CPP C preprocessor
1471 PKG_CONFIG path to pkg-config utility
1472 PKG_CONFIG_PATH
1473 directories to add to pkg-config's search path
1474 PKG_CONFIG_LIBDIR
1475 path overriding pkg-config's built-in search path
1476 XWININFO_CFLAGS
1477 C compiler flags for XWININFO, overriding pkg-config
1478 XWININFO_LIBS
1479 linker flags for XWININFO, overriding pkg-config
1480 XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config
1481 XLIB_LIBS linker flags for XLIB, overriding pkg-config
1482
1483 Use these variables to override the choices made by `configure' or to help
1484 it to find libraries and programs with nonstandard names/locations.
1485
1486 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xwininfo/-/issues>.
1487 _ACEOF
1488 ac_status=$?
1489 fi
1490
1491 if test "$ac_init_help" = "recursive"; then
1492 # If there are subdirs, report their specific --help.
1493 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1494 test -d "$ac_dir" ||
1495 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1496 continue
1497 ac_builddir=.
1498
1499 case "$ac_dir" in
1500 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 *)
1502 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1503 # A ".." for each directory in $ac_dir_suffix.
1504 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1505 case $ac_top_builddir_sub in
1506 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1508 esac ;;
1509 esac
1510 ac_abs_top_builddir=$ac_pwd
1511 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512 # for backward compatibility:
1513 ac_top_builddir=$ac_top_build_prefix
1514
1515 case $srcdir in
1516 .) # We are building in place.
1517 ac_srcdir=.
1518 ac_top_srcdir=$ac_top_builddir_sub
1519 ac_abs_top_srcdir=$ac_pwd ;;
1520 [\\/]* | ?:[\\/]* ) # Absolute name.
1521 ac_srcdir=$srcdir$ac_dir_suffix;
1522 ac_top_srcdir=$srcdir
1523 ac_abs_top_srcdir=$srcdir ;;
1524 *) # Relative name.
1525 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526 ac_top_srcdir=$ac_top_build_prefix$srcdir
1527 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1528 esac
1529 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530
1531 cd "$ac_dir" || { ac_status=$?; continue; }
1532 # Check for configure.gnu first; this name is used for a wrapper for
1533 # Metaconfig's "Configure" on case-insensitive file systems.
1534 if test -f "$ac_srcdir/configure.gnu"; then
1535 echo &&
1536 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1537 elif test -f "$ac_srcdir/configure"; then
1538 echo &&
1539 $SHELL "$ac_srcdir/configure" --help=recursive
1540 else
1541 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1542 fi || ac_status=$?
1543 cd "$ac_pwd" || { ac_status=$?; break; }
1544 done
1545 fi
1546
1547 test -n "$ac_init_help" && exit $ac_status
1548 if $ac_init_version; then
1549 cat <<\_ACEOF
1550 xwininfo configure 1.1.6
1551 generated by GNU Autoconf 2.71
1552
1553 Copyright (C) 2021 Free Software Foundation, Inc.
1554 This configure script is free software; the Free Software Foundation
1555 gives unlimited permission to copy, distribute and modify it.
1556 _ACEOF
1557 exit
1558 fi
1559
1560 ## ------------------------ ##
1561 ## Autoconf initialization. ##
1562 ## ------------------------ ##
1563
1564 # ac_fn_c_try_compile LINENO
1565 # --------------------------
1566 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1567 ac_fn_c_try_compile ()
1568 {
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 rm -f conftest.$ac_objext conftest.beam
1571 if { { ac_try="$ac_compile"
1572 case "(($ac_try" in
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1575 esac
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 printf "%s\n" "$ac_try_echo"; } >&5
1578 (eval "$ac_compile") 2>conftest.err
1579 ac_status=$?
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1584 fi
1585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } && {
1587 test -z "$ac_c_werror_flag" ||
1588 test ! -s conftest.err
1589 } && test -s conftest.$ac_objext
1590 then :
1591 ac_retval=0
1592 else $as_nop
1593 printf "%s\n" "$as_me: failed program was:" >&5
1594 sed 's/^/| /' conftest.$ac_ext >&5
1595
1596 ac_retval=1
1597 fi
1598 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1599 as_fn_set_status $ac_retval
1600
1601 } # ac_fn_c_try_compile
1602
1603 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1604 # -------------------------------------------------------
1605 # Tests whether HEADER exists and can be compiled using the include files in
1606 # INCLUDES, setting the cache variable VAR accordingly.
1607 ac_fn_c_check_header_compile ()
1608 {
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1611 printf %s "checking for $2... " >&6; }
1612 if eval test \${$3+y}
1613 then :
1614 printf %s "(cached) " >&6
1615 else $as_nop
1616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1617 /* end confdefs.h. */
1618 $4
1619 #include <$2>
1620 _ACEOF
1621 if ac_fn_c_try_compile "$LINENO"
1622 then :
1623 eval "$3=yes"
1624 else $as_nop
1625 eval "$3=no"
1626 fi
1627 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1628 fi
1629 eval ac_res=\$$3
1630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1631 printf "%s\n" "$ac_res" >&6; }
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633
1634 } # ac_fn_c_check_header_compile
1635
1636 # ac_fn_c_try_cpp LINENO
1637 # ----------------------
1638 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_c_try_cpp ()
1640 {
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 if { { ac_try="$ac_cpp conftest.$ac_ext"
1643 case "(($ac_try" in
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1646 esac
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 printf "%s\n" "$ac_try_echo"; } >&5
1649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1650 ac_status=$?
1651 if test -s conftest.err; then
1652 grep -v '^ *+' conftest.err >conftest.er1
1653 cat conftest.er1 >&5
1654 mv -f conftest.er1 conftest.err
1655 fi
1656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } > conftest.i && {
1658 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1659 test ! -s conftest.err
1660 }
1661 then :
1662 ac_retval=0
1663 else $as_nop
1664 printf "%s\n" "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1666
1667 ac_retval=1
1668 fi
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670 as_fn_set_status $ac_retval
1671
1672 } # ac_fn_c_try_cpp
1673
1674 # ac_fn_c_try_link LINENO
1675 # -----------------------
1676 # Try to link conftest.$ac_ext, and return whether this succeeded.
1677 ac_fn_c_try_link ()
1678 {
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1681 if { { ac_try="$ac_link"
1682 case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 printf "%s\n" "$ac_try_echo"; } >&5
1688 (eval "$ac_link") 2>conftest.err
1689 ac_status=$?
1690 if test -s conftest.err; then
1691 grep -v '^ *+' conftest.err >conftest.er1
1692 cat conftest.er1 >&5
1693 mv -f conftest.er1 conftest.err
1694 fi
1695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } && {
1697 test -z "$ac_c_werror_flag" ||
1698 test ! -s conftest.err
1699 } && test -s conftest$ac_exeext && {
1700 test "$cross_compiling" = yes ||
1701 test -x conftest$ac_exeext
1702 }
1703 then :
1704 ac_retval=0
1705 else $as_nop
1706 printf "%s\n" "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1708
1709 ac_retval=1
1710 fi
1711 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1712 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1713 # interfere with the next link command; also delete a directory that is
1714 # left behind by Apple's compiler. We do this before executing the actions.
1715 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717 as_fn_set_status $ac_retval
1718
1719 } # ac_fn_c_try_link
1720
1721 # ac_fn_c_try_run LINENO
1722 # ----------------------
1723 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1724 # executables *can* be run.
1725 ac_fn_c_try_run ()
1726 {
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 if { { ac_try="$ac_link"
1729 case "(($ac_try" in
1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731 *) ac_try_echo=$ac_try;;
1732 esac
1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 printf "%s\n" "$ac_try_echo"; } >&5
1735 (eval "$ac_link") 2>&5
1736 ac_status=$?
1737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1739 { { case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 printf "%s\n" "$ac_try_echo"; } >&5
1745 (eval "$ac_try") 2>&5
1746 ac_status=$?
1747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; }; }
1749 then :
1750 ac_retval=0
1751 else $as_nop
1752 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1753 printf "%s\n" "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1755
1756 ac_retval=$ac_status
1757 fi
1758 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760 as_fn_set_status $ac_retval
1761
1762 } # ac_fn_c_try_run
1763
1764 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1765 # ------------------------------------------------------------------
1766 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1767 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1768 ac_fn_check_decl ()
1769 {
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 as_decl_name=`echo $2|sed 's/ *(.*//'`
1772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1773 printf %s "checking whether $as_decl_name is declared... " >&6; }
1774 if eval test \${$3+y}
1775 then :
1776 printf %s "(cached) " >&6
1777 else $as_nop
1778 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1779 eval ac_save_FLAGS=\$$6
1780 as_fn_append $6 " $5"
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h. */
1783 $4
1784 int
1785 main (void)
1786 {
1787 #ifndef $as_decl_name
1788 #ifdef __cplusplus
1789 (void) $as_decl_use;
1790 #else
1791 (void) $as_decl_name;
1792 #endif
1793 #endif
1794
1795 ;
1796 return 0;
1797 }
1798 _ACEOF
1799 if ac_fn_c_try_compile "$LINENO"
1800 then :
1801 eval "$3=yes"
1802 else $as_nop
1803 eval "$3=no"
1804 fi
1805 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1806 eval $6=\$ac_save_FLAGS
1807
1808 fi
1809 eval ac_res=\$$3
1810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 printf "%s\n" "$ac_res" >&6; }
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813
1814 } # ac_fn_check_decl
1815
1816 # ac_fn_c_check_func LINENO FUNC VAR
1817 # ----------------------------------
1818 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1819 ac_fn_c_check_func ()
1820 {
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823 printf %s "checking for $2... " >&6; }
1824 if eval test \${$3+y}
1825 then :
1826 printf %s "(cached) " >&6
1827 else $as_nop
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h. */
1830 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1832 #define $2 innocuous_$2
1833
1834 /* System header to define __stub macros and hopefully few prototypes,
1835 which can conflict with char $2 (); below. */
1836
1837 #include <limits.h>
1838 #undef $2
1839
1840 /* Override any GCC internal prototype to avoid an error.
1841 Use char because int might match the return type of a GCC
1842 builtin and then its argument prototype would still apply. */
1843 #ifdef __cplusplus
1844 extern "C"
1845 #endif
1846 char $2 ();
1847 /* The GNU C library defines this for functions which it implements
1848 to always fail with ENOSYS. Some functions are actually named
1849 something starting with __ and the normal name is an alias. */
1850 #if defined __stub_$2 || defined __stub___$2
1851 choke me
1852 #endif
1853
1854 int
1855 main (void)
1856 {
1857 return $2 ();
1858 ;
1859 return 0;
1860 }
1861 _ACEOF
1862 if ac_fn_c_try_link "$LINENO"
1863 then :
1864 eval "$3=yes"
1865 else $as_nop
1866 eval "$3=no"
1867 fi
1868 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1869 conftest$ac_exeext conftest.$ac_ext
1870 fi
1871 eval ac_res=\$$3
1872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873 printf "%s\n" "$ac_res" >&6; }
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875
1876 } # ac_fn_c_check_func
1877 ac_configure_args_raw=
1878 for ac_arg
1879 do
1880 case $ac_arg in
1881 *\'*)
1882 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1883 esac
1884 as_fn_append ac_configure_args_raw " '$ac_arg'"
1885 done
1886
1887 case $ac_configure_args_raw in
1888 *$as_nl*)
1889 ac_safe_unquote= ;;
1890 *)
1891 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1892 ac_unsafe_a="$ac_unsafe_z#~"
1893 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1894 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1895 esac
1896
1897 cat >config.log <<_ACEOF
1898 This file contains any messages produced by compilers while
1899 running configure, to aid debugging if configure makes a mistake.
1900
1901 It was created by xwininfo $as_me 1.1.6, which was
1902 generated by GNU Autoconf 2.71. Invocation command line was
1903
1904 $ $0$ac_configure_args_raw
1905
1906 _ACEOF
1907 exec 5>>config.log
1908 {
1909 cat <<_ASUNAME
1910 ## --------- ##
1911 ## Platform. ##
1912 ## --------- ##
1913
1914 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1915 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1916 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1917 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1918 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1919
1920 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1921 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1922
1923 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1924 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1925 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1926 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1927 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1928 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1929 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1930
1931 _ASUNAME
1932
1933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934 for as_dir in $PATH
1935 do
1936 IFS=$as_save_IFS
1937 case $as_dir in #(((
1938 '') as_dir=./ ;;
1939 */) ;;
1940 *) as_dir=$as_dir/ ;;
1941 esac
1942 printf "%s\n" "PATH: $as_dir"
1943 done
1944 IFS=$as_save_IFS
1945
1946 } >&5
1947
1948 cat >&5 <<_ACEOF
1949
1950
1951 ## ----------- ##
1952 ## Core tests. ##
1953 ## ----------- ##
1954
1955 _ACEOF
1956
1957
1958 # Keep a trace of the command line.
1959 # Strip out --no-create and --no-recursion so they do not pile up.
1960 # Strip out --silent because we don't want to record it for future runs.
1961 # Also quote any args containing shell meta-characters.
1962 # Make two passes to allow for proper duplicate-argument suppression.
1963 ac_configure_args=
1964 ac_configure_args0=
1965 ac_configure_args1=
1966 ac_must_keep_next=false
1967 for ac_pass in 1 2
1968 do
1969 for ac_arg
1970 do
1971 case $ac_arg in
1972 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1973 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1974 | -silent | --silent | --silen | --sile | --sil)
1975 continue ;;
1976 *\'*)
1977 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1978 esac
1979 case $ac_pass in
1980 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1981 2)
1982 as_fn_append ac_configure_args1 " '$ac_arg'"
1983 if test $ac_must_keep_next = true; then
1984 ac_must_keep_next=false # Got value, back to normal.
1985 else
1986 case $ac_arg in
1987 *=* | --config-cache | -C | -disable-* | --disable-* \
1988 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1989 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1990 | -with-* | --with-* | -without-* | --without-* | --x)
1991 case "$ac_configure_args0 " in
1992 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1993 esac
1994 ;;
1995 -* ) ac_must_keep_next=true ;;
1996 esac
1997 fi
1998 as_fn_append ac_configure_args " '$ac_arg'"
1999 ;;
2000 esac
2001 done
2002 done
2003 { ac_configure_args0=; unset ac_configure_args0;}
2004 { ac_configure_args1=; unset ac_configure_args1;}
2005
2006 # When interrupted or exit'd, cleanup temporary files, and complete
2007 # config.log. We remove comments because anyway the quotes in there
2008 # would cause problems or look ugly.
2009 # WARNING: Use '\'' to represent an apostrophe within the trap.
2010 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2011 trap 'exit_status=$?
2012 # Sanitize IFS.
2013 IFS=" "" $as_nl"
2014 # Save into config.log some information that might help in debugging.
2015 {
2016 echo
2017
2018 printf "%s\n" "## ---------------- ##
2019 ## Cache variables. ##
2020 ## ---------------- ##"
2021 echo
2022 # The following way of writing the cache mishandles newlines in values,
2023 (
2024 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2025 eval ac_val=\$$ac_var
2026 case $ac_val in #(
2027 *${as_nl}*)
2028 case $ac_var in #(
2029 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2030 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2031 esac
2032 case $ac_var in #(
2033 _ | IFS | as_nl) ;; #(
2034 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2035 *) { eval $ac_var=; unset $ac_var;} ;;
2036 esac ;;
2037 esac
2038 done
2039 (set) 2>&1 |
2040 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2041 *${as_nl}ac_space=\ *)
2042 sed -n \
2043 "s/'\''/'\''\\\\'\'''\''/g;
2044 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2045 ;; #(
2046 *)
2047 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2048 ;;
2049 esac |
2050 sort
2051 )
2052 echo
2053
2054 printf "%s\n" "## ----------------- ##
2055 ## Output variables. ##
2056 ## ----------------- ##"
2057 echo
2058 for ac_var in $ac_subst_vars
2059 do
2060 eval ac_val=\$$ac_var
2061 case $ac_val in
2062 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2063 esac
2064 printf "%s\n" "$ac_var='\''$ac_val'\''"
2065 done | sort
2066 echo
2067
2068 if test -n "$ac_subst_files"; then
2069 printf "%s\n" "## ------------------- ##
2070 ## File substitutions. ##
2071 ## ------------------- ##"
2072 echo
2073 for ac_var in $ac_subst_files
2074 do
2075 eval ac_val=\$$ac_var
2076 case $ac_val in
2077 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2078 esac
2079 printf "%s\n" "$ac_var='\''$ac_val'\''"
2080 done | sort
2081 echo
2082 fi
2083
2084 if test -s confdefs.h; then
2085 printf "%s\n" "## ----------- ##
2086 ## confdefs.h. ##
2087 ## ----------- ##"
2088 echo
2089 cat confdefs.h
2090 echo
2091 fi
2092 test "$ac_signal" != 0 &&
2093 printf "%s\n" "$as_me: caught signal $ac_signal"
2094 printf "%s\n" "$as_me: exit $exit_status"
2095 } >&5
2096 rm -f core *.core core.conftest.* &&
2097 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2098 exit $exit_status
2099 ' 0
2100 for ac_signal in 1 2 13 15; do
2101 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2102 done
2103 ac_signal=0
2104
2105 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2106 rm -f -r conftest* confdefs.h
2107
2108 printf "%s\n" "/* confdefs.h */" > confdefs.h
2109
2110 # Predefined preprocessor variables.
2111
2112 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2113
2114 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2115
2116 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2117
2118 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2119
2120 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2121
2122 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2123
2124
2125 # Let the site file select an alternate cache file if it wants to.
2126 # Prefer an explicitly selected file to automatically selected ones.
2127 if test -n "$CONFIG_SITE"; then
2128 ac_site_files="$CONFIG_SITE"
2129 elif test "x$prefix" != xNONE; then
2130 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2131 else
2132 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2133 fi
2134
2135 for ac_site_file in $ac_site_files
2136 do
2137 case $ac_site_file in #(
2138 */*) :
2139 ;; #(
2140 *) :
2141 ac_site_file=./$ac_site_file ;;
2142 esac
2143 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2145 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2146 sed 's/^/| /' "$ac_site_file" >&5
2147 . "$ac_site_file" \
2148 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2149 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2150 as_fn_error $? "failed to load site script $ac_site_file
2151 See \`config.log' for more details" "$LINENO" 5; }
2152 fi
2153 done
2154
2155 if test -r "$cache_file"; then
2156 # Some versions of bash will fail to source /dev/null (special files
2157 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2158 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2160 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2161 case $cache_file in
2162 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2163 *) . "./$cache_file";;
2164 esac
2165 fi
2166 else
2167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2168 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2169 >$cache_file
2170 fi
2171
2172 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2173 # Test code for whether the C compiler supports C89 (global declarations)
2174 ac_c_conftest_c89_globals='
2175 /* Does the compiler advertise C89 conformance?
2176 Do not test the value of __STDC__, because some compilers set it to 0
2177 while being otherwise adequately conformant. */
2178 #if !defined __STDC__
2179 # error "Compiler does not advertise C89 conformance"
2180 #endif
2181
2182 #include <stddef.h>
2183 #include <stdarg.h>
2184 struct stat;
2185 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2186 struct buf { int x; };
2187 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2188 static char *e (p, i)
2189 char **p;
2190 int i;
2191 {
2192 return p[i];
2193 }
2194 static char *f (char * (*g) (char **, int), char **p, ...)
2195 {
2196 char *s;
2197 va_list v;
2198 va_start (v,p);
2199 s = g (p, va_arg (v,int));
2200 va_end (v);
2201 return s;
2202 }
2203
2204 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2205 function prototypes and stuff, but not \xHH hex character constants.
2206 These do not provoke an error unfortunately, instead are silently treated
2207 as an "x". The following induces an error, until -std is added to get
2208 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2209 array size at least. It is necessary to write \x00 == 0 to get something
2210 that is true only with -std. */
2211 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2212
2213 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2214 inside strings and character constants. */
2215 #define FOO(x) '\''x'\''
2216 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2217
2218 int test (int i, double x);
2219 struct s1 {int (*f) (int a);};
2220 struct s2 {int (*f) (double a);};
2221 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2222 int, int);'
2223
2224 # Test code for whether the C compiler supports C89 (body of main).
2225 ac_c_conftest_c89_main='
2226 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2227 '
2228
2229 # Test code for whether the C compiler supports C99 (global declarations)
2230 ac_c_conftest_c99_globals='
2231 // Does the compiler advertise C99 conformance?
2232 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2233 # error "Compiler does not advertise C99 conformance"
2234 #endif
2235
2236 #include <stdbool.h>
2237 extern int puts (const char *);
2238 extern int printf (const char *, ...);
2239 extern int dprintf (int, const char *, ...);
2240 extern void *malloc (size_t);
2241
2242 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2243 // dprintf is used instead of fprintf to avoid needing to declare
2244 // FILE and stderr.
2245 #define debug(...) dprintf (2, __VA_ARGS__)
2246 #define showlist(...) puts (#__VA_ARGS__)
2247 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2248 static void
2249 test_varargs_macros (void)
2250 {
2251 int x = 1234;
2252 int y = 5678;
2253 debug ("Flag");
2254 debug ("X = %d\n", x);
2255 showlist (The first, second, and third items.);
2256 report (x>y, "x is %d but y is %d", x, y);
2257 }
2258
2259 // Check long long types.
2260 #define BIG64 18446744073709551615ull
2261 #define BIG32 4294967295ul
2262 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2263 #if !BIG_OK
2264 #error "your preprocessor is broken"
2265 #endif
2266 #if BIG_OK
2267 #else
2268 #error "your preprocessor is broken"
2269 #endif
2270 static long long int bignum = -9223372036854775807LL;
2271 static unsigned long long int ubignum = BIG64;
2272
2273 struct incomplete_array
2274 {
2275 int datasize;
2276 double data[];
2277 };
2278
2279 struct named_init {
2280 int number;
2281 const wchar_t *name;
2282 double average;
2283 };
2284
2285 typedef const char *ccp;
2286
2287 static inline int
2288 test_restrict (ccp restrict text)
2289 {
2290 // See if C++-style comments work.
2291 // Iterate through items via the restricted pointer.
2292 // Also check for declarations in for loops.
2293 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2294 continue;
2295 return 0;
2296 }
2297
2298 // Check varargs and va_copy.
2299 static bool
2300 test_varargs (const char *format, ...)
2301 {
2302 va_list args;
2303 va_start (args, format);
2304 va_list args_copy;
2305 va_copy (args_copy, args);
2306
2307 const char *str = "";
2308 int number = 0;
2309 float fnumber = 0;
2310
2311 while (*format)
2312 {
2313 switch (*format++)
2314 {
2315 case '\''s'\'': // string
2316 str = va_arg (args_copy, const char *);
2317 break;
2318 case '\''d'\'': // int
2319 number = va_arg (args_copy, int);
2320 break;
2321 case '\''f'\'': // float
2322 fnumber = va_arg (args_copy, double);
2323 break;
2324 default:
2325 break;
2326 }
2327 }
2328 va_end (args_copy);
2329 va_end (args);
2330
2331 return *str && number && fnumber;
2332 }
2333 '
2334
2335 # Test code for whether the C compiler supports C99 (body of main).
2336 ac_c_conftest_c99_main='
2337 // Check bool.
2338 _Bool success = false;
2339 success |= (argc != 0);
2340
2341 // Check restrict.
2342 if (test_restrict ("String literal") == 0)
2343 success = true;
2344 char *restrict newvar = "Another string";
2345
2346 // Check varargs.
2347 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2348 test_varargs_macros ();
2349
2350 // Check flexible array members.
2351 struct incomplete_array *ia =
2352 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2353 ia->datasize = 10;
2354 for (int i = 0; i < ia->datasize; ++i)
2355 ia->data[i] = i * 1.234;
2356
2357 // Check named initializers.
2358 struct named_init ni = {
2359 .number = 34,
2360 .name = L"Test wide string",
2361 .average = 543.34343,
2362 };
2363
2364 ni.number = 58;
2365
2366 int dynamic_array[ni.number];
2367 dynamic_array[0] = argv[0][0];
2368 dynamic_array[ni.number - 1] = 543;
2369
2370 // work around unused variable warnings
2371 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2372 || dynamic_array[ni.number - 1] != 543);
2373 '
2374
2375 # Test code for whether the C compiler supports C11 (global declarations)
2376 ac_c_conftest_c11_globals='
2377 // Does the compiler advertise C11 conformance?
2378 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2379 # error "Compiler does not advertise C11 conformance"
2380 #endif
2381
2382 // Check _Alignas.
2383 char _Alignas (double) aligned_as_double;
2384 char _Alignas (0) no_special_alignment;
2385 extern char aligned_as_int;
2386 char _Alignas (0) _Alignas (int) aligned_as_int;
2387
2388 // Check _Alignof.
2389 enum
2390 {
2391 int_alignment = _Alignof (int),
2392 int_array_alignment = _Alignof (int[100]),
2393 char_alignment = _Alignof (char)
2394 };
2395 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2396
2397 // Check _Noreturn.
2398 int _Noreturn does_not_return (void) { for (;;) continue; }
2399
2400 // Check _Static_assert.
2401 struct test_static_assert
2402 {
2403 int x;
2404 _Static_assert (sizeof (int) <= sizeof (long int),
2405 "_Static_assert does not work in struct");
2406 long int y;
2407 };
2408
2409 // Check UTF-8 literals.
2410 #define u8 syntax error!
2411 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2412
2413 // Check duplicate typedefs.
2414 typedef long *long_ptr;
2415 typedef long int *long_ptr;
2416 typedef long_ptr long_ptr;
2417
2418 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2419 struct anonymous
2420 {
2421 union {
2422 struct { int i; int j; };
2423 struct { int k; long int l; } w;
2424 };
2425 int m;
2426 } v1;
2427 '
2428
2429 # Test code for whether the C compiler supports C11 (body of main).
2430 ac_c_conftest_c11_main='
2431 _Static_assert ((offsetof (struct anonymous, i)
2432 == offsetof (struct anonymous, w.k)),
2433 "Anonymous union alignment botch");
2434 v1.i = 2;
2435 v1.w.k = 5;
2436 ok |= v1.i != 5;
2437 '
2438
2439 # Test code for whether the C compiler supports C11 (complete).
2440 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2441 ${ac_c_conftest_c99_globals}
2442 ${ac_c_conftest_c11_globals}
2443
2444 int
2445 main (int argc, char **argv)
2446 {
2447 int ok = 0;
2448 ${ac_c_conftest_c89_main}
2449 ${ac_c_conftest_c99_main}
2450 ${ac_c_conftest_c11_main}
2451 return ok;
2452 }
2453 "
2454
2455 # Test code for whether the C compiler supports C99 (complete).
2456 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2457 ${ac_c_conftest_c99_globals}
2458
2459 int
2460 main (int argc, char **argv)
2461 {
2462 int ok = 0;
2463 ${ac_c_conftest_c89_main}
2464 ${ac_c_conftest_c99_main}
2465 return ok;
2466 }
2467 "
2468
2469 # Test code for whether the C compiler supports C89 (complete).
2470 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2471
2472 int
2473 main (int argc, char **argv)
2474 {
2475 int ok = 0;
2476 ${ac_c_conftest_c89_main}
2477 return ok;
2478 }
2479 "
2480
2481 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2482 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2483 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2484 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2485 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2486 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2487 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2488 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2489 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2490 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2491
2492 # Auxiliary files required by this configure script.
2493 ac_aux_files="config.rpath config.guess config.sub missing install-sh compile"
2494
2495 # Locations in which to look for auxiliary files.
2496 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2497
2498 # Search for a directory containing all of the required auxiliary files,
2499 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2500 # If we don't find one directory that contains all the files we need,
2501 # we report the set of missing files from the *first* directory in
2502 # $ac_aux_dir_candidates and give up.
2503 ac_missing_aux_files=""
2504 ac_first_candidate=:
2505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 as_found=false
2508 for as_dir in $ac_aux_dir_candidates
2509 do
2510 IFS=$as_save_IFS
2511 case $as_dir in #(((
2512 '') as_dir=./ ;;
2513 */) ;;
2514 *) as_dir=$as_dir/ ;;
2515 esac
2516 as_found=:
2517
2518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2519 ac_aux_dir_found=yes
2520 ac_install_sh=
2521 for ac_aux in $ac_aux_files
2522 do
2523 # As a special case, if "install-sh" is required, that requirement
2524 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2525 # and $ac_install_sh is set appropriately for whichever one is found.
2526 if test x"$ac_aux" = x"install-sh"
2527 then
2528 if test -f "${as_dir}install-sh"; then
2529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2530 ac_install_sh="${as_dir}install-sh -c"
2531 elif test -f "${as_dir}install.sh"; then
2532 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2533 ac_install_sh="${as_dir}install.sh -c"
2534 elif test -f "${as_dir}shtool"; then
2535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2536 ac_install_sh="${as_dir}shtool install -c"
2537 else
2538 ac_aux_dir_found=no
2539 if $ac_first_candidate; then
2540 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2541 else
2542 break
2543 fi
2544 fi
2545 else
2546 if test -f "${as_dir}${ac_aux}"; then
2547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2548 else
2549 ac_aux_dir_found=no
2550 if $ac_first_candidate; then
2551 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2552 else
2553 break
2554 fi
2555 fi
2556 fi
2557 done
2558 if test "$ac_aux_dir_found" = yes; then
2559 ac_aux_dir="$as_dir"
2560 break
2561 fi
2562 ac_first_candidate=false
2563
2564 as_found=false
2565 done
2566 IFS=$as_save_IFS
2567 if $as_found
2568 then :
2569
2570 else $as_nop
2571 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2572 fi
2573
2574
2575 # These three variables are undocumented and unsupported,
2576 # and are intended to be withdrawn in a future Autoconf release.
2577 # They can cause serious problems if a builder's source tree is in a directory
2578 # whose full name contains unusual characters.
2579 if test -f "${ac_aux_dir}config.guess"; then
2580 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2581 fi
2582 if test -f "${ac_aux_dir}config.sub"; then
2583 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2584 fi
2585 if test -f "$ac_aux_dir/configure"; then
2586 ac_configure="$SHELL ${ac_aux_dir}configure"
2587 fi
2588
2589 # Check that the precious variables saved in the cache have kept the same
2590 # value.
2591 ac_cache_corrupted=false
2592 for ac_var in $ac_precious_vars; do
2593 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2594 eval ac_new_set=\$ac_env_${ac_var}_set
2595 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2596 eval ac_new_val=\$ac_env_${ac_var}_value
2597 case $ac_old_set,$ac_new_set in
2598 set,)
2599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2600 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2601 ac_cache_corrupted=: ;;
2602 ,set)
2603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2604 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2605 ac_cache_corrupted=: ;;
2606 ,);;
2607 *)
2608 if test "x$ac_old_val" != "x$ac_new_val"; then
2609 # differences in whitespace do not lead to failure.
2610 ac_old_val_w=`echo x $ac_old_val`
2611 ac_new_val_w=`echo x $ac_new_val`
2612 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2614 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2615 ac_cache_corrupted=:
2616 else
2617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2618 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2619 eval $ac_var=\$ac_old_val
2620 fi
2621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2622 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2624 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2625 fi;;
2626 esac
2627 # Pass precious variables to config.status.
2628 if test "$ac_new_set" = set; then
2629 case $ac_new_val in
2630 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2631 *) ac_arg=$ac_var=$ac_new_val ;;
2632 esac
2633 case " $ac_configure_args " in
2634 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2635 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2636 esac
2637 fi
2638 done
2639 if $ac_cache_corrupted; then
2640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2641 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2643 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2644 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2645 and start over" "$LINENO" 5
2646 fi
2647 ## -------------------- ##
2648 ## Main body of script. ##
2649 ## -------------------- ##
2650
2651 ac_ext=c
2652 ac_cpp='$CPP $CPPFLAGS'
2653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2656
2657
2658
2659 ac_config_headers="$ac_config_headers config.h"
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672 # Expand $ac_aux_dir to an absolute path.
2673 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2674
2675 ac_ext=c
2676 ac_cpp='$CPP $CPPFLAGS'
2677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2680 if test -n "$ac_tool_prefix"; then
2681 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2682 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2684 printf %s "checking for $ac_word... " >&6; }
2685 if test ${ac_cv_prog_CC+y}
2686 then :
2687 printf %s "(cached) " >&6
2688 else $as_nop
2689 if test -n "$CC"; then
2690 ac_cv_prog_CC="$CC" # Let the user override the test.
2691 else
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 for as_dir in $PATH
2694 do
2695 IFS=$as_save_IFS
2696 case $as_dir in #(((
2697 '') as_dir=./ ;;
2698 */) ;;
2699 *) as_dir=$as_dir/ ;;
2700 esac
2701 for ac_exec_ext in '' $ac_executable_extensions; do
2702 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2703 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2705 break 2
2706 fi
2707 done
2708 done
2709 IFS=$as_save_IFS
2710
2711 fi
2712 fi
2713 CC=$ac_cv_prog_CC
2714 if test -n "$CC"; then
2715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2716 printf "%s\n" "$CC" >&6; }
2717 else
2718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719 printf "%s\n" "no" >&6; }
2720 fi
2721
2722
2723 fi
2724 if test -z "$ac_cv_prog_CC"; then
2725 ac_ct_CC=$CC
2726 # Extract the first word of "gcc", so it can be a program name with args.
2727 set dummy gcc; ac_word=$2
2728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729 printf %s "checking for $ac_word... " >&6; }
2730 if test ${ac_cv_prog_ac_ct_CC+y}
2731 then :
2732 printf %s "(cached) " >&6
2733 else $as_nop
2734 if test -n "$ac_ct_CC"; then
2735 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2736 else
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 for as_dir in $PATH
2739 do
2740 IFS=$as_save_IFS
2741 case $as_dir in #(((
2742 '') as_dir=./ ;;
2743 */) ;;
2744 *) as_dir=$as_dir/ ;;
2745 esac
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2748 ac_cv_prog_ac_ct_CC="gcc"
2749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2750 break 2
2751 fi
2752 done
2753 done
2754 IFS=$as_save_IFS
2755
2756 fi
2757 fi
2758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2759 if test -n "$ac_ct_CC"; then
2760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2761 printf "%s\n" "$ac_ct_CC" >&6; }
2762 else
2763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764 printf "%s\n" "no" >&6; }
2765 fi
2766
2767 if test "x$ac_ct_CC" = x; then
2768 CC=""
2769 else
2770 case $cross_compiling:$ac_tool_warned in
2771 yes:)
2772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2773 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2774 ac_tool_warned=yes ;;
2775 esac
2776 CC=$ac_ct_CC
2777 fi
2778 else
2779 CC="$ac_cv_prog_CC"
2780 fi
2781
2782 if test -z "$CC"; then
2783 if test -n "$ac_tool_prefix"; then
2784 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2785 set dummy ${ac_tool_prefix}cc; ac_word=$2
2786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2787 printf %s "checking for $ac_word... " >&6; }
2788 if test ${ac_cv_prog_CC+y}
2789 then :
2790 printf %s "(cached) " >&6
2791 else $as_nop
2792 if test -n "$CC"; then
2793 ac_cv_prog_CC="$CC" # Let the user override the test.
2794 else
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 for as_dir in $PATH
2797 do
2798 IFS=$as_save_IFS
2799 case $as_dir in #(((
2800 '') as_dir=./ ;;
2801 */) ;;
2802 *) as_dir=$as_dir/ ;;
2803 esac
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2806 ac_cv_prog_CC="${ac_tool_prefix}cc"
2807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2808 break 2
2809 fi
2810 done
2811 done
2812 IFS=$as_save_IFS
2813
2814 fi
2815 fi
2816 CC=$ac_cv_prog_CC
2817 if test -n "$CC"; then
2818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2819 printf "%s\n" "$CC" >&6; }
2820 else
2821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 printf "%s\n" "no" >&6; }
2823 fi
2824
2825
2826 fi
2827 fi
2828 if test -z "$CC"; then
2829 # Extract the first word of "cc", so it can be a program name with args.
2830 set dummy cc; ac_word=$2
2831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832 printf %s "checking for $ac_word... " >&6; }
2833 if test ${ac_cv_prog_CC+y}
2834 then :
2835 printf %s "(cached) " >&6
2836 else $as_nop
2837 if test -n "$CC"; then
2838 ac_cv_prog_CC="$CC" # Let the user override the test.
2839 else
2840 ac_prog_rejected=no
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 for as_dir in $PATH
2843 do
2844 IFS=$as_save_IFS
2845 case $as_dir in #(((
2846 '') as_dir=./ ;;
2847 */) ;;
2848 *) as_dir=$as_dir/ ;;
2849 esac
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2852 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2853 ac_prog_rejected=yes
2854 continue
2855 fi
2856 ac_cv_prog_CC="cc"
2857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2858 break 2
2859 fi
2860 done
2861 done
2862 IFS=$as_save_IFS
2863
2864 if test $ac_prog_rejected = yes; then
2865 # We found a bogon in the path, so make sure we never use it.
2866 set dummy $ac_cv_prog_CC
2867 shift
2868 if test $# != 0; then
2869 # We chose a different compiler from the bogus one.
2870 # However, it has the same basename, so the bogon will be chosen
2871 # first if we set CC to just the basename; use the full file name.
2872 shift
2873 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2874 fi
2875 fi
2876 fi
2877 fi
2878 CC=$ac_cv_prog_CC
2879 if test -n "$CC"; then
2880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2881 printf "%s\n" "$CC" >&6; }
2882 else
2883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884 printf "%s\n" "no" >&6; }
2885 fi
2886
2887
2888 fi
2889 if test -z "$CC"; then
2890 if test -n "$ac_tool_prefix"; then
2891 for ac_prog in cl.exe
2892 do
2893 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2894 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2896 printf %s "checking for $ac_word... " >&6; }
2897 if test ${ac_cv_prog_CC+y}
2898 then :
2899 printf %s "(cached) " >&6
2900 else $as_nop
2901 if test -n "$CC"; then
2902 ac_cv_prog_CC="$CC" # Let the user override the test.
2903 else
2904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 for as_dir in $PATH
2906 do
2907 IFS=$as_save_IFS
2908 case $as_dir in #(((
2909 '') as_dir=./ ;;
2910 */) ;;
2911 *) as_dir=$as_dir/ ;;
2912 esac
2913 for ac_exec_ext in '' $ac_executable_extensions; do
2914 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2915 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2917 break 2
2918 fi
2919 done
2920 done
2921 IFS=$as_save_IFS
2922
2923 fi
2924 fi
2925 CC=$ac_cv_prog_CC
2926 if test -n "$CC"; then
2927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2928 printf "%s\n" "$CC" >&6; }
2929 else
2930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931 printf "%s\n" "no" >&6; }
2932 fi
2933
2934
2935 test -n "$CC" && break
2936 done
2937 fi
2938 if test -z "$CC"; then
2939 ac_ct_CC=$CC
2940 for ac_prog in cl.exe
2941 do
2942 # Extract the first word of "$ac_prog", so it can be a program name with args.
2943 set dummy $ac_prog; ac_word=$2
2944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945 printf %s "checking for $ac_word... " >&6; }
2946 if test ${ac_cv_prog_ac_ct_CC+y}
2947 then :
2948 printf %s "(cached) " >&6
2949 else $as_nop
2950 if test -n "$ac_ct_CC"; then
2951 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2952 else
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 for as_dir in $PATH
2955 do
2956 IFS=$as_save_IFS
2957 case $as_dir in #(((
2958 '') as_dir=./ ;;
2959 */) ;;
2960 *) as_dir=$as_dir/ ;;
2961 esac
2962 for ac_exec_ext in '' $ac_executable_extensions; do
2963 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2964 ac_cv_prog_ac_ct_CC="$ac_prog"
2965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2966 break 2
2967 fi
2968 done
2969 done
2970 IFS=$as_save_IFS
2971
2972 fi
2973 fi
2974 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2975 if test -n "$ac_ct_CC"; then
2976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2977 printf "%s\n" "$ac_ct_CC" >&6; }
2978 else
2979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980 printf "%s\n" "no" >&6; }
2981 fi
2982
2983
2984 test -n "$ac_ct_CC" && break
2985 done
2986
2987 if test "x$ac_ct_CC" = x; then
2988 CC=""
2989 else
2990 case $cross_compiling:$ac_tool_warned in
2991 yes:)
2992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2993 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2994 ac_tool_warned=yes ;;
2995 esac
2996 CC=$ac_ct_CC
2997 fi
2998 fi
2999
3000 fi
3001 if test -z "$CC"; then
3002 if test -n "$ac_tool_prefix"; then
3003 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3004 set dummy ${ac_tool_prefix}clang; ac_word=$2
3005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006 printf %s "checking for $ac_word... " >&6; }
3007 if test ${ac_cv_prog_CC+y}
3008 then :
3009 printf %s "(cached) " >&6
3010 else $as_nop
3011 if test -n "$CC"; then
3012 ac_cv_prog_CC="$CC" # Let the user override the test.
3013 else
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 for as_dir in $PATH
3016 do
3017 IFS=$as_save_IFS
3018 case $as_dir in #(((
3019 '') as_dir=./ ;;
3020 */) ;;
3021 *) as_dir=$as_dir/ ;;
3022 esac
3023 for ac_exec_ext in '' $ac_executable_extensions; do
3024 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3025 ac_cv_prog_CC="${ac_tool_prefix}clang"
3026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3027 break 2
3028 fi
3029 done
3030 done
3031 IFS=$as_save_IFS
3032
3033 fi
3034 fi
3035 CC=$ac_cv_prog_CC
3036 if test -n "$CC"; then
3037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3038 printf "%s\n" "$CC" >&6; }
3039 else
3040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041 printf "%s\n" "no" >&6; }
3042 fi
3043
3044
3045 fi
3046 if test -z "$ac_cv_prog_CC"; then
3047 ac_ct_CC=$CC
3048 # Extract the first word of "clang", so it can be a program name with args.
3049 set dummy clang; ac_word=$2
3050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051 printf %s "checking for $ac_word... " >&6; }
3052 if test ${ac_cv_prog_ac_ct_CC+y}
3053 then :
3054 printf %s "(cached) " >&6
3055 else $as_nop
3056 if test -n "$ac_ct_CC"; then
3057 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3058 else
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 for as_dir in $PATH
3061 do
3062 IFS=$as_save_IFS
3063 case $as_dir in #(((
3064 '') as_dir=./ ;;
3065 */) ;;
3066 *) as_dir=$as_dir/ ;;
3067 esac
3068 for ac_exec_ext in '' $ac_executable_extensions; do
3069 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3070 ac_cv_prog_ac_ct_CC="clang"
3071 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3072 break 2
3073 fi
3074 done
3075 done
3076 IFS=$as_save_IFS
3077
3078 fi
3079 fi
3080 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3081 if test -n "$ac_ct_CC"; then
3082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3083 printf "%s\n" "$ac_ct_CC" >&6; }
3084 else
3085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086 printf "%s\n" "no" >&6; }
3087 fi
3088
3089 if test "x$ac_ct_CC" = x; then
3090 CC=""
3091 else
3092 case $cross_compiling:$ac_tool_warned in
3093 yes:)
3094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3095 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3096 ac_tool_warned=yes ;;
3097 esac
3098 CC=$ac_ct_CC
3099 fi
3100 else
3101 CC="$ac_cv_prog_CC"
3102 fi
3103
3104 fi
3105
3106
3107 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3108 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3109 as_fn_error $? "no acceptable C compiler found in \$PATH
3110 See \`config.log' for more details" "$LINENO" 5; }
3111
3112 # Provide some information about the compiler.
3113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3114 set X $ac_compile
3115 ac_compiler=$2
3116 for ac_option in --version -v -V -qversion -version; do
3117 { { ac_try="$ac_compiler $ac_option >&5"
3118 case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3121 esac
3122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3123 printf "%s\n" "$ac_try_echo"; } >&5
3124 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3125 ac_status=$?
3126 if test -s conftest.err; then
3127 sed '10a\
3128 ... rest of stderr output deleted ...
3129 10q' conftest.err >conftest.er1
3130 cat conftest.er1 >&5
3131 fi
3132 rm -f conftest.er1 conftest.err
3133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3134 test $ac_status = 0; }
3135 done
3136
3137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3138 /* end confdefs.h. */
3139
3140 int
3141 main (void)
3142 {
3143
3144 ;
3145 return 0;
3146 }
3147 _ACEOF
3148 ac_clean_files_save=$ac_clean_files
3149 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3150 # Try to create an executable without -o first, disregard a.out.
3151 # It will help us diagnose broken compilers, and finding out an intuition
3152 # of exeext.
3153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3154 printf %s "checking whether the C compiler works... " >&6; }
3155 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3156
3157 # The possible output files:
3158 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3159
3160 ac_rmfiles=
3161 for ac_file in $ac_files
3162 do
3163 case $ac_file in
3164 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3165 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3166 esac
3167 done
3168 rm -f $ac_rmfiles
3169
3170 if { { ac_try="$ac_link_default"
3171 case "(($ac_try" in
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3174 esac
3175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3176 printf "%s\n" "$ac_try_echo"; } >&5
3177 (eval "$ac_link_default") 2>&5
3178 ac_status=$?
3179 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3180 test $ac_status = 0; }
3181 then :
3182 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3183 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3184 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3185 # so that the user can short-circuit this test for compilers unknown to
3186 # Autoconf.
3187 for ac_file in $ac_files ''
3188 do
3189 test -f "$ac_file" || continue
3190 case $ac_file in
3191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3192 ;;
3193 [ab].out )
3194 # We found the default executable, but exeext='' is most
3195 # certainly right.
3196 break;;
3197 *.* )
3198 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3199 then :; else
3200 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3201 fi
3202 # We set ac_cv_exeext here because the later test for it is not
3203 # safe: cross compilers may not add the suffix if given an `-o'
3204 # argument, so we may need to know it at that point already.
3205 # Even if this section looks crufty: it has the advantage of
3206 # actually working.
3207 break;;
3208 * )
3209 break;;
3210 esac
3211 done
3212 test "$ac_cv_exeext" = no && ac_cv_exeext=
3213
3214 else $as_nop
3215 ac_file=''
3216 fi
3217 if test -z "$ac_file"
3218 then :
3219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 printf "%s\n" "no" >&6; }
3221 printf "%s\n" "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3223
3224 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3225 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3226 as_fn_error 77 "C compiler cannot create executables
3227 See \`config.log' for more details" "$LINENO" 5; }
3228 else $as_nop
3229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3230 printf "%s\n" "yes" >&6; }
3231 fi
3232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3233 printf %s "checking for C compiler default output file name... " >&6; }
3234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3235 printf "%s\n" "$ac_file" >&6; }
3236 ac_exeext=$ac_cv_exeext
3237
3238 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3239 ac_clean_files=$ac_clean_files_save
3240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3241 printf %s "checking for suffix of executables... " >&6; }
3242 if { { ac_try="$ac_link"
3243 case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3246 esac
3247 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3248 printf "%s\n" "$ac_try_echo"; } >&5
3249 (eval "$ac_link") 2>&5
3250 ac_status=$?
3251 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3252 test $ac_status = 0; }
3253 then :
3254 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3255 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3256 # work properly (i.e., refer to `conftest.exe'), while it won't with
3257 # `rm'.
3258 for ac_file in conftest.exe conftest conftest.*; do
3259 test -f "$ac_file" || continue
3260 case $ac_file in
3261 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3262 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3263 break;;
3264 * ) break;;
3265 esac
3266 done
3267 else $as_nop
3268 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3269 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3270 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3271 See \`config.log' for more details" "$LINENO" 5; }
3272 fi
3273 rm -f conftest conftest$ac_cv_exeext
3274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3275 printf "%s\n" "$ac_cv_exeext" >&6; }
3276
3277 rm -f conftest.$ac_ext
3278 EXEEXT=$ac_cv_exeext
3279 ac_exeext=$EXEEXT
3280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281 /* end confdefs.h. */
3282 #include <stdio.h>
3283 int
3284 main (void)
3285 {
3286 FILE *f = fopen ("conftest.out", "w");
3287 return ferror (f) || fclose (f) != 0;
3288
3289 ;
3290 return 0;
3291 }
3292 _ACEOF
3293 ac_clean_files="$ac_clean_files conftest.out"
3294 # Check that the compiler produces executables we can run. If not, either
3295 # the compiler is broken, or we cross compile.
3296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3297 printf %s "checking whether we are cross compiling... " >&6; }
3298 if test "$cross_compiling" != yes; then
3299 { { ac_try="$ac_link"
3300 case "(($ac_try" in
3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302 *) ac_try_echo=$ac_try;;
3303 esac
3304 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3305 printf "%s\n" "$ac_try_echo"; } >&5
3306 (eval "$ac_link") 2>&5
3307 ac_status=$?
3308 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3309 test $ac_status = 0; }
3310 if { ac_try='./conftest$ac_cv_exeext'
3311 { { case "(($ac_try" in
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3314 esac
3315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3316 printf "%s\n" "$ac_try_echo"; } >&5
3317 (eval "$ac_try") 2>&5
3318 ac_status=$?
3319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3320 test $ac_status = 0; }; }; then
3321 cross_compiling=no
3322 else
3323 if test "$cross_compiling" = maybe; then
3324 cross_compiling=yes
3325 else
3326 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3327 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3328 as_fn_error 77 "cannot run C compiled programs.
3329 If you meant to cross compile, use \`--host'.
3330 See \`config.log' for more details" "$LINENO" 5; }
3331 fi
3332 fi
3333 fi
3334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3335 printf "%s\n" "$cross_compiling" >&6; }
3336
3337 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3338 ac_clean_files=$ac_clean_files_save
3339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3340 printf %s "checking for suffix of object files... " >&6; }
3341 if test ${ac_cv_objext+y}
3342 then :
3343 printf %s "(cached) " >&6
3344 else $as_nop
3345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346 /* end confdefs.h. */
3347
3348 int
3349 main (void)
3350 {
3351
3352 ;
3353 return 0;
3354 }
3355 _ACEOF
3356 rm -f conftest.o conftest.obj
3357 if { { ac_try="$ac_compile"
3358 case "(($ac_try" in
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3361 esac
3362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3363 printf "%s\n" "$ac_try_echo"; } >&5
3364 (eval "$ac_compile") 2>&5
3365 ac_status=$?
3366 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3367 test $ac_status = 0; }
3368 then :
3369 for ac_file in conftest.o conftest.obj conftest.*; do
3370 test -f "$ac_file" || continue;
3371 case $ac_file in
3372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3373 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3374 break;;
3375 esac
3376 done
3377 else $as_nop
3378 printf "%s\n" "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3380
3381 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3382 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3383 as_fn_error $? "cannot compute suffix of object files: cannot compile
3384 See \`config.log' for more details" "$LINENO" 5; }
3385 fi
3386 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3387 fi
3388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3389 printf "%s\n" "$ac_cv_objext" >&6; }
3390 OBJEXT=$ac_cv_objext
3391 ac_objext=$OBJEXT
3392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3393 printf %s "checking whether the compiler supports GNU C... " >&6; }
3394 if test ${ac_cv_c_compiler_gnu+y}
3395 then :
3396 printf %s "(cached) " >&6
3397 else $as_nop
3398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3399 /* end confdefs.h. */
3400
3401 int
3402 main (void)
3403 {
3404 #ifndef __GNUC__
3405 choke me
3406 #endif
3407
3408 ;
3409 return 0;
3410 }
3411 _ACEOF
3412 if ac_fn_c_try_compile "$LINENO"
3413 then :
3414 ac_compiler_gnu=yes
3415 else $as_nop
3416 ac_compiler_gnu=no
3417 fi
3418 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3419 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3420
3421 fi
3422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3423 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3425
3426 if test $ac_compiler_gnu = yes; then
3427 GCC=yes
3428 else
3429 GCC=
3430 fi
3431 ac_test_CFLAGS=${CFLAGS+y}
3432 ac_save_CFLAGS=$CFLAGS
3433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3434 printf %s "checking whether $CC accepts -g... " >&6; }
3435 if test ${ac_cv_prog_cc_g+y}
3436 then :
3437 printf %s "(cached) " >&6
3438 else $as_nop
3439 ac_save_c_werror_flag=$ac_c_werror_flag
3440 ac_c_werror_flag=yes
3441 ac_cv_prog_cc_g=no
3442 CFLAGS="-g"
3443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444 /* end confdefs.h. */
3445
3446 int
3447 main (void)
3448 {
3449
3450 ;
3451 return 0;
3452 }
3453 _ACEOF
3454 if ac_fn_c_try_compile "$LINENO"
3455 then :
3456 ac_cv_prog_cc_g=yes
3457 else $as_nop
3458 CFLAGS=""
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3461
3462 int
3463 main (void)
3464 {
3465
3466 ;
3467 return 0;
3468 }
3469 _ACEOF
3470 if ac_fn_c_try_compile "$LINENO"
3471 then :
3472
3473 else $as_nop
3474 ac_c_werror_flag=$ac_save_c_werror_flag
3475 CFLAGS="-g"
3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477 /* end confdefs.h. */
3478
3479 int
3480 main (void)
3481 {
3482
3483 ;
3484 return 0;
3485 }
3486 _ACEOF
3487 if ac_fn_c_try_compile "$LINENO"
3488 then :
3489 ac_cv_prog_cc_g=yes
3490 fi
3491 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3492 fi
3493 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3494 fi
3495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3496 ac_c_werror_flag=$ac_save_c_werror_flag
3497 fi
3498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3499 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3500 if test $ac_test_CFLAGS; then
3501 CFLAGS=$ac_save_CFLAGS
3502 elif test $ac_cv_prog_cc_g = yes; then
3503 if test "$GCC" = yes; then
3504 CFLAGS="-g -O2"
3505 else
3506 CFLAGS="-g"
3507 fi
3508 else
3509 if test "$GCC" = yes; then
3510 CFLAGS="-O2"
3511 else
3512 CFLAGS=
3513 fi
3514 fi
3515 ac_prog_cc_stdc=no
3516 if test x$ac_prog_cc_stdc = xno
3517 then :
3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3519 printf %s "checking for $CC option to enable C11 features... " >&6; }
3520 if test ${ac_cv_prog_cc_c11+y}
3521 then :
3522 printf %s "(cached) " >&6
3523 else $as_nop
3524 ac_cv_prog_cc_c11=no
3525 ac_save_CC=$CC
3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527 /* end confdefs.h. */
3528 $ac_c_conftest_c11_program
3529 _ACEOF
3530 for ac_arg in '' -std=gnu11
3531 do
3532 CC="$ac_save_CC $ac_arg"
3533 if ac_fn_c_try_compile "$LINENO"
3534 then :
3535 ac_cv_prog_cc_c11=$ac_arg
3536 fi
3537 rm -f core conftest.err conftest.$ac_objext conftest.beam
3538 test "x$ac_cv_prog_cc_c11" != "xno" && break
3539 done
3540 rm -f conftest.$ac_ext
3541 CC=$ac_save_CC
3542 fi
3543
3544 if test "x$ac_cv_prog_cc_c11" = xno
3545 then :
3546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3547 printf "%s\n" "unsupported" >&6; }
3548 else $as_nop
3549 if test "x$ac_cv_prog_cc_c11" = x
3550 then :
3551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3552 printf "%s\n" "none needed" >&6; }
3553 else $as_nop
3554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3555 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3556 CC="$CC $ac_cv_prog_cc_c11"
3557 fi
3558 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3559 ac_prog_cc_stdc=c11
3560 fi
3561 fi
3562 if test x$ac_prog_cc_stdc = xno
3563 then :
3564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3565 printf %s "checking for $CC option to enable C99 features... " >&6; }
3566 if test ${ac_cv_prog_cc_c99+y}
3567 then :
3568 printf %s "(cached) " >&6
3569 else $as_nop
3570 ac_cv_prog_cc_c99=no
3571 ac_save_CC=$CC
3572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h. */
3574 $ac_c_conftest_c99_program
3575 _ACEOF
3576 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3577 do
3578 CC="$ac_save_CC $ac_arg"
3579 if ac_fn_c_try_compile "$LINENO"
3580 then :
3581 ac_cv_prog_cc_c99=$ac_arg
3582 fi
3583 rm -f core conftest.err conftest.$ac_objext conftest.beam
3584 test "x$ac_cv_prog_cc_c99" != "xno" && break
3585 done
3586 rm -f conftest.$ac_ext
3587 CC=$ac_save_CC
3588 fi
3589
3590 if test "x$ac_cv_prog_cc_c99" = xno
3591 then :
3592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3593 printf "%s\n" "unsupported" >&6; }
3594 else $as_nop
3595 if test "x$ac_cv_prog_cc_c99" = x
3596 then :
3597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3598 printf "%s\n" "none needed" >&6; }
3599 else $as_nop
3600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3601 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3602 CC="$CC $ac_cv_prog_cc_c99"
3603 fi
3604 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3605 ac_prog_cc_stdc=c99
3606 fi
3607 fi
3608 if test x$ac_prog_cc_stdc = xno
3609 then :
3610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3611 printf %s "checking for $CC option to enable C89 features... " >&6; }
3612 if test ${ac_cv_prog_cc_c89+y}
3613 then :
3614 printf %s "(cached) " >&6
3615 else $as_nop
3616 ac_cv_prog_cc_c89=no
3617 ac_save_CC=$CC
3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619 /* end confdefs.h. */
3620 $ac_c_conftest_c89_program
3621 _ACEOF
3622 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3623 do
3624 CC="$ac_save_CC $ac_arg"
3625 if ac_fn_c_try_compile "$LINENO"
3626 then :
3627 ac_cv_prog_cc_c89=$ac_arg
3628 fi
3629 rm -f core conftest.err conftest.$ac_objext conftest.beam
3630 test "x$ac_cv_prog_cc_c89" != "xno" && break
3631 done
3632 rm -f conftest.$ac_ext
3633 CC=$ac_save_CC
3634 fi
3635
3636 if test "x$ac_cv_prog_cc_c89" = xno
3637 then :
3638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3639 printf "%s\n" "unsupported" >&6; }
3640 else $as_nop
3641 if test "x$ac_cv_prog_cc_c89" = x
3642 then :
3643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3644 printf "%s\n" "none needed" >&6; }
3645 else $as_nop
3646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3647 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3648 CC="$CC $ac_cv_prog_cc_c89"
3649 fi
3650 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3651 ac_prog_cc_stdc=c89
3652 fi
3653 fi
3654
3655 ac_ext=c
3656 ac_cpp='$CPP $CPPFLAGS'
3657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3660
3661
3662 ac_ext=c
3663 ac_cpp='$CPP $CPPFLAGS'
3664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3668 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3669 if test ${am_cv_prog_cc_c_o+y}
3670 then :
3671 printf %s "(cached) " >&6
3672 else $as_nop
3673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3674 /* end confdefs.h. */
3675
3676 int
3677 main (void)
3678 {
3679
3680 ;
3681 return 0;
3682 }
3683 _ACEOF
3684 # Make sure it works both with $CC and with simple cc.
3685 # Following AC_PROG_CC_C_O, we do the test twice because some
3686 # compilers refuse to overwrite an existing .o file with -o,
3687 # though they will create one.
3688 am_cv_prog_cc_c_o=yes
3689 for am_i in 1 2; do
3690 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3691 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3692 ac_status=$?
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); } \
3695 && test -f conftest2.$ac_objext; then
3696 : OK
3697 else
3698 am_cv_prog_cc_c_o=no
3699 break
3700 fi
3701 done
3702 rm -f core conftest*
3703 unset am_i
3704 fi
3705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3706 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3707 if test "$am_cv_prog_cc_c_o" != yes; then
3708 # Losing compiler, so override with the script.
3709 # FIXME: It is wrong to rewrite CC.
3710 # But if we don't then we get into trouble of one sort or another.
3711 # A longer-term fix would be to have automake use am__CC in this case,
3712 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3713 CC="$am_aux_dir/compile $CC"
3714 fi
3715 ac_ext=c
3716 ac_cpp='$CPP $CPPFLAGS'
3717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3720
3721
3722
3723 ac_header= ac_cache=
3724 for ac_item in $ac_header_c_list
3725 do
3726 if test $ac_cache; then
3727 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3728 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3729 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3730 fi
3731 ac_header= ac_cache=
3732 elif test $ac_header; then
3733 ac_cache=$ac_item
3734 else
3735 ac_header=$ac_item
3736 fi
3737 done
3738
3739
3740
3741
3742
3743
3744
3745
3746 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3747 then :
3748
3749 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3750
3751 fi
3752
3753
3754
3755
3756
3757
3758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3759 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3760 if test ${ac_cv_safe_to_define___extensions__+y}
3761 then :
3762 printf %s "(cached) " >&6
3763 else $as_nop
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h. */
3766
3767 # define __EXTENSIONS__ 1
3768 $ac_includes_default
3769 int
3770 main (void)
3771 {
3772
3773 ;
3774 return 0;
3775 }
3776 _ACEOF
3777 if ac_fn_c_try_compile "$LINENO"
3778 then :
3779 ac_cv_safe_to_define___extensions__=yes
3780 else $as_nop
3781 ac_cv_safe_to_define___extensions__=no
3782 fi
3783 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3784 fi
3785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3786 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3787
3788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3789 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3790 if test ${ac_cv_should_define__xopen_source+y}
3791 then :
3792 printf %s "(cached) " >&6
3793 else $as_nop
3794 ac_cv_should_define__xopen_source=no
3795 if test $ac_cv_header_wchar_h = yes
3796 then :
3797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798 /* end confdefs.h. */
3799
3800 #include <wchar.h>
3801 mbstate_t x;
3802 int
3803 main (void)
3804 {
3805
3806 ;
3807 return 0;
3808 }
3809 _ACEOF
3810 if ac_fn_c_try_compile "$LINENO"
3811 then :
3812
3813 else $as_nop
3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815 /* end confdefs.h. */
3816
3817 #define _XOPEN_SOURCE 500
3818 #include <wchar.h>
3819 mbstate_t x;
3820 int
3821 main (void)
3822 {
3823
3824 ;
3825 return 0;
3826 }
3827 _ACEOF
3828 if ac_fn_c_try_compile "$LINENO"
3829 then :
3830 ac_cv_should_define__xopen_source=yes
3831 fi
3832 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3833 fi
3834 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3835 fi
3836 fi
3837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3838 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3839
3840 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3841
3842 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3843
3844 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3845
3846 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3847
3848 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3849
3850 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3851
3852 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3853
3854 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3855
3856 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3857
3858 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3859
3860 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3861
3862 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3863
3864 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3865
3866 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3867
3868 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3869
3870 if test $ac_cv_header_minix_config_h = yes
3871 then :
3872 MINIX=yes
3873 printf "%s\n" "#define _MINIX 1" >>confdefs.h
3874
3875 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3876
3877 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3878
3879 else $as_nop
3880 MINIX=
3881 fi
3882 if test $ac_cv_safe_to_define___extensions__ = yes
3883 then :
3884 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3885
3886 fi
3887 if test $ac_cv_should_define__xopen_source = yes
3888 then :
3889 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3890
3891 fi
3892
3893
3894 # Initialize Automake
3895 am__api_version='1.16'
3896
3897
3898 # Find a good install program. We prefer a C program (faster),
3899 # so one script is as good as another. But avoid the broken or
3900 # incompatible versions:
3901 # SysV /etc/install, /usr/sbin/install
3902 # SunOS /usr/etc/install
3903 # IRIX /sbin/install
3904 # AIX /bin/install
3905 # AmigaOS /C/install, which installs bootblocks on floppy discs
3906 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3907 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3908 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3909 # OS/2's system install, which has a completely different semantic
3910 # ./install, which can be erroneously created by make from ./install.sh.
3911 # Reject install programs that cannot install multiple files.
3912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3913 printf %s "checking for a BSD-compatible install... " >&6; }
3914 if test -z "$INSTALL"; then
3915 if test ${ac_cv_path_install+y}
3916 then :
3917 printf %s "(cached) " >&6
3918 else $as_nop
3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 for as_dir in $PATH
3921 do
3922 IFS=$as_save_IFS
3923 case $as_dir in #(((
3924 '') as_dir=./ ;;
3925 */) ;;
3926 *) as_dir=$as_dir/ ;;
3927 esac
3928 # Account for fact that we put trailing slashes in our PATH walk.
3929 case $as_dir in #((
3930 ./ | /[cC]/* | \
3931 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3932 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3933 /usr/ucb/* ) ;;
3934 *)
3935 # OSF1 and SCO ODT 3.0 have their own names for install.
3936 # Don't use installbsd from OSF since it installs stuff as root
3937 # by default.
3938 for ac_prog in ginstall scoinst install; do
3939 for ac_exec_ext in '' $ac_executable_extensions; do
3940 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3941 if test $ac_prog = install &&
3942 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3943 # AIX install. It has an incompatible calling convention.
3944 :
3945 elif test $ac_prog = install &&
3946 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3947 # program-specific install script used by HP pwplus--don't use.
3948 :
3949 else
3950 rm -rf conftest.one conftest.two conftest.dir
3951 echo one > conftest.one
3952 echo two > conftest.two
3953 mkdir conftest.dir
3954 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3955 test -s conftest.one && test -s conftest.two &&
3956 test -s conftest.dir/conftest.one &&
3957 test -s conftest.dir/conftest.two
3958 then
3959 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3960 break 3
3961 fi
3962 fi
3963 fi
3964 done
3965 done
3966 ;;
3967 esac
3968
3969 done
3970 IFS=$as_save_IFS
3971
3972 rm -rf conftest.one conftest.two conftest.dir
3973
3974 fi
3975 if test ${ac_cv_path_install+y}; then
3976 INSTALL=$ac_cv_path_install
3977 else
3978 # As a last resort, use the slow shell script. Don't cache a
3979 # value for INSTALL within a source directory, because that will
3980 # break other packages using the cache if that directory is
3981 # removed, or if the value is a relative name.
3982 INSTALL=$ac_install_sh
3983 fi
3984 fi
3985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3986 printf "%s\n" "$INSTALL" >&6; }
3987
3988 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3989 # It thinks the first close brace ends the variable substitution.
3990 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3991
3992 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3993
3994 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3995
3996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3997 printf %s "checking whether build environment is sane... " >&6; }
3998 # Reject unsafe characters in $srcdir or the absolute working directory
3999 # name. Accept space and tab only in the latter.
4000 am_lf='
4001 '
4002 case `pwd` in
4003 *[\\\"\#\$\&\'\`$am_lf]*)
4004 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4005 esac
4006 case $srcdir in
4007 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4008 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4009 esac
4010
4011 # Do 'set' in a subshell so we don't clobber the current shell's
4012 # arguments. Must try -L first in case configure is actually a
4013 # symlink; some systems play weird games with the mod time of symlinks
4014 # (eg FreeBSD returns the mod time of the symlink's containing
4015 # directory).
4016 if (
4017 am_has_slept=no
4018 for am_try in 1 2; do
4019 echo "timestamp, slept: $am_has_slept" > conftest.file
4020 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4021 if test "$*" = "X"; then
4022 # -L didn't work.
4023 set X `ls -t "$srcdir/configure" conftest.file`
4024 fi
4025 if test "$*" != "X $srcdir/configure conftest.file" \
4026 && test "$*" != "X conftest.file $srcdir/configure"; then
4027
4028 # If neither matched, then we have a broken ls. This can happen
4029 # if, for instance, CONFIG_SHELL is bash and it inherits a
4030 # broken ls alias from the environment. This has actually
4031 # happened. Such a system could not be considered "sane".
4032 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4033 alias in your environment" "$LINENO" 5
4034 fi
4035 if test "$2" = conftest.file || test $am_try -eq 2; then
4036 break
4037 fi
4038 # Just in case.
4039 sleep 1
4040 am_has_slept=yes
4041 done
4042 test "$2" = conftest.file
4043 )
4044 then
4045 # Ok.
4046 :
4047 else
4048 as_fn_error $? "newly created file is older than distributed files!
4049 Check your system clock" "$LINENO" 5
4050 fi
4051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4052 printf "%s\n" "yes" >&6; }
4053 # If we didn't sleep, we still need to ensure time stamps of config.status and
4054 # generated files are strictly newer.
4055 am_sleep_pid=
4056 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4057 ( sleep 1 ) &
4058 am_sleep_pid=$!
4059 fi
4060
4061 rm -f conftest.file
4062
4063 test "$program_prefix" != NONE &&
4064 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4065 # Use a double $ so make ignores it.
4066 test "$program_suffix" != NONE &&
4067 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4068 # Double any \ or $.
4069 # By default was `s,x,x', remove it if useless.
4070 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4071 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4072
4073
4074 if test x"${MISSING+set}" != xset; then
4075 MISSING="\${SHELL} '$am_aux_dir/missing'"
4076 fi
4077 # Use eval to expand $SHELL
4078 if eval "$MISSING --is-lightweight"; then
4079 am_missing_run="$MISSING "
4080 else
4081 am_missing_run=
4082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4083 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4084 fi
4085
4086 if test x"${install_sh+set}" != xset; then
4087 case $am_aux_dir in
4088 *\ * | *\ *)
4089 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4090 *)
4091 install_sh="\${SHELL} $am_aux_dir/install-sh"
4092 esac
4093 fi
4094
4095 # Installed binaries are usually stripped using 'strip' when the user
4096 # run "make install-strip". However 'strip' might not be the right
4097 # tool to use in cross-compilation environments, therefore Automake
4098 # will honor the 'STRIP' environment variable to overrule this program.
4099 if test "$cross_compiling" != no; then
4100 if test -n "$ac_tool_prefix"; then
4101 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4102 set dummy ${ac_tool_prefix}strip; ac_word=$2
4103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4104 printf %s "checking for $ac_word... " >&6; }
4105 if test ${ac_cv_prog_STRIP+y}
4106 then :
4107 printf %s "(cached) " >&6
4108 else $as_nop
4109 if test -n "$STRIP"; then
4110 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4111 else
4112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113 for as_dir in $PATH
4114 do
4115 IFS=$as_save_IFS
4116 case $as_dir in #(((
4117 '') as_dir=./ ;;
4118 */) ;;
4119 *) as_dir=$as_dir/ ;;
4120 esac
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4123 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4124 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4125 break 2
4126 fi
4127 done
4128 done
4129 IFS=$as_save_IFS
4130
4131 fi
4132 fi
4133 STRIP=$ac_cv_prog_STRIP
4134 if test -n "$STRIP"; then
4135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4136 printf "%s\n" "$STRIP" >&6; }
4137 else
4138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4139 printf "%s\n" "no" >&6; }
4140 fi
4141
4142
4143 fi
4144 if test -z "$ac_cv_prog_STRIP"; then
4145 ac_ct_STRIP=$STRIP
4146 # Extract the first word of "strip", so it can be a program name with args.
4147 set dummy strip; ac_word=$2
4148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4149 printf %s "checking for $ac_word... " >&6; }
4150 if test ${ac_cv_prog_ac_ct_STRIP+y}
4151 then :
4152 printf %s "(cached) " >&6
4153 else $as_nop
4154 if test -n "$ac_ct_STRIP"; then
4155 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4156 else
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 for as_dir in $PATH
4159 do
4160 IFS=$as_save_IFS
4161 case $as_dir in #(((
4162 '') as_dir=./ ;;
4163 */) ;;
4164 *) as_dir=$as_dir/ ;;
4165 esac
4166 for ac_exec_ext in '' $ac_executable_extensions; do
4167 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4168 ac_cv_prog_ac_ct_STRIP="strip"
4169 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4170 break 2
4171 fi
4172 done
4173 done
4174 IFS=$as_save_IFS
4175
4176 fi
4177 fi
4178 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4179 if test -n "$ac_ct_STRIP"; then
4180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4181 printf "%s\n" "$ac_ct_STRIP" >&6; }
4182 else
4183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184 printf "%s\n" "no" >&6; }
4185 fi
4186
4187 if test "x$ac_ct_STRIP" = x; then
4188 STRIP=":"
4189 else
4190 case $cross_compiling:$ac_tool_warned in
4191 yes:)
4192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4193 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4194 ac_tool_warned=yes ;;
4195 esac
4196 STRIP=$ac_ct_STRIP
4197 fi
4198 else
4199 STRIP="$ac_cv_prog_STRIP"
4200 fi
4201
4202 fi
4203 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4204
4205
4206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4207 printf %s "checking for a race-free mkdir -p... " >&6; }
4208 if test -z "$MKDIR_P"; then
4209 if test ${ac_cv_path_mkdir+y}
4210 then :
4211 printf %s "(cached) " >&6
4212 else $as_nop
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4215 do
4216 IFS=$as_save_IFS
4217 case $as_dir in #(((
4218 '') as_dir=./ ;;
4219 */) ;;
4220 *) as_dir=$as_dir/ ;;
4221 esac
4222 for ac_prog in mkdir gmkdir; do
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4225 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4226 'mkdir ('*'coreutils) '* | \
4227 'BusyBox '* | \
4228 'mkdir (fileutils) '4.1*)
4229 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4230 break 3;;
4231 esac
4232 done
4233 done
4234 done
4235 IFS=$as_save_IFS
4236
4237 fi
4238
4239 test -d ./--version && rmdir ./--version
4240 if test ${ac_cv_path_mkdir+y}; then
4241 MKDIR_P="$ac_cv_path_mkdir -p"
4242 else
4243 # As a last resort, use the slow shell script. Don't cache a
4244 # value for MKDIR_P within a source directory, because that will
4245 # break other packages using the cache if that directory is
4246 # removed, or if the value is a relative name.
4247 MKDIR_P="$ac_install_sh -d"
4248 fi
4249 fi
4250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4251 printf "%s\n" "$MKDIR_P" >&6; }
4252
4253 for ac_prog in gawk mawk nawk awk
4254 do
4255 # Extract the first word of "$ac_prog", so it can be a program name with args.
4256 set dummy $ac_prog; ac_word=$2
4257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4258 printf %s "checking for $ac_word... " >&6; }
4259 if test ${ac_cv_prog_AWK+y}
4260 then :
4261 printf %s "(cached) " >&6
4262 else $as_nop
4263 if test -n "$AWK"; then
4264 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4265 else
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH
4268 do
4269 IFS=$as_save_IFS
4270 case $as_dir in #(((
4271 '') as_dir=./ ;;
4272 */) ;;
4273 *) as_dir=$as_dir/ ;;
4274 esac
4275 for ac_exec_ext in '' $ac_executable_extensions; do
4276 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4277 ac_cv_prog_AWK="$ac_prog"
4278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4279 break 2
4280 fi
4281 done
4282 done
4283 IFS=$as_save_IFS
4284
4285 fi
4286 fi
4287 AWK=$ac_cv_prog_AWK
4288 if test -n "$AWK"; then
4289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4290 printf "%s\n" "$AWK" >&6; }
4291 else
4292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4293 printf "%s\n" "no" >&6; }
4294 fi
4295
4296
4297 test -n "$AWK" && break
4298 done
4299
4300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4301 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4302 set x ${MAKE-make}
4303 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4304 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4305 then :
4306 printf %s "(cached) " >&6
4307 else $as_nop
4308 cat >conftest.make <<\_ACEOF
4309 SHELL = /bin/sh
4310 all:
4311 @echo '@@@%%%=$(MAKE)=@@@%%%'
4312 _ACEOF
4313 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4314 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4315 *@@@%%%=?*=@@@%%%*)
4316 eval ac_cv_prog_make_${ac_make}_set=yes;;
4317 *)
4318 eval ac_cv_prog_make_${ac_make}_set=no;;
4319 esac
4320 rm -f conftest.make
4321 fi
4322 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4324 printf "%s\n" "yes" >&6; }
4325 SET_MAKE=
4326 else
4327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4328 printf "%s\n" "no" >&6; }
4329 SET_MAKE="MAKE=${MAKE-make}"
4330 fi
4331
4332 rm -rf .tst 2>/dev/null
4333 mkdir .tst 2>/dev/null
4334 if test -d .tst; then
4335 am__leading_dot=.
4336 else
4337 am__leading_dot=_
4338 fi
4339 rmdir .tst 2>/dev/null
4340
4341 DEPDIR="${am__leading_dot}deps"
4342
4343 ac_config_commands="$ac_config_commands depfiles"
4344
4345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4346 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4347 cat > confinc.mk << 'END'
4348 am__doit:
4349 @echo this is the am__doit target >confinc.out
4350 .PHONY: am__doit
4351 END
4352 am__include="#"
4353 am__quote=
4354 # BSD make does it like this.
4355 echo '.include "confinc.mk" # ignored' > confmf.BSD
4356 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4357 echo 'include confinc.mk # ignored' > confmf.GNU
4358 _am_result=no
4359 for s in GNU BSD; do
4360 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4361 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4362 ac_status=$?
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }
4365 case $?:`cat confinc.out 2>/dev/null` in #(
4366 '0:this is the am__doit target') :
4367 case $s in #(
4368 BSD) :
4369 am__include='.include' am__quote='"' ;; #(
4370 *) :
4371 am__include='include' am__quote='' ;;
4372 esac ;; #(
4373 *) :
4374 ;;
4375 esac
4376 if test "$am__include" != "#"; then
4377 _am_result="yes ($s style)"
4378 break
4379 fi
4380 done
4381 rm -f confinc.* confmf.*
4382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4383 printf "%s\n" "${_am_result}" >&6; }
4384
4385 # Check whether --enable-dependency-tracking was given.
4386 if test ${enable_dependency_tracking+y}
4387 then :
4388 enableval=$enable_dependency_tracking;
4389 fi
4390
4391 if test "x$enable_dependency_tracking" != xno; then
4392 am_depcomp="$ac_aux_dir/depcomp"
4393 AMDEPBACKSLASH='\'
4394 am__nodep='_no'
4395 fi
4396 if test "x$enable_dependency_tracking" != xno; then
4397 AMDEP_TRUE=
4398 AMDEP_FALSE='#'
4399 else
4400 AMDEP_TRUE='#'
4401 AMDEP_FALSE=
4402 fi
4403
4404
4405 # Check whether --enable-silent-rules was given.
4406 if test ${enable_silent_rules+y}
4407 then :
4408 enableval=$enable_silent_rules;
4409 fi
4410
4411 case $enable_silent_rules in # (((
4412 yes) AM_DEFAULT_VERBOSITY=0;;
4413 no) AM_DEFAULT_VERBOSITY=1;;
4414 *) AM_DEFAULT_VERBOSITY=1;;
4415 esac
4416 am_make=${MAKE-make}
4417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4418 printf %s "checking whether $am_make supports nested variables... " >&6; }
4419 if test ${am_cv_make_support_nested_variables+y}
4420 then :
4421 printf %s "(cached) " >&6
4422 else $as_nop
4423 if printf "%s\n" 'TRUE=$(BAR$(V))
4424 BAR0=false
4425 BAR1=true
4426 V=1
4427 am__doit:
4428 @$(TRUE)
4429 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4430 am_cv_make_support_nested_variables=yes
4431 else
4432 am_cv_make_support_nested_variables=no
4433 fi
4434 fi
4435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4436 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4437 if test $am_cv_make_support_nested_variables = yes; then
4438 AM_V='$(V)'
4439 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4440 else
4441 AM_V=$AM_DEFAULT_VERBOSITY
4442 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4443 fi
4444 AM_BACKSLASH='\'
4445
4446 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4447 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4448 # is not polluted with repeated "-I."
4449 am__isrc=' -I$(srcdir)'
4450 # test to see if srcdir already configured
4451 if test -f $srcdir/config.status; then
4452 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4453 fi
4454 fi
4455
4456 # test whether we have cygpath
4457 if test -z "$CYGPATH_W"; then
4458 if (cygpath --version) >/dev/null 2>/dev/null; then
4459 CYGPATH_W='cygpath -w'
4460 else
4461 CYGPATH_W=echo
4462 fi
4463 fi
4464
4465
4466 # Define the identity of the package.
4467 PACKAGE='xwininfo'
4468 VERSION='1.1.6'
4469
4470
4471 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4472
4473
4474 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4475
4476 # Some tools Automake needs.
4477
4478 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4479
4480
4481 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4482
4483
4484 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4485
4486
4487 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4488
4489
4490 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4491
4492 # For better backward compatibility. To be removed once Automake 1.9.x
4493 # dies out for good. For more background, see:
4494 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4495 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4496 mkdir_p='$(MKDIR_P)'
4497
4498 # We need awk for the "check" target (and possibly the TAP driver). The
4499 # system "awk" is bad on some platforms.
4500 # Always define AMTAR for backward compatibility. Yes, it's still used
4501 # in the wild :-( We should find a proper way to deprecate it ...
4502 AMTAR='$${TAR-tar}'
4503
4504
4505 # We'll loop over all known methods to create a tar archive until one works.
4506 _am_tools='gnutar pax cpio none'
4507
4508 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4509
4510
4511
4512
4513
4514 depcc="$CC" am_compiler_list=
4515
4516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4517 printf %s "checking dependency style of $depcc... " >&6; }
4518 if test ${am_cv_CC_dependencies_compiler_type+y}
4519 then :
4520 printf %s "(cached) " >&6
4521 else $as_nop
4522 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4523 # We make a subdir and do the tests there. Otherwise we can end up
4524 # making bogus files that we don't know about and never remove. For
4525 # instance it was reported that on HP-UX the gcc test will end up
4526 # making a dummy file named 'D' -- because '-MD' means "put the output
4527 # in D".
4528 rm -rf conftest.dir
4529 mkdir conftest.dir
4530 # Copy depcomp to subdir because otherwise we won't find it if we're
4531 # using a relative directory.
4532 cp "$am_depcomp" conftest.dir
4533 cd conftest.dir
4534 # We will build objects and dependencies in a subdirectory because
4535 # it helps to detect inapplicable dependency modes. For instance
4536 # both Tru64's cc and ICC support -MD to output dependencies as a
4537 # side effect of compilation, but ICC will put the dependencies in
4538 # the current directory while Tru64 will put them in the object
4539 # directory.
4540 mkdir sub
4541
4542 am_cv_CC_dependencies_compiler_type=none
4543 if test "$am_compiler_list" = ""; then
4544 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4545 fi
4546 am__universal=false
4547 case " $depcc " in #(
4548 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4549 esac
4550
4551 for depmode in $am_compiler_list; do
4552 # Setup a source with many dependencies, because some compilers
4553 # like to wrap large dependency lists on column 80 (with \), and
4554 # we should not choose a depcomp mode which is confused by this.
4555 #
4556 # We need to recreate these files for each test, as the compiler may
4557 # overwrite some of them when testing with obscure command lines.
4558 # This happens at least with the AIX C compiler.
4559 : > sub/conftest.c
4560 for i in 1 2 3 4 5 6; do
4561 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4562 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4563 # Solaris 10 /bin/sh.
4564 echo '/* dummy */' > sub/conftst$i.h
4565 done
4566 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4567
4568 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4569 # mode. It turns out that the SunPro C++ compiler does not properly
4570 # handle '-M -o', and we need to detect this. Also, some Intel
4571 # versions had trouble with output in subdirs.
4572 am__obj=sub/conftest.${OBJEXT-o}
4573 am__minus_obj="-o $am__obj"
4574 case $depmode in
4575 gcc)
4576 # This depmode causes a compiler race in universal mode.
4577 test "$am__universal" = false || continue
4578 ;;
4579 nosideeffect)
4580 # After this tag, mechanisms are not by side-effect, so they'll
4581 # only be used when explicitly requested.
4582 if test "x$enable_dependency_tracking" = xyes; then
4583 continue
4584 else
4585 break
4586 fi
4587 ;;
4588 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4589 # This compiler won't grok '-c -o', but also, the minuso test has
4590 # not run yet. These depmodes are late enough in the game, and
4591 # so weak that their functioning should not be impacted.
4592 am__obj=conftest.${OBJEXT-o}
4593 am__minus_obj=
4594 ;;
4595 none) break ;;
4596 esac
4597 if depmode=$depmode \
4598 source=sub/conftest.c object=$am__obj \
4599 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4600 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4601 >/dev/null 2>conftest.err &&
4602 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4603 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4604 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4605 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4606 # icc doesn't choke on unknown options, it will just issue warnings
4607 # or remarks (even with -Werror). So we grep stderr for any message
4608 # that says an option was ignored or not supported.
4609 # When given -MP, icc 7.0 and 7.1 complain thusly:
4610 # icc: Command line warning: ignoring option '-M'; no argument required
4611 # The diagnosis changed in icc 8.0:
4612 # icc: Command line remark: option '-MP' not supported
4613 if (grep 'ignoring option' conftest.err ||
4614 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4615 am_cv_CC_dependencies_compiler_type=$depmode
4616 break
4617 fi
4618 fi
4619 done
4620
4621 cd ..
4622 rm -rf conftest.dir
4623 else
4624 am_cv_CC_dependencies_compiler_type=none
4625 fi
4626
4627 fi
4628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4629 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4630 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4631
4632 if
4633 test "x$enable_dependency_tracking" != xno \
4634 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4635 am__fastdepCC_TRUE=
4636 am__fastdepCC_FALSE='#'
4637 else
4638 am__fastdepCC_TRUE='#'
4639 am__fastdepCC_FALSE=
4640 fi
4641
4642
4643 # Variables for tags utilities; see am/tags.am
4644 if test -z "$CTAGS"; then
4645 CTAGS=ctags
4646 fi
4647
4648 if test -z "$ETAGS"; then
4649 ETAGS=etags
4650 fi
4651
4652 if test -z "$CSCOPE"; then
4653 CSCOPE=cscope
4654 fi
4655
4656
4657
4658 # POSIX will say in a future version that running "rm -f" with no argument
4659 # is OK; and we want to be able to make that assumption in our Makefile
4660 # recipes. So use an aggressive probe to check that the usage we want is
4661 # actually supported "in the wild" to an acceptable degree.
4662 # See automake bug#10828.
4663 # To make any issue more visible, cause the running configure to be aborted
4664 # by default if the 'rm' program in use doesn't match our expectations; the
4665 # user can still override this though.
4666 if rm -f && rm -fr && rm -rf; then : OK; else
4667 cat >&2 <<'END'
4668 Oops!
4669
4670 Your 'rm' program seems unable to run without file operands specified
4671 on the command line, even when the '-f' option is present. This is contrary
4672 to the behaviour of most rm programs out there, and not conforming with
4673 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4674
4675 Please tell bug-automake@gnu.org about your system, including the value
4676 of your $PATH and any error possibly output before this message. This
4677 can help us improve future automake versions.
4678
4679 END
4680 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4681 echo 'Configuration will proceed anyway, since you have set the' >&2
4682 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4683 echo >&2
4684 else
4685 cat >&2 <<'END'
4686 Aborting the configuration process, to ensure you take notice of the issue.
4687
4688 You can download and install GNU coreutils to get an 'rm' implementation
4689 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4690
4691 If you want to complete the configuration process using your problematic
4692 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4693 to "yes", and re-run configure.
4694
4695 END
4696 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4697 fi
4698 fi
4699
4700
4701
4702 # Make sure we can run config.sub.
4703 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4704 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4705
4706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4707 printf %s "checking build system type... " >&6; }
4708 if test ${ac_cv_build+y}
4709 then :
4710 printf %s "(cached) " >&6
4711 else $as_nop
4712 ac_build_alias=$build_alias
4713 test "x$ac_build_alias" = x &&
4714 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4715 test "x$ac_build_alias" = x &&
4716 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4717 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4718 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4719
4720 fi
4721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4722 printf "%s\n" "$ac_cv_build" >&6; }
4723 case $ac_cv_build in
4724 *-*-*) ;;
4725 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4726 esac
4727 build=$ac_cv_build
4728 ac_save_IFS=$IFS; IFS='-'
4729 set x $ac_cv_build
4730 shift
4731 build_cpu=$1
4732 build_vendor=$2
4733 shift; shift
4734 # Remember, the first character of IFS is used to create $*,
4735 # except with old shells:
4736 build_os=$*
4737 IFS=$ac_save_IFS
4738 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4739
4740
4741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4742 printf %s "checking host system type... " >&6; }
4743 if test ${ac_cv_host+y}
4744 then :
4745 printf %s "(cached) " >&6
4746 else $as_nop
4747 if test "x$host_alias" = x; then
4748 ac_cv_host=$ac_cv_build
4749 else
4750 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4751 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4752 fi
4753
4754 fi
4755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4756 printf "%s\n" "$ac_cv_host" >&6; }
4757 case $ac_cv_host in
4758 *-*-*) ;;
4759 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4760 esac
4761 host=$ac_cv_host
4762 ac_save_IFS=$IFS; IFS='-'
4763 set x $ac_cv_host
4764 shift
4765 host_cpu=$1
4766 host_vendor=$2
4767 shift; shift
4768 # Remember, the first character of IFS is used to create $*,
4769 # except with old shells:
4770 host_os=$*
4771 IFS=$ac_save_IFS
4772 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4773
4774
4775
4776 if test "X$prefix" = "XNONE"; then
4777 acl_final_prefix="$ac_default_prefix"
4778 else
4779 acl_final_prefix="$prefix"
4780 fi
4781 if test "X$exec_prefix" = "XNONE"; then
4782 acl_final_exec_prefix='${prefix}'
4783 else
4784 acl_final_exec_prefix="$exec_prefix"
4785 fi
4786 acl_save_prefix="$prefix"
4787 prefix="$acl_final_prefix"
4788 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4789 prefix="$acl_save_prefix"
4790
4791
4792
4793 # Check whether --with-gnu-ld was given.
4794 if test ${with_gnu_ld+y}
4795 then :
4796 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4797 else $as_nop
4798 with_gnu_ld=no
4799 fi
4800
4801 # Prepare PATH_SEPARATOR.
4802 # The user is always right.
4803 if test "${PATH_SEPARATOR+set}" != set; then
4804 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
4805 # contains only /bin. Note that ksh looks also at the FPATH variable,
4806 # so we have to set that as well for the test.
4807 PATH_SEPARATOR=:
4808 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4809 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4810 || PATH_SEPARATOR=';'
4811 }
4812 fi
4813
4814 ac_prog=ld
4815 if test "$GCC" = yes; then
4816 # Check if gcc -print-prog-name=ld gives a path.
4817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4818 printf %s "checking for ld used by $CC... " >&6; }
4819 case $host in
4820 *-*-mingw*)
4821 # gcc leaves a trailing carriage return which upsets mingw
4822 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4823 *)
4824 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4825 esac
4826 case $ac_prog in
4827 # Accept absolute paths.
4828 [\\/]* | ?:[\\/]*)
4829 re_direlt='/[^/][^/]*/\.\./'
4830 # Canonicalize the pathname of ld
4831 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
4832 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
4833 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4834 done
4835 test -z "$LD" && LD="$ac_prog"
4836 ;;
4837 "")
4838 # If it fails, then pretend we aren't using GCC.
4839 ac_prog=ld
4840 ;;
4841 *)
4842 # If it is relative, then search for the first ld in PATH.
4843 with_gnu_ld=unknown
4844 ;;
4845 esac
4846 elif test "$with_gnu_ld" = yes; then
4847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4848 printf %s "checking for GNU ld... " >&6; }
4849 else
4850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4851 printf %s "checking for non-GNU ld... " >&6; }
4852 fi
4853 if test ${acl_cv_path_LD+y}
4854 then :
4855 printf %s "(cached) " >&6
4856 else $as_nop
4857 if test -z "$LD"; then
4858 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4859 for ac_dir in $PATH; do
4860 IFS="$acl_save_ifs"
4861 test -z "$ac_dir" && ac_dir=.
4862 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4863 acl_cv_path_LD="$ac_dir/$ac_prog"
4864 # Check to see if the program is GNU ld. I'd rather use --version,
4865 # but apparently some variants of GNU ld only accept -v.
4866 # Break only if it was the GNU/non-GNU ld that we prefer.
4867 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
4868 *GNU* | *'with BFD'*)
4869 test "$with_gnu_ld" != no && break
4870 ;;
4871 *)
4872 test "$with_gnu_ld" != yes && break
4873 ;;
4874 esac
4875 fi
4876 done
4877 IFS="$acl_save_ifs"
4878 else
4879 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4880 fi
4881 fi
4882
4883 LD="$acl_cv_path_LD"
4884 if test -n "$LD"; then
4885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4886 printf "%s\n" "$LD" >&6; }
4887 else
4888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889 printf "%s\n" "no" >&6; }
4890 fi
4891 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4893 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
4894 if test ${acl_cv_prog_gnu_ld+y}
4895 then :
4896 printf %s "(cached) " >&6
4897 else $as_nop
4898 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4899 case `$LD -v 2>&1 </dev/null` in
4900 *GNU* | *'with BFD'*)
4901 acl_cv_prog_gnu_ld=yes
4902 ;;
4903 *)
4904 acl_cv_prog_gnu_ld=no
4905 ;;
4906 esac
4907 fi
4908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4909 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
4910 with_gnu_ld=$acl_cv_prog_gnu_ld
4911
4912
4913
4914
4915
4916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4917 printf %s "checking for shared library run path origin... " >&6; }
4918 if test ${acl_cv_rpath+y}
4919 then :
4920 printf %s "(cached) " >&6
4921 else $as_nop
4922
4923 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4924 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4925 . ./conftest.sh
4926 rm -f ./conftest.sh
4927 acl_cv_rpath=done
4928
4929 fi
4930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4931 printf "%s\n" "$acl_cv_rpath" >&6; }
4932 wl="$acl_cv_wl"
4933 acl_libext="$acl_cv_libext"
4934 acl_shlibext="$acl_cv_shlibext"
4935 acl_libname_spec="$acl_cv_libname_spec"
4936 acl_library_names_spec="$acl_cv_library_names_spec"
4937 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4938 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4939 acl_hardcode_direct="$acl_cv_hardcode_direct"
4940 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
4941 # Check whether --enable-rpath was given.
4942 if test ${enable_rpath+y}
4943 then :
4944 enableval=$enable_rpath; :
4945 else $as_nop
4946 enable_rpath=yes
4947 fi
4948
4949
4950 ac_ext=c
4951 ac_cpp='$CPP $CPPFLAGS'
4952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4956 printf %s "checking how to run the C preprocessor... " >&6; }
4957 # On Suns, sometimes $CPP names a directory.
4958 if test -n "$CPP" && test -d "$CPP"; then
4959 CPP=
4960 fi
4961 if test -z "$CPP"; then
4962 if test ${ac_cv_prog_CPP+y}
4963 then :
4964 printf %s "(cached) " >&6
4965 else $as_nop
4966 # Double quotes because $CC needs to be expanded
4967 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
4968 do
4969 ac_preproc_ok=false
4970 for ac_c_preproc_warn_flag in '' yes
4971 do
4972 # Use a header file that comes with gcc, so configuring glibc
4973 # with a fresh cross-compiler works.
4974 # On the NeXT, cc -E runs the code through the compiler's parser,
4975 # not just through cpp. "Syntax error" is here to catch this case.
4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977 /* end confdefs.h. */
4978 #include <limits.h>
4979 Syntax error
4980 _ACEOF
4981 if ac_fn_c_try_cpp "$LINENO"
4982 then :
4983
4984 else $as_nop
4985 # Broken: fails on valid input.
4986 continue
4987 fi
4988 rm -f conftest.err conftest.i conftest.$ac_ext
4989
4990 # OK, works on sane cases. Now check whether nonexistent headers
4991 # can be detected and how.
4992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4993 /* end confdefs.h. */
4994 #include <ac_nonexistent.h>
4995 _ACEOF
4996 if ac_fn_c_try_cpp "$LINENO"
4997 then :
4998 # Broken: success on invalid input.
4999 continue
5000 else $as_nop
5001 # Passes both tests.
5002 ac_preproc_ok=:
5003 break
5004 fi
5005 rm -f conftest.err conftest.i conftest.$ac_ext
5006
5007 done
5008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5009 rm -f conftest.i conftest.err conftest.$ac_ext
5010 if $ac_preproc_ok
5011 then :
5012 break
5013 fi
5014
5015 done
5016 ac_cv_prog_CPP=$CPP
5017
5018 fi
5019 CPP=$ac_cv_prog_CPP
5020 else
5021 ac_cv_prog_CPP=$CPP
5022 fi
5023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5024 printf "%s\n" "$CPP" >&6; }
5025 ac_preproc_ok=false
5026 for ac_c_preproc_warn_flag in '' yes
5027 do
5028 # Use a header file that comes with gcc, so configuring glibc
5029 # with a fresh cross-compiler works.
5030 # On the NeXT, cc -E runs the code through the compiler's parser,
5031 # not just through cpp. "Syntax error" is here to catch this case.
5032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5033 /* end confdefs.h. */
5034 #include <limits.h>
5035 Syntax error
5036 _ACEOF
5037 if ac_fn_c_try_cpp "$LINENO"
5038 then :
5039
5040 else $as_nop
5041 # Broken: fails on valid input.
5042 continue
5043 fi
5044 rm -f conftest.err conftest.i conftest.$ac_ext
5045
5046 # OK, works on sane cases. Now check whether nonexistent headers
5047 # can be detected and how.
5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h. */
5050 #include <ac_nonexistent.h>
5051 _ACEOF
5052 if ac_fn_c_try_cpp "$LINENO"
5053 then :
5054 # Broken: success on invalid input.
5055 continue
5056 else $as_nop
5057 # Passes both tests.
5058 ac_preproc_ok=:
5059 break
5060 fi
5061 rm -f conftest.err conftest.i conftest.$ac_ext
5062
5063 done
5064 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5065 rm -f conftest.i conftest.err conftest.$ac_ext
5066 if $ac_preproc_ok
5067 then :
5068
5069 else $as_nop
5070 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5071 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5072 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5073 See \`config.log' for more details" "$LINENO" 5; }
5074 fi
5075
5076 ac_ext=c
5077 ac_cpp='$CPP $CPPFLAGS'
5078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5081
5082
5083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5084 printf %s "checking for grep that handles long lines and -e... " >&6; }
5085 if test ${ac_cv_path_GREP+y}
5086 then :
5087 printf %s "(cached) " >&6
5088 else $as_nop
5089 if test -z "$GREP"; then
5090 ac_path_GREP_found=false
5091 # Loop through the user's path and test for each of PROGNAME-LIST
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5094 do
5095 IFS=$as_save_IFS
5096 case $as_dir in #(((
5097 '') as_dir=./ ;;
5098 */) ;;
5099 *) as_dir=$as_dir/ ;;
5100 esac
5101 for ac_prog in grep ggrep
5102 do
5103 for ac_exec_ext in '' $ac_executable_extensions; do
5104 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5105 as_fn_executable_p "$ac_path_GREP" || continue
5106 # Check for GNU ac_path_GREP and select it if it is found.
5107 # Check for GNU $ac_path_GREP
5108 case `"$ac_path_GREP" --version 2>&1` in
5109 *GNU*)
5110 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5111 *)
5112 ac_count=0
5113 printf %s 0123456789 >"conftest.in"
5114 while :
5115 do
5116 cat "conftest.in" "conftest.in" >"conftest.tmp"
5117 mv "conftest.tmp" "conftest.in"
5118 cp "conftest.in" "conftest.nl"
5119 printf "%s\n" 'GREP' >> "conftest.nl"
5120 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5121 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5122 as_fn_arith $ac_count + 1 && ac_count=$as_val
5123 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5124 # Best one so far, save it but keep looking for a better one
5125 ac_cv_path_GREP="$ac_path_GREP"
5126 ac_path_GREP_max=$ac_count
5127 fi
5128 # 10*(2^10) chars as input seems more than enough
5129 test $ac_count -gt 10 && break
5130 done
5131 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5132 esac
5133
5134 $ac_path_GREP_found && break 3
5135 done
5136 done
5137 done
5138 IFS=$as_save_IFS
5139 if test -z "$ac_cv_path_GREP"; then
5140 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5141 fi
5142 else
5143 ac_cv_path_GREP=$GREP
5144 fi
5145
5146 fi
5147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5148 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5149 GREP="$ac_cv_path_GREP"
5150
5151
5152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5153 printf %s "checking for egrep... " >&6; }
5154 if test ${ac_cv_path_EGREP+y}
5155 then :
5156 printf %s "(cached) " >&6
5157 else $as_nop
5158 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5159 then ac_cv_path_EGREP="$GREP -E"
5160 else
5161 if test -z "$EGREP"; then
5162 ac_path_EGREP_found=false
5163 # Loop through the user's path and test for each of PROGNAME-LIST
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5166 do
5167 IFS=$as_save_IFS
5168 case $as_dir in #(((
5169 '') as_dir=./ ;;
5170 */) ;;
5171 *) as_dir=$as_dir/ ;;
5172 esac
5173 for ac_prog in egrep
5174 do
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5177 as_fn_executable_p "$ac_path_EGREP" || continue
5178 # Check for GNU ac_path_EGREP and select it if it is found.
5179 # Check for GNU $ac_path_EGREP
5180 case `"$ac_path_EGREP" --version 2>&1` in
5181 *GNU*)
5182 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5183 *)
5184 ac_count=0
5185 printf %s 0123456789 >"conftest.in"
5186 while :
5187 do
5188 cat "conftest.in" "conftest.in" >"conftest.tmp"
5189 mv "conftest.tmp" "conftest.in"
5190 cp "conftest.in" "conftest.nl"
5191 printf "%s\n" 'EGREP' >> "conftest.nl"
5192 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5194 as_fn_arith $ac_count + 1 && ac_count=$as_val
5195 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5196 # Best one so far, save it but keep looking for a better one
5197 ac_cv_path_EGREP="$ac_path_EGREP"
5198 ac_path_EGREP_max=$ac_count
5199 fi
5200 # 10*(2^10) chars as input seems more than enough
5201 test $ac_count -gt 10 && break
5202 done
5203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5204 esac
5205
5206 $ac_path_EGREP_found && break 3
5207 done
5208 done
5209 done
5210 IFS=$as_save_IFS
5211 if test -z "$ac_cv_path_EGREP"; then
5212 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5213 fi
5214 else
5215 ac_cv_path_EGREP=$EGREP
5216 fi
5217
5218 fi
5219 fi
5220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5221 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5222 EGREP="$ac_cv_path_EGREP"
5223
5224
5225
5226
5227 acl_libdirstem=lib
5228 acl_libdirstem2=
5229 case "$host_os" in
5230 solaris*)
5231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5232 printf %s "checking for 64-bit host... " >&6; }
5233 if test ${gl_cv_solaris_64bit+y}
5234 then :
5235 printf %s "(cached) " >&6
5236 else $as_nop
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5239
5240 #ifdef _LP64
5241 sixtyfour bits
5242 #endif
5243
5244 _ACEOF
5245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5246 $EGREP "sixtyfour bits" >/dev/null 2>&1
5247 then :
5248 gl_cv_solaris_64bit=yes
5249 else $as_nop
5250 gl_cv_solaris_64bit=no
5251 fi
5252 rm -rf conftest*
5253
5254
5255 fi
5256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5257 printf "%s\n" "$gl_cv_solaris_64bit" >&6; }
5258 if test $gl_cv_solaris_64bit = yes; then
5259 acl_libdirstem=lib/64
5260 case "$host_cpu" in
5261 sparc*) acl_libdirstem2=lib/sparcv9 ;;
5262 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5263 esac
5264 fi
5265 ;;
5266 *)
5267 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5268 if test -n "$searchpath"; then
5269 acl_save_IFS="${IFS= }"; IFS=":"
5270 for searchdir in $searchpath; do
5271 if test -d "$searchdir"; then
5272 case "$searchdir" in
5273 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5274 */../ | */.. )
5275 # Better ignore directories of this form. They are misleading.
5276 ;;
5277 *) searchdir=`cd "$searchdir" && pwd`
5278 case "$searchdir" in
5279 */lib64 ) acl_libdirstem=lib64 ;;
5280 esac ;;
5281 esac
5282 fi
5283 done
5284 IFS="$acl_save_IFS"
5285 fi
5286 ;;
5287 esac
5288 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301 use_additional=yes
5302
5303 acl_save_prefix="$prefix"
5304 prefix="$acl_final_prefix"
5305 acl_save_exec_prefix="$exec_prefix"
5306 exec_prefix="$acl_final_exec_prefix"
5307
5308 eval additional_includedir=\"$includedir\"
5309 eval additional_libdir=\"$libdir\"
5310
5311 exec_prefix="$acl_save_exec_prefix"
5312 prefix="$acl_save_prefix"
5313
5314
5315 # Check whether --with-libiconv-prefix was given.
5316 if test ${with_libiconv_prefix+y}
5317 then :
5318 withval=$with_libiconv_prefix;
5319 if test "X$withval" = "Xno"; then
5320 use_additional=no
5321 else
5322 if test "X$withval" = "X"; then
5323
5324 acl_save_prefix="$prefix"
5325 prefix="$acl_final_prefix"
5326 acl_save_exec_prefix="$exec_prefix"
5327 exec_prefix="$acl_final_exec_prefix"
5328
5329 eval additional_includedir=\"$includedir\"
5330 eval additional_libdir=\"$libdir\"
5331
5332 exec_prefix="$acl_save_exec_prefix"
5333 prefix="$acl_save_prefix"
5334
5335 else
5336 additional_includedir="$withval/include"
5337 additional_libdir="$withval/$acl_libdirstem"
5338 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5339 && ! test -d "$withval/$acl_libdirstem"; then
5340 additional_libdir="$withval/$acl_libdirstem2"
5341 fi
5342 fi
5343 fi
5344
5345 fi
5346
5347 LIBICONV=
5348 LTLIBICONV=
5349 INCICONV=
5350 LIBICONV_PREFIX=
5351 HAVE_LIBICONV=
5352 rpathdirs=
5353 ltrpathdirs=
5354 names_already_handled=
5355 names_next_round='iconv '
5356 while test -n "$names_next_round"; do
5357 names_this_round="$names_next_round"
5358 names_next_round=
5359 for name in $names_this_round; do
5360 already_handled=
5361 for n in $names_already_handled; do
5362 if test "$n" = "$name"; then
5363 already_handled=yes
5364 break
5365 fi
5366 done
5367 if test -z "$already_handled"; then
5368 names_already_handled="$names_already_handled $name"
5369 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
5370 eval value=\"\$HAVE_LIB$uppername\"
5371 if test -n "$value"; then
5372 if test "$value" = yes; then
5373 eval value=\"\$LIB$uppername\"
5374 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5375 eval value=\"\$LTLIB$uppername\"
5376 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5377 else
5378 :
5379 fi
5380 else
5381 found_dir=
5382 found_la=
5383 found_so=
5384 found_a=
5385 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5386 if test -n "$acl_shlibext"; then
5387 shrext=".$acl_shlibext" # typically: shrext=.so
5388 else
5389 shrext=
5390 fi
5391 if test $use_additional = yes; then
5392 dir="$additional_libdir"
5393 if test -n "$acl_shlibext"; then
5394 if test -f "$dir/$libname$shrext"; then
5395 found_dir="$dir"
5396 found_so="$dir/$libname$shrext"
5397 else
5398 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5399 ver=`(cd "$dir" && \
5400 for f in "$libname$shrext".*; do echo "$f"; done \
5401 | sed -e "s,^$libname$shrext\\\\.,," \
5402 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5403 | sed 1q ) 2>/dev/null`
5404 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5405 found_dir="$dir"
5406 found_so="$dir/$libname$shrext.$ver"
5407 fi
5408 else
5409 eval library_names=\"$acl_library_names_spec\"
5410 for f in $library_names; do
5411 if test -f "$dir/$f"; then
5412 found_dir="$dir"
5413 found_so="$dir/$f"
5414 break
5415 fi
5416 done
5417 fi
5418 fi
5419 fi
5420 if test "X$found_dir" = "X"; then
5421 if test -f "$dir/$libname.$acl_libext"; then
5422 found_dir="$dir"
5423 found_a="$dir/$libname.$acl_libext"
5424 fi
5425 fi
5426 if test "X$found_dir" != "X"; then
5427 if test -f "$dir/$libname.la"; then
5428 found_la="$dir/$libname.la"
5429 fi
5430 fi
5431 fi
5432 if test "X$found_dir" = "X"; then
5433 for x in $LDFLAGS $LTLIBICONV; do
5434
5435 acl_save_prefix="$prefix"
5436 prefix="$acl_final_prefix"
5437 acl_save_exec_prefix="$exec_prefix"
5438 exec_prefix="$acl_final_exec_prefix"
5439 eval x=\"$x\"
5440 exec_prefix="$acl_save_exec_prefix"
5441 prefix="$acl_save_prefix"
5442
5443 case "$x" in
5444 -L*)
5445 dir=`echo "X$x" | sed -e 's/^X-L//'`
5446 if test -n "$acl_shlibext"; then
5447 if test -f "$dir/$libname$shrext"; then
5448 found_dir="$dir"
5449 found_so="$dir/$libname$shrext"
5450 else
5451 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5452 ver=`(cd "$dir" && \
5453 for f in "$libname$shrext".*; do echo "$f"; done \
5454 | sed -e "s,^$libname$shrext\\\\.,," \
5455 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5456 | sed 1q ) 2>/dev/null`
5457 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5458 found_dir="$dir"
5459 found_so="$dir/$libname$shrext.$ver"
5460 fi
5461 else
5462 eval library_names=\"$acl_library_names_spec\"
5463 for f in $library_names; do
5464 if test -f "$dir/$f"; then
5465 found_dir="$dir"
5466 found_so="$dir/$f"
5467 break
5468 fi
5469 done
5470 fi
5471 fi
5472 fi
5473 if test "X$found_dir" = "X"; then
5474 if test -f "$dir/$libname.$acl_libext"; then
5475 found_dir="$dir"
5476 found_a="$dir/$libname.$acl_libext"
5477 fi
5478 fi
5479 if test "X$found_dir" != "X"; then
5480 if test -f "$dir/$libname.la"; then
5481 found_la="$dir/$libname.la"
5482 fi
5483 fi
5484 ;;
5485 esac
5486 if test "X$found_dir" != "X"; then
5487 break
5488 fi
5489 done
5490 fi
5491 if test "X$found_dir" != "X"; then
5492 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5493 if test "X$found_so" != "X"; then
5494 if test "$enable_rpath" = no \
5495 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5496 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5497 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5498 else
5499 haveit=
5500 for x in $ltrpathdirs; do
5501 if test "X$x" = "X$found_dir"; then
5502 haveit=yes
5503 break
5504 fi
5505 done
5506 if test -z "$haveit"; then
5507 ltrpathdirs="$ltrpathdirs $found_dir"
5508 fi
5509 if test "$acl_hardcode_direct" = yes; then
5510 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5511 else
5512 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5513 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5514 haveit=
5515 for x in $rpathdirs; do
5516 if test "X$x" = "X$found_dir"; then
5517 haveit=yes
5518 break
5519 fi
5520 done
5521 if test -z "$haveit"; then
5522 rpathdirs="$rpathdirs $found_dir"
5523 fi
5524 else
5525 haveit=
5526 for x in $LDFLAGS $LIBICONV; do
5527
5528 acl_save_prefix="$prefix"
5529 prefix="$acl_final_prefix"
5530 acl_save_exec_prefix="$exec_prefix"
5531 exec_prefix="$acl_final_exec_prefix"
5532 eval x=\"$x\"
5533 exec_prefix="$acl_save_exec_prefix"
5534 prefix="$acl_save_prefix"
5535
5536 if test "X$x" = "X-L$found_dir"; then
5537 haveit=yes
5538 break
5539 fi
5540 done
5541 if test -z "$haveit"; then
5542 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5543 fi
5544 if test "$acl_hardcode_minus_L" != no; then
5545 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5546 else
5547 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5548 fi
5549 fi
5550 fi
5551 fi
5552 else
5553 if test "X$found_a" != "X"; then
5554 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5555 else
5556 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5557 fi
5558 fi
5559 additional_includedir=
5560 case "$found_dir" in
5561 */$acl_libdirstem | */$acl_libdirstem/)
5562 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5563 if test "$name" = 'iconv'; then
5564 LIBICONV_PREFIX="$basedir"
5565 fi
5566 additional_includedir="$basedir/include"
5567 ;;
5568 */$acl_libdirstem2 | */$acl_libdirstem2/)
5569 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5570 if test "$name" = 'iconv'; then
5571 LIBICONV_PREFIX="$basedir"
5572 fi
5573 additional_includedir="$basedir/include"
5574 ;;
5575 esac
5576 if test "X$additional_includedir" != "X"; then
5577 if test "X$additional_includedir" != "X/usr/include"; then
5578 haveit=
5579 if test "X$additional_includedir" = "X/usr/local/include"; then
5580 if test -n "$GCC"; then
5581 case $host_os in
5582 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5583 esac
5584 fi
5585 fi
5586 if test -z "$haveit"; then
5587 for x in $CPPFLAGS $INCICONV; do
5588
5589 acl_save_prefix="$prefix"
5590 prefix="$acl_final_prefix"
5591 acl_save_exec_prefix="$exec_prefix"
5592 exec_prefix="$acl_final_exec_prefix"
5593 eval x=\"$x\"
5594 exec_prefix="$acl_save_exec_prefix"
5595 prefix="$acl_save_prefix"
5596
5597 if test "X$x" = "X-I$additional_includedir"; then
5598 haveit=yes
5599 break
5600 fi
5601 done
5602 if test -z "$haveit"; then
5603 if test -d "$additional_includedir"; then
5604 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5605 fi
5606 fi
5607 fi
5608 fi
5609 fi
5610 if test -n "$found_la"; then
5611 save_libdir="$libdir"
5612 case "$found_la" in
5613 */* | *\\*) . "$found_la" ;;
5614 *) . "./$found_la" ;;
5615 esac
5616 libdir="$save_libdir"
5617 for dep in $dependency_libs; do
5618 case "$dep" in
5619 -L*)
5620 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5621 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5622 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5623 haveit=
5624 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5625 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5626 if test -n "$GCC"; then
5627 case $host_os in
5628 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5629 esac
5630 fi
5631 fi
5632 if test -z "$haveit"; then
5633 haveit=
5634 for x in $LDFLAGS $LIBICONV; do
5635
5636 acl_save_prefix="$prefix"
5637 prefix="$acl_final_prefix"
5638 acl_save_exec_prefix="$exec_prefix"
5639 exec_prefix="$acl_final_exec_prefix"
5640 eval x=\"$x\"
5641 exec_prefix="$acl_save_exec_prefix"
5642 prefix="$acl_save_prefix"
5643
5644 if test "X$x" = "X-L$additional_libdir"; then
5645 haveit=yes
5646 break
5647 fi
5648 done
5649 if test -z "$haveit"; then
5650 if test -d "$additional_libdir"; then
5651 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5652 fi
5653 fi
5654 haveit=
5655 for x in $LDFLAGS $LTLIBICONV; do
5656
5657 acl_save_prefix="$prefix"
5658 prefix="$acl_final_prefix"
5659 acl_save_exec_prefix="$exec_prefix"
5660 exec_prefix="$acl_final_exec_prefix"
5661 eval x=\"$x\"
5662 exec_prefix="$acl_save_exec_prefix"
5663 prefix="$acl_save_prefix"
5664
5665 if test "X$x" = "X-L$additional_libdir"; then
5666 haveit=yes
5667 break
5668 fi
5669 done
5670 if test -z "$haveit"; then
5671 if test -d "$additional_libdir"; then
5672 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5673 fi
5674 fi
5675 fi
5676 fi
5677 ;;
5678 -R*)
5679 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5680 if test "$enable_rpath" != no; then
5681 haveit=
5682 for x in $rpathdirs; do
5683 if test "X$x" = "X$dir"; then
5684 haveit=yes
5685 break
5686 fi
5687 done
5688 if test -z "$haveit"; then
5689 rpathdirs="$rpathdirs $dir"
5690 fi
5691 haveit=
5692 for x in $ltrpathdirs; do
5693 if test "X$x" = "X$dir"; then
5694 haveit=yes
5695 break
5696 fi
5697 done
5698 if test -z "$haveit"; then
5699 ltrpathdirs="$ltrpathdirs $dir"
5700 fi
5701 fi
5702 ;;
5703 -l*)
5704 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5705 ;;
5706 *.la)
5707 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5708 ;;
5709 *)
5710 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5711 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5712 ;;
5713 esac
5714 done
5715 fi
5716 else
5717 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5718 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5719 fi
5720 fi
5721 fi
5722 done
5723 done
5724 if test "X$rpathdirs" != "X"; then
5725 if test -n "$acl_hardcode_libdir_separator"; then
5726 alldirs=
5727 for found_dir in $rpathdirs; do
5728 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5729 done
5730 acl_save_libdir="$libdir"
5731 libdir="$alldirs"
5732 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5733 libdir="$acl_save_libdir"
5734 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5735 else
5736 for found_dir in $rpathdirs; do
5737 acl_save_libdir="$libdir"
5738 libdir="$found_dir"
5739 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5740 libdir="$acl_save_libdir"
5741 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5742 done
5743 fi
5744 fi
5745 if test "X$ltrpathdirs" != "X"; then
5746 for found_dir in $ltrpathdirs; do
5747 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5748 done
5749 fi
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762 am_save_CPPFLAGS="$CPPFLAGS"
5763
5764 for element in $INCICONV; do
5765 haveit=
5766 for x in $CPPFLAGS; do
5767
5768 acl_save_prefix="$prefix"
5769 prefix="$acl_final_prefix"
5770 acl_save_exec_prefix="$exec_prefix"
5771 exec_prefix="$acl_final_exec_prefix"
5772 eval x=\"$x\"
5773 exec_prefix="$acl_save_exec_prefix"
5774 prefix="$acl_save_prefix"
5775
5776 if test "X$x" = "X$element"; then
5777 haveit=yes
5778 break
5779 fi
5780 done
5781 if test -z "$haveit"; then
5782 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5783 fi
5784 done
5785
5786
5787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5788 printf %s "checking for iconv... " >&6; }
5789 if test ${am_cv_func_iconv+y}
5790 then :
5791 printf %s "(cached) " >&6
5792 else $as_nop
5793
5794 am_cv_func_iconv="no, consider installing GNU libiconv"
5795 am_cv_lib_iconv=no
5796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5797 /* end confdefs.h. */
5798
5799 #include <stdlib.h>
5800 #include <iconv.h>
5801
5802 int
5803 main (void)
5804 {
5805 iconv_t cd = iconv_open("","");
5806 iconv(cd,NULL,NULL,NULL,NULL);
5807 iconv_close(cd);
5808 ;
5809 return 0;
5810 }
5811 _ACEOF
5812 if ac_fn_c_try_link "$LINENO"
5813 then :
5814 am_cv_func_iconv=yes
5815 fi
5816 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5817 conftest$ac_exeext conftest.$ac_ext
5818 if test "$am_cv_func_iconv" != yes; then
5819 am_save_LIBS="$LIBS"
5820 LIBS="$LIBS $LIBICONV"
5821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5822 /* end confdefs.h. */
5823
5824 #include <stdlib.h>
5825 #include <iconv.h>
5826
5827 int
5828 main (void)
5829 {
5830 iconv_t cd = iconv_open("","");
5831 iconv(cd,NULL,NULL,NULL,NULL);
5832 iconv_close(cd);
5833 ;
5834 return 0;
5835 }
5836 _ACEOF
5837 if ac_fn_c_try_link "$LINENO"
5838 then :
5839 am_cv_lib_iconv=yes
5840 am_cv_func_iconv=yes
5841 fi
5842 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5843 conftest$ac_exeext conftest.$ac_ext
5844 LIBS="$am_save_LIBS"
5845 fi
5846
5847 fi
5848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5849 printf "%s\n" "$am_cv_func_iconv" >&6; }
5850 if test "$am_cv_func_iconv" = yes; then
5851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
5852 printf %s "checking for working iconv... " >&6; }
5853 if test ${am_cv_func_iconv_works+y}
5854 then :
5855 printf %s "(cached) " >&6
5856 else $as_nop
5857
5858 am_save_LIBS="$LIBS"
5859 if test $am_cv_lib_iconv = yes; then
5860 LIBS="$LIBS $LIBICONV"
5861 fi
5862 am_cv_func_iconv_works=no
5863 for ac_iconv_const in '' 'const'; do
5864 if test "$cross_compiling" = yes
5865 then :
5866 case "$host_os" in
5867 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
5868 *) am_cv_func_iconv_works="guessing yes" ;;
5869 esac
5870 else $as_nop
5871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5872 /* end confdefs.h. */
5873
5874 #include <iconv.h>
5875 #include <string.h>
5876
5877 #ifndef ICONV_CONST
5878 # define ICONV_CONST $ac_iconv_const
5879 #endif
5880
5881 int
5882 main (void)
5883 {
5884 int result = 0;
5885 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
5886 returns. */
5887 {
5888 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
5889 if (cd_utf8_to_88591 != (iconv_t)(-1))
5890 {
5891 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
5892 char buf[10];
5893 ICONV_CONST char *inptr = input;
5894 size_t inbytesleft = strlen (input);
5895 char *outptr = buf;
5896 size_t outbytesleft = sizeof (buf);
5897 size_t res = iconv (cd_utf8_to_88591,
5898 &inptr, &inbytesleft,
5899 &outptr, &outbytesleft);
5900 if (res == 0)
5901 result |= 1;
5902 iconv_close (cd_utf8_to_88591);
5903 }
5904 }
5905 /* Test against Solaris 10 bug: Failures are not distinguishable from
5906 successful returns. */
5907 {
5908 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
5909 if (cd_ascii_to_88591 != (iconv_t)(-1))
5910 {
5911 static ICONV_CONST char input[] = "\263";
5912 char buf[10];
5913 ICONV_CONST char *inptr = input;
5914 size_t inbytesleft = strlen (input);
5915 char *outptr = buf;
5916 size_t outbytesleft = sizeof (buf);
5917 size_t res = iconv (cd_ascii_to_88591,
5918 &inptr, &inbytesleft,
5919 &outptr, &outbytesleft);
5920 if (res == 0)
5921 result |= 2;
5922 iconv_close (cd_ascii_to_88591);
5923 }
5924 }
5925 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
5926 {
5927 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
5928 if (cd_88591_to_utf8 != (iconv_t)(-1))
5929 {
5930 static ICONV_CONST char input[] = "\304";
5931 static char buf[2] = { (char)0xDE, (char)0xAD };
5932 ICONV_CONST char *inptr = input;
5933 size_t inbytesleft = 1;
5934 char *outptr = buf;
5935 size_t outbytesleft = 1;
5936 size_t res = iconv (cd_88591_to_utf8,
5937 &inptr, &inbytesleft,
5938 &outptr, &outbytesleft);
5939 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
5940 result |= 4;
5941 iconv_close (cd_88591_to_utf8);
5942 }
5943 }
5944 #if 0 /* This bug could be worked around by the caller. */
5945 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
5946 {
5947 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
5948 if (cd_88591_to_utf8 != (iconv_t)(-1))
5949 {
5950 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
5951 char buf[50];
5952 ICONV_CONST char *inptr = input;
5953 size_t inbytesleft = strlen (input);
5954 char *outptr = buf;
5955 size_t outbytesleft = sizeof (buf);
5956 size_t res = iconv (cd_88591_to_utf8,
5957 &inptr, &inbytesleft,
5958 &outptr, &outbytesleft);
5959 if ((int)res > 0)
5960 result |= 8;
5961 iconv_close (cd_88591_to_utf8);
5962 }
5963 }
5964 #endif
5965 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
5966 provided. */
5967 if (/* Try standardized names. */
5968 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
5969 /* Try IRIX, OSF/1 names. */
5970 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
5971 /* Try AIX names. */
5972 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
5973 /* Try HP-UX names. */
5974 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
5975 result |= 16;
5976 return result;
5977
5978 ;
5979 return 0;
5980 }
5981 _ACEOF
5982 if ac_fn_c_try_run "$LINENO"
5983 then :
5984 am_cv_func_iconv_works=yes
5985 fi
5986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5987 conftest.$ac_objext conftest.beam conftest.$ac_ext
5988 fi
5989
5990 test "$am_cv_func_iconv_works" = no || break
5991 done
5992 LIBS="$am_save_LIBS"
5993
5994 fi
5995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
5996 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
5997 case "$am_cv_func_iconv_works" in
5998 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
5999 *) am_func_iconv=yes ;;
6000 esac
6001 else
6002 am_func_iconv=no am_cv_lib_iconv=no
6003 fi
6004 if test "$am_func_iconv" = yes; then
6005
6006 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
6007
6008 fi
6009 if test "$am_cv_lib_iconv" = yes; then
6010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6011 printf %s "checking how to link with libiconv... " >&6; }
6012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6013 printf "%s\n" "$LIBICONV" >&6; }
6014 else
6015 CPPFLAGS="$am_save_CPPFLAGS"
6016 LIBICONV=
6017 LTLIBICONV=
6018 fi
6019
6020
6021
6022 if test "$am_cv_func_iconv" = yes; then
6023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
6024 printf %s "checking for iconv declaration... " >&6; }
6025 if test ${am_cv_proto_iconv+y}
6026 then :
6027 printf %s "(cached) " >&6
6028 else $as_nop
6029
6030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6031 /* end confdefs.h. */
6032
6033 #include <stdlib.h>
6034 #include <iconv.h>
6035 extern
6036 #ifdef __cplusplus
6037 "C"
6038 #endif
6039 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
6040 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6041 #else
6042 size_t iconv();
6043 #endif
6044
6045 int
6046 main (void)
6047 {
6048
6049 ;
6050 return 0;
6051 }
6052 _ACEOF
6053 if ac_fn_c_try_compile "$LINENO"
6054 then :
6055 am_cv_proto_iconv_arg1=""
6056 else $as_nop
6057 am_cv_proto_iconv_arg1="const"
6058 fi
6059 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6060 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
6061 fi
6062
6063 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
6065 $am_cv_proto_iconv" >&5
6066 printf "%s\n" "
6067 $am_cv_proto_iconv" >&6; }
6068
6069 printf "%s\n" "#define ICONV_CONST $am_cv_proto_iconv_arg1" >>confdefs.h
6070
6071
6072 fi
6073
6074
6075 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
6088 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
6089 if test ${ac_cv_c_undeclared_builtin_options+y}
6090 then :
6091 printf %s "(cached) " >&6
6092 else $as_nop
6093 ac_save_CFLAGS=$CFLAGS
6094 ac_cv_c_undeclared_builtin_options='cannot detect'
6095 for ac_arg in '' -fno-builtin; do
6096 CFLAGS="$ac_save_CFLAGS $ac_arg"
6097 # This test program should *not* compile successfully.
6098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6099 /* end confdefs.h. */
6100
6101 int
6102 main (void)
6103 {
6104 (void) strchr;
6105 ;
6106 return 0;
6107 }
6108 _ACEOF
6109 if ac_fn_c_try_compile "$LINENO"
6110 then :
6111
6112 else $as_nop
6113 # This test program should compile successfully.
6114 # No library function is consistently available on
6115 # freestanding implementations, so test against a dummy
6116 # declaration. Include always-available headers on the
6117 # off chance that they somehow elicit warnings.
6118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6119 /* end confdefs.h. */
6120 #include <float.h>
6121 #include <limits.h>
6122 #include <stdarg.h>
6123 #include <stddef.h>
6124 extern void ac_decl (int, char *);
6125
6126 int
6127 main (void)
6128 {
6129 (void) ac_decl (0, (char *) 0);
6130 (void) ac_decl;
6131
6132 ;
6133 return 0;
6134 }
6135 _ACEOF
6136 if ac_fn_c_try_compile "$LINENO"
6137 then :
6138 if test x"$ac_arg" = x
6139 then :
6140 ac_cv_c_undeclared_builtin_options='none needed'
6141 else $as_nop
6142 ac_cv_c_undeclared_builtin_options=$ac_arg
6143 fi
6144 break
6145 fi
6146 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6147 fi
6148 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6149 done
6150 CFLAGS=$ac_save_CFLAGS
6151
6152 fi
6153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
6154 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
6155 case $ac_cv_c_undeclared_builtin_options in #(
6156 'cannot detect') :
6157 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6158 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6159 as_fn_error $? "cannot make $CC report undeclared builtins
6160 See \`config.log' for more details" "$LINENO" 5; } ;; #(
6161 'none needed') :
6162 ac_c_undeclared_builtin_options='' ;; #(
6163 *) :
6164 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
6165 esac
6166
6167
6168
6169
6170
6171 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
6172 if test "x$ac_cv_have_decl___clang__" = xyes
6173 then :
6174 CLANGCC="yes"
6175 else $as_nop
6176 CLANGCC="no"
6177 fi
6178 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
6179 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
6180 then :
6181 INTELCC="yes"
6182 else $as_nop
6183 INTELCC="no"
6184 fi
6185 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
6186 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
6187 then :
6188 SUNCC="yes"
6189 else $as_nop
6190 SUNCC="no"
6191 fi
6192
6193
6194
6195
6196
6197
6198
6199
6200 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6201 if test -n "$ac_tool_prefix"; then
6202 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6203 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6205 printf %s "checking for $ac_word... " >&6; }
6206 if test ${ac_cv_path_PKG_CONFIG+y}
6207 then :
6208 printf %s "(cached) " >&6
6209 else $as_nop
6210 case $PKG_CONFIG in
6211 [\\/]* | ?:[\\/]*)
6212 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6213 ;;
6214 *)
6215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216 for as_dir in $PATH
6217 do
6218 IFS=$as_save_IFS
6219 case $as_dir in #(((
6220 '') as_dir=./ ;;
6221 */) ;;
6222 *) as_dir=$as_dir/ ;;
6223 esac
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6226 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6228 break 2
6229 fi
6230 done
6231 done
6232 IFS=$as_save_IFS
6233
6234 ;;
6235 esac
6236 fi
6237 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6238 if test -n "$PKG_CONFIG"; then
6239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6240 printf "%s\n" "$PKG_CONFIG" >&6; }
6241 else
6242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243 printf "%s\n" "no" >&6; }
6244 fi
6245
6246
6247 fi
6248 if test -z "$ac_cv_path_PKG_CONFIG"; then
6249 ac_pt_PKG_CONFIG=$PKG_CONFIG
6250 # Extract the first word of "pkg-config", so it can be a program name with args.
6251 set dummy pkg-config; ac_word=$2
6252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253 printf %s "checking for $ac_word... " >&6; }
6254 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6255 then :
6256 printf %s "(cached) " >&6
6257 else $as_nop
6258 case $ac_pt_PKG_CONFIG in
6259 [\\/]* | ?:[\\/]*)
6260 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6261 ;;
6262 *)
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 for as_dir in $PATH
6265 do
6266 IFS=$as_save_IFS
6267 case $as_dir in #(((
6268 '') as_dir=./ ;;
6269 */) ;;
6270 *) as_dir=$as_dir/ ;;
6271 esac
6272 for ac_exec_ext in '' $ac_executable_extensions; do
6273 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6274 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6276 break 2
6277 fi
6278 done
6279 done
6280 IFS=$as_save_IFS
6281
6282 ;;
6283 esac
6284 fi
6285 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6286 if test -n "$ac_pt_PKG_CONFIG"; then
6287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6288 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6289 else
6290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6291 printf "%s\n" "no" >&6; }
6292 fi
6293
6294 if test "x$ac_pt_PKG_CONFIG" = x; then
6295 PKG_CONFIG=""
6296 else
6297 case $cross_compiling:$ac_tool_warned in
6298 yes:)
6299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6300 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6301 ac_tool_warned=yes ;;
6302 esac
6303 PKG_CONFIG=$ac_pt_PKG_CONFIG
6304 fi
6305 else
6306 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6307 fi
6308
6309 fi
6310 if test -n "$PKG_CONFIG"; then
6311 _pkg_min_version=0.9.0
6312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6313 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6314 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6316 printf "%s\n" "yes" >&6; }
6317 else
6318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319 printf "%s\n" "no" >&6; }
6320 PKG_CONFIG=""
6321 fi
6322 fi
6323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6324 printf %s "checking for a sed that does not truncate output... " >&6; }
6325 if test ${ac_cv_path_SED+y}
6326 then :
6327 printf %s "(cached) " >&6
6328 else $as_nop
6329 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6330 for ac_i in 1 2 3 4 5 6 7; do
6331 ac_script="$ac_script$as_nl$ac_script"
6332 done
6333 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6334 { ac_script=; unset ac_script;}
6335 if test -z "$SED"; then
6336 ac_path_SED_found=false
6337 # Loop through the user's path and test for each of PROGNAME-LIST
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 for as_dir in $PATH
6340 do
6341 IFS=$as_save_IFS
6342 case $as_dir in #(((
6343 '') as_dir=./ ;;
6344 */) ;;
6345 *) as_dir=$as_dir/ ;;
6346 esac
6347 for ac_prog in sed gsed
6348 do
6349 for ac_exec_ext in '' $ac_executable_extensions; do
6350 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6351 as_fn_executable_p "$ac_path_SED" || continue
6352 # Check for GNU ac_path_SED and select it if it is found.
6353 # Check for GNU $ac_path_SED
6354 case `"$ac_path_SED" --version 2>&1` in
6355 *GNU*)
6356 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6357 *)
6358 ac_count=0
6359 printf %s 0123456789 >"conftest.in"
6360 while :
6361 do
6362 cat "conftest.in" "conftest.in" >"conftest.tmp"
6363 mv "conftest.tmp" "conftest.in"
6364 cp "conftest.in" "conftest.nl"
6365 printf "%s\n" '' >> "conftest.nl"
6366 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6367 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6368 as_fn_arith $ac_count + 1 && ac_count=$as_val
6369 if test $ac_count -gt ${ac_path_SED_max-0}; then
6370 # Best one so far, save it but keep looking for a better one
6371 ac_cv_path_SED="$ac_path_SED"
6372 ac_path_SED_max=$ac_count
6373 fi
6374 # 10*(2^10) chars as input seems more than enough
6375 test $ac_count -gt 10 && break
6376 done
6377 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6378 esac
6379
6380 $ac_path_SED_found && break 3
6381 done
6382 done
6383 done
6384 IFS=$as_save_IFS
6385 if test -z "$ac_cv_path_SED"; then
6386 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6387 fi
6388 else
6389 ac_cv_path_SED=$SED
6390 fi
6391
6392 fi
6393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6394 printf "%s\n" "$ac_cv_path_SED" >&6; }
6395 SED="$ac_cv_path_SED"
6396 rm -f conftest.sed
6397
6398
6399
6400
6401
6402
6403 # Check whether --enable-selective-werror was given.
6404 if test ${enable_selective_werror+y}
6405 then :
6406 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
6407 else $as_nop
6408 SELECTIVE_WERROR=yes
6409 fi
6410
6411
6412
6413
6414
6415 # -v is too short to test reliably with XORG_TESTSET_CFLAG
6416 if test "x$SUNCC" = "xyes"; then
6417 BASE_CFLAGS="-v"
6418 else
6419 BASE_CFLAGS=""
6420 fi
6421
6422 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436 xorg_testset_save_CFLAGS="$CFLAGS"
6437
6438 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6441 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6442 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6443 then :
6444 printf %s "(cached) " >&6
6445 else $as_nop
6446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447 /* end confdefs.h. */
6448 int i;
6449 _ACEOF
6450 if ac_fn_c_try_compile "$LINENO"
6451 then :
6452 xorg_cv_cc_flag_unknown_warning_option=yes
6453 else $as_nop
6454 xorg_cv_cc_flag_unknown_warning_option=no
6455 fi
6456 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6457 fi
6458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6459 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6460 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6461 CFLAGS="$xorg_testset_save_CFLAGS"
6462 fi
6463
6464 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6467 fi
6468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6470 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6471 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6472 then :
6473 printf %s "(cached) " >&6
6474 else $as_nop
6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476 /* end confdefs.h. */
6477 int i;
6478 _ACEOF
6479 if ac_fn_c_try_compile "$LINENO"
6480 then :
6481 xorg_cv_cc_flag_unused_command_line_argument=yes
6482 else $as_nop
6483 xorg_cv_cc_flag_unused_command_line_argument=no
6484 fi
6485 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6486 fi
6487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6488 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6489 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6490 CFLAGS="$xorg_testset_save_CFLAGS"
6491 fi
6492
6493 found="no"
6494
6495 if test $found = "no" ; then
6496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6498 fi
6499
6500 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6502 fi
6503
6504 CFLAGS="$CFLAGS -Wall"
6505
6506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
6507 printf %s "checking if $CC supports -Wall... " >&6; }
6508 cacheid=xorg_cv_cc_flag__Wall
6509 if eval test \${$cacheid+y}
6510 then :
6511 printf %s "(cached) " >&6
6512 else $as_nop
6513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514 /* end confdefs.h. */
6515 int i;
6516 int
6517 main (void)
6518 {
6519
6520 ;
6521 return 0;
6522 }
6523 _ACEOF
6524 if ac_fn_c_try_link "$LINENO"
6525 then :
6526 eval $cacheid=yes
6527 else $as_nop
6528 eval $cacheid=no
6529 fi
6530 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6531 conftest$ac_exeext conftest.$ac_ext
6532 fi
6533
6534
6535 CFLAGS="$xorg_testset_save_CFLAGS"
6536
6537 eval supported=\$$cacheid
6538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6539 printf "%s\n" "$supported" >&6; }
6540 if test "$supported" = "yes" ; then
6541 BASE_CFLAGS="$BASE_CFLAGS -Wall"
6542 found="yes"
6543 fi
6544 fi
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560 xorg_testset_save_CFLAGS="$CFLAGS"
6561
6562 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6565 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6566 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6567 then :
6568 printf %s "(cached) " >&6
6569 else $as_nop
6570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6571 /* end confdefs.h. */
6572 int i;
6573 _ACEOF
6574 if ac_fn_c_try_compile "$LINENO"
6575 then :
6576 xorg_cv_cc_flag_unknown_warning_option=yes
6577 else $as_nop
6578 xorg_cv_cc_flag_unknown_warning_option=no
6579 fi
6580 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6581 fi
6582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6583 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6584 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6585 CFLAGS="$xorg_testset_save_CFLAGS"
6586 fi
6587
6588 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6590 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6591 fi
6592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6594 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6595 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6596 then :
6597 printf %s "(cached) " >&6
6598 else $as_nop
6599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600 /* end confdefs.h. */
6601 int i;
6602 _ACEOF
6603 if ac_fn_c_try_compile "$LINENO"
6604 then :
6605 xorg_cv_cc_flag_unused_command_line_argument=yes
6606 else $as_nop
6607 xorg_cv_cc_flag_unused_command_line_argument=no
6608 fi
6609 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6610 fi
6611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6612 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6613 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6614 CFLAGS="$xorg_testset_save_CFLAGS"
6615 fi
6616
6617 found="no"
6618
6619 if test $found = "no" ; then
6620 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6622 fi
6623
6624 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6626 fi
6627
6628 CFLAGS="$CFLAGS -Wpointer-arith"
6629
6630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
6631 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
6632 cacheid=xorg_cv_cc_flag__Wpointer_arith
6633 if eval test \${$cacheid+y}
6634 then :
6635 printf %s "(cached) " >&6
6636 else $as_nop
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638 /* end confdefs.h. */
6639 int i;
6640 int
6641 main (void)
6642 {
6643
6644 ;
6645 return 0;
6646 }
6647 _ACEOF
6648 if ac_fn_c_try_link "$LINENO"
6649 then :
6650 eval $cacheid=yes
6651 else $as_nop
6652 eval $cacheid=no
6653 fi
6654 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6655 conftest$ac_exeext conftest.$ac_ext
6656 fi
6657
6658
6659 CFLAGS="$xorg_testset_save_CFLAGS"
6660
6661 eval supported=\$$cacheid
6662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6663 printf "%s\n" "$supported" >&6; }
6664 if test "$supported" = "yes" ; then
6665 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
6666 found="yes"
6667 fi
6668 fi
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684 xorg_testset_save_CFLAGS="$CFLAGS"
6685
6686 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6689 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6690 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6691 then :
6692 printf %s "(cached) " >&6
6693 else $as_nop
6694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6695 /* end confdefs.h. */
6696 int i;
6697 _ACEOF
6698 if ac_fn_c_try_compile "$LINENO"
6699 then :
6700 xorg_cv_cc_flag_unknown_warning_option=yes
6701 else $as_nop
6702 xorg_cv_cc_flag_unknown_warning_option=no
6703 fi
6704 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6705 fi
6706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6707 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6708 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6709 CFLAGS="$xorg_testset_save_CFLAGS"
6710 fi
6711
6712 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6715 fi
6716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6718 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6719 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6720 then :
6721 printf %s "(cached) " >&6
6722 else $as_nop
6723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6724 /* end confdefs.h. */
6725 int i;
6726 _ACEOF
6727 if ac_fn_c_try_compile "$LINENO"
6728 then :
6729 xorg_cv_cc_flag_unused_command_line_argument=yes
6730 else $as_nop
6731 xorg_cv_cc_flag_unused_command_line_argument=no
6732 fi
6733 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6734 fi
6735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6736 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6737 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6738 CFLAGS="$xorg_testset_save_CFLAGS"
6739 fi
6740
6741 found="no"
6742
6743 if test $found = "no" ; then
6744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6746 fi
6747
6748 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6750 fi
6751
6752 CFLAGS="$CFLAGS -Wmissing-declarations"
6753
6754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
6755 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
6756 cacheid=xorg_cv_cc_flag__Wmissing_declarations
6757 if eval test \${$cacheid+y}
6758 then :
6759 printf %s "(cached) " >&6
6760 else $as_nop
6761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762 /* end confdefs.h. */
6763 int i;
6764 int
6765 main (void)
6766 {
6767
6768 ;
6769 return 0;
6770 }
6771 _ACEOF
6772 if ac_fn_c_try_link "$LINENO"
6773 then :
6774 eval $cacheid=yes
6775 else $as_nop
6776 eval $cacheid=no
6777 fi
6778 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6779 conftest$ac_exeext conftest.$ac_ext
6780 fi
6781
6782
6783 CFLAGS="$xorg_testset_save_CFLAGS"
6784
6785 eval supported=\$$cacheid
6786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6787 printf "%s\n" "$supported" >&6; }
6788 if test "$supported" = "yes" ; then
6789 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
6790 found="yes"
6791 fi
6792 fi
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808 xorg_testset_save_CFLAGS="$CFLAGS"
6809
6810 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6811 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6813 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6814 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6815 then :
6816 printf %s "(cached) " >&6
6817 else $as_nop
6818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819 /* end confdefs.h. */
6820 int i;
6821 _ACEOF
6822 if ac_fn_c_try_compile "$LINENO"
6823 then :
6824 xorg_cv_cc_flag_unknown_warning_option=yes
6825 else $as_nop
6826 xorg_cv_cc_flag_unknown_warning_option=no
6827 fi
6828 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6829 fi
6830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6831 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6832 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6833 CFLAGS="$xorg_testset_save_CFLAGS"
6834 fi
6835
6836 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6839 fi
6840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6842 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6843 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6844 then :
6845 printf %s "(cached) " >&6
6846 else $as_nop
6847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h. */
6849 int i;
6850 _ACEOF
6851 if ac_fn_c_try_compile "$LINENO"
6852 then :
6853 xorg_cv_cc_flag_unused_command_line_argument=yes
6854 else $as_nop
6855 xorg_cv_cc_flag_unused_command_line_argument=no
6856 fi
6857 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6858 fi
6859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6860 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6861 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6862 CFLAGS="$xorg_testset_save_CFLAGS"
6863 fi
6864
6865 found="no"
6866
6867 if test $found = "no" ; then
6868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6870 fi
6871
6872 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6874 fi
6875
6876 CFLAGS="$CFLAGS -Wformat=2"
6877
6878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
6879 printf %s "checking if $CC supports -Wformat=2... " >&6; }
6880 cacheid=xorg_cv_cc_flag__Wformat_2
6881 if eval test \${$cacheid+y}
6882 then :
6883 printf %s "(cached) " >&6
6884 else $as_nop
6885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6886 /* end confdefs.h. */
6887 int i;
6888 int
6889 main (void)
6890 {
6891
6892 ;
6893 return 0;
6894 }
6895 _ACEOF
6896 if ac_fn_c_try_link "$LINENO"
6897 then :
6898 eval $cacheid=yes
6899 else $as_nop
6900 eval $cacheid=no
6901 fi
6902 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6903 conftest$ac_exeext conftest.$ac_ext
6904 fi
6905
6906
6907 CFLAGS="$xorg_testset_save_CFLAGS"
6908
6909 eval supported=\$$cacheid
6910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6911 printf "%s\n" "$supported" >&6; }
6912 if test "$supported" = "yes" ; then
6913 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
6914 found="yes"
6915 fi
6916 fi
6917
6918 if test $found = "no" ; then
6919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6921 fi
6922
6923 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6925 fi
6926
6927 CFLAGS="$CFLAGS -Wformat"
6928
6929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
6930 printf %s "checking if $CC supports -Wformat... " >&6; }
6931 cacheid=xorg_cv_cc_flag__Wformat
6932 if eval test \${$cacheid+y}
6933 then :
6934 printf %s "(cached) " >&6
6935 else $as_nop
6936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937 /* end confdefs.h. */
6938 int i;
6939 int
6940 main (void)
6941 {
6942
6943 ;
6944 return 0;
6945 }
6946 _ACEOF
6947 if ac_fn_c_try_link "$LINENO"
6948 then :
6949 eval $cacheid=yes
6950 else $as_nop
6951 eval $cacheid=no
6952 fi
6953 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6954 conftest$ac_exeext conftest.$ac_ext
6955 fi
6956
6957
6958 CFLAGS="$xorg_testset_save_CFLAGS"
6959
6960 eval supported=\$$cacheid
6961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6962 printf "%s\n" "$supported" >&6; }
6963 if test "$supported" = "yes" ; then
6964 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
6965 found="yes"
6966 fi
6967 fi
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985 xorg_testset_save_CFLAGS="$CFLAGS"
6986
6987 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6990 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6991 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6992 then :
6993 printf %s "(cached) " >&6
6994 else $as_nop
6995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996 /* end confdefs.h. */
6997 int i;
6998 _ACEOF
6999 if ac_fn_c_try_compile "$LINENO"
7000 then :
7001 xorg_cv_cc_flag_unknown_warning_option=yes
7002 else $as_nop
7003 xorg_cv_cc_flag_unknown_warning_option=no
7004 fi
7005 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7006 fi
7007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7008 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7009 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7010 CFLAGS="$xorg_testset_save_CFLAGS"
7011 fi
7012
7013 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7016 fi
7017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7019 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7020 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7021 then :
7022 printf %s "(cached) " >&6
7023 else $as_nop
7024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7025 /* end confdefs.h. */
7026 int i;
7027 _ACEOF
7028 if ac_fn_c_try_compile "$LINENO"
7029 then :
7030 xorg_cv_cc_flag_unused_command_line_argument=yes
7031 else $as_nop
7032 xorg_cv_cc_flag_unused_command_line_argument=no
7033 fi
7034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7035 fi
7036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7037 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7038 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7039 CFLAGS="$xorg_testset_save_CFLAGS"
7040 fi
7041
7042 found="no"
7043
7044 if test $found = "no" ; then
7045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7046 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7047 fi
7048
7049 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7051 fi
7052
7053 CFLAGS="$CFLAGS -Wstrict-prototypes"
7054
7055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
7056 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
7057 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
7058 if eval test \${$cacheid+y}
7059 then :
7060 printf %s "(cached) " >&6
7061 else $as_nop
7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h. */
7064 int i;
7065 int
7066 main (void)
7067 {
7068
7069 ;
7070 return 0;
7071 }
7072 _ACEOF
7073 if ac_fn_c_try_link "$LINENO"
7074 then :
7075 eval $cacheid=yes
7076 else $as_nop
7077 eval $cacheid=no
7078 fi
7079 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7080 conftest$ac_exeext conftest.$ac_ext
7081 fi
7082
7083
7084 CFLAGS="$xorg_testset_save_CFLAGS"
7085
7086 eval supported=\$$cacheid
7087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7088 printf "%s\n" "$supported" >&6; }
7089 if test "$supported" = "yes" ; then
7090 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
7091 found="yes"
7092 fi
7093 fi
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109 xorg_testset_save_CFLAGS="$CFLAGS"
7110
7111 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7114 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7115 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7116 then :
7117 printf %s "(cached) " >&6
7118 else $as_nop
7119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h. */
7121 int i;
7122 _ACEOF
7123 if ac_fn_c_try_compile "$LINENO"
7124 then :
7125 xorg_cv_cc_flag_unknown_warning_option=yes
7126 else $as_nop
7127 xorg_cv_cc_flag_unknown_warning_option=no
7128 fi
7129 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7130 fi
7131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7132 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7133 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7134 CFLAGS="$xorg_testset_save_CFLAGS"
7135 fi
7136
7137 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7140 fi
7141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7143 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7144 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7145 then :
7146 printf %s "(cached) " >&6
7147 else $as_nop
7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149 /* end confdefs.h. */
7150 int i;
7151 _ACEOF
7152 if ac_fn_c_try_compile "$LINENO"
7153 then :
7154 xorg_cv_cc_flag_unused_command_line_argument=yes
7155 else $as_nop
7156 xorg_cv_cc_flag_unused_command_line_argument=no
7157 fi
7158 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7159 fi
7160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7161 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7162 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7163 CFLAGS="$xorg_testset_save_CFLAGS"
7164 fi
7165
7166 found="no"
7167
7168 if test $found = "no" ; then
7169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7171 fi
7172
7173 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7175 fi
7176
7177 CFLAGS="$CFLAGS -Wmissing-prototypes"
7178
7179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
7180 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
7181 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
7182 if eval test \${$cacheid+y}
7183 then :
7184 printf %s "(cached) " >&6
7185 else $as_nop
7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187 /* end confdefs.h. */
7188 int i;
7189 int
7190 main (void)
7191 {
7192
7193 ;
7194 return 0;
7195 }
7196 _ACEOF
7197 if ac_fn_c_try_link "$LINENO"
7198 then :
7199 eval $cacheid=yes
7200 else $as_nop
7201 eval $cacheid=no
7202 fi
7203 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7204 conftest$ac_exeext conftest.$ac_ext
7205 fi
7206
7207
7208 CFLAGS="$xorg_testset_save_CFLAGS"
7209
7210 eval supported=\$$cacheid
7211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7212 printf "%s\n" "$supported" >&6; }
7213 if test "$supported" = "yes" ; then
7214 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
7215 found="yes"
7216 fi
7217 fi
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233 xorg_testset_save_CFLAGS="$CFLAGS"
7234
7235 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7236 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7238 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7239 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7240 then :
7241 printf %s "(cached) " >&6
7242 else $as_nop
7243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244 /* end confdefs.h. */
7245 int i;
7246 _ACEOF
7247 if ac_fn_c_try_compile "$LINENO"
7248 then :
7249 xorg_cv_cc_flag_unknown_warning_option=yes
7250 else $as_nop
7251 xorg_cv_cc_flag_unknown_warning_option=no
7252 fi
7253 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7254 fi
7255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7256 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7257 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7258 CFLAGS="$xorg_testset_save_CFLAGS"
7259 fi
7260
7261 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7264 fi
7265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7267 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7268 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7269 then :
7270 printf %s "(cached) " >&6
7271 else $as_nop
7272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7273 /* end confdefs.h. */
7274 int i;
7275 _ACEOF
7276 if ac_fn_c_try_compile "$LINENO"
7277 then :
7278 xorg_cv_cc_flag_unused_command_line_argument=yes
7279 else $as_nop
7280 xorg_cv_cc_flag_unused_command_line_argument=no
7281 fi
7282 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7283 fi
7284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7285 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7286 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7287 CFLAGS="$xorg_testset_save_CFLAGS"
7288 fi
7289
7290 found="no"
7291
7292 if test $found = "no" ; then
7293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7295 fi
7296
7297 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7299 fi
7300
7301 CFLAGS="$CFLAGS -Wnested-externs"
7302
7303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
7304 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
7305 cacheid=xorg_cv_cc_flag__Wnested_externs
7306 if eval test \${$cacheid+y}
7307 then :
7308 printf %s "(cached) " >&6
7309 else $as_nop
7310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7311 /* end confdefs.h. */
7312 int i;
7313 int
7314 main (void)
7315 {
7316
7317 ;
7318 return 0;
7319 }
7320 _ACEOF
7321 if ac_fn_c_try_link "$LINENO"
7322 then :
7323 eval $cacheid=yes
7324 else $as_nop
7325 eval $cacheid=no
7326 fi
7327 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7328 conftest$ac_exeext conftest.$ac_ext
7329 fi
7330
7331
7332 CFLAGS="$xorg_testset_save_CFLAGS"
7333
7334 eval supported=\$$cacheid
7335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7336 printf "%s\n" "$supported" >&6; }
7337 if test "$supported" = "yes" ; then
7338 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
7339 found="yes"
7340 fi
7341 fi
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357 xorg_testset_save_CFLAGS="$CFLAGS"
7358
7359 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7362 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7363 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7364 then :
7365 printf %s "(cached) " >&6
7366 else $as_nop
7367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7368 /* end confdefs.h. */
7369 int i;
7370 _ACEOF
7371 if ac_fn_c_try_compile "$LINENO"
7372 then :
7373 xorg_cv_cc_flag_unknown_warning_option=yes
7374 else $as_nop
7375 xorg_cv_cc_flag_unknown_warning_option=no
7376 fi
7377 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7378 fi
7379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7380 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7382 CFLAGS="$xorg_testset_save_CFLAGS"
7383 fi
7384
7385 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7388 fi
7389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7391 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7392 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7393 then :
7394 printf %s "(cached) " >&6
7395 else $as_nop
7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397 /* end confdefs.h. */
7398 int i;
7399 _ACEOF
7400 if ac_fn_c_try_compile "$LINENO"
7401 then :
7402 xorg_cv_cc_flag_unused_command_line_argument=yes
7403 else $as_nop
7404 xorg_cv_cc_flag_unused_command_line_argument=no
7405 fi
7406 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7407 fi
7408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7409 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7411 CFLAGS="$xorg_testset_save_CFLAGS"
7412 fi
7413
7414 found="no"
7415
7416 if test $found = "no" ; then
7417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7419 fi
7420
7421 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7423 fi
7424
7425 CFLAGS="$CFLAGS -Wbad-function-cast"
7426
7427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
7428 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
7429 cacheid=xorg_cv_cc_flag__Wbad_function_cast
7430 if eval test \${$cacheid+y}
7431 then :
7432 printf %s "(cached) " >&6
7433 else $as_nop
7434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435 /* end confdefs.h. */
7436 int i;
7437 int
7438 main (void)
7439 {
7440
7441 ;
7442 return 0;
7443 }
7444 _ACEOF
7445 if ac_fn_c_try_link "$LINENO"
7446 then :
7447 eval $cacheid=yes
7448 else $as_nop
7449 eval $cacheid=no
7450 fi
7451 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7452 conftest$ac_exeext conftest.$ac_ext
7453 fi
7454
7455
7456 CFLAGS="$xorg_testset_save_CFLAGS"
7457
7458 eval supported=\$$cacheid
7459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7460 printf "%s\n" "$supported" >&6; }
7461 if test "$supported" = "yes" ; then
7462 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
7463 found="yes"
7464 fi
7465 fi
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481 xorg_testset_save_CFLAGS="$CFLAGS"
7482
7483 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7484 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7486 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7487 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7488 then :
7489 printf %s "(cached) " >&6
7490 else $as_nop
7491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7492 /* end confdefs.h. */
7493 int i;
7494 _ACEOF
7495 if ac_fn_c_try_compile "$LINENO"
7496 then :
7497 xorg_cv_cc_flag_unknown_warning_option=yes
7498 else $as_nop
7499 xorg_cv_cc_flag_unknown_warning_option=no
7500 fi
7501 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7502 fi
7503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7504 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7505 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7506 CFLAGS="$xorg_testset_save_CFLAGS"
7507 fi
7508
7509 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7511 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7512 fi
7513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7515 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7516 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7517 then :
7518 printf %s "(cached) " >&6
7519 else $as_nop
7520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7521 /* end confdefs.h. */
7522 int i;
7523 _ACEOF
7524 if ac_fn_c_try_compile "$LINENO"
7525 then :
7526 xorg_cv_cc_flag_unused_command_line_argument=yes
7527 else $as_nop
7528 xorg_cv_cc_flag_unused_command_line_argument=no
7529 fi
7530 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7531 fi
7532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7533 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7534 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7535 CFLAGS="$xorg_testset_save_CFLAGS"
7536 fi
7537
7538 found="no"
7539
7540 if test $found = "no" ; then
7541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7543 fi
7544
7545 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7547 fi
7548
7549 CFLAGS="$CFLAGS -Wold-style-definition"
7550
7551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
7552 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
7553 cacheid=xorg_cv_cc_flag__Wold_style_definition
7554 if eval test \${$cacheid+y}
7555 then :
7556 printf %s "(cached) " >&6
7557 else $as_nop
7558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559 /* end confdefs.h. */
7560 int i;
7561 int
7562 main (void)
7563 {
7564
7565 ;
7566 return 0;
7567 }
7568 _ACEOF
7569 if ac_fn_c_try_link "$LINENO"
7570 then :
7571 eval $cacheid=yes
7572 else $as_nop
7573 eval $cacheid=no
7574 fi
7575 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7576 conftest$ac_exeext conftest.$ac_ext
7577 fi
7578
7579
7580 CFLAGS="$xorg_testset_save_CFLAGS"
7581
7582 eval supported=\$$cacheid
7583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7584 printf "%s\n" "$supported" >&6; }
7585 if test "$supported" = "yes" ; then
7586 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
7587 found="yes"
7588 fi
7589 fi
7590
7591 if test $found = "no" ; then
7592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7594 fi
7595
7596 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7598 fi
7599
7600 CFLAGS="$CFLAGS -fd"
7601
7602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
7603 printf %s "checking if $CC supports -fd... " >&6; }
7604 cacheid=xorg_cv_cc_flag__fd
7605 if eval test \${$cacheid+y}
7606 then :
7607 printf %s "(cached) " >&6
7608 else $as_nop
7609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7610 /* end confdefs.h. */
7611 int i;
7612 int
7613 main (void)
7614 {
7615
7616 ;
7617 return 0;
7618 }
7619 _ACEOF
7620 if ac_fn_c_try_link "$LINENO"
7621 then :
7622 eval $cacheid=yes
7623 else $as_nop
7624 eval $cacheid=no
7625 fi
7626 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7627 conftest$ac_exeext conftest.$ac_ext
7628 fi
7629
7630
7631 CFLAGS="$xorg_testset_save_CFLAGS"
7632
7633 eval supported=\$$cacheid
7634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7635 printf "%s\n" "$supported" >&6; }
7636 if test "$supported" = "yes" ; then
7637 BASE_CFLAGS="$BASE_CFLAGS -fd"
7638 found="yes"
7639 fi
7640 fi
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656 xorg_testset_save_CFLAGS="$CFLAGS"
7657
7658 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7661 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7662 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7663 then :
7664 printf %s "(cached) " >&6
7665 else $as_nop
7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7667 /* end confdefs.h. */
7668 int i;
7669 _ACEOF
7670 if ac_fn_c_try_compile "$LINENO"
7671 then :
7672 xorg_cv_cc_flag_unknown_warning_option=yes
7673 else $as_nop
7674 xorg_cv_cc_flag_unknown_warning_option=no
7675 fi
7676 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7677 fi
7678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7679 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7680 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7681 CFLAGS="$xorg_testset_save_CFLAGS"
7682 fi
7683
7684 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7687 fi
7688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7690 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7691 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7692 then :
7693 printf %s "(cached) " >&6
7694 else $as_nop
7695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h. */
7697 int i;
7698 _ACEOF
7699 if ac_fn_c_try_compile "$LINENO"
7700 then :
7701 xorg_cv_cc_flag_unused_command_line_argument=yes
7702 else $as_nop
7703 xorg_cv_cc_flag_unused_command_line_argument=no
7704 fi
7705 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7706 fi
7707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7708 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7709 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7710 CFLAGS="$xorg_testset_save_CFLAGS"
7711 fi
7712
7713 found="no"
7714
7715 if test $found = "no" ; then
7716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7718 fi
7719
7720 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7722 fi
7723
7724 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
7725
7726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
7727 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
7728 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
7729 if eval test \${$cacheid+y}
7730 then :
7731 printf %s "(cached) " >&6
7732 else $as_nop
7733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7734 /* end confdefs.h. */
7735 int i;
7736 int
7737 main (void)
7738 {
7739
7740 ;
7741 return 0;
7742 }
7743 _ACEOF
7744 if ac_fn_c_try_link "$LINENO"
7745 then :
7746 eval $cacheid=yes
7747 else $as_nop
7748 eval $cacheid=no
7749 fi
7750 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7751 conftest$ac_exeext conftest.$ac_ext
7752 fi
7753
7754
7755 CFLAGS="$xorg_testset_save_CFLAGS"
7756
7757 eval supported=\$$cacheid
7758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7759 printf "%s\n" "$supported" >&6; }
7760 if test "$supported" = "yes" ; then
7761 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
7762 found="yes"
7763 fi
7764 fi
7765
7766
7767
7768
7769
7770 # This chunk adds additional warnings that could catch undesired effects.
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784 xorg_testset_save_CFLAGS="$CFLAGS"
7785
7786 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7787 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7789 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7790 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7791 then :
7792 printf %s "(cached) " >&6
7793 else $as_nop
7794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795 /* end confdefs.h. */
7796 int i;
7797 _ACEOF
7798 if ac_fn_c_try_compile "$LINENO"
7799 then :
7800 xorg_cv_cc_flag_unknown_warning_option=yes
7801 else $as_nop
7802 xorg_cv_cc_flag_unknown_warning_option=no
7803 fi
7804 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7805 fi
7806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7807 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7808 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7809 CFLAGS="$xorg_testset_save_CFLAGS"
7810 fi
7811
7812 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7814 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7815 fi
7816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7818 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7819 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7820 then :
7821 printf %s "(cached) " >&6
7822 else $as_nop
7823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824 /* end confdefs.h. */
7825 int i;
7826 _ACEOF
7827 if ac_fn_c_try_compile "$LINENO"
7828 then :
7829 xorg_cv_cc_flag_unused_command_line_argument=yes
7830 else $as_nop
7831 xorg_cv_cc_flag_unused_command_line_argument=no
7832 fi
7833 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7834 fi
7835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7836 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7837 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7838 CFLAGS="$xorg_testset_save_CFLAGS"
7839 fi
7840
7841 found="no"
7842
7843 if test $found = "no" ; then
7844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7846 fi
7847
7848 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7850 fi
7851
7852 CFLAGS="$CFLAGS -Wunused"
7853
7854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
7855 printf %s "checking if $CC supports -Wunused... " >&6; }
7856 cacheid=xorg_cv_cc_flag__Wunused
7857 if eval test \${$cacheid+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 int
7865 main (void)
7866 {
7867
7868 ;
7869 return 0;
7870 }
7871 _ACEOF
7872 if ac_fn_c_try_link "$LINENO"
7873 then :
7874 eval $cacheid=yes
7875 else $as_nop
7876 eval $cacheid=no
7877 fi
7878 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7879 conftest$ac_exeext conftest.$ac_ext
7880 fi
7881
7882
7883 CFLAGS="$xorg_testset_save_CFLAGS"
7884
7885 eval supported=\$$cacheid
7886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7887 printf "%s\n" "$supported" >&6; }
7888 if test "$supported" = "yes" ; then
7889 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
7890 found="yes"
7891 fi
7892 fi
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908 xorg_testset_save_CFLAGS="$CFLAGS"
7909
7910 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7913 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7914 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7915 then :
7916 printf %s "(cached) " >&6
7917 else $as_nop
7918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919 /* end confdefs.h. */
7920 int i;
7921 _ACEOF
7922 if ac_fn_c_try_compile "$LINENO"
7923 then :
7924 xorg_cv_cc_flag_unknown_warning_option=yes
7925 else $as_nop
7926 xorg_cv_cc_flag_unknown_warning_option=no
7927 fi
7928 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7929 fi
7930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7931 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7933 CFLAGS="$xorg_testset_save_CFLAGS"
7934 fi
7935
7936 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7939 fi
7940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7942 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7943 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7944 then :
7945 printf %s "(cached) " >&6
7946 else $as_nop
7947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7948 /* end confdefs.h. */
7949 int i;
7950 _ACEOF
7951 if ac_fn_c_try_compile "$LINENO"
7952 then :
7953 xorg_cv_cc_flag_unused_command_line_argument=yes
7954 else $as_nop
7955 xorg_cv_cc_flag_unused_command_line_argument=no
7956 fi
7957 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7958 fi
7959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7960 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7961 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7962 CFLAGS="$xorg_testset_save_CFLAGS"
7963 fi
7964
7965 found="no"
7966
7967 if test $found = "no" ; then
7968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7970 fi
7971
7972 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7974 fi
7975
7976 CFLAGS="$CFLAGS -Wuninitialized"
7977
7978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
7979 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
7980 cacheid=xorg_cv_cc_flag__Wuninitialized
7981 if eval test \${$cacheid+y}
7982 then :
7983 printf %s "(cached) " >&6
7984 else $as_nop
7985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986 /* end confdefs.h. */
7987 int i;
7988 int
7989 main (void)
7990 {
7991
7992 ;
7993 return 0;
7994 }
7995 _ACEOF
7996 if ac_fn_c_try_link "$LINENO"
7997 then :
7998 eval $cacheid=yes
7999 else $as_nop
8000 eval $cacheid=no
8001 fi
8002 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8003 conftest$ac_exeext conftest.$ac_ext
8004 fi
8005
8006
8007 CFLAGS="$xorg_testset_save_CFLAGS"
8008
8009 eval supported=\$$cacheid
8010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8011 printf "%s\n" "$supported" >&6; }
8012 if test "$supported" = "yes" ; then
8013 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
8014 found="yes"
8015 fi
8016 fi
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032 xorg_testset_save_CFLAGS="$CFLAGS"
8033
8034 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8037 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8038 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8039 then :
8040 printf %s "(cached) " >&6
8041 else $as_nop
8042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8043 /* end confdefs.h. */
8044 int i;
8045 _ACEOF
8046 if ac_fn_c_try_compile "$LINENO"
8047 then :
8048 xorg_cv_cc_flag_unknown_warning_option=yes
8049 else $as_nop
8050 xorg_cv_cc_flag_unknown_warning_option=no
8051 fi
8052 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8053 fi
8054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8055 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8056 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8057 CFLAGS="$xorg_testset_save_CFLAGS"
8058 fi
8059
8060 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8062 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8063 fi
8064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8066 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8067 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8068 then :
8069 printf %s "(cached) " >&6
8070 else $as_nop
8071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8072 /* end confdefs.h. */
8073 int i;
8074 _ACEOF
8075 if ac_fn_c_try_compile "$LINENO"
8076 then :
8077 xorg_cv_cc_flag_unused_command_line_argument=yes
8078 else $as_nop
8079 xorg_cv_cc_flag_unused_command_line_argument=no
8080 fi
8081 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8082 fi
8083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8084 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8085 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8086 CFLAGS="$xorg_testset_save_CFLAGS"
8087 fi
8088
8089 found="no"
8090
8091 if test $found = "no" ; then
8092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8094 fi
8095
8096 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8098 fi
8099
8100 CFLAGS="$CFLAGS -Wshadow"
8101
8102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
8103 printf %s "checking if $CC supports -Wshadow... " >&6; }
8104 cacheid=xorg_cv_cc_flag__Wshadow
8105 if eval test \${$cacheid+y}
8106 then :
8107 printf %s "(cached) " >&6
8108 else $as_nop
8109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8110 /* end confdefs.h. */
8111 int i;
8112 int
8113 main (void)
8114 {
8115
8116 ;
8117 return 0;
8118 }
8119 _ACEOF
8120 if ac_fn_c_try_link "$LINENO"
8121 then :
8122 eval $cacheid=yes
8123 else $as_nop
8124 eval $cacheid=no
8125 fi
8126 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8127 conftest$ac_exeext conftest.$ac_ext
8128 fi
8129
8130
8131 CFLAGS="$xorg_testset_save_CFLAGS"
8132
8133 eval supported=\$$cacheid
8134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8135 printf "%s\n" "$supported" >&6; }
8136 if test "$supported" = "yes" ; then
8137 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
8138 found="yes"
8139 fi
8140 fi
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156 xorg_testset_save_CFLAGS="$CFLAGS"
8157
8158 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8159 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8161 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8162 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8163 then :
8164 printf %s "(cached) " >&6
8165 else $as_nop
8166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8167 /* end confdefs.h. */
8168 int i;
8169 _ACEOF
8170 if ac_fn_c_try_compile "$LINENO"
8171 then :
8172 xorg_cv_cc_flag_unknown_warning_option=yes
8173 else $as_nop
8174 xorg_cv_cc_flag_unknown_warning_option=no
8175 fi
8176 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8177 fi
8178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8179 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8180 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8181 CFLAGS="$xorg_testset_save_CFLAGS"
8182 fi
8183
8184 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8187 fi
8188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8190 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8191 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8192 then :
8193 printf %s "(cached) " >&6
8194 else $as_nop
8195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196 /* end confdefs.h. */
8197 int i;
8198 _ACEOF
8199 if ac_fn_c_try_compile "$LINENO"
8200 then :
8201 xorg_cv_cc_flag_unused_command_line_argument=yes
8202 else $as_nop
8203 xorg_cv_cc_flag_unused_command_line_argument=no
8204 fi
8205 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8206 fi
8207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8208 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8209 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8210 CFLAGS="$xorg_testset_save_CFLAGS"
8211 fi
8212
8213 found="no"
8214
8215 if test $found = "no" ; then
8216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8218 fi
8219
8220 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8222 fi
8223
8224 CFLAGS="$CFLAGS -Wmissing-noreturn"
8225
8226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
8227 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
8228 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
8229 if eval test \${$cacheid+y}
8230 then :
8231 printf %s "(cached) " >&6
8232 else $as_nop
8233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8234 /* end confdefs.h. */
8235 int i;
8236 int
8237 main (void)
8238 {
8239
8240 ;
8241 return 0;
8242 }
8243 _ACEOF
8244 if ac_fn_c_try_link "$LINENO"
8245 then :
8246 eval $cacheid=yes
8247 else $as_nop
8248 eval $cacheid=no
8249 fi
8250 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8251 conftest$ac_exeext conftest.$ac_ext
8252 fi
8253
8254
8255 CFLAGS="$xorg_testset_save_CFLAGS"
8256
8257 eval supported=\$$cacheid
8258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8259 printf "%s\n" "$supported" >&6; }
8260 if test "$supported" = "yes" ; then
8261 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
8262 found="yes"
8263 fi
8264 fi
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280 xorg_testset_save_CFLAGS="$CFLAGS"
8281
8282 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8283 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8285 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8286 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8287 then :
8288 printf %s "(cached) " >&6
8289 else $as_nop
8290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8291 /* end confdefs.h. */
8292 int i;
8293 _ACEOF
8294 if ac_fn_c_try_compile "$LINENO"
8295 then :
8296 xorg_cv_cc_flag_unknown_warning_option=yes
8297 else $as_nop
8298 xorg_cv_cc_flag_unknown_warning_option=no
8299 fi
8300 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8301 fi
8302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8303 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8304 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8305 CFLAGS="$xorg_testset_save_CFLAGS"
8306 fi
8307
8308 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8309 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8310 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8311 fi
8312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8314 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8315 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8316 then :
8317 printf %s "(cached) " >&6
8318 else $as_nop
8319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320 /* end confdefs.h. */
8321 int i;
8322 _ACEOF
8323 if ac_fn_c_try_compile "$LINENO"
8324 then :
8325 xorg_cv_cc_flag_unused_command_line_argument=yes
8326 else $as_nop
8327 xorg_cv_cc_flag_unused_command_line_argument=no
8328 fi
8329 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8330 fi
8331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8332 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8333 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8334 CFLAGS="$xorg_testset_save_CFLAGS"
8335 fi
8336
8337 found="no"
8338
8339 if test $found = "no" ; then
8340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8342 fi
8343
8344 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8346 fi
8347
8348 CFLAGS="$CFLAGS -Wmissing-format-attribute"
8349
8350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
8351 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
8352 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
8353 if eval test \${$cacheid+y}
8354 then :
8355 printf %s "(cached) " >&6
8356 else $as_nop
8357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8358 /* end confdefs.h. */
8359 int i;
8360 int
8361 main (void)
8362 {
8363
8364 ;
8365 return 0;
8366 }
8367 _ACEOF
8368 if ac_fn_c_try_link "$LINENO"
8369 then :
8370 eval $cacheid=yes
8371 else $as_nop
8372 eval $cacheid=no
8373 fi
8374 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8375 conftest$ac_exeext conftest.$ac_ext
8376 fi
8377
8378
8379 CFLAGS="$xorg_testset_save_CFLAGS"
8380
8381 eval supported=\$$cacheid
8382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8383 printf "%s\n" "$supported" >&6; }
8384 if test "$supported" = "yes" ; then
8385 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
8386 found="yes"
8387 fi
8388 fi
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404 xorg_testset_save_CFLAGS="$CFLAGS"
8405
8406 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8409 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8410 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8411 then :
8412 printf %s "(cached) " >&6
8413 else $as_nop
8414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8415 /* end confdefs.h. */
8416 int i;
8417 _ACEOF
8418 if ac_fn_c_try_compile "$LINENO"
8419 then :
8420 xorg_cv_cc_flag_unknown_warning_option=yes
8421 else $as_nop
8422 xorg_cv_cc_flag_unknown_warning_option=no
8423 fi
8424 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8425 fi
8426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8427 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8428 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8429 CFLAGS="$xorg_testset_save_CFLAGS"
8430 fi
8431
8432 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8435 fi
8436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8438 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8439 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8440 then :
8441 printf %s "(cached) " >&6
8442 else $as_nop
8443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8444 /* end confdefs.h. */
8445 int i;
8446 _ACEOF
8447 if ac_fn_c_try_compile "$LINENO"
8448 then :
8449 xorg_cv_cc_flag_unused_command_line_argument=yes
8450 else $as_nop
8451 xorg_cv_cc_flag_unused_command_line_argument=no
8452 fi
8453 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8454 fi
8455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8456 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8457 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8458 CFLAGS="$xorg_testset_save_CFLAGS"
8459 fi
8460
8461 found="no"
8462
8463 if test $found = "no" ; then
8464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8466 fi
8467
8468 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8470 fi
8471
8472 CFLAGS="$CFLAGS -Wredundant-decls"
8473
8474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
8475 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
8476 cacheid=xorg_cv_cc_flag__Wredundant_decls
8477 if eval test \${$cacheid+y}
8478 then :
8479 printf %s "(cached) " >&6
8480 else $as_nop
8481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8482 /* end confdefs.h. */
8483 int i;
8484 int
8485 main (void)
8486 {
8487
8488 ;
8489 return 0;
8490 }
8491 _ACEOF
8492 if ac_fn_c_try_link "$LINENO"
8493 then :
8494 eval $cacheid=yes
8495 else $as_nop
8496 eval $cacheid=no
8497 fi
8498 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8499 conftest$ac_exeext conftest.$ac_ext
8500 fi
8501
8502
8503 CFLAGS="$xorg_testset_save_CFLAGS"
8504
8505 eval supported=\$$cacheid
8506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8507 printf "%s\n" "$supported" >&6; }
8508 if test "$supported" = "yes" ; then
8509 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
8510 found="yes"
8511 fi
8512 fi
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528 xorg_testset_save_CFLAGS="$CFLAGS"
8529
8530 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8533 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8534 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8535 then :
8536 printf %s "(cached) " >&6
8537 else $as_nop
8538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539 /* end confdefs.h. */
8540 int i;
8541 _ACEOF
8542 if ac_fn_c_try_compile "$LINENO"
8543 then :
8544 xorg_cv_cc_flag_unknown_warning_option=yes
8545 else $as_nop
8546 xorg_cv_cc_flag_unknown_warning_option=no
8547 fi
8548 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8549 fi
8550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8551 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8552 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8553 CFLAGS="$xorg_testset_save_CFLAGS"
8554 fi
8555
8556 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8559 fi
8560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8562 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8563 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8564 then :
8565 printf %s "(cached) " >&6
8566 else $as_nop
8567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8568 /* end confdefs.h. */
8569 int i;
8570 _ACEOF
8571 if ac_fn_c_try_compile "$LINENO"
8572 then :
8573 xorg_cv_cc_flag_unused_command_line_argument=yes
8574 else $as_nop
8575 xorg_cv_cc_flag_unused_command_line_argument=no
8576 fi
8577 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8578 fi
8579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8580 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8581 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8582 CFLAGS="$xorg_testset_save_CFLAGS"
8583 fi
8584
8585 found="no"
8586
8587 if test $found = "no" ; then
8588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8589 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8590 fi
8591
8592 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8594 fi
8595
8596 CFLAGS="$CFLAGS -Wlogical-op"
8597
8598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
8599 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
8600 cacheid=xorg_cv_cc_flag__Wlogical_op
8601 if eval test \${$cacheid+y}
8602 then :
8603 printf %s "(cached) " >&6
8604 else $as_nop
8605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8606 /* end confdefs.h. */
8607 int i;
8608 int
8609 main (void)
8610 {
8611
8612 ;
8613 return 0;
8614 }
8615 _ACEOF
8616 if ac_fn_c_try_link "$LINENO"
8617 then :
8618 eval $cacheid=yes
8619 else $as_nop
8620 eval $cacheid=no
8621 fi
8622 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8623 conftest$ac_exeext conftest.$ac_ext
8624 fi
8625
8626
8627 CFLAGS="$xorg_testset_save_CFLAGS"
8628
8629 eval supported=\$$cacheid
8630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8631 printf "%s\n" "$supported" >&6; }
8632 if test "$supported" = "yes" ; then
8633 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
8634 found="yes"
8635 fi
8636 fi
8637
8638
8639
8640 # These are currently disabled because they are noisy. They will be enabled
8641 # in the future once the codebase is sufficiently modernized to silence
8642 # them. For now, I don't want them to drown out the other warnings.
8643 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
8644 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
8645 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
8646
8647 # Turn some warnings into errors, so we don't accidentally get successful builds
8648 # when there are problems that should be fixed.
8649
8650 if test "x$SELECTIVE_WERROR" = "xyes" ; then
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664 xorg_testset_save_CFLAGS="$CFLAGS"
8665
8666 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8667 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8669 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8670 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8671 then :
8672 printf %s "(cached) " >&6
8673 else $as_nop
8674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8675 /* end confdefs.h. */
8676 int i;
8677 _ACEOF
8678 if ac_fn_c_try_compile "$LINENO"
8679 then :
8680 xorg_cv_cc_flag_unknown_warning_option=yes
8681 else $as_nop
8682 xorg_cv_cc_flag_unknown_warning_option=no
8683 fi
8684 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8685 fi
8686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8687 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8688 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8689 CFLAGS="$xorg_testset_save_CFLAGS"
8690 fi
8691
8692 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8695 fi
8696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8698 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8699 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8700 then :
8701 printf %s "(cached) " >&6
8702 else $as_nop
8703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704 /* end confdefs.h. */
8705 int i;
8706 _ACEOF
8707 if ac_fn_c_try_compile "$LINENO"
8708 then :
8709 xorg_cv_cc_flag_unused_command_line_argument=yes
8710 else $as_nop
8711 xorg_cv_cc_flag_unused_command_line_argument=no
8712 fi
8713 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8714 fi
8715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8716 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8717 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8718 CFLAGS="$xorg_testset_save_CFLAGS"
8719 fi
8720
8721 found="no"
8722
8723 if test $found = "no" ; then
8724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8726 fi
8727
8728 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8730 fi
8731
8732 CFLAGS="$CFLAGS -Werror=implicit"
8733
8734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
8735 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
8736 cacheid=xorg_cv_cc_flag__Werror_implicit
8737 if eval test \${$cacheid+y}
8738 then :
8739 printf %s "(cached) " >&6
8740 else $as_nop
8741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8742 /* end confdefs.h. */
8743 int i;
8744 int
8745 main (void)
8746 {
8747
8748 ;
8749 return 0;
8750 }
8751 _ACEOF
8752 if ac_fn_c_try_link "$LINENO"
8753 then :
8754 eval $cacheid=yes
8755 else $as_nop
8756 eval $cacheid=no
8757 fi
8758 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8759 conftest$ac_exeext conftest.$ac_ext
8760 fi
8761
8762
8763 CFLAGS="$xorg_testset_save_CFLAGS"
8764
8765 eval supported=\$$cacheid
8766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8767 printf "%s\n" "$supported" >&6; }
8768 if test "$supported" = "yes" ; then
8769 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
8770 found="yes"
8771 fi
8772 fi
8773
8774 if test $found = "no" ; then
8775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8777 fi
8778
8779 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8781 fi
8782
8783 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
8784
8785 { 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
8786 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
8787 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
8788 if eval test \${$cacheid+y}
8789 then :
8790 printf %s "(cached) " >&6
8791 else $as_nop
8792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8793 /* end confdefs.h. */
8794 int i;
8795 int
8796 main (void)
8797 {
8798
8799 ;
8800 return 0;
8801 }
8802 _ACEOF
8803 if ac_fn_c_try_link "$LINENO"
8804 then :
8805 eval $cacheid=yes
8806 else $as_nop
8807 eval $cacheid=no
8808 fi
8809 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8810 conftest$ac_exeext conftest.$ac_ext
8811 fi
8812
8813
8814 CFLAGS="$xorg_testset_save_CFLAGS"
8815
8816 eval supported=\$$cacheid
8817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8818 printf "%s\n" "$supported" >&6; }
8819 if test "$supported" = "yes" ; then
8820 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
8821 found="yes"
8822 fi
8823 fi
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839 xorg_testset_save_CFLAGS="$CFLAGS"
8840
8841 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8842 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8844 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8845 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8846 then :
8847 printf %s "(cached) " >&6
8848 else $as_nop
8849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8850 /* end confdefs.h. */
8851 int i;
8852 _ACEOF
8853 if ac_fn_c_try_compile "$LINENO"
8854 then :
8855 xorg_cv_cc_flag_unknown_warning_option=yes
8856 else $as_nop
8857 xorg_cv_cc_flag_unknown_warning_option=no
8858 fi
8859 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8860 fi
8861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8862 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8863 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8864 CFLAGS="$xorg_testset_save_CFLAGS"
8865 fi
8866
8867 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8870 fi
8871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8873 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8874 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8875 then :
8876 printf %s "(cached) " >&6
8877 else $as_nop
8878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8879 /* end confdefs.h. */
8880 int i;
8881 _ACEOF
8882 if ac_fn_c_try_compile "$LINENO"
8883 then :
8884 xorg_cv_cc_flag_unused_command_line_argument=yes
8885 else $as_nop
8886 xorg_cv_cc_flag_unused_command_line_argument=no
8887 fi
8888 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8889 fi
8890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8891 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8892 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8893 CFLAGS="$xorg_testset_save_CFLAGS"
8894 fi
8895
8896 found="no"
8897
8898 if test $found = "no" ; then
8899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8901 fi
8902
8903 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8905 fi
8906
8907 CFLAGS="$CFLAGS -Werror=nonnull"
8908
8909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
8910 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
8911 cacheid=xorg_cv_cc_flag__Werror_nonnull
8912 if eval test \${$cacheid+y}
8913 then :
8914 printf %s "(cached) " >&6
8915 else $as_nop
8916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8917 /* end confdefs.h. */
8918 int i;
8919 int
8920 main (void)
8921 {
8922
8923 ;
8924 return 0;
8925 }
8926 _ACEOF
8927 if ac_fn_c_try_link "$LINENO"
8928 then :
8929 eval $cacheid=yes
8930 else $as_nop
8931 eval $cacheid=no
8932 fi
8933 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8934 conftest$ac_exeext conftest.$ac_ext
8935 fi
8936
8937
8938 CFLAGS="$xorg_testset_save_CFLAGS"
8939
8940 eval supported=\$$cacheid
8941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8942 printf "%s\n" "$supported" >&6; }
8943 if test "$supported" = "yes" ; then
8944 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
8945 found="yes"
8946 fi
8947 fi
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963 xorg_testset_save_CFLAGS="$CFLAGS"
8964
8965 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8968 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8969 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8970 then :
8971 printf %s "(cached) " >&6
8972 else $as_nop
8973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8974 /* end confdefs.h. */
8975 int i;
8976 _ACEOF
8977 if ac_fn_c_try_compile "$LINENO"
8978 then :
8979 xorg_cv_cc_flag_unknown_warning_option=yes
8980 else $as_nop
8981 xorg_cv_cc_flag_unknown_warning_option=no
8982 fi
8983 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8984 fi
8985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8986 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8987 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8988 CFLAGS="$xorg_testset_save_CFLAGS"
8989 fi
8990
8991 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8994 fi
8995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8997 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8998 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8999 then :
9000 printf %s "(cached) " >&6
9001 else $as_nop
9002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003 /* end confdefs.h. */
9004 int i;
9005 _ACEOF
9006 if ac_fn_c_try_compile "$LINENO"
9007 then :
9008 xorg_cv_cc_flag_unused_command_line_argument=yes
9009 else $as_nop
9010 xorg_cv_cc_flag_unused_command_line_argument=no
9011 fi
9012 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9013 fi
9014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9015 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9016 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9017 CFLAGS="$xorg_testset_save_CFLAGS"
9018 fi
9019
9020 found="no"
9021
9022 if test $found = "no" ; then
9023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9025 fi
9026
9027 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9029 fi
9030
9031 CFLAGS="$CFLAGS -Werror=init-self"
9032
9033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
9034 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
9035 cacheid=xorg_cv_cc_flag__Werror_init_self
9036 if eval test \${$cacheid+y}
9037 then :
9038 printf %s "(cached) " >&6
9039 else $as_nop
9040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9041 /* end confdefs.h. */
9042 int i;
9043 int
9044 main (void)
9045 {
9046
9047 ;
9048 return 0;
9049 }
9050 _ACEOF
9051 if ac_fn_c_try_link "$LINENO"
9052 then :
9053 eval $cacheid=yes
9054 else $as_nop
9055 eval $cacheid=no
9056 fi
9057 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9058 conftest$ac_exeext conftest.$ac_ext
9059 fi
9060
9061
9062 CFLAGS="$xorg_testset_save_CFLAGS"
9063
9064 eval supported=\$$cacheid
9065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9066 printf "%s\n" "$supported" >&6; }
9067 if test "$supported" = "yes" ; then
9068 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
9069 found="yes"
9070 fi
9071 fi
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087 xorg_testset_save_CFLAGS="$CFLAGS"
9088
9089 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9092 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9093 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9094 then :
9095 printf %s "(cached) " >&6
9096 else $as_nop
9097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9098 /* end confdefs.h. */
9099 int i;
9100 _ACEOF
9101 if ac_fn_c_try_compile "$LINENO"
9102 then :
9103 xorg_cv_cc_flag_unknown_warning_option=yes
9104 else $as_nop
9105 xorg_cv_cc_flag_unknown_warning_option=no
9106 fi
9107 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9108 fi
9109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9110 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9111 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9112 CFLAGS="$xorg_testset_save_CFLAGS"
9113 fi
9114
9115 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9118 fi
9119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9121 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9122 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9123 then :
9124 printf %s "(cached) " >&6
9125 else $as_nop
9126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9127 /* end confdefs.h. */
9128 int i;
9129 _ACEOF
9130 if ac_fn_c_try_compile "$LINENO"
9131 then :
9132 xorg_cv_cc_flag_unused_command_line_argument=yes
9133 else $as_nop
9134 xorg_cv_cc_flag_unused_command_line_argument=no
9135 fi
9136 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9137 fi
9138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9139 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9140 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9141 CFLAGS="$xorg_testset_save_CFLAGS"
9142 fi
9143
9144 found="no"
9145
9146 if test $found = "no" ; then
9147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9149 fi
9150
9151 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9153 fi
9154
9155 CFLAGS="$CFLAGS -Werror=main"
9156
9157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
9158 printf %s "checking if $CC supports -Werror=main... " >&6; }
9159 cacheid=xorg_cv_cc_flag__Werror_main
9160 if eval test \${$cacheid+y}
9161 then :
9162 printf %s "(cached) " >&6
9163 else $as_nop
9164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165 /* end confdefs.h. */
9166 int i;
9167 int
9168 main (void)
9169 {
9170
9171 ;
9172 return 0;
9173 }
9174 _ACEOF
9175 if ac_fn_c_try_link "$LINENO"
9176 then :
9177 eval $cacheid=yes
9178 else $as_nop
9179 eval $cacheid=no
9180 fi
9181 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9182 conftest$ac_exeext conftest.$ac_ext
9183 fi
9184
9185
9186 CFLAGS="$xorg_testset_save_CFLAGS"
9187
9188 eval supported=\$$cacheid
9189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9190 printf "%s\n" "$supported" >&6; }
9191 if test "$supported" = "yes" ; then
9192 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
9193 found="yes"
9194 fi
9195 fi
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211 xorg_testset_save_CFLAGS="$CFLAGS"
9212
9213 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9216 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9217 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9218 then :
9219 printf %s "(cached) " >&6
9220 else $as_nop
9221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9222 /* end confdefs.h. */
9223 int i;
9224 _ACEOF
9225 if ac_fn_c_try_compile "$LINENO"
9226 then :
9227 xorg_cv_cc_flag_unknown_warning_option=yes
9228 else $as_nop
9229 xorg_cv_cc_flag_unknown_warning_option=no
9230 fi
9231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9232 fi
9233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9234 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9235 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9236 CFLAGS="$xorg_testset_save_CFLAGS"
9237 fi
9238
9239 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9242 fi
9243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9245 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9246 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9247 then :
9248 printf %s "(cached) " >&6
9249 else $as_nop
9250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9251 /* end confdefs.h. */
9252 int i;
9253 _ACEOF
9254 if ac_fn_c_try_compile "$LINENO"
9255 then :
9256 xorg_cv_cc_flag_unused_command_line_argument=yes
9257 else $as_nop
9258 xorg_cv_cc_flag_unused_command_line_argument=no
9259 fi
9260 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9261 fi
9262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9263 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9264 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9265 CFLAGS="$xorg_testset_save_CFLAGS"
9266 fi
9267
9268 found="no"
9269
9270 if test $found = "no" ; then
9271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9273 fi
9274
9275 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9277 fi
9278
9279 CFLAGS="$CFLAGS -Werror=missing-braces"
9280
9281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
9282 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
9283 cacheid=xorg_cv_cc_flag__Werror_missing_braces
9284 if eval test \${$cacheid+y}
9285 then :
9286 printf %s "(cached) " >&6
9287 else $as_nop
9288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9289 /* end confdefs.h. */
9290 int i;
9291 int
9292 main (void)
9293 {
9294
9295 ;
9296 return 0;
9297 }
9298 _ACEOF
9299 if ac_fn_c_try_link "$LINENO"
9300 then :
9301 eval $cacheid=yes
9302 else $as_nop
9303 eval $cacheid=no
9304 fi
9305 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9306 conftest$ac_exeext conftest.$ac_ext
9307 fi
9308
9309
9310 CFLAGS="$xorg_testset_save_CFLAGS"
9311
9312 eval supported=\$$cacheid
9313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9314 printf "%s\n" "$supported" >&6; }
9315 if test "$supported" = "yes" ; then
9316 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
9317 found="yes"
9318 fi
9319 fi
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335 xorg_testset_save_CFLAGS="$CFLAGS"
9336
9337 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9340 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9341 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9342 then :
9343 printf %s "(cached) " >&6
9344 else $as_nop
9345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9346 /* end confdefs.h. */
9347 int i;
9348 _ACEOF
9349 if ac_fn_c_try_compile "$LINENO"
9350 then :
9351 xorg_cv_cc_flag_unknown_warning_option=yes
9352 else $as_nop
9353 xorg_cv_cc_flag_unknown_warning_option=no
9354 fi
9355 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9356 fi
9357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9358 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9359 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9360 CFLAGS="$xorg_testset_save_CFLAGS"
9361 fi
9362
9363 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9366 fi
9367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9369 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9370 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9371 then :
9372 printf %s "(cached) " >&6
9373 else $as_nop
9374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9375 /* end confdefs.h. */
9376 int i;
9377 _ACEOF
9378 if ac_fn_c_try_compile "$LINENO"
9379 then :
9380 xorg_cv_cc_flag_unused_command_line_argument=yes
9381 else $as_nop
9382 xorg_cv_cc_flag_unused_command_line_argument=no
9383 fi
9384 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9385 fi
9386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9387 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9388 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9389 CFLAGS="$xorg_testset_save_CFLAGS"
9390 fi
9391
9392 found="no"
9393
9394 if test $found = "no" ; then
9395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9397 fi
9398
9399 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9401 fi
9402
9403 CFLAGS="$CFLAGS -Werror=sequence-point"
9404
9405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
9406 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
9407 cacheid=xorg_cv_cc_flag__Werror_sequence_point
9408 if eval test \${$cacheid+y}
9409 then :
9410 printf %s "(cached) " >&6
9411 else $as_nop
9412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9413 /* end confdefs.h. */
9414 int i;
9415 int
9416 main (void)
9417 {
9418
9419 ;
9420 return 0;
9421 }
9422 _ACEOF
9423 if ac_fn_c_try_link "$LINENO"
9424 then :
9425 eval $cacheid=yes
9426 else $as_nop
9427 eval $cacheid=no
9428 fi
9429 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9430 conftest$ac_exeext conftest.$ac_ext
9431 fi
9432
9433
9434 CFLAGS="$xorg_testset_save_CFLAGS"
9435
9436 eval supported=\$$cacheid
9437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9438 printf "%s\n" "$supported" >&6; }
9439 if test "$supported" = "yes" ; then
9440 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
9441 found="yes"
9442 fi
9443 fi
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459 xorg_testset_save_CFLAGS="$CFLAGS"
9460
9461 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9464 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9465 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9466 then :
9467 printf %s "(cached) " >&6
9468 else $as_nop
9469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9470 /* end confdefs.h. */
9471 int i;
9472 _ACEOF
9473 if ac_fn_c_try_compile "$LINENO"
9474 then :
9475 xorg_cv_cc_flag_unknown_warning_option=yes
9476 else $as_nop
9477 xorg_cv_cc_flag_unknown_warning_option=no
9478 fi
9479 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9480 fi
9481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9482 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9483 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9484 CFLAGS="$xorg_testset_save_CFLAGS"
9485 fi
9486
9487 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9490 fi
9491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9493 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9494 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9495 then :
9496 printf %s "(cached) " >&6
9497 else $as_nop
9498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499 /* end confdefs.h. */
9500 int i;
9501 _ACEOF
9502 if ac_fn_c_try_compile "$LINENO"
9503 then :
9504 xorg_cv_cc_flag_unused_command_line_argument=yes
9505 else $as_nop
9506 xorg_cv_cc_flag_unused_command_line_argument=no
9507 fi
9508 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9509 fi
9510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9511 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9512 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9513 CFLAGS="$xorg_testset_save_CFLAGS"
9514 fi
9515
9516 found="no"
9517
9518 if test $found = "no" ; then
9519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9521 fi
9522
9523 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9525 fi
9526
9527 CFLAGS="$CFLAGS -Werror=return-type"
9528
9529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
9530 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
9531 cacheid=xorg_cv_cc_flag__Werror_return_type
9532 if eval test \${$cacheid+y}
9533 then :
9534 printf %s "(cached) " >&6
9535 else $as_nop
9536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9537 /* end confdefs.h. */
9538 int i;
9539 int
9540 main (void)
9541 {
9542
9543 ;
9544 return 0;
9545 }
9546 _ACEOF
9547 if ac_fn_c_try_link "$LINENO"
9548 then :
9549 eval $cacheid=yes
9550 else $as_nop
9551 eval $cacheid=no
9552 fi
9553 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9554 conftest$ac_exeext conftest.$ac_ext
9555 fi
9556
9557
9558 CFLAGS="$xorg_testset_save_CFLAGS"
9559
9560 eval supported=\$$cacheid
9561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9562 printf "%s\n" "$supported" >&6; }
9563 if test "$supported" = "yes" ; then
9564 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
9565 found="yes"
9566 fi
9567 fi
9568
9569 if test $found = "no" ; then
9570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9572 fi
9573
9574 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9576 fi
9577
9578 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
9579
9580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
9581 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
9582 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
9583 if eval test \${$cacheid+y}
9584 then :
9585 printf %s "(cached) " >&6
9586 else $as_nop
9587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9588 /* end confdefs.h. */
9589 int i;
9590 int
9591 main (void)
9592 {
9593
9594 ;
9595 return 0;
9596 }
9597 _ACEOF
9598 if ac_fn_c_try_link "$LINENO"
9599 then :
9600 eval $cacheid=yes
9601 else $as_nop
9602 eval $cacheid=no
9603 fi
9604 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9605 conftest$ac_exeext conftest.$ac_ext
9606 fi
9607
9608
9609 CFLAGS="$xorg_testset_save_CFLAGS"
9610
9611 eval supported=\$$cacheid
9612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9613 printf "%s\n" "$supported" >&6; }
9614 if test "$supported" = "yes" ; then
9615 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
9616 found="yes"
9617 fi
9618 fi
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634 xorg_testset_save_CFLAGS="$CFLAGS"
9635
9636 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9637 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9639 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9640 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9641 then :
9642 printf %s "(cached) " >&6
9643 else $as_nop
9644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9645 /* end confdefs.h. */
9646 int i;
9647 _ACEOF
9648 if ac_fn_c_try_compile "$LINENO"
9649 then :
9650 xorg_cv_cc_flag_unknown_warning_option=yes
9651 else $as_nop
9652 xorg_cv_cc_flag_unknown_warning_option=no
9653 fi
9654 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9655 fi
9656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9657 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9658 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9659 CFLAGS="$xorg_testset_save_CFLAGS"
9660 fi
9661
9662 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9665 fi
9666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9668 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9669 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9670 then :
9671 printf %s "(cached) " >&6
9672 else $as_nop
9673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674 /* end confdefs.h. */
9675 int i;
9676 _ACEOF
9677 if ac_fn_c_try_compile "$LINENO"
9678 then :
9679 xorg_cv_cc_flag_unused_command_line_argument=yes
9680 else $as_nop
9681 xorg_cv_cc_flag_unused_command_line_argument=no
9682 fi
9683 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9684 fi
9685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9686 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9687 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9688 CFLAGS="$xorg_testset_save_CFLAGS"
9689 fi
9690
9691 found="no"
9692
9693 if test $found = "no" ; then
9694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9696 fi
9697
9698 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9700 fi
9701
9702 CFLAGS="$CFLAGS -Werror=trigraphs"
9703
9704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
9705 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
9706 cacheid=xorg_cv_cc_flag__Werror_trigraphs
9707 if eval test \${$cacheid+y}
9708 then :
9709 printf %s "(cached) " >&6
9710 else $as_nop
9711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9712 /* end confdefs.h. */
9713 int i;
9714 int
9715 main (void)
9716 {
9717
9718 ;
9719 return 0;
9720 }
9721 _ACEOF
9722 if ac_fn_c_try_link "$LINENO"
9723 then :
9724 eval $cacheid=yes
9725 else $as_nop
9726 eval $cacheid=no
9727 fi
9728 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9729 conftest$ac_exeext conftest.$ac_ext
9730 fi
9731
9732
9733 CFLAGS="$xorg_testset_save_CFLAGS"
9734
9735 eval supported=\$$cacheid
9736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9737 printf "%s\n" "$supported" >&6; }
9738 if test "$supported" = "yes" ; then
9739 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
9740 found="yes"
9741 fi
9742 fi
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758 xorg_testset_save_CFLAGS="$CFLAGS"
9759
9760 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9763 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9764 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9765 then :
9766 printf %s "(cached) " >&6
9767 else $as_nop
9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769 /* end confdefs.h. */
9770 int i;
9771 _ACEOF
9772 if ac_fn_c_try_compile "$LINENO"
9773 then :
9774 xorg_cv_cc_flag_unknown_warning_option=yes
9775 else $as_nop
9776 xorg_cv_cc_flag_unknown_warning_option=no
9777 fi
9778 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9779 fi
9780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9781 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9782 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9783 CFLAGS="$xorg_testset_save_CFLAGS"
9784 fi
9785
9786 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9788 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9789 fi
9790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9792 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9793 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9794 then :
9795 printf %s "(cached) " >&6
9796 else $as_nop
9797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9798 /* end confdefs.h. */
9799 int i;
9800 _ACEOF
9801 if ac_fn_c_try_compile "$LINENO"
9802 then :
9803 xorg_cv_cc_flag_unused_command_line_argument=yes
9804 else $as_nop
9805 xorg_cv_cc_flag_unused_command_line_argument=no
9806 fi
9807 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9808 fi
9809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9810 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9811 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9812 CFLAGS="$xorg_testset_save_CFLAGS"
9813 fi
9814
9815 found="no"
9816
9817 if test $found = "no" ; then
9818 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9819 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9820 fi
9821
9822 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9824 fi
9825
9826 CFLAGS="$CFLAGS -Werror=array-bounds"
9827
9828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
9829 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
9830 cacheid=xorg_cv_cc_flag__Werror_array_bounds
9831 if eval test \${$cacheid+y}
9832 then :
9833 printf %s "(cached) " >&6
9834 else $as_nop
9835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9836 /* end confdefs.h. */
9837 int i;
9838 int
9839 main (void)
9840 {
9841
9842 ;
9843 return 0;
9844 }
9845 _ACEOF
9846 if ac_fn_c_try_link "$LINENO"
9847 then :
9848 eval $cacheid=yes
9849 else $as_nop
9850 eval $cacheid=no
9851 fi
9852 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9853 conftest$ac_exeext conftest.$ac_ext
9854 fi
9855
9856
9857 CFLAGS="$xorg_testset_save_CFLAGS"
9858
9859 eval supported=\$$cacheid
9860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9861 printf "%s\n" "$supported" >&6; }
9862 if test "$supported" = "yes" ; then
9863 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
9864 found="yes"
9865 fi
9866 fi
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882 xorg_testset_save_CFLAGS="$CFLAGS"
9883
9884 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9887 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9888 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9889 then :
9890 printf %s "(cached) " >&6
9891 else $as_nop
9892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9893 /* end confdefs.h. */
9894 int i;
9895 _ACEOF
9896 if ac_fn_c_try_compile "$LINENO"
9897 then :
9898 xorg_cv_cc_flag_unknown_warning_option=yes
9899 else $as_nop
9900 xorg_cv_cc_flag_unknown_warning_option=no
9901 fi
9902 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9903 fi
9904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9905 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9906 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9907 CFLAGS="$xorg_testset_save_CFLAGS"
9908 fi
9909
9910 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9912 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9913 fi
9914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9916 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9917 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9918 then :
9919 printf %s "(cached) " >&6
9920 else $as_nop
9921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9922 /* end confdefs.h. */
9923 int i;
9924 _ACEOF
9925 if ac_fn_c_try_compile "$LINENO"
9926 then :
9927 xorg_cv_cc_flag_unused_command_line_argument=yes
9928 else $as_nop
9929 xorg_cv_cc_flag_unused_command_line_argument=no
9930 fi
9931 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9932 fi
9933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9934 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9935 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9936 CFLAGS="$xorg_testset_save_CFLAGS"
9937 fi
9938
9939 found="no"
9940
9941 if test $found = "no" ; then
9942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9944 fi
9945
9946 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9948 fi
9949
9950 CFLAGS="$CFLAGS -Werror=write-strings"
9951
9952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
9953 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
9954 cacheid=xorg_cv_cc_flag__Werror_write_strings
9955 if eval test \${$cacheid+y}
9956 then :
9957 printf %s "(cached) " >&6
9958 else $as_nop
9959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9960 /* end confdefs.h. */
9961 int i;
9962 int
9963 main (void)
9964 {
9965
9966 ;
9967 return 0;
9968 }
9969 _ACEOF
9970 if ac_fn_c_try_link "$LINENO"
9971 then :
9972 eval $cacheid=yes
9973 else $as_nop
9974 eval $cacheid=no
9975 fi
9976 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9977 conftest$ac_exeext conftest.$ac_ext
9978 fi
9979
9980
9981 CFLAGS="$xorg_testset_save_CFLAGS"
9982
9983 eval supported=\$$cacheid
9984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9985 printf "%s\n" "$supported" >&6; }
9986 if test "$supported" = "yes" ; then
9987 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
9988 found="yes"
9989 fi
9990 fi
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006 xorg_testset_save_CFLAGS="$CFLAGS"
10007
10008 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10011 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10012 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10013 then :
10014 printf %s "(cached) " >&6
10015 else $as_nop
10016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10017 /* end confdefs.h. */
10018 int i;
10019 _ACEOF
10020 if ac_fn_c_try_compile "$LINENO"
10021 then :
10022 xorg_cv_cc_flag_unknown_warning_option=yes
10023 else $as_nop
10024 xorg_cv_cc_flag_unknown_warning_option=no
10025 fi
10026 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10027 fi
10028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10029 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10030 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10031 CFLAGS="$xorg_testset_save_CFLAGS"
10032 fi
10033
10034 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10037 fi
10038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10040 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10041 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10042 then :
10043 printf %s "(cached) " >&6
10044 else $as_nop
10045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10046 /* end confdefs.h. */
10047 int i;
10048 _ACEOF
10049 if ac_fn_c_try_compile "$LINENO"
10050 then :
10051 xorg_cv_cc_flag_unused_command_line_argument=yes
10052 else $as_nop
10053 xorg_cv_cc_flag_unused_command_line_argument=no
10054 fi
10055 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10056 fi
10057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10058 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10059 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10060 CFLAGS="$xorg_testset_save_CFLAGS"
10061 fi
10062
10063 found="no"
10064
10065 if test $found = "no" ; then
10066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10067 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10068 fi
10069
10070 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10072 fi
10073
10074 CFLAGS="$CFLAGS -Werror=address"
10075
10076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
10077 printf %s "checking if $CC supports -Werror=address... " >&6; }
10078 cacheid=xorg_cv_cc_flag__Werror_address
10079 if eval test \${$cacheid+y}
10080 then :
10081 printf %s "(cached) " >&6
10082 else $as_nop
10083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10084 /* end confdefs.h. */
10085 int i;
10086 int
10087 main (void)
10088 {
10089
10090 ;
10091 return 0;
10092 }
10093 _ACEOF
10094 if ac_fn_c_try_link "$LINENO"
10095 then :
10096 eval $cacheid=yes
10097 else $as_nop
10098 eval $cacheid=no
10099 fi
10100 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10101 conftest$ac_exeext conftest.$ac_ext
10102 fi
10103
10104
10105 CFLAGS="$xorg_testset_save_CFLAGS"
10106
10107 eval supported=\$$cacheid
10108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10109 printf "%s\n" "$supported" >&6; }
10110 if test "$supported" = "yes" ; then
10111 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
10112 found="yes"
10113 fi
10114 fi
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130 xorg_testset_save_CFLAGS="$CFLAGS"
10131
10132 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10135 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10136 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10137 then :
10138 printf %s "(cached) " >&6
10139 else $as_nop
10140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10141 /* end confdefs.h. */
10142 int i;
10143 _ACEOF
10144 if ac_fn_c_try_compile "$LINENO"
10145 then :
10146 xorg_cv_cc_flag_unknown_warning_option=yes
10147 else $as_nop
10148 xorg_cv_cc_flag_unknown_warning_option=no
10149 fi
10150 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10151 fi
10152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10153 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10154 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10155 CFLAGS="$xorg_testset_save_CFLAGS"
10156 fi
10157
10158 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10160 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10161 fi
10162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10164 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10165 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10166 then :
10167 printf %s "(cached) " >&6
10168 else $as_nop
10169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10170 /* end confdefs.h. */
10171 int i;
10172 _ACEOF
10173 if ac_fn_c_try_compile "$LINENO"
10174 then :
10175 xorg_cv_cc_flag_unused_command_line_argument=yes
10176 else $as_nop
10177 xorg_cv_cc_flag_unused_command_line_argument=no
10178 fi
10179 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10180 fi
10181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10182 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10183 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10184 CFLAGS="$xorg_testset_save_CFLAGS"
10185 fi
10186
10187 found="no"
10188
10189 if test $found = "no" ; then
10190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10191 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10192 fi
10193
10194 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10196 fi
10197
10198 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
10199
10200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
10201 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
10202 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
10203 if eval test \${$cacheid+y}
10204 then :
10205 printf %s "(cached) " >&6
10206 else $as_nop
10207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10208 /* end confdefs.h. */
10209 int i;
10210 int
10211 main (void)
10212 {
10213
10214 ;
10215 return 0;
10216 }
10217 _ACEOF
10218 if ac_fn_c_try_link "$LINENO"
10219 then :
10220 eval $cacheid=yes
10221 else $as_nop
10222 eval $cacheid=no
10223 fi
10224 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10225 conftest$ac_exeext conftest.$ac_ext
10226 fi
10227
10228
10229 CFLAGS="$xorg_testset_save_CFLAGS"
10230
10231 eval supported=\$$cacheid
10232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10233 printf "%s\n" "$supported" >&6; }
10234 if test "$supported" = "yes" ; then
10235 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
10236 found="yes"
10237 fi
10238 fi
10239
10240 if test $found = "no" ; then
10241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10243 fi
10244
10245 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10247 fi
10248
10249 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
10250
10251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
10252 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
10253 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
10254 if eval test \${$cacheid+y}
10255 then :
10256 printf %s "(cached) " >&6
10257 else $as_nop
10258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10259 /* end confdefs.h. */
10260 int i;
10261 int
10262 main (void)
10263 {
10264
10265 ;
10266 return 0;
10267 }
10268 _ACEOF
10269 if ac_fn_c_try_link "$LINENO"
10270 then :
10271 eval $cacheid=yes
10272 else $as_nop
10273 eval $cacheid=no
10274 fi
10275 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10276 conftest$ac_exeext conftest.$ac_ext
10277 fi
10278
10279
10280 CFLAGS="$xorg_testset_save_CFLAGS"
10281
10282 eval supported=\$$cacheid
10283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10284 printf "%s\n" "$supported" >&6; }
10285 if test "$supported" = "yes" ; then
10286 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
10287 found="yes"
10288 fi
10289 fi
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305 xorg_testset_save_CFLAGS="$CFLAGS"
10306
10307 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10308 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10310 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10311 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10312 then :
10313 printf %s "(cached) " >&6
10314 else $as_nop
10315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10316 /* end confdefs.h. */
10317 int i;
10318 _ACEOF
10319 if ac_fn_c_try_compile "$LINENO"
10320 then :
10321 xorg_cv_cc_flag_unknown_warning_option=yes
10322 else $as_nop
10323 xorg_cv_cc_flag_unknown_warning_option=no
10324 fi
10325 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10326 fi
10327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10328 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10329 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10330 CFLAGS="$xorg_testset_save_CFLAGS"
10331 fi
10332
10333 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10336 fi
10337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10339 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10340 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10341 then :
10342 printf %s "(cached) " >&6
10343 else $as_nop
10344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10345 /* end confdefs.h. */
10346 int i;
10347 _ACEOF
10348 if ac_fn_c_try_compile "$LINENO"
10349 then :
10350 xorg_cv_cc_flag_unused_command_line_argument=yes
10351 else $as_nop
10352 xorg_cv_cc_flag_unused_command_line_argument=no
10353 fi
10354 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10355 fi
10356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10357 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10358 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10359 CFLAGS="$xorg_testset_save_CFLAGS"
10360 fi
10361
10362 found="no"
10363
10364 if test $found = "no" ; then
10365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10367 fi
10368
10369 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10371 fi
10372
10373 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
10374
10375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
10376 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
10377 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
10378 if eval test \${$cacheid+y}
10379 then :
10380 printf %s "(cached) " >&6
10381 else $as_nop
10382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10383 /* end confdefs.h. */
10384 int i;
10385 int
10386 main (void)
10387 {
10388
10389 ;
10390 return 0;
10391 }
10392 _ACEOF
10393 if ac_fn_c_try_link "$LINENO"
10394 then :
10395 eval $cacheid=yes
10396 else $as_nop
10397 eval $cacheid=no
10398 fi
10399 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10400 conftest$ac_exeext conftest.$ac_ext
10401 fi
10402
10403
10404 CFLAGS="$xorg_testset_save_CFLAGS"
10405
10406 eval supported=\$$cacheid
10407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10408 printf "%s\n" "$supported" >&6; }
10409 if test "$supported" = "yes" ; then
10410 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
10411 found="yes"
10412 fi
10413 fi
10414
10415 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
10416 else
10417 { 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
10418 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;}
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432 xorg_testset_save_CFLAGS="$CFLAGS"
10433
10434 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10437 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10438 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10439 then :
10440 printf %s "(cached) " >&6
10441 else $as_nop
10442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10443 /* end confdefs.h. */
10444 int i;
10445 _ACEOF
10446 if ac_fn_c_try_compile "$LINENO"
10447 then :
10448 xorg_cv_cc_flag_unknown_warning_option=yes
10449 else $as_nop
10450 xorg_cv_cc_flag_unknown_warning_option=no
10451 fi
10452 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10453 fi
10454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10455 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10456 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10457 CFLAGS="$xorg_testset_save_CFLAGS"
10458 fi
10459
10460 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10463 fi
10464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10466 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10467 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10468 then :
10469 printf %s "(cached) " >&6
10470 else $as_nop
10471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10472 /* end confdefs.h. */
10473 int i;
10474 _ACEOF
10475 if ac_fn_c_try_compile "$LINENO"
10476 then :
10477 xorg_cv_cc_flag_unused_command_line_argument=yes
10478 else $as_nop
10479 xorg_cv_cc_flag_unused_command_line_argument=no
10480 fi
10481 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10482 fi
10483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10484 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10485 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10486 CFLAGS="$xorg_testset_save_CFLAGS"
10487 fi
10488
10489 found="no"
10490
10491 if test $found = "no" ; then
10492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10494 fi
10495
10496 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10498 fi
10499
10500 CFLAGS="$CFLAGS -Wimplicit"
10501
10502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
10503 printf %s "checking if $CC supports -Wimplicit... " >&6; }
10504 cacheid=xorg_cv_cc_flag__Wimplicit
10505 if eval test \${$cacheid+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 int
10513 main (void)
10514 {
10515
10516 ;
10517 return 0;
10518 }
10519 _ACEOF
10520 if ac_fn_c_try_link "$LINENO"
10521 then :
10522 eval $cacheid=yes
10523 else $as_nop
10524 eval $cacheid=no
10525 fi
10526 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10527 conftest$ac_exeext conftest.$ac_ext
10528 fi
10529
10530
10531 CFLAGS="$xorg_testset_save_CFLAGS"
10532
10533 eval supported=\$$cacheid
10534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10535 printf "%s\n" "$supported" >&6; }
10536 if test "$supported" = "yes" ; then
10537 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
10538 found="yes"
10539 fi
10540 fi
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556 xorg_testset_save_CFLAGS="$CFLAGS"
10557
10558 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10559 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10561 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10562 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10563 then :
10564 printf %s "(cached) " >&6
10565 else $as_nop
10566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10567 /* end confdefs.h. */
10568 int i;
10569 _ACEOF
10570 if ac_fn_c_try_compile "$LINENO"
10571 then :
10572 xorg_cv_cc_flag_unknown_warning_option=yes
10573 else $as_nop
10574 xorg_cv_cc_flag_unknown_warning_option=no
10575 fi
10576 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10577 fi
10578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10579 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10580 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10581 CFLAGS="$xorg_testset_save_CFLAGS"
10582 fi
10583
10584 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10586 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10587 fi
10588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10590 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10591 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10592 then :
10593 printf %s "(cached) " >&6
10594 else $as_nop
10595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10596 /* end confdefs.h. */
10597 int i;
10598 _ACEOF
10599 if ac_fn_c_try_compile "$LINENO"
10600 then :
10601 xorg_cv_cc_flag_unused_command_line_argument=yes
10602 else $as_nop
10603 xorg_cv_cc_flag_unused_command_line_argument=no
10604 fi
10605 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10606 fi
10607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10608 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10609 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10610 CFLAGS="$xorg_testset_save_CFLAGS"
10611 fi
10612
10613 found="no"
10614
10615 if test $found = "no" ; then
10616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10618 fi
10619
10620 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10622 fi
10623
10624 CFLAGS="$CFLAGS -Wnonnull"
10625
10626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
10627 printf %s "checking if $CC supports -Wnonnull... " >&6; }
10628 cacheid=xorg_cv_cc_flag__Wnonnull
10629 if eval test \${$cacheid+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 int
10637 main (void)
10638 {
10639
10640 ;
10641 return 0;
10642 }
10643 _ACEOF
10644 if ac_fn_c_try_link "$LINENO"
10645 then :
10646 eval $cacheid=yes
10647 else $as_nop
10648 eval $cacheid=no
10649 fi
10650 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10651 conftest$ac_exeext conftest.$ac_ext
10652 fi
10653
10654
10655 CFLAGS="$xorg_testset_save_CFLAGS"
10656
10657 eval supported=\$$cacheid
10658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10659 printf "%s\n" "$supported" >&6; }
10660 if test "$supported" = "yes" ; then
10661 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
10662 found="yes"
10663 fi
10664 fi
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680 xorg_testset_save_CFLAGS="$CFLAGS"
10681
10682 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10685 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10686 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10687 then :
10688 printf %s "(cached) " >&6
10689 else $as_nop
10690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10691 /* end confdefs.h. */
10692 int i;
10693 _ACEOF
10694 if ac_fn_c_try_compile "$LINENO"
10695 then :
10696 xorg_cv_cc_flag_unknown_warning_option=yes
10697 else $as_nop
10698 xorg_cv_cc_flag_unknown_warning_option=no
10699 fi
10700 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10701 fi
10702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10703 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10704 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10705 CFLAGS="$xorg_testset_save_CFLAGS"
10706 fi
10707
10708 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10711 fi
10712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10714 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10715 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10716 then :
10717 printf %s "(cached) " >&6
10718 else $as_nop
10719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10720 /* end confdefs.h. */
10721 int i;
10722 _ACEOF
10723 if ac_fn_c_try_compile "$LINENO"
10724 then :
10725 xorg_cv_cc_flag_unused_command_line_argument=yes
10726 else $as_nop
10727 xorg_cv_cc_flag_unused_command_line_argument=no
10728 fi
10729 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10730 fi
10731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10732 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10733 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10734 CFLAGS="$xorg_testset_save_CFLAGS"
10735 fi
10736
10737 found="no"
10738
10739 if test $found = "no" ; then
10740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10742 fi
10743
10744 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10746 fi
10747
10748 CFLAGS="$CFLAGS -Winit-self"
10749
10750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
10751 printf %s "checking if $CC supports -Winit-self... " >&6; }
10752 cacheid=xorg_cv_cc_flag__Winit_self
10753 if eval test \${$cacheid+y}
10754 then :
10755 printf %s "(cached) " >&6
10756 else $as_nop
10757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10758 /* end confdefs.h. */
10759 int i;
10760 int
10761 main (void)
10762 {
10763
10764 ;
10765 return 0;
10766 }
10767 _ACEOF
10768 if ac_fn_c_try_link "$LINENO"
10769 then :
10770 eval $cacheid=yes
10771 else $as_nop
10772 eval $cacheid=no
10773 fi
10774 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10775 conftest$ac_exeext conftest.$ac_ext
10776 fi
10777
10778
10779 CFLAGS="$xorg_testset_save_CFLAGS"
10780
10781 eval supported=\$$cacheid
10782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10783 printf "%s\n" "$supported" >&6; }
10784 if test "$supported" = "yes" ; then
10785 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
10786 found="yes"
10787 fi
10788 fi
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804 xorg_testset_save_CFLAGS="$CFLAGS"
10805
10806 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10809 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10810 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10811 then :
10812 printf %s "(cached) " >&6
10813 else $as_nop
10814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10815 /* end confdefs.h. */
10816 int i;
10817 _ACEOF
10818 if ac_fn_c_try_compile "$LINENO"
10819 then :
10820 xorg_cv_cc_flag_unknown_warning_option=yes
10821 else $as_nop
10822 xorg_cv_cc_flag_unknown_warning_option=no
10823 fi
10824 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10825 fi
10826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10827 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10828 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10829 CFLAGS="$xorg_testset_save_CFLAGS"
10830 fi
10831
10832 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10835 fi
10836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10838 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10839 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10840 then :
10841 printf %s "(cached) " >&6
10842 else $as_nop
10843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10844 /* end confdefs.h. */
10845 int i;
10846 _ACEOF
10847 if ac_fn_c_try_compile "$LINENO"
10848 then :
10849 xorg_cv_cc_flag_unused_command_line_argument=yes
10850 else $as_nop
10851 xorg_cv_cc_flag_unused_command_line_argument=no
10852 fi
10853 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10854 fi
10855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10856 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10857 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10858 CFLAGS="$xorg_testset_save_CFLAGS"
10859 fi
10860
10861 found="no"
10862
10863 if test $found = "no" ; then
10864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10866 fi
10867
10868 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10870 fi
10871
10872 CFLAGS="$CFLAGS -Wmain"
10873
10874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
10875 printf %s "checking if $CC supports -Wmain... " >&6; }
10876 cacheid=xorg_cv_cc_flag__Wmain
10877 if eval test \${$cacheid+y}
10878 then :
10879 printf %s "(cached) " >&6
10880 else $as_nop
10881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10882 /* end confdefs.h. */
10883 int i;
10884 int
10885 main (void)
10886 {
10887
10888 ;
10889 return 0;
10890 }
10891 _ACEOF
10892 if ac_fn_c_try_link "$LINENO"
10893 then :
10894 eval $cacheid=yes
10895 else $as_nop
10896 eval $cacheid=no
10897 fi
10898 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10899 conftest$ac_exeext conftest.$ac_ext
10900 fi
10901
10902
10903 CFLAGS="$xorg_testset_save_CFLAGS"
10904
10905 eval supported=\$$cacheid
10906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10907 printf "%s\n" "$supported" >&6; }
10908 if test "$supported" = "yes" ; then
10909 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
10910 found="yes"
10911 fi
10912 fi
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928 xorg_testset_save_CFLAGS="$CFLAGS"
10929
10930 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10931 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10933 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10934 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10935 then :
10936 printf %s "(cached) " >&6
10937 else $as_nop
10938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10939 /* end confdefs.h. */
10940 int i;
10941 _ACEOF
10942 if ac_fn_c_try_compile "$LINENO"
10943 then :
10944 xorg_cv_cc_flag_unknown_warning_option=yes
10945 else $as_nop
10946 xorg_cv_cc_flag_unknown_warning_option=no
10947 fi
10948 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10949 fi
10950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10951 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10952 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10953 CFLAGS="$xorg_testset_save_CFLAGS"
10954 fi
10955
10956 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10959 fi
10960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10962 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10963 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10964 then :
10965 printf %s "(cached) " >&6
10966 else $as_nop
10967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968 /* end confdefs.h. */
10969 int i;
10970 _ACEOF
10971 if ac_fn_c_try_compile "$LINENO"
10972 then :
10973 xorg_cv_cc_flag_unused_command_line_argument=yes
10974 else $as_nop
10975 xorg_cv_cc_flag_unused_command_line_argument=no
10976 fi
10977 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10978 fi
10979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10980 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10981 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10982 CFLAGS="$xorg_testset_save_CFLAGS"
10983 fi
10984
10985 found="no"
10986
10987 if test $found = "no" ; then
10988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10990 fi
10991
10992 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10994 fi
10995
10996 CFLAGS="$CFLAGS -Wmissing-braces"
10997
10998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
10999 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
11000 cacheid=xorg_cv_cc_flag__Wmissing_braces
11001 if eval test \${$cacheid+y}
11002 then :
11003 printf %s "(cached) " >&6
11004 else $as_nop
11005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11006 /* end confdefs.h. */
11007 int i;
11008 int
11009 main (void)
11010 {
11011
11012 ;
11013 return 0;
11014 }
11015 _ACEOF
11016 if ac_fn_c_try_link "$LINENO"
11017 then :
11018 eval $cacheid=yes
11019 else $as_nop
11020 eval $cacheid=no
11021 fi
11022 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11023 conftest$ac_exeext conftest.$ac_ext
11024 fi
11025
11026
11027 CFLAGS="$xorg_testset_save_CFLAGS"
11028
11029 eval supported=\$$cacheid
11030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11031 printf "%s\n" "$supported" >&6; }
11032 if test "$supported" = "yes" ; then
11033 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
11034 found="yes"
11035 fi
11036 fi
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052 xorg_testset_save_CFLAGS="$CFLAGS"
11053
11054 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11055 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11057 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11058 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11059 then :
11060 printf %s "(cached) " >&6
11061 else $as_nop
11062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11063 /* end confdefs.h. */
11064 int i;
11065 _ACEOF
11066 if ac_fn_c_try_compile "$LINENO"
11067 then :
11068 xorg_cv_cc_flag_unknown_warning_option=yes
11069 else $as_nop
11070 xorg_cv_cc_flag_unknown_warning_option=no
11071 fi
11072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11073 fi
11074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11075 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11076 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11077 CFLAGS="$xorg_testset_save_CFLAGS"
11078 fi
11079
11080 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11083 fi
11084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11086 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11087 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11088 then :
11089 printf %s "(cached) " >&6
11090 else $as_nop
11091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11092 /* end confdefs.h. */
11093 int i;
11094 _ACEOF
11095 if ac_fn_c_try_compile "$LINENO"
11096 then :
11097 xorg_cv_cc_flag_unused_command_line_argument=yes
11098 else $as_nop
11099 xorg_cv_cc_flag_unused_command_line_argument=no
11100 fi
11101 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11102 fi
11103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11104 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11105 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11106 CFLAGS="$xorg_testset_save_CFLAGS"
11107 fi
11108
11109 found="no"
11110
11111 if test $found = "no" ; then
11112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11114 fi
11115
11116 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11118 fi
11119
11120 CFLAGS="$CFLAGS -Wsequence-point"
11121
11122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
11123 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
11124 cacheid=xorg_cv_cc_flag__Wsequence_point
11125 if eval test \${$cacheid+y}
11126 then :
11127 printf %s "(cached) " >&6
11128 else $as_nop
11129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11130 /* end confdefs.h. */
11131 int i;
11132 int
11133 main (void)
11134 {
11135
11136 ;
11137 return 0;
11138 }
11139 _ACEOF
11140 if ac_fn_c_try_link "$LINENO"
11141 then :
11142 eval $cacheid=yes
11143 else $as_nop
11144 eval $cacheid=no
11145 fi
11146 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11147 conftest$ac_exeext conftest.$ac_ext
11148 fi
11149
11150
11151 CFLAGS="$xorg_testset_save_CFLAGS"
11152
11153 eval supported=\$$cacheid
11154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11155 printf "%s\n" "$supported" >&6; }
11156 if test "$supported" = "yes" ; then
11157 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
11158 found="yes"
11159 fi
11160 fi
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176 xorg_testset_save_CFLAGS="$CFLAGS"
11177
11178 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11179 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11181 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11182 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11183 then :
11184 printf %s "(cached) " >&6
11185 else $as_nop
11186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11187 /* end confdefs.h. */
11188 int i;
11189 _ACEOF
11190 if ac_fn_c_try_compile "$LINENO"
11191 then :
11192 xorg_cv_cc_flag_unknown_warning_option=yes
11193 else $as_nop
11194 xorg_cv_cc_flag_unknown_warning_option=no
11195 fi
11196 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11197 fi
11198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11199 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11200 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11201 CFLAGS="$xorg_testset_save_CFLAGS"
11202 fi
11203
11204 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11206 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11207 fi
11208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11210 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11211 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11212 then :
11213 printf %s "(cached) " >&6
11214 else $as_nop
11215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11216 /* end confdefs.h. */
11217 int i;
11218 _ACEOF
11219 if ac_fn_c_try_compile "$LINENO"
11220 then :
11221 xorg_cv_cc_flag_unused_command_line_argument=yes
11222 else $as_nop
11223 xorg_cv_cc_flag_unused_command_line_argument=no
11224 fi
11225 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11226 fi
11227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11228 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11230 CFLAGS="$xorg_testset_save_CFLAGS"
11231 fi
11232
11233 found="no"
11234
11235 if test $found = "no" ; then
11236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11238 fi
11239
11240 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11242 fi
11243
11244 CFLAGS="$CFLAGS -Wreturn-type"
11245
11246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
11247 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
11248 cacheid=xorg_cv_cc_flag__Wreturn_type
11249 if eval test \${$cacheid+y}
11250 then :
11251 printf %s "(cached) " >&6
11252 else $as_nop
11253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11254 /* end confdefs.h. */
11255 int i;
11256 int
11257 main (void)
11258 {
11259
11260 ;
11261 return 0;
11262 }
11263 _ACEOF
11264 if ac_fn_c_try_link "$LINENO"
11265 then :
11266 eval $cacheid=yes
11267 else $as_nop
11268 eval $cacheid=no
11269 fi
11270 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11271 conftest$ac_exeext conftest.$ac_ext
11272 fi
11273
11274
11275 CFLAGS="$xorg_testset_save_CFLAGS"
11276
11277 eval supported=\$$cacheid
11278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11279 printf "%s\n" "$supported" >&6; }
11280 if test "$supported" = "yes" ; then
11281 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
11282 found="yes"
11283 fi
11284 fi
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300 xorg_testset_save_CFLAGS="$CFLAGS"
11301
11302 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11305 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11306 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11307 then :
11308 printf %s "(cached) " >&6
11309 else $as_nop
11310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11311 /* end confdefs.h. */
11312 int i;
11313 _ACEOF
11314 if ac_fn_c_try_compile "$LINENO"
11315 then :
11316 xorg_cv_cc_flag_unknown_warning_option=yes
11317 else $as_nop
11318 xorg_cv_cc_flag_unknown_warning_option=no
11319 fi
11320 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11321 fi
11322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11323 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11324 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11325 CFLAGS="$xorg_testset_save_CFLAGS"
11326 fi
11327
11328 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11330 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11331 fi
11332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11334 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11335 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11336 then :
11337 printf %s "(cached) " >&6
11338 else $as_nop
11339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11340 /* end confdefs.h. */
11341 int i;
11342 _ACEOF
11343 if ac_fn_c_try_compile "$LINENO"
11344 then :
11345 xorg_cv_cc_flag_unused_command_line_argument=yes
11346 else $as_nop
11347 xorg_cv_cc_flag_unused_command_line_argument=no
11348 fi
11349 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11350 fi
11351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11352 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11353 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11354 CFLAGS="$xorg_testset_save_CFLAGS"
11355 fi
11356
11357 found="no"
11358
11359 if test $found = "no" ; then
11360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11361 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11362 fi
11363
11364 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11366 fi
11367
11368 CFLAGS="$CFLAGS -Wtrigraphs"
11369
11370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
11371 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
11372 cacheid=xorg_cv_cc_flag__Wtrigraphs
11373 if eval test \${$cacheid+y}
11374 then :
11375 printf %s "(cached) " >&6
11376 else $as_nop
11377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11378 /* end confdefs.h. */
11379 int i;
11380 int
11381 main (void)
11382 {
11383
11384 ;
11385 return 0;
11386 }
11387 _ACEOF
11388 if ac_fn_c_try_link "$LINENO"
11389 then :
11390 eval $cacheid=yes
11391 else $as_nop
11392 eval $cacheid=no
11393 fi
11394 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11395 conftest$ac_exeext conftest.$ac_ext
11396 fi
11397
11398
11399 CFLAGS="$xorg_testset_save_CFLAGS"
11400
11401 eval supported=\$$cacheid
11402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11403 printf "%s\n" "$supported" >&6; }
11404 if test "$supported" = "yes" ; then
11405 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
11406 found="yes"
11407 fi
11408 fi
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424 xorg_testset_save_CFLAGS="$CFLAGS"
11425
11426 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11429 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11430 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11431 then :
11432 printf %s "(cached) " >&6
11433 else $as_nop
11434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11435 /* end confdefs.h. */
11436 int i;
11437 _ACEOF
11438 if ac_fn_c_try_compile "$LINENO"
11439 then :
11440 xorg_cv_cc_flag_unknown_warning_option=yes
11441 else $as_nop
11442 xorg_cv_cc_flag_unknown_warning_option=no
11443 fi
11444 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11445 fi
11446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11447 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11448 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11449 CFLAGS="$xorg_testset_save_CFLAGS"
11450 fi
11451
11452 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11455 fi
11456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11458 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11459 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11460 then :
11461 printf %s "(cached) " >&6
11462 else $as_nop
11463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11464 /* end confdefs.h. */
11465 int i;
11466 _ACEOF
11467 if ac_fn_c_try_compile "$LINENO"
11468 then :
11469 xorg_cv_cc_flag_unused_command_line_argument=yes
11470 else $as_nop
11471 xorg_cv_cc_flag_unused_command_line_argument=no
11472 fi
11473 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11474 fi
11475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11476 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11477 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11478 CFLAGS="$xorg_testset_save_CFLAGS"
11479 fi
11480
11481 found="no"
11482
11483 if test $found = "no" ; then
11484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11485 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11486 fi
11487
11488 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11490 fi
11491
11492 CFLAGS="$CFLAGS -Warray-bounds"
11493
11494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
11495 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
11496 cacheid=xorg_cv_cc_flag__Warray_bounds
11497 if eval test \${$cacheid+y}
11498 then :
11499 printf %s "(cached) " >&6
11500 else $as_nop
11501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11502 /* end confdefs.h. */
11503 int i;
11504 int
11505 main (void)
11506 {
11507
11508 ;
11509 return 0;
11510 }
11511 _ACEOF
11512 if ac_fn_c_try_link "$LINENO"
11513 then :
11514 eval $cacheid=yes
11515 else $as_nop
11516 eval $cacheid=no
11517 fi
11518 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11519 conftest$ac_exeext conftest.$ac_ext
11520 fi
11521
11522
11523 CFLAGS="$xorg_testset_save_CFLAGS"
11524
11525 eval supported=\$$cacheid
11526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11527 printf "%s\n" "$supported" >&6; }
11528 if test "$supported" = "yes" ; then
11529 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
11530 found="yes"
11531 fi
11532 fi
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548 xorg_testset_save_CFLAGS="$CFLAGS"
11549
11550 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11553 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11554 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11555 then :
11556 printf %s "(cached) " >&6
11557 else $as_nop
11558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11559 /* end confdefs.h. */
11560 int i;
11561 _ACEOF
11562 if ac_fn_c_try_compile "$LINENO"
11563 then :
11564 xorg_cv_cc_flag_unknown_warning_option=yes
11565 else $as_nop
11566 xorg_cv_cc_flag_unknown_warning_option=no
11567 fi
11568 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11569 fi
11570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11571 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11572 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11573 CFLAGS="$xorg_testset_save_CFLAGS"
11574 fi
11575
11576 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11578 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11579 fi
11580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11582 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11583 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11584 then :
11585 printf %s "(cached) " >&6
11586 else $as_nop
11587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11588 /* end confdefs.h. */
11589 int i;
11590 _ACEOF
11591 if ac_fn_c_try_compile "$LINENO"
11592 then :
11593 xorg_cv_cc_flag_unused_command_line_argument=yes
11594 else $as_nop
11595 xorg_cv_cc_flag_unused_command_line_argument=no
11596 fi
11597 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11598 fi
11599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11600 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11601 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11602 CFLAGS="$xorg_testset_save_CFLAGS"
11603 fi
11604
11605 found="no"
11606
11607 if test $found = "no" ; then
11608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11610 fi
11611
11612 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11614 fi
11615
11616 CFLAGS="$CFLAGS -Wwrite-strings"
11617
11618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
11619 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
11620 cacheid=xorg_cv_cc_flag__Wwrite_strings
11621 if eval test \${$cacheid+y}
11622 then :
11623 printf %s "(cached) " >&6
11624 else $as_nop
11625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11626 /* end confdefs.h. */
11627 int i;
11628 int
11629 main (void)
11630 {
11631
11632 ;
11633 return 0;
11634 }
11635 _ACEOF
11636 if ac_fn_c_try_link "$LINENO"
11637 then :
11638 eval $cacheid=yes
11639 else $as_nop
11640 eval $cacheid=no
11641 fi
11642 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11643 conftest$ac_exeext conftest.$ac_ext
11644 fi
11645
11646
11647 CFLAGS="$xorg_testset_save_CFLAGS"
11648
11649 eval supported=\$$cacheid
11650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11651 printf "%s\n" "$supported" >&6; }
11652 if test "$supported" = "yes" ; then
11653 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
11654 found="yes"
11655 fi
11656 fi
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672 xorg_testset_save_CFLAGS="$CFLAGS"
11673
11674 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11677 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11678 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11679 then :
11680 printf %s "(cached) " >&6
11681 else $as_nop
11682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11683 /* end confdefs.h. */
11684 int i;
11685 _ACEOF
11686 if ac_fn_c_try_compile "$LINENO"
11687 then :
11688 xorg_cv_cc_flag_unknown_warning_option=yes
11689 else $as_nop
11690 xorg_cv_cc_flag_unknown_warning_option=no
11691 fi
11692 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11693 fi
11694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11695 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11696 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11697 CFLAGS="$xorg_testset_save_CFLAGS"
11698 fi
11699
11700 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11703 fi
11704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11706 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11707 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11708 then :
11709 printf %s "(cached) " >&6
11710 else $as_nop
11711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11712 /* end confdefs.h. */
11713 int i;
11714 _ACEOF
11715 if ac_fn_c_try_compile "$LINENO"
11716 then :
11717 xorg_cv_cc_flag_unused_command_line_argument=yes
11718 else $as_nop
11719 xorg_cv_cc_flag_unused_command_line_argument=no
11720 fi
11721 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11722 fi
11723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11724 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11725 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11726 CFLAGS="$xorg_testset_save_CFLAGS"
11727 fi
11728
11729 found="no"
11730
11731 if test $found = "no" ; then
11732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11733 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11734 fi
11735
11736 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11738 fi
11739
11740 CFLAGS="$CFLAGS -Waddress"
11741
11742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
11743 printf %s "checking if $CC supports -Waddress... " >&6; }
11744 cacheid=xorg_cv_cc_flag__Waddress
11745 if eval test \${$cacheid+y}
11746 then :
11747 printf %s "(cached) " >&6
11748 else $as_nop
11749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11750 /* end confdefs.h. */
11751 int i;
11752 int
11753 main (void)
11754 {
11755
11756 ;
11757 return 0;
11758 }
11759 _ACEOF
11760 if ac_fn_c_try_link "$LINENO"
11761 then :
11762 eval $cacheid=yes
11763 else $as_nop
11764 eval $cacheid=no
11765 fi
11766 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11767 conftest$ac_exeext conftest.$ac_ext
11768 fi
11769
11770
11771 CFLAGS="$xorg_testset_save_CFLAGS"
11772
11773 eval supported=\$$cacheid
11774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11775 printf "%s\n" "$supported" >&6; }
11776 if test "$supported" = "yes" ; then
11777 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
11778 found="yes"
11779 fi
11780 fi
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796 xorg_testset_save_CFLAGS="$CFLAGS"
11797
11798 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11801 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11802 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11803 then :
11804 printf %s "(cached) " >&6
11805 else $as_nop
11806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11807 /* end confdefs.h. */
11808 int i;
11809 _ACEOF
11810 if ac_fn_c_try_compile "$LINENO"
11811 then :
11812 xorg_cv_cc_flag_unknown_warning_option=yes
11813 else $as_nop
11814 xorg_cv_cc_flag_unknown_warning_option=no
11815 fi
11816 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11817 fi
11818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11819 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11820 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11821 CFLAGS="$xorg_testset_save_CFLAGS"
11822 fi
11823
11824 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11826 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11827 fi
11828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11830 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11831 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11832 then :
11833 printf %s "(cached) " >&6
11834 else $as_nop
11835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11836 /* end confdefs.h. */
11837 int i;
11838 _ACEOF
11839 if ac_fn_c_try_compile "$LINENO"
11840 then :
11841 xorg_cv_cc_flag_unused_command_line_argument=yes
11842 else $as_nop
11843 xorg_cv_cc_flag_unused_command_line_argument=no
11844 fi
11845 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11846 fi
11847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11848 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11849 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11850 CFLAGS="$xorg_testset_save_CFLAGS"
11851 fi
11852
11853 found="no"
11854
11855 if test $found = "no" ; then
11856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11858 fi
11859
11860 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11862 fi
11863
11864 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
11865
11866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
11867 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
11868 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
11869 if eval test \${$cacheid+y}
11870 then :
11871 printf %s "(cached) " >&6
11872 else $as_nop
11873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11874 /* end confdefs.h. */
11875 int i;
11876 int
11877 main (void)
11878 {
11879
11880 ;
11881 return 0;
11882 }
11883 _ACEOF
11884 if ac_fn_c_try_link "$LINENO"
11885 then :
11886 eval $cacheid=yes
11887 else $as_nop
11888 eval $cacheid=no
11889 fi
11890 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11891 conftest$ac_exeext conftest.$ac_ext
11892 fi
11893
11894
11895 CFLAGS="$xorg_testset_save_CFLAGS"
11896
11897 eval supported=\$$cacheid
11898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11899 printf "%s\n" "$supported" >&6; }
11900 if test "$supported" = "yes" ; then
11901 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
11902 found="yes"
11903 fi
11904 fi
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920 xorg_testset_save_CFLAGS="$CFLAGS"
11921
11922 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11925 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11926 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11927 then :
11928 printf %s "(cached) " >&6
11929 else $as_nop
11930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11931 /* end confdefs.h. */
11932 int i;
11933 _ACEOF
11934 if ac_fn_c_try_compile "$LINENO"
11935 then :
11936 xorg_cv_cc_flag_unknown_warning_option=yes
11937 else $as_nop
11938 xorg_cv_cc_flag_unknown_warning_option=no
11939 fi
11940 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11941 fi
11942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11943 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11944 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11945 CFLAGS="$xorg_testset_save_CFLAGS"
11946 fi
11947
11948 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11951 fi
11952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11954 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11955 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11956 then :
11957 printf %s "(cached) " >&6
11958 else $as_nop
11959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11960 /* end confdefs.h. */
11961 int i;
11962 _ACEOF
11963 if ac_fn_c_try_compile "$LINENO"
11964 then :
11965 xorg_cv_cc_flag_unused_command_line_argument=yes
11966 else $as_nop
11967 xorg_cv_cc_flag_unused_command_line_argument=no
11968 fi
11969 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11970 fi
11971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11972 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11973 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11974 CFLAGS="$xorg_testset_save_CFLAGS"
11975 fi
11976
11977 found="no"
11978
11979 if test $found = "no" ; then
11980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11982 fi
11983
11984 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11986 fi
11987
11988 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
11989
11990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
11991 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
11992 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
11993 if eval test \${$cacheid+y}
11994 then :
11995 printf %s "(cached) " >&6
11996 else $as_nop
11997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11998 /* end confdefs.h. */
11999 int i;
12000 int
12001 main (void)
12002 {
12003
12004 ;
12005 return 0;
12006 }
12007 _ACEOF
12008 if ac_fn_c_try_link "$LINENO"
12009 then :
12010 eval $cacheid=yes
12011 else $as_nop
12012 eval $cacheid=no
12013 fi
12014 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12015 conftest$ac_exeext conftest.$ac_ext
12016 fi
12017
12018
12019 CFLAGS="$xorg_testset_save_CFLAGS"
12020
12021 eval supported=\$$cacheid
12022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12023 printf "%s\n" "$supported" >&6; }
12024 if test "$supported" = "yes" ; then
12025 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
12026 found="yes"
12027 fi
12028 fi
12029
12030
12031 fi
12032
12033
12034
12035
12036
12037
12038
12039 CWARNFLAGS="$BASE_CFLAGS"
12040 if test "x$GCC" = xyes ; then
12041 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
12042 fi
12043
12044
12045
12046
12047
12048
12049
12050
12051 # Check whether --enable-strict-compilation was given.
12052 if test ${enable_strict_compilation+y}
12053 then :
12054 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
12055 else $as_nop
12056 STRICT_COMPILE=no
12057 fi
12058
12059
12060
12061
12062
12063
12064 STRICT_CFLAGS=""
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078 xorg_testset_save_CFLAGS="$CFLAGS"
12079
12080 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12083 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12084 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12085 then :
12086 printf %s "(cached) " >&6
12087 else $as_nop
12088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12089 /* end confdefs.h. */
12090 int i;
12091 _ACEOF
12092 if ac_fn_c_try_compile "$LINENO"
12093 then :
12094 xorg_cv_cc_flag_unknown_warning_option=yes
12095 else $as_nop
12096 xorg_cv_cc_flag_unknown_warning_option=no
12097 fi
12098 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12099 fi
12100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12101 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12102 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12103 CFLAGS="$xorg_testset_save_CFLAGS"
12104 fi
12105
12106 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12109 fi
12110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12112 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12113 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
12114 then :
12115 printf %s "(cached) " >&6
12116 else $as_nop
12117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12118 /* end confdefs.h. */
12119 int i;
12120 _ACEOF
12121 if ac_fn_c_try_compile "$LINENO"
12122 then :
12123 xorg_cv_cc_flag_unused_command_line_argument=yes
12124 else $as_nop
12125 xorg_cv_cc_flag_unused_command_line_argument=no
12126 fi
12127 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12128 fi
12129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12130 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12132 CFLAGS="$xorg_testset_save_CFLAGS"
12133 fi
12134
12135 found="no"
12136
12137 if test $found = "no" ; then
12138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12140 fi
12141
12142 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12144 fi
12145
12146 CFLAGS="$CFLAGS -pedantic"
12147
12148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
12149 printf %s "checking if $CC supports -pedantic... " >&6; }
12150 cacheid=xorg_cv_cc_flag__pedantic
12151 if eval test \${$cacheid+y}
12152 then :
12153 printf %s "(cached) " >&6
12154 else $as_nop
12155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12156 /* end confdefs.h. */
12157 int i;
12158 int
12159 main (void)
12160 {
12161
12162 ;
12163 return 0;
12164 }
12165 _ACEOF
12166 if ac_fn_c_try_link "$LINENO"
12167 then :
12168 eval $cacheid=yes
12169 else $as_nop
12170 eval $cacheid=no
12171 fi
12172 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12173 conftest$ac_exeext conftest.$ac_ext
12174 fi
12175
12176
12177 CFLAGS="$xorg_testset_save_CFLAGS"
12178
12179 eval supported=\$$cacheid
12180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12181 printf "%s\n" "$supported" >&6; }
12182 if test "$supported" = "yes" ; then
12183 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
12184 found="yes"
12185 fi
12186 fi
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202 xorg_testset_save_CFLAGS="$CFLAGS"
12203
12204 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12207 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12208 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12209 then :
12210 printf %s "(cached) " >&6
12211 else $as_nop
12212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12213 /* end confdefs.h. */
12214 int i;
12215 _ACEOF
12216 if ac_fn_c_try_compile "$LINENO"
12217 then :
12218 xorg_cv_cc_flag_unknown_warning_option=yes
12219 else $as_nop
12220 xorg_cv_cc_flag_unknown_warning_option=no
12221 fi
12222 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12223 fi
12224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12225 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12226 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12227 CFLAGS="$xorg_testset_save_CFLAGS"
12228 fi
12229
12230 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12232 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12233 fi
12234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12236 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12237 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
12238 then :
12239 printf %s "(cached) " >&6
12240 else $as_nop
12241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12242 /* end confdefs.h. */
12243 int i;
12244 _ACEOF
12245 if ac_fn_c_try_compile "$LINENO"
12246 then :
12247 xorg_cv_cc_flag_unused_command_line_argument=yes
12248 else $as_nop
12249 xorg_cv_cc_flag_unused_command_line_argument=no
12250 fi
12251 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12252 fi
12253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12254 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12255 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12256 CFLAGS="$xorg_testset_save_CFLAGS"
12257 fi
12258
12259 found="no"
12260
12261 if test $found = "no" ; then
12262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12264 fi
12265
12266 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12268 fi
12269
12270 CFLAGS="$CFLAGS -Werror"
12271
12272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
12273 printf %s "checking if $CC supports -Werror... " >&6; }
12274 cacheid=xorg_cv_cc_flag__Werror
12275 if eval test \${$cacheid+y}
12276 then :
12277 printf %s "(cached) " >&6
12278 else $as_nop
12279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12280 /* end confdefs.h. */
12281 int i;
12282 int
12283 main (void)
12284 {
12285
12286 ;
12287 return 0;
12288 }
12289 _ACEOF
12290 if ac_fn_c_try_link "$LINENO"
12291 then :
12292 eval $cacheid=yes
12293 else $as_nop
12294 eval $cacheid=no
12295 fi
12296 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12297 conftest$ac_exeext conftest.$ac_ext
12298 fi
12299
12300
12301 CFLAGS="$xorg_testset_save_CFLAGS"
12302
12303 eval supported=\$$cacheid
12304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12305 printf "%s\n" "$supported" >&6; }
12306 if test "$supported" = "yes" ; then
12307 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
12308 found="yes"
12309 fi
12310 fi
12311
12312 if test $found = "no" ; then
12313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12315 fi
12316
12317 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12319 fi
12320
12321 CFLAGS="$CFLAGS -errwarn"
12322
12323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
12324 printf %s "checking if $CC supports -errwarn... " >&6; }
12325 cacheid=xorg_cv_cc_flag__errwarn
12326 if eval test \${$cacheid+y}
12327 then :
12328 printf %s "(cached) " >&6
12329 else $as_nop
12330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12331 /* end confdefs.h. */
12332 int i;
12333 int
12334 main (void)
12335 {
12336
12337 ;
12338 return 0;
12339 }
12340 _ACEOF
12341 if ac_fn_c_try_link "$LINENO"
12342 then :
12343 eval $cacheid=yes
12344 else $as_nop
12345 eval $cacheid=no
12346 fi
12347 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12348 conftest$ac_exeext conftest.$ac_ext
12349 fi
12350
12351
12352 CFLAGS="$xorg_testset_save_CFLAGS"
12353
12354 eval supported=\$$cacheid
12355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12356 printf "%s\n" "$supported" >&6; }
12357 if test "$supported" = "yes" ; then
12358 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
12359 found="yes"
12360 fi
12361 fi
12362
12363
12364
12365 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
12366 # activate it with -Werror, so we add it here explicitly.
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380 xorg_testset_save_CFLAGS="$CFLAGS"
12381
12382 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12385 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12386 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12387 then :
12388 printf %s "(cached) " >&6
12389 else $as_nop
12390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12391 /* end confdefs.h. */
12392 int i;
12393 _ACEOF
12394 if ac_fn_c_try_compile "$LINENO"
12395 then :
12396 xorg_cv_cc_flag_unknown_warning_option=yes
12397 else $as_nop
12398 xorg_cv_cc_flag_unknown_warning_option=no
12399 fi
12400 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12401 fi
12402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12403 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12404 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12405 CFLAGS="$xorg_testset_save_CFLAGS"
12406 fi
12407
12408 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12411 fi
12412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12414 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12415 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
12416 then :
12417 printf %s "(cached) " >&6
12418 else $as_nop
12419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12420 /* end confdefs.h. */
12421 int i;
12422 _ACEOF
12423 if ac_fn_c_try_compile "$LINENO"
12424 then :
12425 xorg_cv_cc_flag_unused_command_line_argument=yes
12426 else $as_nop
12427 xorg_cv_cc_flag_unused_command_line_argument=no
12428 fi
12429 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12430 fi
12431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12432 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12433 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12434 CFLAGS="$xorg_testset_save_CFLAGS"
12435 fi
12436
12437 found="no"
12438
12439 if test $found = "no" ; then
12440 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12441 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12442 fi
12443
12444 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12446 fi
12447
12448 CFLAGS="$CFLAGS -Werror=attributes"
12449
12450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
12451 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
12452 cacheid=xorg_cv_cc_flag__Werror_attributes
12453 if eval test \${$cacheid+y}
12454 then :
12455 printf %s "(cached) " >&6
12456 else $as_nop
12457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12458 /* end confdefs.h. */
12459 int i;
12460 int
12461 main (void)
12462 {
12463
12464 ;
12465 return 0;
12466 }
12467 _ACEOF
12468 if ac_fn_c_try_link "$LINENO"
12469 then :
12470 eval $cacheid=yes
12471 else $as_nop
12472 eval $cacheid=no
12473 fi
12474 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12475 conftest$ac_exeext conftest.$ac_ext
12476 fi
12477
12478
12479 CFLAGS="$xorg_testset_save_CFLAGS"
12480
12481 eval supported=\$$cacheid
12482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12483 printf "%s\n" "$supported" >&6; }
12484 if test "$supported" = "yes" ; then
12485 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
12486 found="yes"
12487 fi
12488 fi
12489
12490
12491
12492 if test "x$STRICT_COMPILE" = "xyes"; then
12493 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
12494 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
12495 fi
12496
12497
12498
12499
12500
12501
12502
12503
12504 cat >>confdefs.h <<_ACEOF
12505 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
12506 _ACEOF
12507
12508 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
12509 if test "x$PVM" = "x"; then
12510 PVM="0"
12511 fi
12512
12513 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
12514
12515 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
12516 if test "x$PVP" = "x"; then
12517 PVP="0"
12518 fi
12519
12520 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
12521
12522
12523
12524 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
12525 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
12526 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
12527 touch \$(top_srcdir)/ChangeLog; \
12528 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
12529
12530
12531
12532
12533 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
12534 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
12535 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
12536 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
12537 touch \$(top_srcdir)/INSTALL; \
12538 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
12539
12540
12541
12542
12543
12544
12545 case $host_os in
12546 solaris*)
12547 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
12548 # check for a man page file found in later versions that use
12549 # traditional section numbers instead
12550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
12551 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
12552 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
12553 then :
12554 printf %s "(cached) " >&6
12555 else $as_nop
12556 test "$cross_compiling" = yes &&
12557 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
12558 if test -r "/usr/share/man/man7/attributes.7"; then
12559 ac_cv_file__usr_share_man_man7_attributes_7=yes
12560 else
12561 ac_cv_file__usr_share_man_man7_attributes_7=no
12562 fi
12563 fi
12564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
12565 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
12566 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
12567 then :
12568 SYSV_MAN_SECTIONS=false
12569 else $as_nop
12570 SYSV_MAN_SECTIONS=true
12571 fi
12572
12573 ;;
12574 *) SYSV_MAN_SECTIONS=false ;;
12575 esac
12576
12577 if test x$APP_MAN_SUFFIX = x ; then
12578 APP_MAN_SUFFIX=1
12579 fi
12580 if test x$APP_MAN_DIR = x ; then
12581 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
12582 fi
12583
12584 if test x$LIB_MAN_SUFFIX = x ; then
12585 LIB_MAN_SUFFIX=3
12586 fi
12587 if test x$LIB_MAN_DIR = x ; then
12588 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
12589 fi
12590
12591 if test x$FILE_MAN_SUFFIX = x ; then
12592 case $SYSV_MAN_SECTIONS in
12593 true) FILE_MAN_SUFFIX=4 ;;
12594 *) FILE_MAN_SUFFIX=5 ;;
12595 esac
12596 fi
12597 if test x$FILE_MAN_DIR = x ; then
12598 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
12599 fi
12600
12601 if test x$MISC_MAN_SUFFIX = x ; then
12602 case $SYSV_MAN_SECTIONS in
12603 true) MISC_MAN_SUFFIX=5 ;;
12604 *) MISC_MAN_SUFFIX=7 ;;
12605 esac
12606 fi
12607 if test x$MISC_MAN_DIR = x ; then
12608 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
12609 fi
12610
12611 if test x$DRIVER_MAN_SUFFIX = x ; then
12612 case $SYSV_MAN_SECTIONS in
12613 true) DRIVER_MAN_SUFFIX=7 ;;
12614 *) DRIVER_MAN_SUFFIX=4 ;;
12615 esac
12616 fi
12617 if test x$DRIVER_MAN_DIR = x ; then
12618 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
12619 fi
12620
12621 if test x$ADMIN_MAN_SUFFIX = x ; then
12622 case $SYSV_MAN_SECTIONS in
12623 true) ADMIN_MAN_SUFFIX=1m ;;
12624 *) ADMIN_MAN_SUFFIX=8 ;;
12625 esac
12626 fi
12627 if test x$ADMIN_MAN_DIR = x ; then
12628 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
12629 fi
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645 XORG_MAN_PAGE="X Version 11"
12646
12647 MAN_SUBSTS="\
12648 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12649 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12650 -e 's|__xservername__|Xorg|g' \
12651 -e 's|__xconfigfile__|xorg.conf|g' \
12652 -e 's|__projectroot__|\$(prefix)|g' \
12653 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
12654 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
12655 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
12656 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
12657 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
12658 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
12659 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
12660
12661
12662
12663 # Check whether --enable-silent-rules was given.
12664 if test ${enable_silent_rules+y}
12665 then :
12666 enableval=$enable_silent_rules;
12667 fi
12668
12669 case $enable_silent_rules in # (((
12670 yes) AM_DEFAULT_VERBOSITY=0;;
12671 no) AM_DEFAULT_VERBOSITY=1;;
12672 *) AM_DEFAULT_VERBOSITY=0;;
12673 esac
12674 am_make=${MAKE-make}
12675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12676 printf %s "checking whether $am_make supports nested variables... " >&6; }
12677 if test ${am_cv_make_support_nested_variables+y}
12678 then :
12679 printf %s "(cached) " >&6
12680 else $as_nop
12681 if printf "%s\n" 'TRUE=$(BAR$(V))
12682 BAR0=false
12683 BAR1=true
12684 V=1
12685 am__doit:
12686 @$(TRUE)
12687 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12688 am_cv_make_support_nested_variables=yes
12689 else
12690 am_cv_make_support_nested_variables=no
12691 fi
12692 fi
12693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12694 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
12695 if test $am_cv_make_support_nested_variables = yes; then
12696 AM_V='$(V)'
12697 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12698 else
12699 AM_V=$AM_DEFAULT_VERBOSITY
12700 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12701 fi
12702 AM_BACKSLASH='\'
12703
12704
12705
12706
12707 # Checks for library functions
12708 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
12709 if test "x$ac_cv_func_strlcat" = xyes
12710 then :
12711 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
12712
12713 fi
12714
12715
12716 # Use POSIX strnlen or the implementation supplied in this module
12717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
12718 printf %s "checking for working strnlen... " >&6; }
12719 if test ${ac_cv_func_strnlen_working+y}
12720 then :
12721 printf %s "(cached) " >&6
12722 else $as_nop
12723 if test "$cross_compiling" = yes
12724 then :
12725 # Guess no on AIX systems, yes otherwise.
12726 case "$host_os" in
12727 aix*) ac_cv_func_strnlen_working=no;;
12728 *) ac_cv_func_strnlen_working=yes;;
12729 esac
12730 else $as_nop
12731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12732 /* end confdefs.h. */
12733 $ac_includes_default
12734 int
12735 main (void)
12736 {
12737
12738 #define S "foobar"
12739 #define S_LEN (sizeof S - 1)
12740
12741 /* At least one implementation is buggy: that of AIX 4.3 would
12742 give strnlen (S, 1) == 3. */
12743
12744 int i;
12745 for (i = 0; i < S_LEN + 1; ++i)
12746 {
12747 int expected = i <= S_LEN ? i : S_LEN;
12748 if (strnlen (S, i) != expected)
12749 return 1;
12750 }
12751 return 0;
12752
12753 ;
12754 return 0;
12755 }
12756 _ACEOF
12757 if ac_fn_c_try_run "$LINENO"
12758 then :
12759 ac_cv_func_strnlen_working=yes
12760 else $as_nop
12761 ac_cv_func_strnlen_working=no
12762 fi
12763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12764 conftest.$ac_objext conftest.beam conftest.$ac_ext
12765 fi
12766
12767 fi
12768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
12769 printf "%s\n" "$ac_cv_func_strnlen_working" >&6; }
12770 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
12771 *" strnlen.$ac_objext "* ) ;;
12772 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
12773 ;;
12774 esac
12775
12776
12777 if test "x$ac_cv_func_strnlen_working" = xyes; then
12778
12779 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
12780
12781 fi
12782
12783 # Define a configure option for using the XCB ICCCM helper functions
12784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use xcb-icccm library" >&5
12785 printf %s "checking whether to use xcb-icccm library... " >&6; }
12786
12787 # Check whether --with-xcb-icccm was given.
12788 if test ${with_xcb_icccm+y}
12789 then :
12790 withval=$with_xcb_icccm;
12791 else $as_nop
12792 with_xcb_icccm=no
12793 fi
12794
12795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_xcb_icccm" >&5
12796 printf "%s\n" "$with_xcb_icccm" >&6; }
12797 if test "x$with_xcb_icccm" != xno ; then
12798
12799 printf "%s\n" "#define USE_XCB_ICCCM 1" >>confdefs.h
12800
12801 xcb_icccm_pc='xcb-icccm >= 0.3.8'
12802 fi
12803
12804 # Define a configure option for using the XCB Error helper functions
12805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use xcb-errors library" >&5
12806 printf %s "checking whether to use xcb-errors library... " >&6; }
12807
12808 # Check whether --with-xcb-errors was given.
12809 if test ${with_xcb_errors+y}
12810 then :
12811 withval=$with_xcb_errors;
12812 else $as_nop
12813 with_xcb_errors=no
12814 fi
12815
12816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_xcb_errors" >&5
12817 printf "%s\n" "$with_xcb_errors" >&6; }
12818 if test "x$with_xcb_errors" != xno ; then
12819
12820 printf "%s\n" "#define USE_XCB_ERRORS 1" >>confdefs.h
12821
12822 xcb_errors_pc='xcb-errors >= 1.0'
12823 fi
12824
12825 # Obtain compiler/linker options for xwininfo dependencies
12826
12827 pkg_failed=no
12828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XWININFO" >&5
12829 printf %s "checking for XWININFO... " >&6; }
12830
12831 if test -n "$XWININFO_CFLAGS"; then
12832 pkg_cv_XWININFO_CFLAGS="$XWININFO_CFLAGS"
12833 elif test -n "$PKG_CONFIG"; then
12834 if test -n "$PKG_CONFIG" && \
12835 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.6 xcb-shape \${xcb_icccm_pc} \${xcb_errors_pc}\""; } >&5
12836 ($PKG_CONFIG --exists --print-errors "xcb >= 1.6 xcb-shape ${xcb_icccm_pc} ${xcb_errors_pc}") 2>&5
12837 ac_status=$?
12838 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12839 test $ac_status = 0; }; then
12840 pkg_cv_XWININFO_CFLAGS=`$PKG_CONFIG --cflags "xcb >= 1.6 xcb-shape ${xcb_icccm_pc} ${xcb_errors_pc}" 2>/dev/null`
12841 test "x$?" != "x0" && pkg_failed=yes
12842 else
12843 pkg_failed=yes
12844 fi
12845 else
12846 pkg_failed=untried
12847 fi
12848 if test -n "$XWININFO_LIBS"; then
12849 pkg_cv_XWININFO_LIBS="$XWININFO_LIBS"
12850 elif test -n "$PKG_CONFIG"; then
12851 if test -n "$PKG_CONFIG" && \
12852 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.6 xcb-shape \${xcb_icccm_pc} \${xcb_errors_pc}\""; } >&5
12853 ($PKG_CONFIG --exists --print-errors "xcb >= 1.6 xcb-shape ${xcb_icccm_pc} ${xcb_errors_pc}") 2>&5
12854 ac_status=$?
12855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12856 test $ac_status = 0; }; then
12857 pkg_cv_XWININFO_LIBS=`$PKG_CONFIG --libs "xcb >= 1.6 xcb-shape ${xcb_icccm_pc} ${xcb_errors_pc}" 2>/dev/null`
12858 test "x$?" != "x0" && pkg_failed=yes
12859 else
12860 pkg_failed=yes
12861 fi
12862 else
12863 pkg_failed=untried
12864 fi
12865
12866
12867
12868 if test $pkg_failed = yes; then
12869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12870 printf "%s\n" "no" >&6; }
12871
12872 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12873 _pkg_short_errors_supported=yes
12874 else
12875 _pkg_short_errors_supported=no
12876 fi
12877 if test $_pkg_short_errors_supported = yes; then
12878 XWININFO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb >= 1.6 xcb-shape ${xcb_icccm_pc} ${xcb_errors_pc}" 2>&1`
12879 else
12880 XWININFO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb >= 1.6 xcb-shape ${xcb_icccm_pc} ${xcb_errors_pc}" 2>&1`
12881 fi
12882 # Put the nasty error message in config.log where it belongs
12883 echo "$XWININFO_PKG_ERRORS" >&5
12884
12885 as_fn_error $? "Package requirements (xcb >= 1.6 xcb-shape ${xcb_icccm_pc} ${xcb_errors_pc}) were not met:
12886
12887 $XWININFO_PKG_ERRORS
12888
12889 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12890 installed software in a non-standard prefix.
12891
12892 Alternatively, you may set the environment variables XWININFO_CFLAGS
12893 and XWININFO_LIBS to avoid the need to call pkg-config.
12894 See the pkg-config man page for more details." "$LINENO" 5
12895 elif test $pkg_failed = untried; then
12896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12897 printf "%s\n" "no" >&6; }
12898 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12899 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12900 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12901 is in your PATH or set the PKG_CONFIG environment variable to the full
12902 path to pkg-config.
12903
12904 Alternatively, you may set the environment variables XWININFO_CFLAGS
12905 and XWININFO_LIBS to avoid the need to call pkg-config.
12906 See the pkg-config man page for more details.
12907
12908 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12909 See \`config.log' for more details" "$LINENO" 5; }
12910 else
12911 XWININFO_CFLAGS=$pkg_cv_XWININFO_CFLAGS
12912 XWININFO_LIBS=$pkg_cv_XWININFO_LIBS
12913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12914 printf "%s\n" "yes" >&6; }
12915
12916 fi
12917
12918 # Even when using xcb, xproto is still required for Xfuncproto.h
12919 # and libX11 headers for cursorfont.h
12920
12921 pkg_failed=no
12922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XLIB" >&5
12923 printf %s "checking for XLIB... " >&6; }
12924
12925 if test -n "$XLIB_CFLAGS"; then
12926 pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS"
12927 elif test -n "$PKG_CONFIG"; then
12928 if test -n "$PKG_CONFIG" && \
12929 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5
12930 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5
12931 ac_status=$?
12932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12933 test $ac_status = 0; }; then
12934 pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.25" 2>/dev/null`
12935 test "x$?" != "x0" && pkg_failed=yes
12936 else
12937 pkg_failed=yes
12938 fi
12939 else
12940 pkg_failed=untried
12941 fi
12942 if test -n "$XLIB_LIBS"; then
12943 pkg_cv_XLIB_LIBS="$XLIB_LIBS"
12944 elif test -n "$PKG_CONFIG"; then
12945 if test -n "$PKG_CONFIG" && \
12946 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5
12947 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5
12948 ac_status=$?
12949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12950 test $ac_status = 0; }; then
12951 pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.25" 2>/dev/null`
12952 test "x$?" != "x0" && pkg_failed=yes
12953 else
12954 pkg_failed=yes
12955 fi
12956 else
12957 pkg_failed=untried
12958 fi
12959
12960
12961
12962 if test $pkg_failed = yes; then
12963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12964 printf "%s\n" "no" >&6; }
12965
12966 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12967 _pkg_short_errors_supported=yes
12968 else
12969 _pkg_short_errors_supported=no
12970 fi
12971 if test $_pkg_short_errors_supported = yes; then
12972 XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1`
12973 else
12974 XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1`
12975 fi
12976 # Put the nasty error message in config.log where it belongs
12977 echo "$XLIB_PKG_ERRORS" >&5
12978
12979 as_fn_error $? "Package requirements (x11 xproto >= 7.0.25) were not met:
12980
12981 $XLIB_PKG_ERRORS
12982
12983 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12984 installed software in a non-standard prefix.
12985
12986 Alternatively, you may set the environment variables XLIB_CFLAGS
12987 and XLIB_LIBS to avoid the need to call pkg-config.
12988 See the pkg-config man page for more details." "$LINENO" 5
12989 elif test $pkg_failed = untried; then
12990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12991 printf "%s\n" "no" >&6; }
12992 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12993 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12994 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12995 is in your PATH or set the PKG_CONFIG environment variable to the full
12996 path to pkg-config.
12997
12998 Alternatively, you may set the environment variables XLIB_CFLAGS
12999 and XLIB_LIBS to avoid the need to call pkg-config.
13000 See the pkg-config man page for more details.
13001
13002 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13003 See \`config.log' for more details" "$LINENO" 5; }
13004 else
13005 XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS
13006 XLIB_LIBS=$pkg_cv_XLIB_LIBS
13007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13008 printf "%s\n" "yes" >&6; }
13009
13010 fi
13011 XWININFO_CFLAGS="${XWININFO_CFLAGS} ${XLIB_CFLAGS}"
13012 XWININFO_LIBS="${XWININFO_LIBS} ${LIBICONV}"
13013
13014 ac_config_files="$ac_config_files Makefile man/Makefile"
13015
13016 cat >confcache <<\_ACEOF
13017 # This file is a shell script that caches the results of configure
13018 # tests run on this system so they can be shared between configure
13019 # scripts and configure runs, see configure's option --config-cache.
13020 # It is not useful on other systems. If it contains results you don't
13021 # want to keep, you may remove or edit it.
13022 #
13023 # config.status only pays attention to the cache file if you give it
13024 # the --recheck option to rerun configure.
13025 #
13026 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13027 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13028 # following values.
13029
13030 _ACEOF
13031
13032 # The following way of writing the cache mishandles newlines in values,
13033 # but we know of no workaround that is simple, portable, and efficient.
13034 # So, we kill variables containing newlines.
13035 # Ultrix sh set writes to stderr and can't be redirected directly,
13036 # and sets the high bit in the cache file unless we assign to the vars.
13037 (
13038 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13039 eval ac_val=\$$ac_var
13040 case $ac_val in #(
13041 *${as_nl}*)
13042 case $ac_var in #(
13043 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13044 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13045 esac
13046 case $ac_var in #(
13047 _ | IFS | as_nl) ;; #(
13048 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13049 *) { eval $ac_var=; unset $ac_var;} ;;
13050 esac ;;
13051 esac
13052 done
13053
13054 (set) 2>&1 |
13055 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13056 *${as_nl}ac_space=\ *)
13057 # `set' does not quote correctly, so add quotes: double-quote
13058 # substitution turns \\\\ into \\, and sed turns \\ into \.
13059 sed -n \
13060 "s/'/'\\\\''/g;
13061 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13062 ;; #(
13063 *)
13064 # `set' quotes correctly as required by POSIX, so do not add quotes.
13065 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13066 ;;
13067 esac |
13068 sort
13069 ) |
13070 sed '
13071 /^ac_cv_env_/b end
13072 t clear
13073 :clear
13074 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
13075 t end
13076 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13077 :end' >>confcache
13078 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13079 if test -w "$cache_file"; then
13080 if test "x$cache_file" != "x/dev/null"; then
13081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13082 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
13083 if test ! -f "$cache_file" || test -h "$cache_file"; then
13084 cat confcache >"$cache_file"
13085 else
13086 case $cache_file in #(
13087 */* | ?:*)
13088 mv -f confcache "$cache_file"$$ &&
13089 mv -f "$cache_file"$$ "$cache_file" ;; #(
13090 *)
13091 mv -f confcache "$cache_file" ;;
13092 esac
13093 fi
13094 fi
13095 else
13096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13097 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
13098 fi
13099 fi
13100 rm -f confcache
13101
13102 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13103 # Let make expand exec_prefix.
13104 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13105
13106 DEFS=-DHAVE_CONFIG_H
13107
13108 ac_libobjs=
13109 ac_ltlibobjs=
13110 U=
13111 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13112 # 1. Remove the extension, and $U if already installed.
13113 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13114 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
13115 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13116 # will be set to the directory where LIBOBJS objects are built.
13117 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13118 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13119 done
13120 LIBOBJS=$ac_libobjs
13121
13122 LTLIBOBJS=$ac_ltlibobjs
13123
13124
13125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13126 printf %s "checking that generated files are newer than configure... " >&6; }
13127 if test -n "$am_sleep_pid"; then
13128 # Hide warnings about reused PIDs.
13129 wait $am_sleep_pid 2>/dev/null
13130 fi
13131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
13132 printf "%s\n" "done" >&6; }
13133 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13134 as_fn_error $? "conditional \"AMDEP\" was never defined.
13135 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13136 fi
13137 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13138 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13139 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13140 fi
13141 if test -n "$EXEEXT"; then
13142 am__EXEEXT_TRUE=
13143 am__EXEEXT_FALSE='#'
13144 else
13145 am__EXEEXT_TRUE='#'
13146 am__EXEEXT_FALSE=
13147 fi
13148
13149
13150 : "${CONFIG_STATUS=./config.status}"
13151 ac_write_fail=0
13152 ac_clean_files_save=$ac_clean_files
13153 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13155 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
13156 as_write_fail=0
13157 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13158 #! $SHELL
13159 # Generated by $as_me.
13160 # Run this file to recreate the current configuration.
13161 # Compiler output produced by configure, useful for debugging
13162 # configure, is in config.log if it exists.
13163
13164 debug=false
13165 ac_cs_recheck=false
13166 ac_cs_silent=false
13167
13168 SHELL=\${CONFIG_SHELL-$SHELL}
13169 export SHELL
13170 _ASEOF
13171 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13172 ## -------------------- ##
13173 ## M4sh Initialization. ##
13174 ## -------------------- ##
13175
13176 # Be more Bourne compatible
13177 DUALCASE=1; export DUALCASE # for MKS sh
13178 as_nop=:
13179 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
13180 then :
13181 emulate sh
13182 NULLCMD=:
13183 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13184 # is contrary to our usage. Disable this feature.
13185 alias -g '${1+"$@"}'='"$@"'
13186 setopt NO_GLOB_SUBST
13187 else $as_nop
13188 case `(set -o) 2>/dev/null` in #(
13189 *posix*) :
13190 set -o posix ;; #(
13191 *) :
13192 ;;
13193 esac
13194 fi
13195
13196
13197
13198 # Reset variables that may have inherited troublesome values from
13199 # the environment.
13200
13201 # IFS needs to be set, to space, tab, and newline, in precisely that order.
13202 # (If _AS_PATH_WALK were called with IFS unset, it would have the
13203 # side effect of setting IFS to empty, thus disabling word splitting.)
13204 # Quoting is to prevent editors from complaining about space-tab.
13205 as_nl='
13206 '
13207 export as_nl
13208 IFS=" "" $as_nl"
13209
13210 PS1='$ '
13211 PS2='> '
13212 PS4='+ '
13213
13214 # Ensure predictable behavior from utilities with locale-dependent output.
13215 LC_ALL=C
13216 export LC_ALL
13217 LANGUAGE=C
13218 export LANGUAGE
13219
13220 # We cannot yet rely on "unset" to work, but we need these variables
13221 # to be unset--not just set to an empty or harmless value--now, to
13222 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
13223 # also avoids known problems related to "unset" and subshell syntax
13224 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
13225 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
13226 do eval test \${$as_var+y} \
13227 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13228 done
13229
13230 # Ensure that fds 0, 1, and 2 are open.
13231 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
13232 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
13233 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
13234
13235 # The user is always right.
13236 if ${PATH_SEPARATOR+false} :; then
13237 PATH_SEPARATOR=:
13238 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13239 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13240 PATH_SEPARATOR=';'
13241 }
13242 fi
13243
13244
13245 # Find who we are. Look in the path if we contain no directory separator.
13246 as_myself=
13247 case $0 in #((
13248 *[\\/]* ) as_myself=$0 ;;
13249 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13250 for as_dir in $PATH
13251 do
13252 IFS=$as_save_IFS
13253 case $as_dir in #(((
13254 '') as_dir=./ ;;
13255 */) ;;
13256 *) as_dir=$as_dir/ ;;
13257 esac
13258 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
13259 done
13260 IFS=$as_save_IFS
13261
13262 ;;
13263 esac
13264 # We did not find ourselves, most probably we were run as `sh COMMAND'
13265 # in which case we are not to be found in the path.
13266 if test "x$as_myself" = x; then
13267 as_myself=$0
13268 fi
13269 if test ! -f "$as_myself"; then
13270 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13271 exit 1
13272 fi
13273
13274
13275
13276 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13277 # ----------------------------------------
13278 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13279 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13280 # script with STATUS, using 1 if that was 0.
13281 as_fn_error ()
13282 {
13283 as_status=$1; test $as_status -eq 0 && as_status=1
13284 if test "$4"; then
13285 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13286 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13287 fi
13288 printf "%s\n" "$as_me: error: $2" >&2
13289 as_fn_exit $as_status
13290 } # as_fn_error
13291
13292
13293
13294 # as_fn_set_status STATUS
13295 # -----------------------
13296 # Set $? to STATUS, without forking.
13297 as_fn_set_status ()
13298 {
13299 return $1
13300 } # as_fn_set_status
13301
13302 # as_fn_exit STATUS
13303 # -----------------
13304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13305 as_fn_exit ()
13306 {
13307 set +e
13308 as_fn_set_status $1
13309 exit $1
13310 } # as_fn_exit
13311
13312 # as_fn_unset VAR
13313 # ---------------
13314 # Portably unset VAR.
13315 as_fn_unset ()
13316 {
13317 { eval $1=; unset $1;}
13318 }
13319 as_unset=as_fn_unset
13320
13321 # as_fn_append VAR VALUE
13322 # ----------------------
13323 # Append the text in VALUE to the end of the definition contained in VAR. Take
13324 # advantage of any shell optimizations that allow amortized linear growth over
13325 # repeated appends, instead of the typical quadratic growth present in naive
13326 # implementations.
13327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
13328 then :
13329 eval 'as_fn_append ()
13330 {
13331 eval $1+=\$2
13332 }'
13333 else $as_nop
13334 as_fn_append ()
13335 {
13336 eval $1=\$$1\$2
13337 }
13338 fi # as_fn_append
13339
13340 # as_fn_arith ARG...
13341 # ------------------
13342 # Perform arithmetic evaluation on the ARGs, and store the result in the
13343 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13344 # must be portable across $(()) and expr.
13345 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
13346 then :
13347 eval 'as_fn_arith ()
13348 {
13349 as_val=$(( $* ))
13350 }'
13351 else $as_nop
13352 as_fn_arith ()
13353 {
13354 as_val=`expr "$@" || test $? -eq 1`
13355 }
13356 fi # as_fn_arith
13357
13358
13359 if expr a : '\(a\)' >/dev/null 2>&1 &&
13360 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13361 as_expr=expr
13362 else
13363 as_expr=false
13364 fi
13365
13366 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13367 as_basename=basename
13368 else
13369 as_basename=false
13370 fi
13371
13372 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13373 as_dirname=dirname
13374 else
13375 as_dirname=false
13376 fi
13377
13378 as_me=`$as_basename -- "$0" ||
13379 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13380 X"$0" : 'X\(//\)$' \| \
13381 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13382 printf "%s\n" X/"$0" |
13383 sed '/^.*\/\([^/][^/]*\)\/*$/{
13384 s//\1/
13385 q
13386 }
13387 /^X\/\(\/\/\)$/{
13388 s//\1/
13389 q
13390 }
13391 /^X\/\(\/\).*/{
13392 s//\1/
13393 q
13394 }
13395 s/.*/./; q'`
13396
13397 # Avoid depending upon Character Ranges.
13398 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13399 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13400 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13401 as_cr_digits='0123456789'
13402 as_cr_alnum=$as_cr_Letters$as_cr_digits
13403
13404
13405 # Determine whether it's possible to make 'echo' print without a newline.
13406 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
13407 # for compatibility with existing Makefiles.
13408 ECHO_C= ECHO_N= ECHO_T=
13409 case `echo -n x` in #(((((
13410 -n*)
13411 case `echo 'xy\c'` in
13412 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13413 xy) ECHO_C='\c';;
13414 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13415 ECHO_T=' ';;
13416 esac;;
13417 *)
13418 ECHO_N='-n';;
13419 esac
13420
13421 # For backward compatibility with old third-party macros, we provide
13422 # the shell variables $as_echo and $as_echo_n. New code should use
13423 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
13424 as_echo='printf %s\n'
13425 as_echo_n='printf %s'
13426
13427 rm -f conf$$ conf$$.exe conf$$.file
13428 if test -d conf$$.dir; then
13429 rm -f conf$$.dir/conf$$.file
13430 else
13431 rm -f conf$$.dir
13432 mkdir conf$$.dir 2>/dev/null
13433 fi
13434 if (echo >conf$$.file) 2>/dev/null; then
13435 if ln -s conf$$.file conf$$ 2>/dev/null; then
13436 as_ln_s='ln -s'
13437 # ... but there are two gotchas:
13438 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13439 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13440 # In both cases, we have to default to `cp -pR'.
13441 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13442 as_ln_s='cp -pR'
13443 elif ln conf$$.file conf$$ 2>/dev/null; then
13444 as_ln_s=ln
13445 else
13446 as_ln_s='cp -pR'
13447 fi
13448 else
13449 as_ln_s='cp -pR'
13450 fi
13451 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13452 rmdir conf$$.dir 2>/dev/null
13453
13454
13455 # as_fn_mkdir_p
13456 # -------------
13457 # Create "$as_dir" as a directory, including parents if necessary.
13458 as_fn_mkdir_p ()
13459 {
13460
13461 case $as_dir in #(
13462 -*) as_dir=./$as_dir;;
13463 esac
13464 test -d "$as_dir" || eval $as_mkdir_p || {
13465 as_dirs=
13466 while :; do
13467 case $as_dir in #(
13468 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13469 *) as_qdir=$as_dir;;
13470 esac
13471 as_dirs="'$as_qdir' $as_dirs"
13472 as_dir=`$as_dirname -- "$as_dir" ||
13473 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13474 X"$as_dir" : 'X\(//\)[^/]' \| \
13475 X"$as_dir" : 'X\(//\)$' \| \
13476 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13477 printf "%s\n" X"$as_dir" |
13478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13479 s//\1/
13480 q
13481 }
13482 /^X\(\/\/\)[^/].*/{
13483 s//\1/
13484 q
13485 }
13486 /^X\(\/\/\)$/{
13487 s//\1/
13488 q
13489 }
13490 /^X\(\/\).*/{
13491 s//\1/
13492 q
13493 }
13494 s/.*/./; q'`
13495 test -d "$as_dir" && break
13496 done
13497 test -z "$as_dirs" || eval "mkdir $as_dirs"
13498 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13499
13500
13501 } # as_fn_mkdir_p
13502 if mkdir -p . 2>/dev/null; then
13503 as_mkdir_p='mkdir -p "$as_dir"'
13504 else
13505 test -d ./-p && rmdir ./-p
13506 as_mkdir_p=false
13507 fi
13508
13509
13510 # as_fn_executable_p FILE
13511 # -----------------------
13512 # Test if FILE is an executable regular file.
13513 as_fn_executable_p ()
13514 {
13515 test -f "$1" && test -x "$1"
13516 } # as_fn_executable_p
13517 as_test_x='test -x'
13518 as_executable_p=as_fn_executable_p
13519
13520 # Sed expression to map a string onto a valid CPP name.
13521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13522
13523 # Sed expression to map a string onto a valid variable name.
13524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13525
13526
13527 exec 6>&1
13528 ## ----------------------------------- ##
13529 ## Main body of $CONFIG_STATUS script. ##
13530 ## ----------------------------------- ##
13531 _ASEOF
13532 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13533
13534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13535 # Save the log message, to keep $0 and so on meaningful, and to
13536 # report actual input values of CONFIG_FILES etc. instead of their
13537 # values after options handling.
13538 ac_log="
13539 This file was extended by xwininfo $as_me 1.1.6, which was
13540 generated by GNU Autoconf 2.71. Invocation command line was
13541
13542 CONFIG_FILES = $CONFIG_FILES
13543 CONFIG_HEADERS = $CONFIG_HEADERS
13544 CONFIG_LINKS = $CONFIG_LINKS
13545 CONFIG_COMMANDS = $CONFIG_COMMANDS
13546 $ $0 $@
13547
13548 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13549 "
13550
13551 _ACEOF
13552
13553 case $ac_config_files in *"
13554 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13555 esac
13556
13557 case $ac_config_headers in *"
13558 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13559 esac
13560
13561
13562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13563 # Files that config.status was made for.
13564 config_files="$ac_config_files"
13565 config_headers="$ac_config_headers"
13566 config_commands="$ac_config_commands"
13567
13568 _ACEOF
13569
13570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13571 ac_cs_usage="\
13572 \`$as_me' instantiates files and other configuration actions
13573 from templates according to the current configuration. Unless the files
13574 and actions are specified as TAGs, all are instantiated by default.
13575
13576 Usage: $0 [OPTION]... [TAG]...
13577
13578 -h, --help print this help, then exit
13579 -V, --version print version number and configuration settings, then exit
13580 --config print configuration, then exit
13581 -q, --quiet, --silent
13582 do not print progress messages
13583 -d, --debug don't remove temporary files
13584 --recheck update $as_me by reconfiguring in the same conditions
13585 --file=FILE[:TEMPLATE]
13586 instantiate the configuration file FILE
13587 --header=FILE[:TEMPLATE]
13588 instantiate the configuration header FILE
13589
13590 Configuration files:
13591 $config_files
13592
13593 Configuration headers:
13594 $config_headers
13595
13596 Configuration commands:
13597 $config_commands
13598
13599 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xwininfo/-/issues>."
13600
13601 _ACEOF
13602 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
13603 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
13604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13605 ac_cs_config='$ac_cs_config_escaped'
13606 ac_cs_version="\\
13607 xwininfo config.status 1.1.6
13608 configured by $0, generated by GNU Autoconf 2.71,
13609 with options \\"\$ac_cs_config\\"
13610
13611 Copyright (C) 2021 Free Software Foundation, Inc.
13612 This config.status script is free software; the Free Software Foundation
13613 gives unlimited permission to copy, distribute and modify it."
13614
13615 ac_pwd='$ac_pwd'
13616 srcdir='$srcdir'
13617 INSTALL='$INSTALL'
13618 MKDIR_P='$MKDIR_P'
13619 AWK='$AWK'
13620 test -n "\$AWK" || AWK=awk
13621 _ACEOF
13622
13623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13624 # The default lists apply if the user does not specify any file.
13625 ac_need_defaults=:
13626 while test $# != 0
13627 do
13628 case $1 in
13629 --*=?*)
13630 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13631 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13632 ac_shift=:
13633 ;;
13634 --*=)
13635 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13636 ac_optarg=
13637 ac_shift=:
13638 ;;
13639 *)
13640 ac_option=$1
13641 ac_optarg=$2
13642 ac_shift=shift
13643 ;;
13644 esac
13645
13646 case $ac_option in
13647 # Handling of the options.
13648 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13649 ac_cs_recheck=: ;;
13650 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13651 printf "%s\n" "$ac_cs_version"; exit ;;
13652 --config | --confi | --conf | --con | --co | --c )
13653 printf "%s\n" "$ac_cs_config"; exit ;;
13654 --debug | --debu | --deb | --de | --d | -d )
13655 debug=: ;;
13656 --file | --fil | --fi | --f )
13657 $ac_shift
13658 case $ac_optarg in
13659 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13660 '') as_fn_error $? "missing file argument" ;;
13661 esac
13662 as_fn_append CONFIG_FILES " '$ac_optarg'"
13663 ac_need_defaults=false;;
13664 --header | --heade | --head | --hea )
13665 $ac_shift
13666 case $ac_optarg in
13667 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13668 esac
13669 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13670 ac_need_defaults=false;;
13671 --he | --h)
13672 # Conflict between --help and --header
13673 as_fn_error $? "ambiguous option: \`$1'
13674 Try \`$0 --help' for more information.";;
13675 --help | --hel | -h )
13676 printf "%s\n" "$ac_cs_usage"; exit ;;
13677 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13678 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13679 ac_cs_silent=: ;;
13680
13681 # This is an error.
13682 -*) as_fn_error $? "unrecognized option: \`$1'
13683 Try \`$0 --help' for more information." ;;
13684
13685 *) as_fn_append ac_config_targets " $1"
13686 ac_need_defaults=false ;;
13687
13688 esac
13689 shift
13690 done
13691
13692 ac_configure_extra_args=
13693
13694 if $ac_cs_silent; then
13695 exec 6>/dev/null
13696 ac_configure_extra_args="$ac_configure_extra_args --silent"
13697 fi
13698
13699 _ACEOF
13700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13701 if \$ac_cs_recheck; then
13702 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13703 shift
13704 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
13705 CONFIG_SHELL='$SHELL'
13706 export CONFIG_SHELL
13707 exec "\$@"
13708 fi
13709
13710 _ACEOF
13711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13712 exec 5>>config.log
13713 {
13714 echo
13715 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13716 ## Running $as_me. ##
13717 _ASBOX
13718 printf "%s\n" "$ac_log"
13719 } >&5
13720
13721 _ACEOF
13722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13723 #
13724 # INIT-COMMANDS
13725 #
13726 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13727
13728 _ACEOF
13729
13730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13731
13732 # Handling of arguments.
13733 for ac_config_target in $ac_config_targets
13734 do
13735 case $ac_config_target in
13736 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13737 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13738 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13739 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13740
13741 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13742 esac
13743 done
13744
13745
13746 # If the user did not use the arguments to specify the items to instantiate,
13747 # then the envvar interface is used. Set only those that are not.
13748 # We use the long form for the default assignment because of an extremely
13749 # bizarre bug on SunOS 4.1.3.
13750 if $ac_need_defaults; then
13751 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
13752 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
13753 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
13754 fi
13755
13756 # Have a temporary directory for convenience. Make it in the build tree
13757 # simply because there is no reason against having it here, and in addition,
13758 # creating and moving files from /tmp can sometimes cause problems.
13759 # Hook for its removal unless debugging.
13760 # Note that there is a small window in which the directory will not be cleaned:
13761 # after its creation but before its name has been assigned to `$tmp'.
13762 $debug ||
13763 {
13764 tmp= ac_tmp=
13765 trap 'exit_status=$?
13766 : "${ac_tmp:=$tmp}"
13767 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13768 ' 0
13769 trap 'as_fn_exit 1' 1 2 13 15
13770 }
13771 # Create a (secure) tmp directory for tmp files.
13772
13773 {
13774 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13775 test -d "$tmp"
13776 } ||
13777 {
13778 tmp=./conf$$-$RANDOM
13779 (umask 077 && mkdir "$tmp")
13780 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13781 ac_tmp=$tmp
13782
13783 # Set up the scripts for CONFIG_FILES section.
13784 # No need to generate them if there are no CONFIG_FILES.
13785 # This happens for instance with `./config.status config.h'.
13786 if test -n "$CONFIG_FILES"; then
13787
13788
13789 ac_cr=`echo X | tr X '\015'`
13790 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13791 # But we know of no other shell where ac_cr would be empty at this
13792 # point, so we can use a bashism as a fallback.
13793 if test "x$ac_cr" = x; then
13794 eval ac_cr=\$\'\\r\'
13795 fi
13796 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13797 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13798 ac_cs_awk_cr='\\r'
13799 else
13800 ac_cs_awk_cr=$ac_cr
13801 fi
13802
13803 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13804 _ACEOF
13805
13806
13807 {
13808 echo "cat >conf$$subs.awk <<_ACEOF" &&
13809 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13810 echo "_ACEOF"
13811 } >conf$$subs.sh ||
13812 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13813 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13814 ac_delim='%!_!# '
13815 for ac_last_try in false false false false false :; do
13816 . ./conf$$subs.sh ||
13817 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13818
13819 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13820 if test $ac_delim_n = $ac_delim_num; then
13821 break
13822 elif $ac_last_try; then
13823 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13824 else
13825 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13826 fi
13827 done
13828 rm -f conf$$subs.sh
13829
13830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13831 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13832 _ACEOF
13833 sed -n '
13834 h
13835 s/^/S["/; s/!.*/"]=/
13836 p
13837 g
13838 s/^[^!]*!//
13839 :repl
13840 t repl
13841 s/'"$ac_delim"'$//
13842 t delim
13843 :nl
13844 h
13845 s/\(.\{148\}\)..*/\1/
13846 t more1
13847 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13848 p
13849 n
13850 b repl
13851 :more1
13852 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13853 p
13854 g
13855 s/.\{148\}//
13856 t nl
13857 :delim
13858 h
13859 s/\(.\{148\}\)..*/\1/
13860 t more2
13861 s/["\\]/\\&/g; s/^/"/; s/$/"/
13862 p
13863 b
13864 :more2
13865 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13866 p
13867 g
13868 s/.\{148\}//
13869 t delim
13870 ' <conf$$subs.awk | sed '
13871 /^[^""]/{
13872 N
13873 s/\n//
13874 }
13875 ' >>$CONFIG_STATUS || ac_write_fail=1
13876 rm -f conf$$subs.awk
13877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13878 _ACAWK
13879 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13880 for (key in S) S_is_set[key] = 1
13881 FS = ""
13882
13883 }
13884 {
13885 line = $ 0
13886 nfields = split(line, field, "@")
13887 substed = 0
13888 len = length(field[1])
13889 for (i = 2; i < nfields; i++) {
13890 key = field[i]
13891 keylen = length(key)
13892 if (S_is_set[key]) {
13893 value = S[key]
13894 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13895 len += length(value) + length(field[++i])
13896 substed = 1
13897 } else
13898 len += 1 + keylen
13899 }
13900
13901 print line
13902 }
13903
13904 _ACAWK
13905 _ACEOF
13906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13907 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13908 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13909 else
13910 cat
13911 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13912 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13913 _ACEOF
13914
13915 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13916 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13917 # trailing colons and then remove the whole line if VPATH becomes empty
13918 # (actually we leave an empty line to preserve line numbers).
13919 if test "x$srcdir" = x.; then
13920 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13921 h
13922 s///
13923 s/^/:/
13924 s/[ ]*$/:/
13925 s/:\$(srcdir):/:/g
13926 s/:\${srcdir}:/:/g
13927 s/:@srcdir@:/:/g
13928 s/^:*//
13929 s/:*$//
13930 x
13931 s/\(=[ ]*\).*/\1/
13932 G
13933 s/\n//
13934 s/^[^=]*=[ ]*$//
13935 }'
13936 fi
13937
13938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13939 fi # test -n "$CONFIG_FILES"
13940
13941 # Set up the scripts for CONFIG_HEADERS section.
13942 # No need to generate them if there are no CONFIG_HEADERS.
13943 # This happens for instance with `./config.status Makefile'.
13944 if test -n "$CONFIG_HEADERS"; then
13945 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13946 BEGIN {
13947 _ACEOF
13948
13949 # Transform confdefs.h into an awk script `defines.awk', embedded as
13950 # here-document in config.status, that substitutes the proper values into
13951 # config.h.in to produce config.h.
13952
13953 # Create a delimiter string that does not exist in confdefs.h, to ease
13954 # handling of long lines.
13955 ac_delim='%!_!# '
13956 for ac_last_try in false false :; do
13957 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13958 if test -z "$ac_tt"; then
13959 break
13960 elif $ac_last_try; then
13961 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13962 else
13963 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13964 fi
13965 done
13966
13967 # For the awk script, D is an array of macro values keyed by name,
13968 # likewise P contains macro parameters if any. Preserve backslash
13969 # newline sequences.
13970
13971 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13972 sed -n '
13973 s/.\{148\}/&'"$ac_delim"'/g
13974 t rset
13975 :rset
13976 s/^[ ]*#[ ]*define[ ][ ]*/ /
13977 t def
13978 d
13979 :def
13980 s/\\$//
13981 t bsnl
13982 s/["\\]/\\&/g
13983 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13984 D["\1"]=" \3"/p
13985 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13986 d
13987 :bsnl
13988 s/["\\]/\\&/g
13989 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13990 D["\1"]=" \3\\\\\\n"\\/p
13991 t cont
13992 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13993 t cont
13994 d
13995 :cont
13996 n
13997 s/.\{148\}/&'"$ac_delim"'/g
13998 t clear
13999 :clear
14000 s/\\$//
14001 t bsnlc
14002 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14003 d
14004 :bsnlc
14005 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14006 b cont
14007 ' <confdefs.h | sed '
14008 s/'"$ac_delim"'/"\\\
14009 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14010
14011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14012 for (key in D) D_is_set[key] = 1
14013 FS = ""
14014 }
14015 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14016 line = \$ 0
14017 split(line, arg, " ")
14018 if (arg[1] == "#") {
14019 defundef = arg[2]
14020 mac1 = arg[3]
14021 } else {
14022 defundef = substr(arg[1], 2)
14023 mac1 = arg[2]
14024 }
14025 split(mac1, mac2, "(") #)
14026 macro = mac2[1]
14027 prefix = substr(line, 1, index(line, defundef) - 1)
14028 if (D_is_set[macro]) {
14029 # Preserve the white space surrounding the "#".
14030 print prefix "define", macro P[macro] D[macro]
14031 next
14032 } else {
14033 # Replace #undef with comments. This is necessary, for example,
14034 # in the case of _POSIX_SOURCE, which is predefined and required
14035 # on some systems where configure will not decide to define it.
14036 if (defundef == "undef") {
14037 print "/*", prefix defundef, macro, "*/"
14038 next
14039 }
14040 }
14041 }
14042 { print }
14043 _ACAWK
14044 _ACEOF
14045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14046 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14047 fi # test -n "$CONFIG_HEADERS"
14048
14049
14050 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14051 shift
14052 for ac_tag
14053 do
14054 case $ac_tag in
14055 :[FHLC]) ac_mode=$ac_tag; continue;;
14056 esac
14057 case $ac_mode$ac_tag in
14058 :[FHL]*:*);;
14059 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14060 :[FH]-) ac_tag=-:-;;
14061 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14062 esac
14063 ac_save_IFS=$IFS
14064 IFS=:
14065 set x $ac_tag
14066 IFS=$ac_save_IFS
14067 shift
14068 ac_file=$1
14069 shift
14070
14071 case $ac_mode in
14072 :L) ac_source=$1;;
14073 :[FH])
14074 ac_file_inputs=
14075 for ac_f
14076 do
14077 case $ac_f in
14078 -) ac_f="$ac_tmp/stdin";;
14079 *) # Look for the file first in the build tree, then in the source tree
14080 # (if the path is not absolute). The absolute path cannot be DOS-style,
14081 # because $ac_f cannot contain `:'.
14082 test -f "$ac_f" ||
14083 case $ac_f in
14084 [\\/$]*) false;;
14085 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14086 esac ||
14087 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14088 esac
14089 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14090 as_fn_append ac_file_inputs " '$ac_f'"
14091 done
14092
14093 # Let's still pretend it is `configure' which instantiates (i.e., don't
14094 # use $as_me), people would be surprised to read:
14095 # /* config.h. Generated by config.status. */
14096 configure_input='Generated from '`
14097 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14098 `' by configure.'
14099 if test x"$ac_file" != x-; then
14100 configure_input="$ac_file. $configure_input"
14101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14102 printf "%s\n" "$as_me: creating $ac_file" >&6;}
14103 fi
14104 # Neutralize special characters interpreted by sed in replacement strings.
14105 case $configure_input in #(
14106 *\&* | *\|* | *\\* )
14107 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
14108 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14109 *) ac_sed_conf_input=$configure_input;;
14110 esac
14111
14112 case $ac_tag in
14113 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14114 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14115 esac
14116 ;;
14117 esac
14118
14119 ac_dir=`$as_dirname -- "$ac_file" ||
14120 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14121 X"$ac_file" : 'X\(//\)[^/]' \| \
14122 X"$ac_file" : 'X\(//\)$' \| \
14123 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14124 printf "%s\n" X"$ac_file" |
14125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14126 s//\1/
14127 q
14128 }
14129 /^X\(\/\/\)[^/].*/{
14130 s//\1/
14131 q
14132 }
14133 /^X\(\/\/\)$/{
14134 s//\1/
14135 q
14136 }
14137 /^X\(\/\).*/{
14138 s//\1/
14139 q
14140 }
14141 s/.*/./; q'`
14142 as_dir="$ac_dir"; as_fn_mkdir_p
14143 ac_builddir=.
14144
14145 case "$ac_dir" in
14146 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14147 *)
14148 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
14149 # A ".." for each directory in $ac_dir_suffix.
14150 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14151 case $ac_top_builddir_sub in
14152 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14153 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14154 esac ;;
14155 esac
14156 ac_abs_top_builddir=$ac_pwd
14157 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14158 # for backward compatibility:
14159 ac_top_builddir=$ac_top_build_prefix
14160
14161 case $srcdir in
14162 .) # We are building in place.
14163 ac_srcdir=.
14164 ac_top_srcdir=$ac_top_builddir_sub
14165 ac_abs_top_srcdir=$ac_pwd ;;
14166 [\\/]* | ?:[\\/]* ) # Absolute name.
14167 ac_srcdir=$srcdir$ac_dir_suffix;
14168 ac_top_srcdir=$srcdir
14169 ac_abs_top_srcdir=$srcdir ;;
14170 *) # Relative name.
14171 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14172 ac_top_srcdir=$ac_top_build_prefix$srcdir
14173 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14174 esac
14175 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14176
14177
14178 case $ac_mode in
14179 :F)
14180 #
14181 # CONFIG_FILE
14182 #
14183
14184 case $INSTALL in
14185 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14186 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14187 esac
14188 ac_MKDIR_P=$MKDIR_P
14189 case $MKDIR_P in
14190 [\\/$]* | ?:[\\/]* ) ;;
14191 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14192 esac
14193 _ACEOF
14194
14195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14196 # If the template does not know about datarootdir, expand it.
14197 # FIXME: This hack should be removed a few years after 2.60.
14198 ac_datarootdir_hack=; ac_datarootdir_seen=
14199 ac_sed_dataroot='
14200 /datarootdir/ {
14201 p
14202 q
14203 }
14204 /@datadir@/p
14205 /@docdir@/p
14206 /@infodir@/p
14207 /@localedir@/p
14208 /@mandir@/p'
14209 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14210 *datarootdir*) ac_datarootdir_seen=yes;;
14211 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14213 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14214 _ACEOF
14215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14216 ac_datarootdir_hack='
14217 s&@datadir@&$datadir&g
14218 s&@docdir@&$docdir&g
14219 s&@infodir@&$infodir&g
14220 s&@localedir@&$localedir&g
14221 s&@mandir@&$mandir&g
14222 s&\\\${datarootdir}&$datarootdir&g' ;;
14223 esac
14224 _ACEOF
14225
14226 # Neutralize VPATH when `$srcdir' = `.'.
14227 # Shell code in configure.ac might set extrasub.
14228 # FIXME: do we really want to maintain this feature?
14229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14230 ac_sed_extra="$ac_vpsub
14231 $extrasub
14232 _ACEOF
14233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14234 :t
14235 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14236 s|@configure_input@|$ac_sed_conf_input|;t t
14237 s&@top_builddir@&$ac_top_builddir_sub&;t t
14238 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14239 s&@srcdir@&$ac_srcdir&;t t
14240 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14241 s&@top_srcdir@&$ac_top_srcdir&;t t
14242 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14243 s&@builddir@&$ac_builddir&;t t
14244 s&@abs_builddir@&$ac_abs_builddir&;t t
14245 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14246 s&@INSTALL@&$ac_INSTALL&;t t
14247 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14248 $ac_datarootdir_hack
14249 "
14250 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14251 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14252
14253 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14254 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14255 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14256 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14258 which seems to be undefined. Please make sure it is defined" >&5
14259 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14260 which seems to be undefined. Please make sure it is defined" >&2;}
14261
14262 rm -f "$ac_tmp/stdin"
14263 case $ac_file in
14264 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14265 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14266 esac \
14267 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14268 ;;
14269 :H)
14270 #
14271 # CONFIG_HEADER
14272 #
14273 if test x"$ac_file" != x-; then
14274 {
14275 printf "%s\n" "/* $configure_input */" >&1 \
14276 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14277 } >"$ac_tmp/config.h" \
14278 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14279 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14281 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
14282 else
14283 rm -f "$ac_file"
14284 mv "$ac_tmp/config.h" "$ac_file" \
14285 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14286 fi
14287 else
14288 printf "%s\n" "/* $configure_input */" >&1 \
14289 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14290 || as_fn_error $? "could not create -" "$LINENO" 5
14291 fi
14292 # Compute "$ac_file"'s index in $config_headers.
14293 _am_arg="$ac_file"
14294 _am_stamp_count=1
14295 for _am_header in $config_headers :; do
14296 case $_am_header in
14297 $_am_arg | $_am_arg:* )
14298 break ;;
14299 * )
14300 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14301 esac
14302 done
14303 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14304 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14305 X"$_am_arg" : 'X\(//\)[^/]' \| \
14306 X"$_am_arg" : 'X\(//\)$' \| \
14307 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14308 printf "%s\n" X"$_am_arg" |
14309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14310 s//\1/
14311 q
14312 }
14313 /^X\(\/\/\)[^/].*/{
14314 s//\1/
14315 q
14316 }
14317 /^X\(\/\/\)$/{
14318 s//\1/
14319 q
14320 }
14321 /^X\(\/\).*/{
14322 s//\1/
14323 q
14324 }
14325 s/.*/./; q'`/stamp-h$_am_stamp_count
14326 ;;
14327
14328 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14329 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
14330 ;;
14331 esac
14332
14333
14334 case $ac_file$ac_mode in
14335 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14336 # Older Autoconf quotes --file arguments for eval, but not when files
14337 # are listed without --file. Let's play safe and only enable the eval
14338 # if we detect the quoting.
14339 # TODO: see whether this extra hack can be removed once we start
14340 # requiring Autoconf 2.70 or later.
14341 case $CONFIG_FILES in #(
14342 *\'*) :
14343 eval set x "$CONFIG_FILES" ;; #(
14344 *) :
14345 set x $CONFIG_FILES ;; #(
14346 *) :
14347 ;;
14348 esac
14349 shift
14350 # Used to flag and report bootstrapping failures.
14351 am_rc=0
14352 for am_mf
14353 do
14354 # Strip MF so we end up with the name of the file.
14355 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
14356 # Check whether this is an Automake generated Makefile which includes
14357 # dependency-tracking related rules and includes.
14358 # Grep'ing the whole file directly is not great: AIX grep has a line
14359 # limit of 2048, but all sed's we know have understand at least 4000.
14360 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
14361 || continue
14362 am_dirpart=`$as_dirname -- "$am_mf" ||
14363 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14364 X"$am_mf" : 'X\(//\)[^/]' \| \
14365 X"$am_mf" : 'X\(//\)$' \| \
14366 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14367 printf "%s\n" X"$am_mf" |
14368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14369 s//\1/
14370 q
14371 }
14372 /^X\(\/\/\)[^/].*/{
14373 s//\1/
14374 q
14375 }
14376 /^X\(\/\/\)$/{
14377 s//\1/
14378 q
14379 }
14380 /^X\(\/\).*/{
14381 s//\1/
14382 q
14383 }
14384 s/.*/./; q'`
14385 am_filepart=`$as_basename -- "$am_mf" ||
14386 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14387 X"$am_mf" : 'X\(//\)$' \| \
14388 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14389 printf "%s\n" X/"$am_mf" |
14390 sed '/^.*\/\([^/][^/]*\)\/*$/{
14391 s//\1/
14392 q
14393 }
14394 /^X\/\(\/\/\)$/{
14395 s//\1/
14396 q
14397 }
14398 /^X\/\(\/\).*/{
14399 s//\1/
14400 q
14401 }
14402 s/.*/./; q'`
14403 { echo "$as_me:$LINENO: cd "$am_dirpart" \
14404 && sed -e '/# am--include-marker/d' "$am_filepart" \
14405 | $MAKE -f - am--depfiles" >&5
14406 (cd "$am_dirpart" \
14407 && sed -e '/# am--include-marker/d' "$am_filepart" \
14408 | $MAKE -f - am--depfiles) >&5 2>&5
14409 ac_status=$?
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); } || am_rc=$?
14412 done
14413 if test $am_rc -ne 0; then
14414 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14415 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14416 as_fn_error $? "Something went wrong bootstrapping makefile fragments
14417 for automatic dependency tracking. If GNU make was not used, consider
14418 re-running the configure script with MAKE=\"gmake\" (or whatever is
14419 necessary). You can also try re-running configure with the
14420 '--disable-dependency-tracking' option to at least be able to build
14421 the package (albeit without support for automatic dependency tracking).
14422 See \`config.log' for more details" "$LINENO" 5; }
14423 fi
14424 { am_dirpart=; unset am_dirpart;}
14425 { am_filepart=; unset am_filepart;}
14426 { am_mf=; unset am_mf;}
14427 { am_rc=; unset am_rc;}
14428 rm -f conftest-deps.mk
14429 }
14430 ;;
14431
14432 esac
14433 done # for ac_tag
14434
14435
14436 as_fn_exit 0
14437 _ACEOF
14438 ac_clean_files=$ac_clean_files_save
14439
14440 test $ac_write_fail = 0 ||
14441 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14442
14443
14444 # configure is writing to config.log, and then calls config.status.
14445 # config.status does its own redirection, appending to config.log.
14446 # Unfortunately, on DOS this fails, as config.log is still kept open
14447 # by configure, so config.status won't be able to write to it; its
14448 # output is simply discarded. So we exec the FD to /dev/null,
14449 # effectively closing config.log, so it can be properly (re)opened and
14450 # appended to by config.status. When coming back to configure, we
14451 # need to make the FD available again.
14452 if test "$no_create" != yes; then
14453 ac_cs_success=:
14454 ac_config_status_args=
14455 test "$silent" = yes &&
14456 ac_config_status_args="$ac_config_status_args --quiet"
14457 exec 5>/dev/null
14458 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14459 exec 5>>config.log
14460 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14461 # would make configure fail if this is the last instruction.
14462 $ac_cs_success || as_fn_exit 1
14463 fi
14464 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14466 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14467 fi
14468
14469
14470